PDA

View Full Version : New tab in profile PHP Field code?


GavoTrav
06-29-2011, 12:32 PM
Well Im using this https://vborg.vbsupport.ru/showthread.php?t=165554

To add a new tab Its added the new tab but I want to put an image with a $post[field26]

And it dosnt work with PHP.

If anyone can tell me the proper way to do this?

In other words Im using conditionals to show a twitter last tweets in the profile with there username in that field 26.

If anyone can help I would like it :)

BirdOPrey5
06-29-2011, 12:46 PM
$post is a variable only available in posts (the postbit.)

Try using $userinfo[field26] instead.

GavoTrav
06-29-2011, 03:21 PM
It didnt work for me but this is what I get!

https://vborg.vbsupport.ru/external/2011/06/5.jpg


$this->block_data['twitter'] = '<a href="http://twitter.com/$userinfo[field26]"><img src="http://twitterimage.net23.net/image.php?username=$userinfo[field26]&sx=500&sy=170&fr=000&fg=000&fb=000&r=226&g=244&b=255&tweetcount=2"></a>';
}

GavoTrav
06-29-2011, 03:33 PM
It didnt work for me but this is what I get!

https://vborg.vbsupport.ru/attachment.php?attachmentid=130546&stc=1&d=1309364462


$this->block_data['twitter'] = '<a href="http://twitter.com/$userinfo[field26]"><img src="http://twitterimage.net23.net/image.php?username=$userinfo[field26]&sx=500&sy=170&fr=000&fg=000&fb=000&r=226&g=244&b=255&tweetcount=2"></a>';
}




Edit: Fixed it

BirdOPrey5
06-29-2011, 03:45 PM
So it's working?

GavoTrav
06-29-2011, 05:54 PM
Yes Should I release?:

Demo: Twitter tab:


http://pvhax.com/forums/member.php?u=538

BirdOPrey5
06-29-2011, 06:15 PM
Up to you but please don't link to explicit videos.

GavoTrav
06-29-2011, 06:17 PM
Up to you but please don't link to explicit videos.

Sorry, Thanks for doing it but I put the link in a [code] tag now