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
  #2  
Old 02-11-2002, 10:29 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but, uhm... does this hack of yours mean that the users will enter their CUSTOM title in a User Profile Field? If so, then it's no good for me, see the link in my signature.
Reply With Quote
  #3  
Old 02-12-2002, 01:52 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I saw the link in your signature, and I really cannot understand at all what it is, exactly, you want. All my hack does is put a new profile field in a user's control panel for them to enter any custom title that they might want for themselves. The difference between this and the built-in Custom Title feature is that in a post, you will see not only the custom title, but the standard title, too.

It is just another custom user profile field. It's exactly what you wuold use if you wanted a field for, say, "My Pet's Name" or "Where I was Born" or "My Favorite Color." The ONLY reason why this is a hack is because I added custom code to functions.php that checks to see whether or not there is any value in this field, so that if there is NOT, then not even a blank line would show up where the custom title is supposed to go.

Now I see you talking about the glow effect...if you want the custom title to glow, all you have to do is add the appropriate HTML to the part you add to functions.php.

I'm sorry if this isn't exactly what you wanted, but I didn't make this hack for you, specifically...as I said, this is an older hack by me, released September 2001, originally as a template modification, which is why up until now, it was still left in the template mods forum at vbulletin.com. Since it had changed into a hack at the time, and nobody ever moved it to the hacks forum (despite me asking for that), it never got moved over here. The fact that you asked for something that I thought at least was similar to what I had already done prompted me to find this so I could point you to it, and failing to find it here, I realized it never came over here, hence the re-release at this time.
Reply With Quote
  #4  
Old 02-12-2002, 06:11 AM
Recluse's Avatar
Recluse Recluse is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

done it, work sweet. thanks
Reply With Quote
  #5  
Old 02-12-2002, 10:09 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JJR, thanks, I appreciate. But my problem is that users want their own particular glow (i.e. user A wants a blue glow, user B a red, etc. etc.) and if I do this through a User Profile Field, the html code for a glow-tag will appear in their profile field line, However, the HTML code contains a " and that will screw up the layout of the page since it makes the system believe that it is the end of the Input Type Field's starting value, which it isn't of course. Now, if I were to have it work like the Custom Titles itself, the Current setting that a user has will not be displayed as a value in the profile field, but rather next to it (or above it), so that the field itself remains empty and won't have that " in it to mess up the table structure. That's why I need this to be outside of the User Profile Fields. (or find a method that will alter the submission of your Edit Profile page in the UserCP, so that it will UPDATE only when a user puts something in the field, and when not it won't remove it but instead, leave it alone).
Reply With Quote
  #6  
Old 02-12-2002, 05:23 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about adding a second custom profile field, one where the user can enter the glow color he/she wants?

Currently, the code you add to functions.php is this:
PHP Code:
if ($post[field5]) {
    
$extratitle="$post[field5]<br>";
} else {
    
$extratitle="";

If you added a second field for the glow color, you could change the addition to something like this, assuming the new field's name was field6:
PHP Code:
if ($post[field5]) {
  if (
$post[field6]) {
    
$extratitle="<div style=\"width:100%; filter:glow(color=$post[field6], strength=3)\">$post[field5]</div>";
  } else {
    
$extratitle="$post[field5]<br>";
  }
} else {
  
$extratitle="";

This also checks to see whether or not there is a glow color specified, so that it won't try to make something glow if there's not color. Heck, if you wanted to, you could even make another custom profile field for the strength, which would be field7, and just replace strength=3 with strength=$post[field7]!

Hope that helps.
Reply With Quote
  #7  
Old 02-12-2002, 05:50 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, Thanks, I think I can fix everything all at once with this, that was great! I'll implement it on my testboard and see how it goes, if it doesn't work I'll let ya know, and if it does I'll be back worshipping your 1337ness!

Thanks!
Reply With Quote
  #8  
Old 02-12-2002, 06:54 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IT WORKS!!!

Thanks - I'm gonna install it on my online board now! Many thanks, this solves so much problems now! :up:

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

i do this without file mods. just put $post[fieldx] in your postbit where x is the id # for the custom profile field for your custom title. custom profile fields can be made from the admin cp. no file mods needed.
Reply With Quote
  #10  
Old 02-12-2002, 10:23 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jakeman, you should've read the thread before you posted. Normal user profile additions won't work with glows, that's the whole point here.
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 02: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.04443 seconds
  • Memory Usage 2,304KB
  • 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
  • (2)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
  • (2)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