vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Easy - My Favorite Game In Postbit (https://vborg.vbsupport.ru/showthread.php?t=227470)

soulnothing 11-05-2009 10:00 PM

Easy - My Favorite Game In Postbit
 
1 Attachment(s)
Updated

This is to add my favorite game to your postbit.

Download the zip and put the "favgame" folder in your: home.com/images folder

(you can add more images later... make sure you save them as .png (size is 120x57 pixels) and that you name the file exactly as you put it in the options field in your user profile field manager... lower and uppercase letters does matter)

Now go to your admin panel then select: User Profile Fields> Add New User Profile Field
then in Profile Field Type select: single-selection menu

the rest i have a snapshot for: (leave the Display Order like it is and remember the number.. you will be replacing XX in the code with that number)
(in the options part i have put a text file in the zip to copy and paste... make sure you copy and paste it exactly like it is)

https://vborg.vbsupport.ru/external/2009/11/26.png
https://vborg.vbsupport.ru/external/2009/11/27.png

ok now go to: Styles and Templates> Style Manager> Your Style Edit Templates
then select: Postbit templates> postbit/postbit legacy (according to which one you use... postbit goes across the top in your forums post and postbit legacy is on the side)

now search: "reputation"

below this code:
Code:

<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>

put:
Code:

<br>
<if condition="$post[fieldXX] != ''"><center>My Favorite PC Game:</center></if>
<br>
<div align="center">
<if condition="$post[fieldXX] != ''"><img src="images/favgame/$post[fieldXX].png" title="$post[fieldXX]" align="center" border="0"/></if>
</td>

replacing the XX's like i said earlier

example:
https://vborg.vbsupport.ru/external/2009/11/28.png

now your done!
here is an example:
https://vborg.vbsupport.ru/external/2009/11/29.pnghttps://vborg.vbsupport.ru/external/2009/11/30.pngcode for the second image is in the reserved post
https://vborg.vbsupport.ru/external/2009/11/31.png

if you use this pls click install

made by JarHeaD

soulnothing 11-05-2009 11:24 PM

Demo: www.extreme-gamers.org

I have a dummy account for the site:
Username: guest
Password: password

------------------------------------------------------------------------------------------------------------------
You can also put the code in like this: (this is how it is on my site)
Code:

<if condition="$post[fieldXX] != ''"><center><b>My Favorite PC Game:</b></center></if>
<div align="center">
<if condition="$post[fieldXX] != ''"><img src="images/favgame/$post[fieldXX].png" title="$post[fieldXX]" align="center" border="0"/></if>
</td>

it takes the spacing out and makes "My Favorite PC Game" bold
------------------------------------------------------------------------------------------------------------------

mbc100 11-05-2009 11:45 PM

great i like games

F90 11-06-2009 06:40 AM

i'm installed :)
in
http://cs4arabs.com/vb

F90 11-06-2009 07:17 AM

can you make small images ?

soulnothing 11-06-2009 09:48 AM

Quote:

Originally Posted by F90 (Post 1910904)
can you make small images ?

yes you can make them any size you want just make sure you dont make them to big so it wont stretch out your template... and when you name them it has to be the exact same way in the options box when added (lower and uppercase letters matters) and save them all one format... the code is set for .png files but you can change it to .gif or whatever where it says "My Favorite PC Game:" you can also make a icon bar or something there that says that if you change the code

abdobasha2004 11-06-2009 01:41 PM

simple .. but thanks

soulnothing 11-06-2009 02:30 PM

.... do u go around commenting on everyones stuff??? everything i have posted you have came by and made a comment about it this being the nicest one which isnt saying much... we are sorry that we dont know everything u do and share ideas and stuff with each other

soulnothing 11-07-2009 09:50 PM

i will be updating this soon it will have more game images and have an image for the "My Favorite PC Game:" part ill add the psd so you can change the colors and stuff

betts02 11-08-2009 12:20 AM

easier version,just a little editing and works fine
https://vborg.vbsupport.ru/showthread.php?t=213359


All times are GMT. The time now is 10:29 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.01132 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete