Go Back   Pligg Forum > Pligg Development > Bug Report
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2008, 08:10 AM
echo4224 echo4224 is offline
New Pligger
Pligg Version: 9.9
Pligg Template: standard, with some edits.
 
Join Date: Jan 2008
Posts: 12
Downloads: 10
Uploads: 0
Thanks: 0
Thanked 1 Time in 1 Post
[SOLVED] Cannot disable outgoing links

When your pligg site contains original content, and does not depend on stories from the net, the story's title should not link to a website.

Disabling it from the control panel still causes the title to link to 'http:/' and the browser would seem to be loading indefinitely..

I fixed me problem, hacked the code so it would reload the story when the title is clicked. i just wanted to mention it here.
Reply With Quote
The Following User Says Thank You to echo4224 For This Useful Post:
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 03-08-2008, 07:32 PM
webdevil2003 webdevil2003 is offline
New Pligger
 
Join Date: Aug 2006
Posts: 12
Downloads: 6
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by echo4224 View Post
When your pligg site contains original content, and does not depend on stories from the net, the story's title should not link to a website.

Disabling it from the control panel still causes the title to link to 'http:/' and the browser would seem to be loading indefinitely..

I fixed me problem, hacked the code so it would reload the story when the title is clicked. i just wanted to mention it here.

Can you share how did you do it?

Thanks
Reply With Quote
  #3 (permalink)  
Old 03-13-2008, 12:26 PM
farzad farzad is offline
Send a message via AIM to farzad
New Pligger
 
Join Date: Feb 2008
Posts: 2
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
this is exactly what i want as well.
Reply With Quote
  #4 (permalink)  
Old 05-06-2008, 02:39 AM
jalemathai jalemathai is offline
New Pligger
 
Join Date: May 2008
Posts: 4
Downloads: 7
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Was this hack ever captured or documented ? It sounds like a good fit for a problem I am encountering.

Cheers,
J
Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 03:21 AM
echo4224 echo4224 is offline
New Pligger
Pligg Version: 9.9
Pligg Template: standard, with some edits.
 
Join Date: Jan 2008
Posts: 12
Downloads: 10
Uploads: 0
Thanks: 0
Thanked 1 Time in 1 Post
Hello Everyone,

My apologies for the late reply!! I don't check the forum often. Here is what I did, it's very "dirty" :

- From the web based admin menu, i turn outgoing links ON.
- in the file /lib/html1.php I replaced two references of out.php to story.php.

If ($x == "out") {return my_pligg_base."/story.php?id=" . $var1;}
If ($x == "outtitle") {return my_pligg_base."/story.php?title=" . $var1;}

And that's it.

Another solution is to just delete the original out.php, and save a copy of story.php with that name to replace it. I think that would work too (with outgoing links ON from the admin menu)


I DO NOT recommend these solutions, it's a very dirty hack, I wouldn't be surprised if stuff starts to blow up in your face. I am very inexperienced in PHP, and was too lazy to follow the real root of the problem.

- Sam
Reply With Quote
  #6 (permalink)  
Old 05-06-2008, 09:10 AM
echo4224 echo4224 is offline
New Pligger
Pligg Version: 9.9
Pligg Template: standard, with some edits.
 
Join Date: Jan 2008
Posts: 12
Downloads: 10
Uploads: 0
Thanks: 0
Thanked 1 Time in 1 Post
Actually, I think they were three references, not two ! ..

in html1.php .. do a search and replace out.php with story.php everywhere.
Reply With Quote
  #7 (permalink)  
Old 05-06-2008, 10:27 PM
jalemathai jalemathai is offline
New Pligger
 
Join Date: May 2008
Posts: 4
Downloads: 7
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks echo! I replaced out.php with story.php and that seems to have done the trick.

Cheers
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

vB code is On
Smilies are On
[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
Advantage of outgoing links tbones General Help 4 05-29-2007 02:14 AM
Why does outgoing links not work with url method2? mbs348 General Help 10 02-28-2007 04:11 AM
[Fixed] Outgoing links and urlmethod2 cybex Bug Report 5 02-12-2007 07:31 AM
static outgoing links with pligg Marc Pligg Templates 0 01-12-2007 04:47 AM
HELP! Outgoing links are all redirecting to my site argash General Help 5 01-11-2007 05:47 PM


LinkBacks Enabled by vBSEO 3.0.0