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 Mark Forums Read
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 12-17-2007, 03:22 PM   #1
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
PHP / Wordpress Pros .. Please help!

I'm using the following on the single.php template file for post navigation:

<?php next_post_link('%link', '<img src="/images/next.gif" width="75" height="21" border="0">', FALSE); ?>

Works fine, but what I actually want to do is insert <?php bloginfo('template_directory'); ?> before the /images/next.gif.

I know I can't simply do:

<?php next_post_link('%link', '<img src="<?php bloginfo('template_directory'); ?>/images/next.gif" width="75" height="21" border="0">', FALSE); ?>

So hook can someone hook me up with the right format please? I don't want to learn php I just want to finish this damn template I started. :P
__________________
.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2007, 03:47 PM   #2
moogle
Confirmed User
 
Join Date: Sep 2007
Location: Somewhere over the rainbow.... ICQ-474167022
Posts: 314
Why don't you just insert the URL of your template's directory?

ie:

<?php next_post_link('%link', '<img src="http:// www . domain . com /wp-content/ themes/ template/ images/ next.gif" width="75" height="21" border="0">', FALSE); ?>
__________________


moogle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2007, 03:52 PM   #3
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Quote:
Originally Posted by moogle View Post
Why don't you just insert the URL of your template's directory?

ie:

<?php next_post_link('%link', '<img src="http:// www . domain . com /wp-content/ themes/ template/ images/ next.gif" width="75" height="21" border="0">', FALSE); ?>
Yes that will work of course, however I've painfully learned to do everything correctly while building my first theme and since everywhere else all the links and what not are dynamic, I'd kind of like to learn how to do this properly too.
__________________
.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2007, 04:38 PM   #4
Swish
Confirmed User
 
Swish's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 1,421
What about:

<?php next_post_link('&#37;link', '<img src="' . bloginfo('template_directory') . '/images/next.gif" width="75" height="21" border="0">', FALSE); ?>
__________________


Naughty America - Director of Technology
It's a CELEBRATION bitches!! For the hottest content promote Naughty America!
swish at naughtyamerica dot com | ICQ: 226 737 620 | See Who I Am At AdultWhosWho.com!
Swish is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2007, 04:39 PM   #5
DiliBau
Registered User
 
Join Date: Nov 2007
Location: /home/
Posts: 9

try swishs` version... should work

Last edited by DiliBau; 12-17-2007 at 04:40 PM..
DiliBau is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2007, 06:59 PM   #6
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Quote:
Originally Posted by Swish View Post
What about:

<?php next_post_link('%link', '<img src="' . bloginfo('template_directory') . '/images/next.gif" width="75" height="21" border="0">', FALSE); ?>
Tried it but it doesn't work, it just outputs the template_directory but doesn't work with the link. Must have something to do with the wordpress function its self.

Anyone else?
__________________
.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2007, 08:18 PM   #7
jimbona
Confirmed User
 
Join Date: Jan 2007
Posts: 190
try
Code:
<?php 
$image = '<img src="'.bloginfo("template_directory").'/images/next.gif" width="75" height="21" border="0">';

next_post_link('&#37;link', $image, FALSE); ?>
__________________
Thanks
Paul
Thunder-Ball.net - Member
jimbona is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2007, 12:16 PM   #8
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Unfortunately that does the same thing as the earlier code. There's something peculiar about this Wordpress function.

Anyone familiar with it?
__________________
.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2007, 12:20 PM   #9
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
<?php next_post_link('&#37;link', '<img src=<?php bloginfo('template_directory'); ?>/images/next.gif width=75 height=21 border=0>', FALSE); ?>
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2007, 12:21 PM   #10
Boobs
Confirmed User
 
Join Date: Aug 2006
Posts: 7,875
possibly the " " symbols were messing it up ?
Boobs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2007, 01:35 PM   #11
TommySoprano
Confirmed User
 
Join Date: Jul 2007
Posts: 111
Use this instead:

<?php next_post_link('%link', '<img src="' . get_bloginfo('template_directory') . '/images/next.gif" width="75" height="21" border="0">', FALSE); ?>

More help:
http://codex.wordpress.org/Template_Tags/get_bloginfo
__________________


Sig too big???

ExtraordinaryWay
Exclusive Custom Ads, Banners and other Ads
Adult Design, Tour Pages, Affiliate Design
Cool Custom WordPress Themes w install

Flash Video Players
Afiiliate code ready custom flash video players!!!

Make a wish! ICQ: 190430478
TommySoprano 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
Thread Tools



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.