当前位置: 首页>>代码示例>>PHP>>正文


PHP FSS_Helper::ParseBBCode方法代码示例

本文整理汇总了PHP中FSS_Helper::ParseBBCode方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::ParseBBCode方法的具体用法?PHP FSS_Helper::ParseBBCode怎么用?PHP FSS_Helper::ParseBBCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FSS_Helper的用法示例。


在下文中一共展示了FSS_Helper::ParseBBCode方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: echo

			
				<div class="pull-right" style="margin-bottom: 8px;margin-left: 8px;">
					<i>
						<?php 
        echo FSS_Helper::Date($message['posted'], FSS_DATETIME_MID);
        ?>
					</i>
				</div>
				
				<div id="message_<?php 
        echo (int) $message['id'];
        ?>
">
					<?php 
        $msg = $message['body'];
        $msg = FSS_Helper::ParseBBCode($msg, $message);
        echo $msg;
        ?>
				</div>
				
				<?php 
        if (array_key_exists("attach", $message)) {
            ?>
					<?php 
            foreach ($message['attach'] as &$attach) {
                ?>
						<div class="padding-mini">
							<a href='<?php 
                echo FSSRoute::_('index.php?option=com_fss&view=ticket&fileid=' . $attach['id']);
                ?>
'>
开发者ID:vstorm83,项目名称:propertease,代码行数:30,代码来源:_messages_print.php

示例2: ParseMessageRows

 static function ParseMessageRows(&$messages, $ishtml, $foruser = false)
 {
     $template = self::Get_Template('messagerow');
     $result = "";
     foreach ($messages as &$message) {
         $vars = array();
         //print_p($message);
         if ($message['name']) {
             $vars[] = self::BuildVar('name', $message['name']);
             $vars[] = self::BuildVar('email', $message['email']);
             $vars[] = self::BuildVar('username', $message['username']);
         } else {
             $vars[] = self::BuildVar('name', 'Unknown');
             $vars[] = self::BuildVar('email', 'Unknown');
             $vars[] = self::BuildVar('username', 'Unknown');
         }
         $vars[] = self::BuildVar('subject', $message['subject']);
         $vars[] = self::BuildVar('posted', FSS_Helper::Date($message['posted']));
         $message['body'] = FSS_Helper::ParseBBCode($message['body'], null, false, false, $foruser);
         if ($ishtml) {
             $message['body'] = str_replace("\n", "<br>\n", $message['body']);
             $vars[] = self::BuildVar('body', $message['body'] . "<br />");
         } else {
             $vars[] = self::BuildVar('body', $message['body'] . "\n");
         }
         $result .= self::ParseText($template['body'], $vars);
     }
     return $result;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:29,代码来源:email.php

示例3: parseTitle

 static function parseTitle($title, $ticketid)
 {
     // This needs updating to use loaded messages if we have them
     if (trim($title) != "") {
         return $title;
     } else {
         // no title for the ticket, so load the oldest message, and display the first part of that
         $db = JFactory::getDBO();
         $qry = "SELECT * FROM #__fss_ticket_messages WHERE ticket_ticket_id = " . $db->escape($ticketid) . " ORDER BY posted ASC LIMIT 1";
         $db->setQuery($qry);
         $message = $db->loadObject();
         $msg = $message->body;
         $msg = FSS_Helper::ParseBBCode($msg);
         $msg = strip_tags($msg);
         if (trim($msg) != "") {
             if (strlen($msg) > 50) {
                 return substr($msg, 0, 50) . "...";
             }
             return $msg;
         } else {
             return JText::_('NO_SUBJECT');
         }
     }
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:24,代码来源:parser_ticket.php

示例4: ParseSig

 static function ParseSig($text, $ticket, $bbcode = true)
 {
     if (!is_object($ticket)) {
         echo "CALLING PARSESIG WITHOUT TICKET OBJECT!";
         exit;
     }
     $parser = new FSSParser();
     $parser->template = $text;
     $parser->Clear();
     FSSParserTicket::core($parser, $ticket);
     $user = JFactory::getUser();
     $parser->SetVar('handlername', $user->name);
     $parser->SetVar('handlerusername', $user->username);
     $parser->SetVar('handleremail', $user->email);
     $text = $parser->Parse();
     if ($bbcode) {
         return FSS_Helper::ParseBBCode($text);
     }
     return $text;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:20,代码来源:support_canned.php

示例5: foreach

<?php 
if (FSS_Permission::auth("core.create", "com_fss.faq")) {
    ?>
	<div style="display: none;">
		<form id="ticket_to_faq" action="<?php 
    echo JRoute::_("index.php?option=com_fss&view=admin_content&type=faqs&what=new");
    ?>
" method="POST" target="_blank">
			<input name="option" value="com_fss" />
			<input name="view" value="admin_content" />
			<input name="type" value="faqs" />
			<input name="what" value="new" />
			<input name="question" value="<?php 
    echo FSS_Helper::escape($this->ticket->title);
    ?>
" />
			<textarea name="answer"><?php 
    foreach ($this->ticket->messages as $message) {
        if ($message->admin == 3) {
            continue;
        }
        $msg = FSS_Helper::ParseBBCode($message->body, $message);
        echo FSS_Helper::escape($msg) . "\n";
        //echo "<hr />\n";
    }
    ?>
</textarea>
		</form>
	</div>
<?php 
}
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_export.php

示例6: FSSCronEMailCheck

				<div class="pull-right" style="margin-bottom: 8px;margin-left: 8px;">
					<i>
						<?php 
    echo FSS_Helper::TicketTime($message['posted'], FSS_DATETIME_MID);
    ?>
					</i>
				</div>
				
				<?php 
    if (strpos($message['body'], "[cid:") !== false) {
        require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'cron' . DS . 'emailcheck.php';
        $ec = new FSSCronEMailCheck();
        $message['body'] = $ec->processInlineImages($message['id']);
    }
    $msg = $message['body'];
    $msg = FSS_Helper::ParseBBCode($msg, $message, false, false, true);
    echo $msg;
    ?>
				
				<?php 
    if (array_key_exists("attach", $message)) {
        ?>
					<?php 
        foreach ($message['attach'] as &$attach) {
            ?>
					<?php 
            if ($attach['inline']) {
                continue;
            }
            ?>
						<div class="padding-mini">
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_messages.php

示例7: defined

<?php

/**
 * @package Freestyle Joomla
 * @author Freestyle Joomla
 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
echo FSS_Helper::PageStylePopup(true);
echo FSS_Helper::PageTitlePopup('Signature Preview');
?>

<?php 
echo FSS_Helper::ParseBBCode(trim($this->signature));
?>

<?php 
echo FSS_Helper::PageStylePopupEnd();
开发者ID:vstorm83,项目名称:propertease,代码行数:19,代码来源:_signature_preview.php

示例8: OutputField

function OutputField($field, $value)
{
    if (!isset($field->format)) {
        echo $value;
        return;
    }
    if ($field->format == "date") {
        if ($value != "" && $value != "0000-00-00" && $value != "0000-00-00 00:00:00") {
            $format = "Y-m-d";
            if (isset($field->dateformat)) {
                $format = $field->dateformat;
            }
            if (substr($format, 0, 5) == "DATE_") {
                $format = JText::_($format);
            }
            $jdate = new JDate($value);
            echo $jdate->format($format);
        } elseif (isset($field->blank)) {
            echo $field->blank;
        }
    } elseif ($field->format == "messagetime") {
        if ($value < 1) {
            echo "";
        } else {
            if ($value > 0 && $value < 86400 * 10) {
                echo date("H:i", $value);
            } else {
                $format = "Y-m-d";
                if (isset($field->dateformat)) {
                    $format = $field->dateformat;
                }
                $jdate = new JDate($value);
                echo $jdate->format($format);
            }
        }
    } elseif ($field->format == "hm") {
        $val = $value;
        $mins = $val % 60;
        $hrs = floor($val / 60);
        echo sprintf("%d:%02d", $hrs, $mins);
    } elseif ($field->format == "bbcode") {
        echo FSS_Helper::ParseBBCode($value);
    } else {
        echo $value;
    }
}
开发者ID:vstorm83,项目名称:propertease,代码行数:46,代码来源:_report_table.php


注:本文中的FSS_Helper::ParseBBCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。