MyBB Hacks

Full Version: vB Quote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
Added a simple tweak for v1.13 to get around the Page Optimizer plugin.  Personally think the edit should be done Page Optimizer plugin, but I'll stick in this basic workaround.

Looking at the plugin though, I'm surprised it's not conflicting with the Preparser Cache, which relies on a similar tactic that vB Quote uses.
If I update vB Quote do I have to revert the changes on Page Optimizer? Tanks for the update Smile
Can you please tell me if this modification is right Zinga Burga? It is to show the user format name, the plugin you provided to RateU is from a old version :-/

I changed:

PHP Code:
$query = $db->simple_select('posts', '*', 'pid IN ('.implode(',',array_keys($vbquote_quotedpids)).')');


To:

PHP Code:
$query = $db->query('SELECT p.pid,u.uid,p.dateline,u.username,u.usergroup,u.displaygroup,u.buformat,u.auformat FROM '.TABLE_PREFIX.'posts p LEFT JOIN '.TABLE_PREFIX.'users u ON p.uid=u.uid WHERE p.pid IN ('.implode(',',array_keys($vbquote_quotedpids)).')');


And:

PHP Code:
.build_profile_link(htmlspecialchars_uni($post['username']), $post['uid']).' '.$lang->wrote.$linkback;


To:

PHP Code:
.build_profile_link(format_name($post['username'], $post['usergroup'], $post['displaygroup'], $post['buformat'], $post['auformat']), $post['uid']).' '.$lang->wrote.$linkback;


Thanks Biggrin

From a quick scan, if it works, then it should be fine.
Although I don't know what "auformat" or "buformat" are.
It works, "auformat" and "buformat" are for a plugin to work, sorry for not mentioning it.
Thank you.
Is there a way to revert the posts modified by this plugin back to the standard MyBB system?
Yeah, if you don't mind writing all the parsing routines.
(05-25-2012 07:55 AM)ZiNgA BuRgA Wrote: [ -> ]Yeah, if you don't mind writing all the parsing routines.

I see. How would I go about doing that?
Figuring out how is part of the fun of doing it.
Sorry to bump this topic but I seem to be having problems with this plugin on my board.

The syntax works perfectly but it seems without the single quotes around the username, it comes out as
[url=http://linkto profi.le Wrote:name[/url];123]Quoted stuff
after posting. Editing and adding the single quotes around the username fixes it, apparently. It seems it's not accepting it without the quotes.
Pages: 1 2 3 4 5 6 7 8 9 10
Reference URL's