Results 1 to 4 of 4

Thread: more link

  1. #1
    Casual Pligger ideatr's Avatar
    Joined
    Mar 2011
    Posts
    32

    more link




    how can i this? Is it possible? thanks..

  2. #2
    Casual Pligger ideatr's Avatar
    Joined
    Mar 2011
    Posts
    32
    please help me.

  3. #3
    Casual Pligger vwdw's Avatar
    Joined
    Apr 2010
    Posts
    81
    It is possible, but you'll have to modify your pligg files. There is no module for this, as far as I know.

    1. open libs/link.php
    2. find this string:
    PHP Code:
    $smarty->assign('story_url'$this->get_internal_url()); 
    3. below that string, add the following code:
    PHP Code:
    $previd $db->get_var("SELECT link_title_url FROM ".table_links." WHERE link_status = 'published' AND link_id < $this->id ORDER BY link_id DESC LIMIT 1");
    $nextid $db->get_var("SELECT link_title_url FROM ".table_links." WHERE link_status = 'published' AND link_id > $this->id ORDER BY link_id ASC  LIMIT 1");
    $smarty->assign('story_prev_url'getmyurl("storytitle"$previd));
    $smarty->assign('story_next_url'getmyurl("storytitle"$nextid)); 
    4. open link_summary.tpl in your templates folder
    5. insert this code where you want the prev/next links to be:
    Code:
    <a href="{$story_prev_url}">Previous story</a><a href="{$story_next_url}">Next story</a>

  4. #4
    Casual Pligger ideatr's Avatar
    Joined
    Mar 2011
    Posts
    32
    @vwdw

    thank you very much.

Similar Threads

  1. RSS link to Pligg site, how to link to source direct?
    By NeverHome in forum Questions & Comments
    Replies: 6
    Last Post: 08-09-2011, 12:33 PM
  2. How to disable link in posted by and youtube thumbnail link.
    By MarioF in forum Questions & Comments
    Replies: 12
    Last Post: 06-26-2009, 12:00 AM
  3. How can I have an outgoing link as the real link for specific users?
    By getbackerzoo in forum Questions & Comments
    Replies: 6
    Last Post: 03-20-2008, 07:38 AM
  4. Add link to send message to user on link summary
    By halisemre in forum Questions & Comments
    Replies: 1
    Last Post: 01-08-2008, 01:55 PM
  5. Can the URL link be made more visible / title link?
    By jon in forum Questions & Comments
    Replies: 2
    Last Post: 03-21-2007, 12:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting