The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Advice
Ladies and Gentlemen I would like to take this moment to thank you for reading my post, any and all suggestions will be taken on board.
I run a Sports website (and forum obviously) and what I am trying to get at (and I have seen it on a number of forums but cant find it anywhere) is when people register there is an added field for them to select (or type) what sporting team they follow. Once they do that it is then displayed on their profile, and postbit - I have seen on many websites that they have postbit background images where admins, and co have like a wallpaper background, well what I would like to get to having is that when these people sign up they select from a drop down menu what team they support - once they select and finish registration they then get the wallpaper type background in their postbit which will be one from their team. A good example can be seen here: http://forums.rleague.com not everyone has it in their posts but some people do (I can give you a direct link to people who do if required) - thats the type of thing I would like to have set up on my forum, but where everyone selects a team and has the postbit background. Any help would be greatfully appreciated, or instructions on how to do it - I truly appreciate anyone taking the time to reply. |
#2
|
||||
|
||||
Well, profile fields are probably the way to go here.
http://www.vbulletin.com/docs/html/main/profile_add Using a single-selection menu will allow you to put a background or an image in the postbit. However, you are limited to 31 options total with those. If you cover more than one sport, you should have multiple single-selection menus for all of the different sports. Then you should have a final selection menu with a listing of all of the different sports so that they can say which sport is their favorite (their "favorite" sport listing will be used to pick out which team background should display). From there, it becomes a bunch of template alterations. Check this article: https://vborg.vbsupport.ru/showthread.php?t=118896 It tells you how to access the postbit information. All you've got to do is change up how it is displayed. Instead of adding it to a line in the postbit, you can add it to some code to make a background. |
#3
|
|||
|
|||
thank you = much appreciated will give it a go and let you know
|
#4
|
||||
|
||||
To add it to the postbit, each Profile Field will have a unique identifier. This can be found next to it in the form of field*
Simply add the following code in the desired placement within your vbulletin templates (eg/ inside the postbit). Replace the * wildcard with the number your Profile Field has. Code:
$post[field*] |
#5
|
|||
|
|||
Thanks for your help everyone, I have added the fields, made it where they have to enter information, and have the fields showing on postbit - I am getting better at this stuff I just have to find the codes now to get it so a picture/background shows up for their favorite team - rather than just the plain background.
|
#6
|
|||
|
|||
Sorry to bother you all again - but was wondering if anyone knew the code to add images for what I want to do with this.
|
#7
|
|||
|
|||
Sorry to bother everyone again but I was wondering if anyone had the code to have a background image in the postbit section - where when a user selects their favorite teams it selects that teams background and so everytime the user posts it displays the background image of their favorite team.
|
#8
|
||||
|
||||
https://vborg.vbsupport.ru/showthread.php?t=203850
Well this is a start. You could take their code, and change their "Replace with" code to the following: Code:
<if condition="is_member_of($post, #)"> <td width="175" style="background-image:url(url to image);border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]"> <else /> <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if> Create the usergroups you want, for example Bostons (usergroup ID of 7) and NY (usergroup ID of 8). Example code: Code:
<if condition="is_member_of($post, 7)"> <td width="175" style="background-image:url('images/teams/boston.gif'); border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]"> <else /> <if condition="is_member_of($post, 8)"> <td class="postbit" width="175" style="background-image:url('images/teams/ny.gif'); border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]"> <else /> <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"> </if> </if> You may be looking at a number of if statements, so if you're alright with that, than sweet <3 |
#9
|
|||
|
|||
yeah i get ya thanks - its late here in the land of Australia but I will give it a crack in the morning Thanks for your help
--------------- Added [DATE]1239370941[/DATE] at [TIME]1239370941[/TIME] --------------- So just so I understand you still think best idea is to set up usergroups rather than trying to set it up from a Profile Field where they select their favorite team? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|