Thread: End-User Options - My Favorite Game With Picture
View Single Post
  #5  
Old 01-16-2012, 01:58 AM
woody313 woody313 is offline
 
Join Date: Nov 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.



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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01492 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete