vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   End-User Options - My Favorite Game With Picture (https://vborg.vbsupport.ru/showthread.php?t=275626)

Khalid-B 12-17-2011 11:00 PM

My Favorite Game With Picture
 
1 Attachment(s)
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

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


The code has changed:
PHP Code:

<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
Code:

<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:
Code:

<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

Quote:

Originally Posted by alghzil (Post 2288477)
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/5...ssedupw.th.jpg



Without the code
http://img576.imageshack.us/img576/9...thingok.th.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


All times are GMT. The time now is 09:52 PM.

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.01143 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete