![]() |
Quote:
Thank you very much!! :) |
Quote:
Thank you. ;) Quote:
|
Ran into a snag with the replacements that allows for the admins and mods to mouseover the code. Now, if you put [you] between another vbcode (like in the spoiler vbcode hack, it parses the code but makes it go outside the button. Like this code:
[DISABLE][SPOILER=Change this to whatever you like]And it still works. What do you think, [you]? Do you like it?[/SPOILER][/DISABLE] This part: Boofo? Do you like it?')"> is outside the spoiler tag now. It parsed the [you] ok (the Boofo part) but throws that and everything after it outside the spoiler tag button. Here is the code I am using in the functions.php: PHP Code:
|
Hi
great hack but regarding the addon of the titles the [you] code if only working for the post titles whin i create a new thread with the title [you] it doesn't show the user name ex: vb > sports > [you] any help? Quote:
|
This is only a small listing of the changes to make to catch all of the places it can pop up. I am still finding them one by one. Are you referring to the navbar?
Here are the ones for the forumdisplay: -------------------- In forumdisplay.php, find: -------------------- eval("\$forumdisplaybits .= \"".gettemplate('forumdisplaybit')."\";"); -------------------- ABOVE it add: -------------------- if ($bbuserinfo[userid]>0) { $thread[title] = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $thread[title]); $thread[description] = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $thread[description]); } else { $thread[title] = preg_replace("/(\[)(you)(])/siU", "you", $thread[title]); $thread[description] = preg_replace("/(\[)(you)(])/siU", "you", $thread[description]); } -------------------- Still in forumdisplay.php, find: -------------------- eval("\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth $tempext")."\";"); -------------------- ABOVE it add: -------------------- if ($bbuserinfo[userid]>0) { $forum[title] = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $forum[title]); $forum[description] = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $forum[description]); } else { $forum[title] = preg_replace("/(\[)(you)(])/siU", "you", $forum[title]); $forum[description] = preg_replace("/(\[)(you)(])/siU", "you", $forum[description]); } -------------------- Still in forumdisplay.php (for the <title>), find: -------------------- eval("dooutput(\"".gettemplate('forumdisplay')."\" );"); -------------------- ABOVE it add: -------------------- if ($bbuserinfo[userid]>0) { $foruminfo[title] = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $foruminfo[title]); } else { $foruminfo[title] = preg_replace("/(\[)(you)(])/siU", "you", $foruminfo[title]); }[/QUOTE] |
hi boofo
i mean the navbar which shows above the posts in showthrad.php |
Sheeeeeesh ... this thread is getting hard to read ... are all these extras from page 2 onwards being added back into the original hack txt file? Or do I have to install the hack and then trawl through a kazillion pages of extras?
Davie |
Quote:
Quote:
|
Thanks Boofo
i did that but it only shows the user name in titles on forumsdisplay.php but inside the thread the navbar or the title of the first post shows the code [you] !! |
dnd, this you do this yet?
Quote:
|
All times are GMT. The time now is 06:52 AM. |
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:
|