[SOLVED] Editorial Link is not working

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2007, 12:52 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
The editorial Links (story without link) do not work for me.

I set the value for "Require a URL when submitting" to "false". When I submit a Story without link, the story is submitted correct, but if I click on the Title (pointing to: http://www.mydomain.com/out.php?title=test_editorial) in the "Link Summary" it redirects me to mydomain.com/1 and I get an 404 "Oops, what you're looking for isn't here!".

Is there another setting wich is important for this feature? I tried with setting Outgoing links to true/false but in both case it is not working.

Fresh Pligg 9.5 Beta.


Best Regards

Last edited by 911; 05-16-2007 at 01:52 PM.
Reply With Quote
  #2 (permalink)  
Old 05-16-2007, 02:07 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Update:

If I set "Use story title as link" to "true" it works for Editorial Storys. The Title link goes to "http://www.mydomain.com/pligg/test_editorial/" (Url Type 2 and htacces). But then Titles of link storys are linking directly to the external page, but I want to have the summary page between. But if i set to false, there is always a "1" behind the URL of the Title in Summary Page. (http://www.mydomain.com/pligg/test_editorial/1)

Is it possible to use Editorial Storys with "Use story title as link" set "false"? The only problem is that there is ad the number "1" behind the Url. Is there a fix to prevent this?

Last edited by 911; 05-16-2007 at 02:11 PM.
Reply With Quote
  #3 (permalink)  
Old 05-17-2007, 12:49 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
I'll look into this problem.
Reply With Quote
  #4 (permalink)  
Old 05-17-2007, 03:36 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Nice to hear. Thanks Ash.

Perhaps just dont make the title of an editorial article in summery view an link, So it is just an regular Heading.

Best Regards
Reply With Quote
  #5 (permalink)  
Old 05-17-2007, 07:59 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
I have editet the link_summary.tpl

when I change
PHP Code:
        <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 truetarget="_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>  // linked Title
                
{else} 
                  <
a href="{$story_url}">{$title_short}</a>
                {/if}
            {/if}        
        </
div
to

PHP Code:
        <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 truetarget="_blank"{/if}>{$title_short}</a>
                {else}
                    <
a href="{$story_url}">{$title_short}</a>
                {/if}
             {else}
                {if 
$pagename eq "story"}
                    <
h1>{$title_short}</h1>  // H1 Title 
                
{else} 
                  <
a href="{$story_url}">{$title_short}</a>
                {/if}
            {/if}        
        </
div
This removes link summary title is used as link for editorials. But it also removes the link for non editorials.

Can somebody please enhance that with an if query which checks if it is an editoriel or link story (title linked / title not linked).

Best Regards
Reply With Quote
  #6 (permalink)  
Old 05-20-2007, 01:13 AM
Pligg Donor
 
Join Date: Apr 2007
Posts: 23
Any updates on this please?
Reply With Quote
  #7 (permalink)  
Old 05-20-2007, 10:53 AM
not2serious's Avatar
Pligg Donor
Pligg Version: 1.1.5
Pligg Template: Westie
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 229
I have noticed that I have the same problem.

My editorial stories get an error when the title link is activated from the story page.
Reply With Quote
  #8 (permalink)  
Old 05-20-2007, 12:31 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 51
I solved this problem by setting the outgoing link to "url" instead of "title"... while keeping use story title as link to false

http://elquiosco.net
Reply With Quote
  #9 (permalink)  
Old 05-20-2007, 04:13 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Quote:
Originally Posted by elquiosco View Post
I solved this problem by setting the outgoing link to "url" instead of "title"... while keeping use story title as link to false
This does not work for me. Did this fix the link Title in Link Summary view is targeting to wrong url for you? I tried a few combinations, also testing outgoing links with url/title/id. Does this fix the problem for you other guys?

Nobody who can make the link_title in Summary view an normal heading by removeing the <a href>from the Editorial Storys? This should be done with a little if statement.

Or any other solutions?

Best Regards

Last edited by 911; 05-20-2007 at 04:16 PM.
Reply With Quote
  #10 (permalink)  
Old 05-22-2007, 03:56 AM
darek's Avatar
New Pligger
 
Join Date: Feb 2007
Posts: 4
When changed the following line in libs/link.php

function store() {
...
//$link_url = $db->escape($this->url);//-
$link_url = $this->url===true?'':$db->escape($this->url);//+
...
}

everything seems to work (at least in my case) - but it's a dirty hack
(pligg internals are changed).
I haven't managed to find any other fix at the moment.
Pligg templates handling seems to be very complicated.

regards
Darek
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to make story's title link to original resource? hbtq Questions and Comments 15 02-24-2010 01:40 PM
[SOLVED] Direct link to story instead of going throught out.php or /out/ doit Questions and Comments 10 01-27-2008 06:29 PM
[SOLVED] Links not working properly web20guy Questions and Comments 2 12-16-2007 03:32 PM
[SOLVED]  string appears in Link summary View 911 Questions and Comments 11 07-22-2007 10:19 AM
RSS friendly link not working. can8dn Questions and Comments 4 01-03-2007 07:11 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