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 |
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 | |
/* | |
* hook: hide meta who from questions | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* | |
* usage: | |
* Place below code into your theme or plugin layer |
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 | |
/* | |
* hook: hide meta who | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.01 | |
* | |
* Description: |
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 | |
/* | |
* hook: 404 for non visible menu | |
* | |
* hook by: Q2A Market | |
* hook type: core | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.00 | |
* |
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 | |
/* | |
* These functions will goes to your qa-plugin.php | |
*/ | |
//registering plugin stuffs | |
qa_register_plugin_layer('q2am-item-output.php', 'Q2AM Item Layer'); | |
qa_register_plugin_module('page', 'q2am-item-page.php', 'q2am_item_page', 'Q2AM Item Page'); | |
qa_register_plugin_module('module', 'q2am-item-admin.php', 'q2am_item_admin', 'Q2AM Item Settings'); | |
qa_register_plugin_phrases('q2am-Item-lang.php', 'q2am_item_lang'); |
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 | |
/* | |
* hook: page name as a body class | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.00 | |
* | |
* Description: |
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
<? | |
/* | |
* hook: Add read more link to the question view q-content | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.00 | |
* | |
* Description: |
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 | |
/** | |
* Add first image to the question list | |
* | |
* Declearation | |
* Base code is taken from Mouseover Layer plugin | |
* | |
* Than I have extracted content using preg_match_all to get first image | |
* and assing that to the q_list | |
* |
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 | |
/** | |
* The hook allows to remove + sing from upvote count | |
* | |
* How to use it: | |
* Nothing complicated, just place 'output_split' method into your theme file or plugin layer and done. | |
* | |
* Important: | |
* Make sure your theme should not have this function already. If there is than add this code |
OlderNewer