Answered: What file do I modify to change the output of questions?

Post date: 2020-10-21 04:09:29
Views: 18

See app/format.php:

function qa_post_html_fields($post, $userid, $cookieid, $usershtml, $dummy, $options = array())

// Post content

if (@$options'contentview'] && isset($post'content'])) {

You can also use the qa-theme.php and override those functions:

function q_view_content($q_view)

{

if(!empty($q_view'content']))

{

if(substr_count($q_view'content'], '`') >= 2)

{

$q_view'content'] = $this->mycustomfunction($q_view'content']);

}

}

// default

qa_html_theme_base::q_view_content($q_view);

}

public function a_item_content($a_item)

{

if(!empty($a_item'content']))

{

if(substr_count($a_item'content'], '`') >= 2)

{

$a_item'content'] = $this->mycustomfunction($a_item'content']);

}

}

// default

qa_html_theme_base::a_item_content($a_item);

}

public function c_item_content($c_item)

{

if(!empty($c_item'content']))

{

if(substr_count($c_item'content'], '`') >= 2)

{

$c_item'content'] = $this->mycustomfunction($c_item'content']);

}

}

// default

qa_html_theme_base::c_item_content($c_item);

}

Please click Here to read the full story.
 
Other Top and Latest Questions:
Hazbin Hotel: Welcome to Heaven
Trying to recall British TV drama from 2000s about teen model
Movie: The American Society of Magical Negroes
TurboTax for contractor and non-contractor work in the USA
(Non-Messy) Recipes with Fish
Movable stationary bicycle
Answered: [New theme] - POLARIS
How to change the duration of "hotness" section
Sell all my stuff in NYC?
Best place to stay between Tampa and Wilmington NC?