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 07-26-2009, 02:28 PM   #1
Robocrop
Confirmed User
 
Robocrop's Avatar
 
Industry Role:
Join Date: Aug 2008
Location: Hollywood
Posts: 2,785
Wordpress plug code.

I browsed around and were looking for a way to being able to plug vids to other sites using wordpress.

I spoke to Fris and he came up with a solution for this. However I am also using ATL for my tubetheme site, and the solution Fris had didnt work for me since it didnt ignore the urls from ATL. ( Or maybe I didnt know any way around it, very nice plugin btw. )

So I got a friend to code me something that ignores all urls and just re-writes the one you choose.

First of all you must insert this code in your "index.php" file.
Code:
<?php 
$plugurl = get_post_meta($post->ID, 'plugurl', true);
if ($plugurl)
{
?>
	<?php echo $plugurl; ?>
<?php
}
else
{
?>	
	
<?php
}
?>
Then you have to make a customfield called "plugurl"

When this is done you can now plug any post to which site you prefer.

I hope someone find any use of this.

Last edited by Robocrop; 07-26-2009 at 02:31 PM..
Robocrop is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2009, 05:27 PM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 54,505
mine works exactly like this, if you dont plug a site it will use the default permalink
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


my contact: fris at fris.net
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2009, 06:14 PM   #3
Robocrop
Confirmed User
 
Robocrop's Avatar
 
Industry Role:
Join Date: Aug 2008
Location: Hollywood
Posts: 2,785
Quote:
Originally Posted by fris View Post
mine works exactly like this, if you dont plug a site it will use the default permalink
But I didnt get around the thing with ATL's gallery url. And I didnt want the skimming part on the plugs.
Robocrop is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2009, 08:42 PM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 54,505
what is ATL?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


my contact: fris at fris.net
fris 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

Tags
custom field, plug, wordpress



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.