PDA

View Full Version : End-User Options - My Favorite Game With Picture


Khalid-B
12-17-2011, 11:00 PM
Discription.

My Favorite Game is a simple modfisation that allow users to choose there favorite game through user CP.
I was using at my forum and decided to share at vb.org , may be some one wants to use for his forum .

Install.....

Instructions are in .zip file

Gamelobby
12-22-2011, 08:57 PM
Where does the "Misc" folder go..?
Seems like they are images, but i dont see an image folder in this zip.

Just want to be sure where they go.
Thanks

Khalid-B
12-25-2011, 06:36 PM
upload all images in your styles misc folder

duditas
01-13-2012, 11:41 AM
Hello
First of all I would like to thank you for this great mod, although it doesn't work for me.

You don't tell us which User Profile Field should we choose:
http://img26.imageshack.us/img26/6174/fieldy.jpg (http://imageshack.us/photo/my-images/26/fieldy.jpg/)

I have chosen the Single-Selection Menu, I have changed your name of games by styles of music and your images for my own.
The selection is possible, but images don't show even in postbit_legacy
http://img69.imageshack.us/img69/8259/stylesh.jpg (http://imageshack.us/photo/my-images/69/stylesh.jpg/)


The code has changed:

<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd></div>
</vb:if>
</vb:if>

This </div> doesn't exist in 4.1.8, perhaps that is why the mod does not work.

It is my first time doing something like this, I hope you can help me (I also hope you can understand me, my english is awful xD)

woody313
01-16-2012, 01:58 AM
This is not my mod but I thought I would update it for the 4.1.10 board.

Step #1
You will need to add a new user profile field:
GOTO:
ACP/User Profile Fields/Add New User Profile Field

Select: Multiple-Selection Menu

Title: My Favorite Game
Description: This will show an image of your favorite game in your status profile.

Options: Add the below list.

Assassin's Creed-2
Assassin's Creed-3
Battlefield-3
Call Of Duty MW2
Call Of Duty Black Ops
Call Of Duty MW3
Fifa 2010
Fifa 2011
Gears Of War-2
Gears Of War-3

Field Required: NO
Field Editable by User:Yes
Allow user to input their own value for this option: NO

Save: Once saved look and see what the Name "fieldxx" is, where the xx's are there will be a number right this number down you will need it later.

Step #2

Upload images in the archive to your images/xxxxx you can make a diferent folder anyware within your image folder to store the images in, I will show you how to set the correct path below.

Step #3

You will now need to edit the postbit_legcy section.
ACP/Styles & Templates/Styles Manager

Choose your style from the list, from the drop down menu choose Edit Template. You will now scroll down to Postbit Templates and double click.
From there click on the postbit_legacy,from here do the below.

FIND
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl>
</vb:if>


ADD AFTER:
<vb:if condition="$post['fieldxx']"><dd><img src="images/styles/xxxxx/misc/gameicons/{vb:raw post.fieldxx}.png" alt="{vb:raw post.fieldxx}" /></dd>
</vb:if></br>


Ok the above code will need to be edited, First make sure to edit the path to point to were you have your game images stored.
Second you will need to change all the xx's with the number you wrote down, don't worrie if you only have one number just enter that number and remove the extra x.

Once done click save at the bottom..

Step #5

Go to your profile and select a game from the drop down list, it should now show in your post profile.

https://vborg.vbsupport.ru/external/2012/01/39.jpg

You can add new games to your list by uploading the images to the folder were your game images are stored and adding them to the list of options in the User Profile Field under the ACP.
Make sure when adding options/New games you name them exactly the same as the image corsponding with game minus the extechen .png

Hope this works out if you have problem please post in this forum and I will try and help.

Thanks
wOOdy

alghzil
01-16-2012, 09:04 AM
cool

can i put more images ?

woody313
01-16-2012, 03:13 PM
cool

can i put more images ?

Read the bottom of my above post it tells you how to add more games and the images.

Peace

duditas
01-17-2012, 01:36 AM
Thanks woody, but look what happens when I put the code where you said

With the code
http://img585.imageshack.us/img585/5364/messedupw.th.jpg (http://imageshack.us/photo/my-images/585/messedupw.jpg/)



Without the code
http://img576.imageshack.us/img576/9965/everythingok.th.jpg (http://imageshack.us/photo/my-images/576/everythingok.jpg/)

My vB is 4.1.8


Any suggestion? Thanks

woody313
01-21-2012, 08:15 AM
Sorry for the long dely, looks like a table/spacing problem is that a social mod?.
I only updated this on our board did not test it any other just thought I would share it.
If you can not clear the alignment up send me the contents of your postbit_legacy via this site and I will take a look at it and see if I can get it lined up for ya.

Peace
wOOdy

duditas
02-07-2012, 12:50 AM
Please, look into your private messages, woody313