vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New tab in profile PHP Field code? (https://vborg.vbsupport.ru/showthread.php?t=265973)

GavoTrav 06-29-2011 12:32 PM

New tab in profile PHP Field code?
 
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

1 Attachment(s)
It didnt work for me but this is what I get!

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

PHP Code:

        $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

Quote:

Originally Posted by GavoTrav (Post 2214581)
It didnt work for me but this is what I get!

https://vborg.vbsupport.ru/attachmen...1&d=1309364462

PHP Code:

        $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:

Code:

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

Quote:

Originally Posted by BirdOPrey5 (Post 2214675)
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


All times are GMT. The time now is 10:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01254 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete