![]() |
[you] hack
Is there a chance of someone being able to port over this hack or the original author doing it. Also maybe with the option to limit its use by usergroup.
https://vborg.vbsupport.ru/showthrea...8&page=1&pp=15 |
LOL. Weird. I was just coming here to request that.
|
In includes/functions.php find:
PHP Code:
PHP Code:
|
Great! Thank You.
|
Thanks saved me the trouble of making it :)
|
Now anyway so you can edit a post and it not get all screwed up? As in not lock in your username instead of {bbusername}
|
Where will this all work at? Just in posts? Any way to get it to work in thread titles, too?
|
Quote:
|
Great! How about the seach page? ;)
NTLDR, how would I add this code to this? It has the microstats hack in it. // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // ! MicroStats Hack for vB 3.0 Gamma By: Apoco ! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function process_replacement_vars($newtext, $sendheader = 1) { // parses replacement vars global $DB_site, $vboptions, $style, $stylevar, $newpmmsg, $_SERVER, $microstats; static $replacementvars; if (connection_status()) { exit; } // do vBulletin 3 replacement variables if (!empty($style['replacements'])) { if (!isset($replacementvars)) { $replacementvars = unserialize($style['replacements']); } // this is WAY too slow! //$newtext = strtr($newtext, $replacementvars); // using str_replace() has case-sensitivity issues... //$newtext = str_replace(array_keys($replacementvars), $replacementvars, $newtext); // this is slower than str_replace() but is case-insensitive, so we'll use it. $newtext = preg_replace(array_keys($replacementvars), $replacementvars, $newtext); } $newtext = str_replace(('{microstats}'), $microstats, $newtext); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! return $newtext; } |
Try using:
PHP Code:
|
All times are GMT. The time now is 07:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|