PDA

View Full Version : Battlefield 2 Stats link in Profile


Oap JTRipper
19 Dec 2005, 17:47
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
19 Dec 2005, 18:54
Nice Thanks.. :)

rb290
19 Dec 2005, 20:33
what is that for lol

GoNz00
19 Dec 2005, 22:22
will install tomorrow thanks :)

Oap JTRipper
19 Dec 2005, 22:28
what is that for lol

its a link to the poster bf2 stats

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

very nice lil addition

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

majorxp
20 Dec 2005, 22:20
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
21 Dec 2005, 18:07
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
12 Jan 2006, 03:01
Thanks! Installed.

Zachariah
12 Jan 2006, 03:33
what is that for lol

EA Games : Battlefield 2
- Rocken Vid game :D

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

Jericho2004
31 Aug 2006, 14:40
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
27 Oct 2006, 07:04
admincp>languages & phrases>phrase manager

killugood9000
14 Jan 2007, 23:49
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
17 Jan 2007, 04:47
figured it out thanks.

team76
16 Apr 2009, 10:32
merci beaucoup ,marche tres bien sur 3.8.2 :up: