Log in

View Full Version : What the hell why is this happening


silvermerc
01-15-2010, 10:52 PM
Well im playing with xbox tags and heres my codes
</div>
<div> <if condition="$bbuserinfo[field5]">
<img align="center" src="http://www.xboxlc.com/cards/default/$bbuserinfo[field5].jpg" alt="$bbuserinfo[field5]" border="0" class="x" /></a> </div> </if>
<div> <if condition="$bbuserinfo[field6]">
<img align="center" src="hhttp://fp.profiles.us.playstation.com/playstation/psn/pid/[field6].png" alt="$bbuserinfo[field6]" border="0" class="x" /></a> </div> </if>

userinfo on 5 and 6 is xbox and ps3 tags, there both showing but only showing my user. IOm the only user in the db so far but im wanting it to show that users info not my users info :(
How would i do this i thought my coding was correct.
Ross

JamesC70
01-15-2010, 11:13 PM
I think you're missing some single quote marks there:

$bbuserinfo['field5'] $bbuserinfo['field6'] etc etc

Lynne
01-15-2010, 11:15 PM
What template are you putting the code in? The template always determines the variable name to be used.

silvermerc
01-15-2010, 11:21 PM
Im putting it into postbit. Its working in postbit but theres only 1 entry in the db in both of them, not sure if that matters. Its only showing my xbox gamertag and ps3 gamertag, but its not just showing it on mine its showing it on everyonesss

JamesC70
01-15-2010, 11:32 PM
Let's try $post:

<if condition="$post['field6']"><div><img src="path/to/playstation/graphic.jpg" alt="Playstation" /></div></if>

Your image paths are incorrect. You can't pull a [field5].jpg off of Xbox or Playstation websites unless they (the other site) names it that.

Not to mention, pulling selected graphics off someone else's server is considered "hotlinking" if you don't have the other server's owner's permission.

silvermerc
01-15-2010, 11:33 PM
No it works, its just pulling from the wrong place. Well its only pulling my gamertag. and I know its hotlinking its what the status signitures are there for, These are only temp untill i make some myself want to get the coding correct first :)
Ross

Digital Jedi
01-18-2010, 04:44 AM
It's pulling your info on only your posts? Well, it's supposed to do that. It will pull whatever was entered by that user in their Admin CP in their posts. And you use $post in the postbit, not $bbuserinfo.