Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Color Code Chart Details »»
Color Code Chart
Version: 1.00, by Preech Preech is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.x Rating:
Released: 04-29-2008 Last Update: Never Installs: 17
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

This template modification shouldn't have any problems working with any version of vBulletin 3.7.x. Now, let's be honest. I don't own a vBulletin at all or a website anymore. I am deployed to Iraq, no time. One of the site's that I frequent to often allows it's user's to use the profile customization feature. I tend to create different looks for my fellow members of this site. I got tired of searching google for the color codes, so I decided to create a really quick page, that members can access from your site.

I used the HowTo create your own vBulletin-powered page! (uses vB templates) to create this. So thanks, and credits go to Gary King for that.
- I put the link for the color code charts to only show when the adminstrator allows members to customize their profiles.

Manually Edit: 1 - 2 mintues
File Edits: 0
File Added: 1
Template Edits: 1
Template Added: 1

Upload:
- colorcode.php to main forum directory.
- Create a new template titled Color Code and insert the contents.

Creat a new phrase:
- Insert into master language: Yes
- Phrase Type: Global
- Product: vBulletin
- Varname: user_color_code
- Text: Color Chart

Open User Control Panel Templates > UserCP Shell
- Search for:

Code:
<if condition="$show['customizelink']"> <tr><td class="$navclass[customize]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></td></tr>
- Underneath Add This:
Code:
 <tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="colorcode.php$session[sessionurl_q]">$vbphrase[user_color_code]</a></td></tr>
Save and that's it.
There are no screen-shots.
- I could not figure out how to make them collapse. Maybe someone can help with that.

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 04-30-2008, 06:52 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by preech
I put the link for the color code charts to only show when the adminstrator allows members to customize their profiles.
That doesn't seem to be the case with me. I will however have a look through the code tomorrow.
Reply With Quote
  #13  
Old 04-30-2008, 06:53 PM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After you modify it. Any way, I could see what you have done. I didn't want to use it the way I'm using it now. I wanted to be a small chart off to the side of the edit profile page. But like I said. I'm really shakey with coding. The military take to much of my time away from it.
Reply With Quote
  #14  
Old 04-30-2008, 06:59 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes:

This line:

Code:
eval('print_output("' . fetch_template('color') . '");');
I've just changed to the word 'color'.

Same goes with:

Code:
$globaltemplates = array( 
    'color',
And:

Code:
define('THIS_SCRIPT', 'color');
Then name your template 'color' so that it can fetch the correct template.
Quote:
Originally Posted by preech
I put the link for the color code charts to only show when the adminstrator allows members to customize their profiles.
For this to work, you need to change:
HTML Code:
 <tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="colorcode.php$session[sessionurl_q]">$vbphrase[user_color_code]</a></td></tr>
To :

HTML Code:
<if condition="$show['customizelink']"><tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="colorcode.php$session[sessionurl_q]">$vbphrase[user_color_code]</a></td></tr></if>
When I've worked on a better layout, I will provide you with the updated files preech so that you can take a look and see what you think. It's good nonetheless -- I would never of thought of it, anyway hehe.
Reply With Quote
  #15  
Old 04-30-2008, 07:01 PM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, thank you. You are the one that help me figure out what was wrong, I was doing an idea, instead of asking. Besides, this task seemed fairly easy. It didn't take long at all.
Reply With Quote
  #16  
Old 04-30-2008, 07:08 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe. I'm actually working on a neater layout, and have a pretty good one so far. Just need to finish it off and add some border lines ect.

I will then pass you a screenshot.
Reply With Quote
  #17  
Old 05-01-2008, 10:21 AM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much
Reply With Quote
  #18  
Old 05-02-2008, 04:40 PM
rapsearch's Avatar
rapsearch rapsearch is offline
 
Join Date: Aug 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey stranger .. this is nice. i'll give this a try asap
Reply With Quote
  #19  
Old 05-02-2008, 04:47 PM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sup Rapsearch. I"m working on changing the layout a little bit more. To make it open in a popup instead of going to a different page.
Reply With Quote
  #20  
Old 05-08-2008, 12:45 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey folks - I'm new to VB, at least this portion of it.

I'm not sure what contents to put into the new Color Code template.
Reply With Quote
  #21  
Old 05-09-2008, 06:27 PM
nightbloom's Avatar
nightbloom nightbloom is offline
 
Join Date: Mar 2008
Location: Whidbey Island, WA
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im really looking forward to this mod. Will make things a lot easier....
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:49 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.04597 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (2)bbcode_html
  • (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
  • (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