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
Details »»

Version: , by Palmer ofShinra Palmer ofShinra is offline
Developer Last Online: Feb 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-11-2001 Last Update: Never Installs: 7
 
No support by the author.

Hack version 0.9

This is a hack that adds an extra class of custom title (VBcode) seperate from HTML allowed and Plain Text.
Anyone with HTML or VBcode as they're title type can now use VBcode in their title and it will display correctly.

This was written for the setup on my board, where I've applied some hacking to change custom title permissions to be Usergroup dependant rather than the VB default of Days Regged or Postcount, but some simple instructions have been added for those that still use this system.

As is, it will work fine if you give out custom titles on an individual basis rather than using the VB default system.

The code is really quite simple, so you should be able to figure out what it's doing on your own if you have problems.

Show Your Support

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

Comments
  #2  
Old 11-12-2001, 06:13 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one question:is this work on 220??
Reply With Quote
  #3  
Old 11-12-2001, 06:20 PM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It says 2.0.3

I have 2.0.3

I do not have 2.2.0

Therefore I cannot test it in 2.2.0, so I have no clue.

Oh, and redownload the file... I fixed a couple typos.
Reply With Quote
  #4  
Old 11-12-2001, 06:44 PM
Logan Logan is offline
 
Join Date: Sep 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this cause problems for people adding [img] tags or things of that nature? Or can you turn img off for the title only?
Reply With Quote
  #5  
Old 11-12-2001, 06:49 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uh nice guy
Reply With Quote
  #6  
Old 11-12-2001, 07:11 PM
cyrus's Avatar
cyrus cyrus is offline
 
Join Date: Oct 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got a demo ?
Reply With Quote
  #7  
Old 11-13-2001, 01:05 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WORKS ON VB 220

I tried this out on my test board that I use exclusively for mucking around and it works fine.

PLEASE NOTE:

Under Admin/User.PHP
The code that should be changed on line 218 appears instead on line 220.

For some reason I also had trouble finding it, but whatever, it is lines 60 and 220.


ALL USERS:

Please Pay attention when hacking the admin/user.php file.
There are two instinces that you will need to find and they are changed to different things. Pay attention and if you have trouble - double check what you altered.

Other than that you should have no probs. =)
Reply With Quote
  #8  
Old 11-13-2001, 01:16 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logan -

If you have IMG enabled, users would be able to use that tag in thier titles. Unless I am mistaken you can disable the img tag in signutures only, and if your interested you could probably alter use an alteration of that to limit the codes that can be used.

This isn't to big of a concern for us at our site because only members who we could probably trust with it are able to use bb titles.

Cyrus - Your already familiar with how bb code works and what the title line looks like sot here is nothing to show there. If you want to see what it looks like in actual use, drop by our forums and look around. We do use alot of custom BB code that can be found at VB.com.

Our main site is www.shinraonline.com however you can jump straight to the forums at http://130.94.171.148/board/
Reply With Quote
  #9  
Old 11-13-2001, 09:48 AM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually... you really should read up on the functions Reeve my friend.

As it is, users with HTML enabled can use any VBcode in their title, including IMG.
They may also use smileys.

Users with JUST VBcode allowed cannot use IMG or smileys.

See...

HTML - bbcodeparse2($post[usertitle],1,1,1,1);
No HTML - bbcodeparse2($post[usertitle],0,0,0,1);

The 4 digits represent, in order
Allow HTML (will do an htmlspecialchars() if no)
Allow IMG (will not parse)
Allow Smileys (will not parse)
Allow VBcode (will not parse... kinda pointless to turn off)

The HTML level has them all set to 1 (yes) because, well... if you can use HTML, you can put an image in your title.

But for normal users it's disabled.
If you want to change that, adjust the zeroes to ones as appropriate.
Reply With Quote
  #10  
Old 11-13-2001, 12:13 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I stand corrected =)
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 06:33 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.06090 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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