MyBB Community Forums
changing how quotes are displayed - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: changing how quotes are displayed (/thread-209993.html)



changing how quotes are displayed - haach76 - 2017-04-26

hi everyone, 
I would like to change the way quotes are displayed in the threads. 
I like them to say "<usertitle> Wrote...." instead of the current way where the username is used in the quotes. 

Thank you for your help!

H


RE: changing how quotes are displayed - WallBB - 2017-04-26

You can do this by modification of blockquote_cite and blockquote in global.css of your theme.
Also you can restructure your quote structure in inc/class_parser.php (Search for blockquote.)

Regards
WallBB


RE: changing how quotes are displayed - haach76 - 2017-04-26

hi there, 
Thanks for the reply. 
I visited the class_parser.php and it looks like the function that sets up the call back are these two: 

 function mycode_parse_post_quotes_callback1($matches)
 {
    return $this->mycode_parse_post_quotes($matches[4],$matches[2].$matches[3]);
 }

function mycode_parse_post_quotes_callback2($matches)
 {
     return $this->mycode_parse_post_quotes($matches[4],$matches[2].$matches[3], true);
 }

where the second argument, seems to be the username passed to the function: 

 function mycode_parse_post_quotes($message, $username, $text_only=false)

I am not sure how to change the argument that gets passed to it to the usertitle. (also, why is the function argument that is the username concatenated from two variables? that is odd)
I dumped out the datastructure of $matches, there is no usertitle information in there. 

Thank you

H


RE: changing how quotes are displayed - haach76 - 2017-04-27

anybody?... Sad