Log in

View Full Version : Battlefield 2 Stats link in Profile


Oap JTRipper
12-18-2005, 10:00 PM
go to new profile field & add

Profile Field-single line

Title-BF2 Stats
Description-BF2 Stats PID

Take note of the field number

Find in postbit/postbit legacy <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]


add underneath

<if condition="$post['fieldX']">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" /></a>
</if>


replace fieldX with your field number mine is field5

add a new phrase

Phrase

Varname-view_bf2_stats

Text-View BF2 Stats

upload bf2.gif to your styles/misc folder

go to edit profile & enter your pid number

this may work to other stats pages I used bf2tracker to test it

AshokForums.com
12-19-2005, 05:54 PM
Nice Thanks.. :)

rb290
12-19-2005, 07:33 PM
what is that for lol

GoNz00
12-19-2005, 09:22 PM
will install tomorrow thanks :)

Oap JTRipper
12-19-2005, 09:28 PM
what is that for lol

its a link to the poster bf2 stats

SMO
12-20-2005, 12:39 AM
you should advertise that on totalbf2..see what the admins say about that.. they run vb

very nice lil addition

Hornstar
12-20-2005, 02:38 AM
I clicked installed because i want to keep this in mind at a later date, nice work.

majorxp
12-20-2005, 09:20 PM
Installed...but the link is


http://bf2tracker.com/bf2_userprofile.php?userid=XXXXXX


o..and if you take out the alt text, you dont have to add the phrase.


Very cool idea!!

Oap JTRipper
12-21-2005, 05:07 PM
Installed...but the link is


http://bf2tracker.com/bf2_userprofile.php?userid=XXXXXX


o..and if you take out the alt text, you dont have to add the phrase.


Very cool idea!!

Just tried that came up with an error

try this link to one of our clan members stats (http://bf2tracker.com/bf2_userprofile.php?userid=44014557)

then try the same stats with the original link (http://bf2tracker.com/bf2_userprofile.php?bf2id=44014557)

TF|Scorpion
01-12-2006, 02:01 AM
Thanks! Installed.

Zachariah
01-12-2006, 02:33 AM
what is that for lol

EA Games : Battlefield 2
- Rocken Vid game :D

Ya Baby (http://bf2tracker.com/bf2_userprofile.php?bf2id=44697543)

Jericho2004
08-31-2006, 01:40 PM
This looks like a great hack for vb. Can you give me more specific instructions of where in the templates to do those steps? I see where to do it in the postbit, but not the other parts of the instructions. I wanted to try this for vb 3.6.

Thanks.

Edit: Ok, I found where to add a new profile field, but I am still unable where to enter the new phrase.

Ev!L ErN!E
10-27-2006, 06:04 AM
admincp>languages & phrases>phrase manager

killugood9000
01-14-2007, 10:49 PM
Nice work. I only have one problem the bf2 .gif is not showing up. Instead it says " View Bf2 Stats" with the red X. I did upload the .gif to my images/misc folder
Thanks

killugood9000
01-17-2007, 03:47 AM
figured it out thanks.

team76
04-16-2009, 09:32 AM
merci beaucoup ,marche tres bien sur 3.8.2 :up: