PDA

View Full Version : Link in postbit to arcade profile..



stangger5
09-30-2011, 01:08 AM
Made this to help blind-eddie at vb.org and anyone else that wants to use it..

vb4

In postbit_legacy or postbit look for

<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>

below add this :


<vb:if condition="$post['games_played']"><dd><a href="arcade.php?&act=Arcade&module=report&user={vb:raw post.userid}" title="Check out {vb:raw post.username}`s Arcade profile">My Arcade Profile</a></dd></vb:if>

If this doesnt show anything,,change games_played to crowns..

----------------------------------------------------------------------------------------------------------------------------------------------------------

vb3 should be close to the same..
Look for the post info and below try this:


<if condition="$post['games_played']"><dt><a href="arcade.php?&act=Arcade&module=report&user=$post[userid]" title="Check out $post[username] Arcade standings">My Arcade Scores</a></dt></if>

Since I dont have vb3 anymore,,I hope that works..

blind-eddie
09-30-2011, 01:26 AM
Worked like a charm...THANK YOU VERY MUCH!

Hippy
09-30-2011, 10:50 AM
did I tell you he is by far the master...

hey stangger5 could you add the rating # at the end ? of this ..?

Hippy
10-02-2011, 05:06 PM
can you update the code you are using here bud ..
dt to dd and the user name in "check out hippy's arcade profile"..

Hippy
10-02-2011, 05:28 PM
I think I figured it out .. look good ?

<vb:if condition="$post['games_played']"><dd><a href="ibproarcade.php?&act=Arcade&module=report&user={vb:raw post.userid}" title="Check out {vb:raw post.username}'s Arcade Profile">My Arcade Profile</a></dd>
</vb:if>

stangger5
10-02-2011, 08:34 PM
You got it....I updated the first post too..

blind-eddie
10-06-2011, 12:50 AM
Would you be interested in shareing how you shortened the games shown when viewing stats page to only the games you played, instead of all games as shown with default?
:blinkdog:

Hippy
10-06-2011, 12:52 AM
it's part of the download mod..
talk to stangger5 about it.

feusty
02-10-2014, 07:17 AM
Thank Stangger very nice

blind-eddie
05-14-2015, 05:30 PM
What would the if conditional be to use on member profile pages?
I have tried the if conditional posted above as well as a few others without luck.

stangger5
05-15-2015, 10:46 AM
vb4

<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']">

maybe ?

Its been a long time since coding in the profile..

blind-eddie
05-15-2015, 11:29 AM
Thank you!

That's one I didn't try, coding between postbit and memberinfo is so different.
Perfect, now it only shows arcade link for those that have played it.

I installed this just before passing out at my keyboard last night.

http://www.vbulletin.org/forum/showthread.php?t=177902

Look at Arcade Stats Tab on my profile page.

blind-eddie
05-15-2015, 02:37 PM
I spoke to soon, it only showed mine only.

Bandit
11-30-2016, 05:49 PM
Excellent, thank you :)