Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-01-2011, 04:58 PM   #1
roganoli
Confirmed User
 
roganoli's Avatar
 
Join Date: Dec 2004
Posts: 757
PHP question (help)

Please help me this work...

Code: (not Work)
<?php echo do_shortcode('[twitter-feed mode="search" term="<?=$USERNAME?>"]');?>

<?=$USERNAME?> not work in this echo code...

Any help?
roganoli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 05:29 PM   #2
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
change the < and ?= in front of $USERNAME to '.
then ? > to .'
YES - you will have "'.$USERNAME.'"
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 05:41 PM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
thats some messy code, why not use a widget?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 08:31 PM   #4
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
try this

<?php echo do_shortcode('[twitter-feed mode="search" term="'.$USERNAME.'"]');?>
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 10:34 PM   #5
glowlite
Confirmed User
 
Industry Role:
Join Date: Dec 2005
Location: Arizona/Indiana
Posts: 366
You can't nest PHP within PHP.
glowlite is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 10:51 PM   #6
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Tis called concatenation:

<?php echo do_shortcode('[twitter-feed mode="search" term="' . $USERNAME . ']'); ?>

Please tell me the USERNAME variable is populated by code written by someone cluefull. Tell me you're not setting that with code you wrote. It's cool that you're learning PHP. Both Rasmus and Linus know they have no business designing security systems though, so you're about a decade or two of intensive study away from being qualified to do so.

Last edited by raymor; 11-01-2011 at 10:55 PM..
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 11:05 PM   #7
KickAssJesse
Confirmed User
 
KickAssJesse's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: Los Angeles
Posts: 942
What raymor said... use concatenation to weave in and out of php
__________________

Contact - email: jesse~AT~atkcash~DOT~com - Skype: kickassjesse - ICQ: 386185547
ATK Cash $$$
KickAssJesse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2011, 05:07 AM   #8
roganoli
Confirmed User
 
roganoli's Avatar
 
Join Date: Dec 2004
Posts: 757
Quote:
Originally Posted by raymor View Post
Tis called concatenation:

<?php echo do_shortcode('[twitter-feed mode="search" term="' . $USERNAME . ']'); ?>

Please tell me the USERNAME variable is populated by code written by someone cluefull. Tell me you're not setting that with code you wrote. It's cool that you're learning PHP. Both Rasmus and Linus know they have no business designing security systems though, so you're about a decade or two of intensive study away from being qualified to do so.
this is ... thanks a lot!
roganoli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.