Wordpress plug code.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robocrop
    Confirmed User
    • Aug 2008
    • 2785

    #1

    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, 01:31 PM.
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    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.

    Comment

    • Robocrop
      Confirmed User
      • Aug 2008
      • 2785

      #3
      Originally posted by fris
      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.

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        what is ATL?
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        Working...