PDA

View Full Version : Profile Enhancements - Color Code Chart


Preech
04-29-2008, 10:00 PM
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:

<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:
<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.

codershark
04-30-2008, 03:33 PM
Scrrenshots ?

Preech
04-30-2008, 03:38 PM
I wouldn't mind giving you a screenshot Codershark. I'm in a very talked about area of the world right now. I'm working...unable to produce a screenshot at the moment.

But I did mention there where no screenshots.

codershark
04-30-2008, 04:51 PM
sorry extrem unfriendly :( screenshtos are take 1 minute to make it....

Preech
04-30-2008, 05:47 PM
There. Screenshots added. Real simple. Real easy. Any could have made this. How many of the websites created using vbulletin use this feature. The site I go to. The members didn't take the chances, just to much.

I'm working on making the tables smaller rested on the actually page. But I'm thinking a pop-up is more the way to go. Any ideas. I'm not a coder.

purepothead
04-30-2008, 05:47 PM
sorry extrem unfriendly :( screenshtos are take 1 minute to make it....

Hmm... I guess he feels its more important to have a screenshot than terrorists invading his country, it will give new meaning to "extrem unfriendly".

Good work preech I may use later, and just ignore the iggnorants.


Edit: maybe this will help for a popup? http://www.htmlcodetutorial.com/linking/linking_famsupp_72.html

Preech
04-30-2008, 05:58 PM
thank you. I'll begin working on it at midnight Middle Eastern time. So people will not have to add this.

Jase2
04-30-2008, 06:32 PM
Thanks for this, Preech. This definitely helps users when customizing their profile.

codershark, how rude! Be considerate. If you wish to see what it looks like, install it on your test board. I think Preech has more things to worry about at the moment....

Preech
04-30-2008, 06:41 PM
Thank you Jase. It's quite as of the moment...giving me some time to catch up on learning how to code.

Jase2
04-30-2008, 06:47 PM
That's good mate.

I was getting a blank page, so I modified the .php file. I've attached the updated file. I named my template just 'color'.

It looks good anyway, so thanks. I will however be modifying the layout somewhat.

Jase2
04-30-2008, 06:52 PM
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. :)

Preech
04-30-2008, 06:53 PM
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.

Jase2
04-30-2008, 06:59 PM
Yes:

This line:

eval('print_output("' . fetch_template('color') . '");');

I've just changed to the word 'color'.

Same goes with:

$globaltemplates = array(
'color',

And:

define('THIS_SCRIPT', 'color');

Then name your template 'color' so that it can fetch the correct template.

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:

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="colorcode.php$session[sessionurl_q]">$vbphrase[user_color_code]</a></td></tr>

To :

<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. :)

Preech
04-30-2008, 07:01 PM
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.

Jase2
04-30-2008, 07:08 PM
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. :)

Jasem
05-01-2008, 10:21 AM
Thank you very much :)

rapsearch
05-02-2008, 04:40 PM
hey stranger ;).. this is nice. i'll give this a try asap

Preech
05-02-2008, 04:47 PM
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.

odln018
05-08-2008, 12:45 PM
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.

nightbloom
05-09-2008, 06:27 PM
Im really looking forward to this mod. Will make things a lot easier....

TomJames
05-10-2008, 01:00 PM
Wow this seems very useful, I look forward to it once it has a popup :)

Preech
05-15-2008, 09:33 AM
Sorry. I've had this done for awhile now. But, like I said. I'm in the war zone right now. Soon as I get a chance, I'll upload it.

silly rabbit
06-01-2008, 11:00 AM
That's good mate.

I named my template just 'color'.
Ditto! Noticed that too. Thanks Jase2 for php. How to fix navbar so it retains/displays "> User Control Panel" first? Also, in "vBulletin Options -> Profile Options" make sure that "Profile Styling" is checked otherwise menu item will not show up at all in "UserCp -> Your Profile" menu. I have a fresh, new install of 3.7.0. . . :) :) :)

Also, how to incorporate this into main post editer (without having to manually edit -> COLOR="#990099")? Hummm . . .

Thanks!

Preech
06-01-2008, 01:31 PM
Silly Rabbit. After my last post, I took this into consideration. So what I'm attemping to do now is just that. Vbulletin has this already, but to me the color box's are small and limited. So I'm back to the drawing board. I know it says unsupported but I am working on updating this and making it better.

odln018
09-18-2008, 04:40 PM
Seems I'm having an issue. I got the new template created, the new Phrase, and dumped colorcode.php in.

I can see the Color Chart on the profile page, and when I click it, it opens colorcode.php, but the contents are blank.

What am I doing wrong?