New Mod -- Display related stories

Register an Account
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 03-14-2007, 11:31 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
The above query wasn't the right one, here is the one I should have used:

Quote:
SELECT pligg_links.link_title, pligg_links.link_title_url, COUNT( pligg_tags.tag_link_id ) AS relevance, pligg_tags.tag_link_id FROM pligg_tags, pligg_links WHERE pligg_tags.tag_words IN ( 'web', 'security', 'technology' ) AND pligg_tags.tag_link_id = pligg_links.link_id AND pligg_links.link_status != 'discard' AND NOT pligg_links.link_id = 58
and here is the error I get:

Quote:
#1140 - Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Geoserv
Reply With Quote
  #22 (permalink)  
Old 03-14-2007, 03:06 PM
New Pligger
 
Join Date: Mar 2007
Posts: 9
Geoserv can you attach your html1.php file, I'll take a look at it.
Reply With Quote
  #23 (permalink)  
Old 03-14-2007, 11:17 PM
Casual Pligger
 
Join Date: Nov 2006
Posts: 41
1. this mod is not working
all stories same tags, same category/ category off
notting
my test server on mysql 4.1.x

mod only works with mysql 5.x.x

any help?

thank you

Last edited by diablo; 03-16-2007 at 08:41 AM.
Reply With Quote
  #24 (permalink)  
Old 03-15-2007, 01:34 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
diablo, are you testing with published stories?
Reply With Quote
  #25 (permalink)  
Old 03-15-2007, 07:03 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Here is my html1.php file, I put in txt format for the purpose of uploading it here.

Thanks,
Geoserv.
Attached Files
File Type: txt html1.txt (29.8 KB, 181 views)
Reply With Quote
  #26 (permalink)  
Old 03-15-2007, 10:02 AM
Casual Pligger
 
Join Date: Oct 2006
Posts: 89
i wanted to add this mod in the sidebar, so that it would be a little easier to see. is there some sort of if statement i could add so that it only shows up in story.php, also i seem to be having the same problem as Geoserv

thanks

Last edited by boardsource; 03-15-2007 at 10:18 AM.
Reply With Quote
  #27 (permalink)  
Old 03-15-2007, 11:18 AM
Casual Pligger
 
Join Date: Nov 2006
Posts: 41
ok fixed

thank you

Last edited by diablo; 03-16-2007 at 08:42 AM.
Reply With Quote
  #28 (permalink)  
Old 03-15-2007, 02:05 PM
New Pligger
 
Join Date: Mar 2007
Posts: 9
Quote:
Originally Posted by Geoserv View Post
Here is my html1.php file, I put in txt format for the purpose of uploading it here.

Thanks,
Geoserv.
Hi Geoserv,

I tried it on my site with your html1.php file and did not get any results. I made one small cahnge and got results as before:

Try changing

link_status = 'upcoming'

to

link_status != 'discard'

If that doesn't work for you then the problem is in the templating portion of the mod.

Bert
Reply With Quote
  #29 (permalink)  
Old 03-15-2007, 03:56 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
I tried that already, so there must be something else preventing it from working.

Thanks for looking.

Geoserv.
Reply With Quote
  #30 (permalink)  
Old 03-15-2007, 05:08 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
Tried this and that but still having the same problem.
Diablo, could you tell how you got this mod working?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Related Stories from Digg, Twitter, YouTube alpapa23 Questions and Comments 0 08-04-2009 04:50 PM
Related Stories on Story Page canadianguy33 Questions and Comments 8 03-22-2008 03:39 PM
Related Stories Geoserv Questions and Comments 15 07-08-2007 12:21 PM
Related stories empty when tags separated by space aaronpais Questions and Comments 5 06-18-2007 11:32 PM
How can you make "Queued Stories" display promoted stories as well? gragland Questions and Comments 0 06-18-2006 01:24 AM


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