Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VBCodes and smilies in thread and post title Details »»
VBCodes and smilies in thread and post title
Version: 1.00, by grog6 grog6 is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-17-2003 Last Update: Never Installs: 31
 
No support by the author.

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?

Fichier a modifier : 3




Here is the french version
Voici la version francaise

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-20-2003, 10:13 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #43  
Old 03-20-2003, 12:52 PM
MSX MSX is offline
 
Join Date: Dec 2002
Location: Florida
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* MSX installs
[/high]

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!
Reply With Quote
  #44  
Old 03-20-2003, 03:39 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :

PHP Code:
$thread['title']=dowordwrap($thread['title']); 
and replace by

PHP Code:
$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
Reply With Quote
  #45  
Old 03-20-2003, 04:54 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And to replace vbcodes and smilies in the who's online, find in the online.php, find :
PHP Code:
$userinfo[where] = "Viewing Thread <a href='showthread.php?s=$session[sessionhash]&postid=$userinfo[postid]'>".$thread[title][$post[$userinfo[postid]]]."</a>"
and replace by
PHP Code:
$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
Reply With Quote
  #46  
Old 03-20-2003, 06:05 PM
mistyl mistyl is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #47  
Old 03-20-2003, 06:09 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It can't come from my hack mistyl

Verify you made good modifications
Reply With Quote
  #48  
Old 03-20-2003, 06:18 PM
mistyl mistyl is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #49  
Old 03-21-2003, 07:52 AM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you correct it mistyl ? I send you a PM last evening, you didn't answer yet ... :tired:
Reply With Quote
  #50  
Old 03-24-2003, 01:23 AM
[email protected] vbmenu_register("postmenu_372356", true);
Guest
 
Posts: n/a
Default

I am not getting it to work in the forum display. Any ideas?
Reply With Quote
  #51  
Old 03-24-2003, 01:25 AM
[email protected] vbmenu_register("postmenu_372357", true);
Guest
 
Posts: n/a
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04785 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete