Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
*Post Awards* Simple Postbit and Memberinfo awards manually given thru User Options Details »»
*Post Awards* Simple Postbit and Memberinfo awards manually given thru User Options
Version: 1.00, by Chicago_VLNU_4s Chicago_VLNU_4s is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-15-2006 Last Update: Never Installs: 4
 
No support by the author.

Well, looking at a few codes, i decided to make my own code for a simple Awards System. Now, I know about the official award system, but I didn't like that, it installs and makes an award page to my understanding. Well I just now made this simple code where you can place any award image you want into the User Options via ADMIN CP and it will show up where ever you desire in postbit and member info.

INSTALLATION:

-Create a Profile field via ACP > VBulletin Options > User Profile Field > Add New User Profile Field > Profile Field Type: Single-Line Text Box

Title: Awards
Description: Enter the picture link of the award here
Field Editable by User: NO
Private Field: NO
Field Searchable on Members List: NO
Show on Members List: NO

MARK DOWN WHAT FIELD NUMBER IT IS, YOU WILL NEED IT FOR THE NEXT STEP!

**************************************
Open postbit (legacy) template

Find:

Quote:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
Now enter this code above it:

Quote:
<if condition="$post[field39]">
<center><b><font size=2>Awards:</font size></b></center>
</else>
<center><img src="$post[field39]"></center>
</if>

(Optional)
If you want it to show up in your (default)memberinfo template:

Open memberinfo template

Find: $customfields

and place this code under it

Quote:
<strong>Awards:</strong>
<if condition="$post[field34]">
<center><img src="$post[field34]"border="0" style="border:1px solid $stylevar[tborder_bgcolor]; "></center>
<else />
<center><img src="yourimage.jpg"></center>
</if>
field34= your field number
yourimage.jpg= tha default image that will show if you don't put an award image link in the "Awards" box. If you dont want an image to show, simply take out

Quote:
<center><img src="yourimage.jpg"></center>
Now i use the myspace profiles, so i had to create my own table ABOVE "Status", but really, you can put this code anywhere you would like. For the myspace profile user's, here's the code i used. (Note: I had to create a new table)

Quote:
<tr valign="top" class="alt2">
<td align="left" valign="top" width="33%"> <div align="left"><span class=""><strong>Awards:</strong></span></div></td>
<td style=""><if condition="$post[field39]">
<center><img src="$post[field39]"border="0" style="border:1px solid $stylevar[tborder_bgcolor]; "></center>
<else />
<center><img src="yourimage.jpg"></center>
</tr>
Remember to change the parts in bold accorindly. You can add as many award images as you want to the memberinfo and postbit (and you can specify which ones you want to show in either by adding or deleting feildxx codes from either code), just remember to create a new profile field in the first step I showed you, and place this same code, in back of the twin code.

Quote:
<img src="$post[field39]"border="0" style="border:1px solid $stylevar[tborder_bgcolor]; ">
To add award images:

-ACP > Users > Search Users > (find the user) > scroll down to the Awards field, enter the link to the award image and save accordingly. Simple Hack.. really. I'm not even a coder and I was able to do this. If you need help, i'll offer support. If you find something wrong with this code, let me know and i'll fix it. If you use this code and like it, LET ME KNOW! Feedback is appriciated, just dont be an @$$HOLE!

Pics below for the Myspace profile, regular profiles, user cp,and the postbit legacy (the one i use)... ENJOY!

if you use, CLICK INSTALL PLEASE!

Show Your Support

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

Comments
  #2  
Old 10-16-2006, 06:26 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...reserved....


*******

If you want to type a specific text in for when user's hover over the pic, i can also post that up if you'd like
********

(Updated) Threw in pics of my own awards for myself on mysite (2 seperate awards). I added to the code to now, if a user has an award, it will say "Awards:" with the awards under them. the code that i just threw in was

Quote:
<center><b><font size=2>Awards:</font size></b></center>
Threw in a new and updated pic from User Options
Reply With Quote
  #3  
Old 10-17-2006, 05:36 AM
ChavMagnet's Avatar
ChavMagnet ChavMagnet is offline
 
Join Date: Sep 2006
Location: Leeds - England
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1st post WOOT Thanks great hack.
Reply With Quote
  #4  
Old 10-17-2006, 07:40 PM
Endurer Endurer is offline
 
Join Date: Sep 2006
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll use it in the future. Thank you.
Reply With Quote
  #5  
Old 10-18-2006, 05:16 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol. I like the text you entered in your award. I'm tha Mother F..... lol.

Great idea, is there a way to maybe show multiple awards?
Reply With Quote
  #6  
Old 10-20-2006, 04:59 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
Lol. I like the text you entered in your award. I'm tha Mother F..... lol.

Great idea, is there a way to maybe show multiple awards?
lol, but yes, just add this code after


Quote:
<br>
<if condition="$post[field41]">
</else>
<center><img src="$post[field41]" alt="$post[field42]"></center>
</if>
if you don't want the award to break to another line, take out "<br>". Remember to change feild41 and field42 to the proper fields on your site. Of course, youre gonna have to make two more profile fields. But use step 1 for that. Let me know if you guys have anymore questions, this is still in the baby stage. I'll work on it more soon, it will probably have a box around it in the next update I do so it can stand out more.


oh yeh, outta the 3 who wrote back, only ONE installed! PLEASE CLICK INSTALL!
Reply With Quote
  #7  
Old 01-03-2007, 01:48 AM
Alkah Alkah is offline
 
Join Date: Feb 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you explain how to do the drag crusor over award and it shows a description.
Reply With Quote
  #8  
Old 04-22-2008, 03:58 AM
newmasalaboard's Avatar
newmasalaboard newmasalaboard is offline
 
Join Date: Apr 2008
Location: Raipur [C.G.], INDIA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can it work out like this :


Reply With Quote
Reply

Thread Tools

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 11:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04547 seconds
  • Memory Usage 2,270KB
  • Queries Executed 21 (?)
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
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete