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: 1.00, by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-10-2002 Last Update: Never Installs: 13
 
No support by the author.

This is a small hack that I wrote several months ago. Originally it was only a template mod, then turned into a hack but remained in the template mods forum at vbulletin.com, so it never made it over here.

Basically, all it does is show both a custom title, selected by the user, and the user's standard title (Junior Member, Member, Moderator, etc.) in posts. It uses a custom profile field that you create through the admin cp to store the custom title.

As I said, it's an older hack by me, and was originally tested on 2.0.3. It still works for me on 2.2.2, though.

Show Your Support

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

Comments
  #22  
Old 02-14-2002, 11:20 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ugh, weird people...

Reply With Quote
  #23  
Old 02-14-2002, 04:08 PM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by KuraFire
ugh, weird people...

you called?~
Reply With Quote
  #24  
Old 02-15-2002, 04:53 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, now answer my question. How does your Edit Profile page look like if you've got an HTML glow in it that includes "-signs, successfully screwing up the layout is what it does in Explorer.
Reply With Quote
  #25  
Old 02-15-2002, 08:56 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hint: In vb3 you won't need to add any hacks to decide if that <br /> should appear or not based on the value of a field...Can't say any more than that
Reply With Quote
  #26  
Old 02-15-2002, 09:31 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

freddie, I've got a tip for vB 3: I don't know exactly what you guys did to make quotes NOT mess up the `input type=text` fields in the Admin Panel when editing a user's stats, but I really would like to see that in a normal user's Edit Profile page as well. :up:

And my god, make :up: (:up:) a default `smilie` in vB 3, every forum that I go to I make a suggestion to the admins to change that into the thumbs-up icon (and :down: for the thumbs-down) and everywhere they go "hey, good one, I'll do that right away!" - much easier to have it be part of the default set, wouldn't you say?
Reply With Quote
  #27  
Old 02-15-2002, 09:34 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean, quotes mess up? Are you saying there is a bug?

Anyway just htmlspecialchars() the value before you give it to the input field and " becomes &quot;
Reply With Quote
  #28  
Old 02-15-2002, 10:09 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, well, if a user would have a glowing custom title (as is very common on INA and on my board) in a user profile field (instead of as a real custom title, because we're not touching titles themselves on the Couch) it would mess up the Edit Profile page layout because a glow contains " in it, and on the Edit Profile page the user's input is placed as a value inside the text-input-field but it isn't yet htmlspecialchars()'d, so those "s in a glow would make a mess of it.
Reply With Quote
  #29  
Old 02-16-2002, 01:36 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by freddie
Hint: In vb3 you won't need to add any hacks to decide if that <br /> should appear or not based on the value of a field...Can't say any more than that
POWER FIELDS!
Reply With Quote
  #30  
Old 02-16-2002, 06:00 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you put a " in a custom profile field, it is converted to &quot; when the user submits the page. So upon editing the value of &quot; is what is loaded so it doesn't break the field. I still fail to see where any bugs are.

Jakeman : it has nothing to do with the fields, as we said before it is much more powerful than that.
Reply With Quote
  #31  
Old 02-16-2002, 10:03 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try putting a table glow in a user's profile field, and then looking at their Edit Profile page. Layout = borked.
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 08:57 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.05215 seconds
  • Memory Usage 2,305KB
  • 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
  • (2)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
  • (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
  • (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