Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2008, 07:56 AM
New Pligger
 
Join Date: Jul 2008
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
how to completely REMOVE links from the title in the full story page?

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, 08:47 AM
Casual Pligger
 
Join Date: Jul 2008
Posts: 42
Thanks: 1
Thanked 1 Time in 1 Post
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
__________________
ArmchairGM.net
Reply With Quote
  #3 (permalink)  
Old 07-23-2008, 10:45 AM
New Pligger
 
Join Date: Jul 2008
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
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, 11:21 AM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Thanks: 20
Thanked 102 Times in 65 Posts
Removing the title link in the full story

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
The Following User Says Thank You to redwine For This Useful Post:
  #5 (permalink)  
Old 07-23-2008, 12:20 PM
New Pligger
 
Join Date: Jul 2008
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
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 :D

Cya!
Reply With Quote
  #6 (permalink)  
Old 09-18-2008, 09:26 AM
New Pligger
 
Join Date: Jun 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Change page title only for story page - Google hadock General Help 12 11-23-2008 07:29 AM
How to direct story title in summary page to the original story? chris79 General Help 4 02-03-2008 07:28 PM
Page Title - Instant Need plum Suggestions 5 10-17-2007 01:57 PM
full story (not summary) on index page revolver General Help 2 06-24-2007 11:03 AM
story title as link on Story single page pogung177 General Help 3 01-26-2007 11:25 AM


Search Engine Friendly URLs by vBSEO 3.2.0