Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
My Favorite Game With Picture Details »»
My Favorite Game With Picture
Version: 1.00, by Khalid-B Khalid-B is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 4.1.x Rating:
Released: 12-17-2011 Last Update: Never Installs: 9
Template Edits
Re-useable Code Code Changes Additional Files Translations  
No support by the author.

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

Download Now

File Type: zip my-favorite-game.zip (471.6 KB, 130 views)

Screenshots

File Type: jpg Capture.JPG (31.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-22-2011, 08:57 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 12-25-2011, 06:36 PM
Khalid-B's Avatar
Khalid-B Khalid-B is offline
 
Join Date: Apr 2007
Location: NL
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

upload all images in your styles misc folder
Reply With Quote
  #4  
Old 01-13-2012, 11:41 AM
duditas's Avatar
duditas duditas is offline
 
Join Date: Jul 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:


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



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)
Reply With Quote
  #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
  #6  
Old 01-16-2012, 09:04 AM
alghzil alghzil is offline
 
Join Date: Dec 2011
Location: Iraq
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool

can i put more images ?
Reply With Quote
  #7  
Old 01-16-2012, 03:13 PM
woody313 woody313 is offline
 
Join Date: Nov 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alghzil View Post
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
Reply With Quote
Благодарность от:
alghzil
  #8  
Old 01-17-2012, 01:36 AM
duditas's Avatar
duditas duditas is offline
 
Join Date: Jul 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks woody, but look what happens when I put the code where you said

With the code




Without the code


My vB is 4.1.8


Any suggestion? Thanks
Reply With Quote
  #9  
Old 01-21-2012, 08:15 AM
woody313 woody313 is offline
 
Join Date: Nov 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
duditas
  #10  
Old 02-07-2012, 12:50 AM
duditas's Avatar
duditas duditas is offline
 
Join Date: Jul 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please, look into your private messages, woody313
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05343 seconds
  • Memory Usage 2,323KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete