The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Links in Postbit based on Profile Fields.
Ill use an example.
With Battrick, each userr has themselves an assigned Team ID number (which is Part of the link to their Pavillion. In the Postbit, i would like to be able to have it, so we can click the Team Name, and link (in another window) to their Pavillion. Its somewhat like this. h ttp://ww w.battrick.org/nl/office.asp?userID=4813 is the link to my Pavillion 4813 is my Team ID (FIELD 1) St Arnaud CC is my Team Name. (FIELD 2) Basically, id like it to be set up somewhat like this... St Arnaud CC which is [U RL="http://www.battrick.org/nl/office.asp?userID=4813"]St Arnaud CC[/URL] Which Therefore is [U RL="http://www.battrick.org/nl/office.asp?userID=FIELD 1"]FIELD 2[/URL] Now, my question, can it be done? If so, how? Thanks |
#2
|
||||
|
||||
That should do it. Trimmed down a mod of mine to do it.
2 plugins, 1 template. Template's cached. Only shows the link if the ID exists. All you have to do is to edit the template (Link In Postbit), change the field IDs to the correct ones, and that's it. I made it a product and here's a link to it: https://vborg.vbsupport.ru/showthread.php?t=218293 Change the template to below for what you need (specifically a known URL + a profile field). Code:
<if condition="$post['field1']"> <a href="http://www.battrick.org/nl/office.asp?userID=$post[field1]">$post[field2]</a> </if> |
#3
|
|||
|
|||
Perfect! Cheers
--------------- Added [DATE]1247228718[/DATE] at [TIME]1247228718[/TIME] --------------- Ahh, one thing, What mod would i need to do, to make it open in new window? is that just adding target="_blank" after the link? |
#4
|
||||
|
||||
If I remember my HTML correctly, yes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|