This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Q2A Market Block Category Content for Loggedin user | |
* | |
* | |
* @author Q2A Market | |
* @category Hook | |
* @Version: 1.00 | |
* @author URL: http://www.q2amarket.com | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$pid = $q_item['raw']['postid']; | |
$query = qa_db_query_sub("SELECT postid, content, format FROM ^posts WHERE postid = $pid"); | |
$cont = qa_db_read_one_assoc($query); | |
$blockwordspreg = qa_get_block_words_preg(); | |
$text=qa_viewer_text($cont['content'], $cont['format'], array('blockwordspreg' => $blockwordspreg)); | |
$text=qa_shorten_string_line(qa_html($text), 200); //200 is the length |
NewerOlder