The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#32
|
||||
|
||||
![]()
thats why I didn't want to touch the subject. just way to many places to miss something and with little payback.
as for fixing the quote, yeah it's do-able and might be funny but quoting the message is sortof how people figure out it's not about them. I think I like it though and will do it. I made this forum controlable (on in some of in others like the IMG tag) and when I finish the cp I'll re-post. (right now, I just set the var via phpmyadmin so I could turn it off everywhere except our prank forum.) |
#33
|
||||
|
||||
![]()
I have about every base covered for this in vbulletin. If you want to check the file out, let me know, It's about 20K.
![]() Being able to turn it off and on per forum would be great! ![]() |
#34
|
||||
|
||||
![]()
Is there a way to have this set up so only certain usergroups can use it? I can edit the code in functions.php, I suppose.
![]() |
#35
|
|||
|
|||
![]()
first of all, great hack! thanx alot
![]() second.. isn't it easy to make it so to use the forum stuff? so $forum[useyou] for example? if you want i can post the changes for it Greetings, Chratnox |
#36
|
||||
|
||||
![]()
can u send me the file or upload it somewhere so i can download it. thanx.
l8er sonic |
#37
|
|||
|
|||
![]() Quote:
|
#38
|
||||
|
||||
![]() Quote:
![]() |
#39
|
||||
|
||||
![]()
hey people, I finished the cp so you can turn it on/off but it is working and I'll get directions written asap.
just wanted to throw out a couple other ideas/mods to you these also work if you wanted to get real crazy PHP Code:
if you'd like to give your staff a little help you can change this line PHP Code:
PHP Code:
PS - if you wanted to restrict usage to certain usergroups, bbuserinfo wouldn't do it. you'd need to check the usergroupid of the person who posted. bbuserinfo is for the person reading the post |
#40
|
||||
|
||||
![]()
Be looking forward to the update.
![]() If you use all of these, wouldn't you have to go through all of the places to parse it out like with the first code? And I take it this goes in the functions.php with the first code, right? Quote:
|
#41
|
||||
|
||||
![]()
just add those line right after
$bbcode = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $bbcode); thats it now for you it might be a ton more because you added it to subjects as well. |
#42
|
||||
|
||||
![]() Quote:
Thank you very much!! ![]() |
#43
|
||||
|
||||
![]() Quote:
Thank you. ![]() Quote:
|
#44
|
||||
|
||||
![]()
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:
![]() |
#45
|
|||
|
|||
![]()
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:
|
#46
|
||||
|
||||
![]()
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] |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|