how to completely REMOVE links from the title in the full story page?

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2008, 08:56 AM
New Pligger
 
Join Date: Jul 2008
Posts: 19
I have my site set, so that when you're in the "published" page (viewing the summaries of all the stories), if you click the title of the story, it will take you to the 'full story' page. Everything alright.

But now, in the 'full story' page, when the user clicks on the story title again, I DON'T want it to link to the source site! I'd like that link removed, or maybe be an "auto-link" to the full story again.

My intention is to leave the link to the source site ONLY in the URL that appears next to the title.

This way, if there's no URL (editorial), there's no link at all. And if there is, the link will be in the URL, but not ni the story title.

How can I do this? I've been trying to edit story.php and some template files too, but all without success.

Also, if I submit no URL, the title will link to something like "www.mysite.com/1", which is frustrating. I've tried other solutions in the forum about this but they don't seem to work for me. How could I remove this?

Any help would be greatly appreciated, as I'm really getting lots of problems to make this run.
Reply With Quote
  #2 (permalink)  
Old 07-23-2008, 09:47 AM
New Pligger
 
Join Date: Jul 2008
Posts: 28
What I usually do for an editorial is set it to my url off the bat, "www.mysite.com." After it is published that editorial will be given a new url with the title you entered. For instance, http://www.mysite.com/story.php?titl...make-ice-cream. Then I use the admin settings to change the url of the editorial. It is a little work but I don't write than many editorials. If this is done correctly the links should take you right back to the that specific editorial. Hope this helps.

Bryan
Reply With Quote
  #3 (permalink)  
Old 07-23-2008, 11:45 AM
New Pligger
 
Join Date: Jul 2008
Posts: 19
Hmm... thanks for your reply. But this is not a very good solution to me, as I plan on writing lots of editorials (but with some linked articles too) and I would need it done automatically.

I'm sure there must be something that can be edited to just completely remove the link from the title (in such a way that only the actual source URL acts as a link, not the title). Maybe some template file that can be changed?? I've been looking at the different files (story_center.tpl being one of them), but I can't seem to find it?

Or maybe it would be possible to just make it so that every title systematically points to the full story again?

Any help please?
Reply With Quote
  #4 (permalink)  
Old 07-23-2008, 12:21 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
To remove the link when the story is viewed in full (page = story) change the following in /templates/yourtemplate/link_summary.tpl
Remove the code in RED
Code:
<div class="top"> 
  <div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
   {if $use_title_as_link eq true}
    {if $url_short neq "http://" && $url_short neq "://"}
     <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
    {else}
     <a href="{$story_url}">{$title_short}</a>
    {/if}
       {else}
    {if $pagename eq "story"}
     <a href="{$url}">{$title_short}</a>
    {else} 
      <a href="{$story_url}">{$title_short}</a>
    {/if}
   {/if}        
  </div>
Reply With Quote
  #5 (permalink)  
Old 07-23-2008, 01:20 PM
New Pligger
 
Join Date: Jul 2008
Posts: 19
Quote:
Originally Posted by redwine View Post
To remove the link when the story is viewed in full (page = story) change the following in /templates/yourtemplate/link_summary.tpl
Remove the code in RED
Code:
<div class="top"> 
  <div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
   {if $use_title_as_link eq true}
    {if $url_short neq "http://" && $url_short neq "://"}
     <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
    {else}
     <a href="{$story_url}">{$title_short}</a>
    {/if}
       {else}
    {if $pagename eq "story"}
     <a href="{$url}">{$title_short}</a>
    {else} 
      <a href="{$story_url}">{$title_short}</a>
    {/if}
   {/if}        
  </div>
Wow... thanks a lot! That was exactly what I was looking for, but I didn't know which file to edit.

I think I'll play around a lot with link_summary.tpl until I customize everything to my taste

Cya!
Reply With Quote
  #6 (permalink)  
Old 09-18-2008, 10:26 AM
New Pligger
 
Join Date: Jun 2008
Posts: 22
I've been remove the code in RED at link_summary.tpl but I don't get result, any someone help me please
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
Change page title only for story page - Google hadock Questions and Comments 15 03-02-2011 12:27 PM
How to direct story title in summary page to the original story? chris79 Questions and Comments 4 02-03-2008 08:28 PM
full story (not summary) on index page revolver Questions and Comments 2 06-24-2007 12:03 PM
How to open story page when click story title? jetbrains Questions and Comments 1 08-19-2006 11:09 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development