PDA

View Full Version : Mini Mods - Easy - My Favorite Game In Postbit


soulnothing
11-05-2009, 10:00 PM
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:
<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:
<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)
<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
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

soulnothing
11-08-2009, 02:10 AM
lol this one isnt hard

AzzidReign
11-08-2009, 02:33 PM
Pretty good, though you are missing CoD:WaW. Unless you have it under World at War on the list and not shown in the picture. Not to mention MW2 is coming out in 2 days...it would be cool to have that too.

soulnothing
11-08-2009, 04:13 PM
they are in it waw is under world at war and mw2 is under modern warfare 2 :) like i said in the above post im also adding some more to the games list so keep a check up

soulnothing
11-24-2009, 06:25 PM
updated....

zapiy
11-28-2009, 08:44 PM
Fella, could this be extended so we could get our members to select all there games?

I would be happy to supply the images.

Cheers

soulnothing
11-28-2009, 09:19 PM
what you mean... to select more than one game???? or do you mean more games... im gonna add more games later i just have so much goin on runnin a community and family and all

zapiy
12-06-2009, 02:41 PM
Actually build a list of games that you own..

I know it would be a large list and i am willing to help if you can do it?

IR15H
12-06-2009, 09:17 PM
what you mean... to select more than one game???? or do you mean more games... im gonna add more games later i just have so much goin on runnin a community and family and all

Actually build a list of games that you own..

I know it would be a large list and i am willing to help if you can do it?

If I understand Zapiy correctly, he means rather than just have one favourite game, you are able to select multiple games to display. I haven't tested it but I think it's possible by changing the user profile field to be multiple-selection checkbox and the template edits to something like;

<if condition="$user['fieldX'] & 1"><img src="imagesource/image1.png" alt="image1" border="0" />&nbsp;</if>
<if condition="$user['fieldX'] & 2"><img src="imagesource/image2.png" alt="image2" border="0" />&nbsp;</if>
<if condition="$user['fieldX'] & 4"><img src="imagesource/image3.png" alt="image3" border="0" />&nbsp;</if>
<if condition="$user['fieldX'] & 8"><img src="imagesource/image4.png" alt="image4" border="0" />&nbsp;</if>
<if condition="$user['fieldX'] & 16"><img src="imagesource/image5.png" alt="image5" border="0" />&nbsp;</if>

You'd increase the conditionals by how ever many game options you have (doubling the number each time)... which would get quite clunky if you have lots of games to chose from. Anyway, hope that's of some help.
------------

Nice mod, by the way :).

soulnothing
12-07-2009, 06:05 PM
If I understand Zapiy correctly, he means rather than just have one favourite game, you are able to select multiple games to display. I haven't tested it but I think it's possible by changing the user profile field to be multiple-selection checkbox and the template edits to something like;

yeah i thought thats what he was talkin about but wasnt sure ... i know how to do it but its alot to put in a postbit especially if you have other things in it like i do

and thx

Actually build a list of games that you own..

I know it would be a large list and i am willing to help if you can do it?

i am adding games here in there and it just takes sometime when i have other things to do also... but i know the next one is gonna have WoW, Dirt 2, Rogue Warrior, Serious Sam, and more in it it just takes a while to go back and get old games plus do the new ones

on another note i can make up a mod where u can put in a list of games you own/play but it wouldnt look good in the postbit ... it would look better on the user info page

Taurus1
09-26-2010, 09:53 AM
I really need this for vb4, can you please update it.

Thanks!