vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   *Post Awards* Simple Postbit and Memberinfo awards manually given thru User Options (https://vborg.vbsupport.ru/showthread.php?t=129244)

Chicago_VLNU_4s 10-15-2006 09:00 PM

*Post Awards* Simple Postbit and Memberinfo awards manually given thru User Options
 
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! :D

if you use, CLICK INSTALL PLEASE!

Chicago_VLNU_4s 10-16-2006 05:26 PM

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

ChavMagnet 10-17-2006 04:36 AM

1st post WOOT Thanks great hack.

Endurer 10-17-2006 06:40 PM

I'll use it in the future. Thank you. :)

Hornstar 10-18-2006 04:16 AM

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?

Chicago_VLNU_4s 10-20-2006 03:59 PM

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!

Alkah 01-03-2007 01:48 AM

Could you explain how to do the drag crusor over award and it shows a description.

newmasalaboard 04-22-2008 02:58 AM

Can it work out like this :


https://vborg.vbsupport.ru/attachmen...9&d=1208457128


All times are GMT. The time now is 10:55 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.03383 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete