View Full Version : VBCodes and smilies in thread and post title
grog6
03-17-2003, 10:00 PM
Installation time : 20 sec
With this hack you will be able to add in your thread and posts titles vbcodes and smilies :)
This modifications is displayed in the forumdisplay, in the postbit, in the navbar, in the who's onlinne, and in the search.php
Moreover, in your browser titlebar, they aren't displayed ;)
Files to modify : 3
You will now be able to create original and colored title for your post :bunny:
Ce hack est tout simple a mettre en place : 20 sec d'installation
Il permet de rajouter dans les titres de forums des smileys et les vbcodes et ainsi de les voir s'afficher
dans la liste des forums :-D
Ainsi vous pourrez creer des posts avec un titre original, color? :cool:
Fichier a modifier : 3
Here is the french version
Voici la version francaise
grog6
03-18-2003, 04:12 PM
And here the english version
Et ici la version anglais
grog6
03-18-2003, 04:14 PM
Result in the postbit and the navbar
Resultat dans le postbit et la barre de navigation
grog6
03-18-2003, 04:15 PM
Result in the forumdisplay
Resultat dans le forumdisplay
Xenon
03-18-2003, 04:20 PM
why are you so unfriendly to french people and use yellow color for them which is unreadable??
poor french users...
use the highlight tag instead of color yellow. It's mentioned in the hack releasing rules:
Also don't use unreadable colors in your post. Remember we have different styles on vB.org, and for example yellow is just readable in one of them.
:)
VeoMorphine
03-18-2003, 04:21 PM
Nice hacks. I've used all of them so far.
grog6
03-18-2003, 04:28 PM
@ Xenon : Ok, xcuse me, I use blue style and all is ok for me ;)
Correct it now
Xenon
03-18-2003, 04:40 PM
thx grog :)
as said if you want to highligh passages use
this shows up as yellow on dark blue style and red on the others :)
grog6
03-18-2003, 04:41 PM
Arghhhh ... too late, I've searched in the vbcodes but didn't found it .... why don't you add a button ?
It would be usefull ;)
Xenon
03-18-2003, 04:43 PM
hmm isn't there one?
i'll tell Erwin to add one, he's the bb code specialist :)
Enforcer
03-18-2003, 05:49 PM
so far it works ... but:
mais ici je voit seulement ça:
or did I miss smth?
grog6
03-18-2003, 06:28 PM
@Enforcer : Are you sure you made modifications in the admin/functions.php ?
Drowned
03-19-2003, 12:55 AM
Will users be able to use the SIZE vbcode? That could cause some problem with users making threads with HUGEEE fonts and the main index looking all weird... :S Just wondering...
Lesane
03-19-2003, 07:57 AM
^Yes, they can.
@grog: Nice hack, but what about the thread title in the browser? ;)
grog6
03-19-2003, 08:02 AM
@Lesane : If you have an idea about this contact me ... :p
Davey
03-19-2003, 08:46 AM
Nice idea grog6.
Keep them coming :)
Dave.
Boofo
03-19-2003, 08:49 AM
Today at 03:57 AM Lesane said this in Post #15 (https://vborg.vbsupport.ru/showthread.php?postid=369119#post369119)
^Yes, they can.
@grog: Nice hack, but what about the thread title in the browser? ;)
Here you go, buddy. I owed you one so here it is. ;)
In showthread.php
Find
$thread['title']=dowordwrap($thread['title']);
And replace by
$thread['title']=bbcodeparse(dowordwrap($thread['title']));
Lesane
03-19-2003, 11:14 AM
hehe thanks Boofo. But that's not the problem, the problem is that it will not parse the vbcode/smilies on the title tag in your browser. Wich can't be obviously thus there is a need of a 2nd variable wich contains the title of the thread. The 'showthread' template needs to be edited, replacing $thread[title] in the title tag.
Boofo
03-19-2003, 11:39 AM
I guess I'm confused here. The code I gave you parsed the thread title I use (the big one like on here at the top of the page) and the post titles fine. Do you mean something other than that? ;)
Lesane
03-19-2003, 12:11 PM
Look at the attached picture ;)
Boofo
03-19-2003, 12:22 PM
Oh, ok, that's easy. Just put this:
$thread['title']=bbcodeparse(dowordwrap($thread['title']));
Above this:
eval("dooutput(\"".gettemplate("showthread")."\");");
Lesane
03-19-2003, 12:45 PM
That won't work, i don't think that you can parse vbcode/smilies in the browser bar. You must re-parse it to take those vbcode tags and smilies away from the title bar.
Boofo
03-19-2003, 12:47 PM
I am parsing a vbcode out of it from another hack. ;) Did you try it?
Lesane
03-19-2003, 12:50 PM
Yes, i have tried it. Still those vbcode tags in the title bar + it reparsed the parsed showthread title...hehe.
Boofo
03-19-2003, 12:53 PM
Aha, I just rechecked my code and I am doing a preg_replace instead of a bbcodeparse. Maybe that makes a difference? ;)
Lesane
03-19-2003, 12:56 PM
Definately :D
Boofo
03-19-2003, 01:09 PM
Sorry about that. ;)
grog6
03-19-2003, 01:25 PM
You can't display an image in your browser title bar ?? lol
Don't think I understood well :devious:
Lesane, you just want to not display for exemple
title :-)
in the browser title bar ... but 'Test' ?!
wolfe
03-19-2003, 01:51 PM
d00d got an error while posting a thread
Invalid SQL: INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastposter,dateline,iconid, visible,attach) VALUES (NULL,'New Thread Title Effect Added','1048088796','2','1','0','DEATHCAT','1','DE ATHCAT','1048088796','16','1','0'
mysql error: You have an error in your SQL syntax near '' at line 1
wolfe
03-19-2003, 01:59 PM
sorted was another hack interfiering
great hack nice work
/me Installs *
Lesane
03-19-2003, 02:05 PM
Today at 04:25 PM grog6 said this in Post #29 (https://vborg.vbsupport.ru/showthread.php?postid=369252#post369252)
You can't display an image in your browser title bar ?? lol
Don't think I understood well :devious:
Lesane, you just want to not display for exemple
title :-)
in the browser title bar ... but 'Test' ?!
Yes, you need to fix something wich takes the vbcode/smilies from the browser title bar away but keep the rest intact.
Sweet Cheeks
03-19-2003, 07:16 PM
Awesome hack, my members are already in love with it :banana:
Just a few things I have noticed, but no biggie to me personally:
1. The who's online locations shows the Vb tags instead of the actual color/smilie
2. Its supports the glow text effect and the rainbow vb text, however; it removes the link to the thread.
Awesome hack you have here :cool:
Here's an example of number 2
http://www.belliesandbabies.com/boards/forumdisplay.php?s=&forumid=168
mikeB
03-19-2003, 07:23 PM
what happens if a user uses the URL tag?
Sweet Cheeks
03-19-2003, 07:30 PM
Today at 01:23 PM mikeB said this in Post #34 (https://vborg.vbsupport.ru/showthread.php?postid=369493#post369493)
what happens if a user uses the URL tag?
I just tested it and it goes to the actual URL, not the thread :paranoid:
grog6
03-19-2003, 07:33 PM
@Sweet Cheeks : Humm, I'll try to resolve it (for the whosonline, there is no pb but I've no time now to search for it ;) and say you exactly what to replace)
@mikeB : Hummm ... that's right it could beannoying ... I'll try to find a sloution to remove some VBCodes from thread title ;)
Sweet Cheeks
03-19-2003, 07:36 PM
Thanks a bunch Grog :D
wolfe
03-19-2003, 11:57 PM
what about the Profile shows code not colours
wolfe
03-20-2003, 12:34 AM
sorted it if anyone needs code here
in member.php i found
$lastposttitle=$getlastpost[title];
and replaced it with
$lastposttitle=bbcodeparse($getlastpost[title]);
works great thanx for the hack Grog6 :D
grog6
03-20-2003, 09:52 AM
I'll made soon a release with others some things to replace and try to see what I could do for vbcodes ... ;)
Boofo
03-20-2003, 10:13 AM
How about telling me how I can do vbcode and smiles in the standard_error function (in function.php) without messing up the error_nopermission_loggedout message when it comes up? ;)
* MSX installs
Great hack, I hope Lesane or wolfe can fix the thing with the vBcode not showing up in the titlebars of IE and other web browsers! Good Luck! :) ;)
grog6
03-20-2003, 03:39 PM
To remove vbcode and smilies from your browser titlebar, I found it ... :) You have to parse your $thread[title] and then, to remove HTML tags ;)
So, in showthread.php, find :
$thread['title']=dowordwrap($thread['title']);
and replace by
$thread['title']=strip_tags(bbcodeparse(dowordwrap($thread['title'])));
Well, it only stay the small problem of some bbcodes wich remove the link (or can modify it), Sweet Cheeks can you PM me these vbcodes with their description and exemple ;)
grog6
03-20-2003, 04:54 PM
And to replace vbcodes and smilies in the who's online, find in the online.php, find :
$userinfo[where] = "Viewing Thread <a href='showthread.php?s=$session[sessionhash]&postid=$userinfo[postid]'>".$thread[title][$post[$userinfo[postid]]]."</a>";
and replace by
$userinfo[where] = "".$thread[title][$userinfo[threadid]]."";
$userinfo[where] = bbcodeparse($userinfo[where]);
$userinfo[where] = "Viewing Thread <a href='showthread.php?s=$session[sessionhash]&postid=$userinfo[postid]'>$userinfo[where]</a>";
I update now my 2 .txt files ;)
mistyl
03-20-2003, 06:05 PM
I am getting a
Parse error: parse error in /usr/home/sites/www.divamoms.com/web/forums/admin/functions.php on line 2390
Fatal error: Call to undefined function: getuserinfo() in /usr/home/sites/www.divamoms.com/web/forums/admin/sessions.php on line 366
grog6
03-20-2003, 06:09 PM
It can't come from my hack mistyl
Verify you made good modifications ;)
mistyl
03-20-2003, 06:18 PM
I did 3 times :ermm: Something in my admin/fuctions is off. I only have the mood hack installed. Can I pm you my fuctions I have no idea what is wrong :speechless:
grog6
03-21-2003, 07:52 AM
Did you correct it mistyl ? I send you a PM last evening, you didn't answer yet ... :tired:
[email protected]
vbmenu_register("postmenu_372356", true);
03-24-2003, 01:23 AM
I am not getting it to work in the forum display. Any ideas?
[email protected]
vbmenu_register("postmenu_372357", true);
03-24-2003, 01:25 AM
This is where I think something is wrong. What does it mean....Make it twice???
In forumdisplay.php, find :
************************************************** *********
$thread[title]=dowordwrap($thread[title]);
************************************************** *********
Replace it by
************************************************** *********
$thread[title]=bbcodeparse(dowordwrap($thread[title]));
************************************************** *********
Make it twice in this file or you will see no modifications ;)
[email protected]
vbmenu_register("postmenu_372368", true);
03-24-2003, 01:48 AM
I figured it out. Thanks
[email protected]
vbmenu_register("postmenu_372723", true);
03-24-2003, 11:28 PM
OK, member are using the image tag and can put up huge images. Is there a way to limit size and or remove the image tage from the vbcodes allowed.
grog6
03-24-2003, 11:32 PM
Hurm .... not for the moment but I'll try to find a solution ;)
NuclioN
03-26-2003, 05:30 PM
Nice! :) I've the thread title on the forum index as well, displaying just the code, not the output. How to change that?
Example:
grog6
03-26-2003, 06:24 PM
Just add a bbcodeparse aroud your $thread[title] in your index.php ;)
I'll search for the problem of some vbcodes ([URL], [IMG] ...) but have not too much time for the moment
NuclioN
04-13-2003, 11:35 PM
Hm, there is no $thread[title] in my index.php grog6. Is there another way?
Gutspiller
04-14-2003, 04:02 AM
How do I get this hack to only work for admins and possibly mods? I don't want normal registrants to be able to abuse it.
neocorteqz
04-16-2003, 04:02 AM
04-14-03 at 01:02 AM Gutspiller said this in Post #57 (https://vborg.vbsupport.ru/showthread.php?postid=381826#post381826)
How do I get this hack to only work for admins and possibly mods? I don't want normal registrants to be able to abuse it.
ditto.
Cyricx
04-16-2003, 10:45 PM
Aye that would be a good fix til it could be discovered how to keep them from using certain BB codes. :)
neocorteqz
04-17-2003, 04:44 AM
one question
From the instructions,
what does this mean?
Then, to add it in the navabar (at the top of the thread, link with title of board > cat title > ...)
I don't get it...
grog6
04-17-2003, 12:02 PM
@User 001 : The navbar is the link under the header which is display in 97% of Vbulletin's page such as
vBulletin.org Forum > Code Hacks > Full Releases
at the top of this thread ;)
neocorteqz
04-17-2003, 04:25 PM
Today at 08:02 AM grog6 said this in Post #61 (https://vborg.vbsupport.ru/showthread.php?postid=383338#post383338)
@User 001 : The navbar is the link under the header which is display in 97% of Vbulletin's page such as
vBulletin.org Forum > Code Hacks > Full Releases
at the top of this thread ;)
sorry, still not sure what I'm supposed to do..
newbness is evident.:D
i add this
$post[title]=bbcodeparse(dowordwrap($post[title]));
to the navbar?
maybe this is easier than i think it is and I just don't get it. :)
edit: nevermind.:p
the template.
neocorteqz
04-17-2003, 06:30 PM
is this also supposed to show up in the WOL page?
grog6
04-17-2003, 06:41 PM
Today at 07:30 PM User_001 said this in Post #63 (https://vborg.vbsupport.ru/showthread.php?postid=383434#post383434)
is this also supposed to show up in the WOL page?
yes :rambo:
neocorteqz
04-17-2003, 06:44 PM
Today at 02:41 PM grog6 said this in Post #64 (https://vborg.vbsupport.ru/showthread.php?postid=383439#post383439)
yes :rambo:
I must have done something wrong.. it's not showing up... time to check..
nice hack, and thanks for the help.:)
Edit:
is there anyway to disable the use of Code tags and url tags?? or any other
i would like it so they can only use color tags, and the usual Bold,Italics, along with smilies.
The General
04-20-2003, 01:14 PM
04-14-03 at 06:02 AM Gutspiller said this in Post #57 (https://vborg.vbsupport.ru/showthread.php?postid=381826#post381826)
How do I get this hack to only work for admins and possibly mods? I don't want normal registrants to be able to abuse it.
Ditto.
Chazz Layne
04-29-2003, 04:09 PM
Another problem I've noticed, though it may be because I'm on 2.2.9, is that <, >, etc. will get changed to their html values (ex: >) in the forum display. Otherwise it seems to work fine on 2.2.9.
Great mod, but I'm going to disable on our forums until I figure out how to block IMG code and/or limit it to mods/admins (preferably the former). :)
Cyricx
05-22-2003, 12:33 PM
Anyone figure out how to get this to work in the private messages box?
marsauae
06-02-2003, 11:44 AM
I have setup up the hack and the colour of the thread on the hack has been changed along with
smilies. But when i gone to the Online.php. It gave me (COLOR=crimson]test :rolleyes /COLOR])
which is not correct.
Is there's away to change the colour of url tags along with smiles on onlines.php and lastpost.php. Can anyone advise me
grog6
06-02-2003, 04:13 PM
I will take a look at it marsauae
I don't remember if I add the add-on for the online.php in my hack, if it has not been done, I'll do it later ;)
But are you sure you well entered correct VBCode in your thread title ?
(COLOR=crimson]test :rolleyes /COLOR])
THis isn't correct...........
Seamless install. I think it took about 2 mins total. Works like a charm, *clicks intall*
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.