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
Smilies in user titles Details »»
Smilies in user titles
Version: 1.00, by Zzed Zzed is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-27-2002 Last Update: Never Installs: 3
 
No support by the author.

This is a very simple, yet fun hack that I made on my site. It allows the user titles to have smilies in them.

Here is the thread view and the profile view of the hack:
http://www.ls1.com/forums/showthread...hreadid=110647
http://www.ls1.com/forums/member.php...fo&userid=4112

It is accomplished by adding one line of code to the following files:

forumdisplay.php
member.php
private.php
admin/functions.php

In forumdisplay.php:
Look for the following code:
PHP Code:
     if ($announcement[customtitle]==2) {
       
$announcement[usertitle] = htmlspecialchars($announcement[usertitle]);
                 } 
And replace it with the following:
PHP Code:
     if ($announcement[customtitle]==2) {
       
$announcement[usertitle] = htmlspecialchars($announcement[usertitle]);
                 }
     
$announcement[usertitle]=bbcodeparse($announcement[usertitle]); 
In member.php
Look for the following code:
PHP Code:
  eval("dooutput(\"".gettemplate("getinfo")."\");"); 
And replace it with the following:
PHP Code:
  $userinfo[usertitle]=bbcodeparse($userinfo[usertitle]);
  eval(
"dooutput(\"".gettemplate("getinfo")."\");"); 
In private.php
Look for the following code:
PHP Code:
    if ($post[customtitle]==2) {
      
$post[usertitle] = htmlspecialchars($post[usertitle]);
    } 
And replace it with the following:
PHP Code:
    if ($post[customtitle]==2) {
      
$post[usertitle] = htmlspecialchars($post[usertitle]);
    }
    
$post[usertitle]=bbcodeparse($post[usertitle]); 
In admin/functions.php
Look for the following code:
PHP Code:
                if ($post[customtitle]==2) {
                        
$post[usertitle] = htmlspecialchars($post[usertitle]);
                } 
And replace it with the following:
PHP Code:
                if ($post[customtitle]==2) {
                        
$post[usertitle] = htmlspecialchars($post[usertitle]);
                }
                
$post[usertitle]=bbcodeparse($post[usertitle]); 
Enjoy...

Show Your Support

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

Comments
  #12  
Old 08-28-2002, 02:53 AM
Lanigironu Lanigironu is offline
 
Join Date: Mar 2002
Location: Toronto, Canada
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin


You have harsh admins!
Nah, it's just that we've had our share of idiots that just outright abused the smilies.

bonnmac: I'm assuming this uses the same smilies you have installed for posts.
Reply With Quote
  #13  
Old 08-28-2002, 02:58 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to where you added your smiles in the Admin CP and look at whatever code you used for them and then just add that code wherever you want it to be in your usertitle (i.e. Admin). Most of them are probably generic.

Quote:
Originally posted by bonnmac
Without sounding to stupid.... How do you add the smilies?
Reply With Quote
  #14  
Old 08-28-2002, 03:44 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo, I'm glad you got it working.
Reply With Quote
  #15  
Old 08-28-2002, 03:54 AM
zootsuit's Avatar
zootsuit zootsuit is offline
 
Join Date: May 2002
Location: CA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a killer lil hack!

Thanks!
Reply With Quote
  #16  
Old 08-28-2002, 03:58 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by zootsuit
This is a killer lil hack!

Thanks!
Thank you. You are very kind.
Reply With Quote
  #17  
Old 08-28-2002, 04:04 AM
bonnmac bonnmac is offline
 
Join Date: Mar 2002
Location: United States
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks but I must be dummer then I thought.....
I go to my user cp and under edit profile/custom user text/new title.... Then I put in Administrator :bkiss: and I don't get the smilie I just get the code.... What am I doing wrong?
Reply With Quote
  #18  
Old 08-28-2002, 04:09 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please forgive my ignorance. Did you install the hack?

Does your title still show up as the code in thread view, or your profile?
Reply With Quote
  #19  
Old 08-28-2002, 04:25 AM
bonnmac bonnmac is offline
 
Join Date: Mar 2002
Location: United States
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know what.... I'm having a bad day... I'm sorry I had missed one step in the hack.. It is working now... Thanks! It's a great hack!
Reply With Quote
  #20  
Old 08-28-2002, 06:24 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. I'm glad you got it working.

And thank you for the kind words.
Reply With Quote
  #21  
Old 08-28-2002, 01:28 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL you did this the hard way
I can do it with one line of code added.
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:01 PM.


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.04598 seconds
  • Memory Usage 2,331KB
  • 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
  • (8)bbcode_php
  • (3)bbcode_quote
  • (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
  • (2)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
  • (11)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