GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress plug code. (https://gfy.com/showthread.php?t=918102)

Robocrop 07-26-2009 02:28 PM

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.

fris 07-26-2009 05:27 PM

mine works exactly like this, if you dont plug a site it will use the default permalink

Robocrop 07-26-2009 06:14 PM

Quote:

Originally Posted by fris (Post 16109568)
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.

fris 07-26-2009 08:42 PM

what is ATL?


All times are GMT -7. The time now is 06:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc