Hi,
i just try this open source on my computer. i'm novice. I would like to hide the user/nickname for all user. If someone can help me, i will appreciate. Thank you
Version 1.6.2
Place below code into your theme file. Below code will hide from everywhere
function post_meta_who($post, $class){}
If you want to display on question (view) page than use below code
function post_meta_who($post, $class) { if($this->template == 'question') qa_html_theme_base::post_meta_who($post, $class); }
I have posted code on Gist here https://gist.github.com/q2amarket/8356498
<<<------- Version 1.01 ------->>>
I have modified code as per your need. Now the meta who will be visible on the moderation section to Moderator and higher level users and question view page. It will be hidden rest of the areas.
Get code from Gist: https://gist.github.com/q2amarket/8405467 ( you will find detailed description there)
Or just copy and paste below
function post_meta_who($post, $class) { $type = $post['raw']['type']; $level = qa_get_logged_in_level(); $type_array = array('Q_QUEUED', 'A_QUEUED', 'C_QUEUED'); if($this->template == 'question' || (in_array($type, $type_array) && $level >= QA_USER_LEVEL_MODERATOR)) qa_html_theme_base::post_meta_who($post, $class); }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.