Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2006, 07:39 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 439 Times in 278 Posts
"Find More Stories Like This" /Hack

Here is a simple hack to add a "find more like this"
to your stories..

1 open yourtemplate/link_summary.tpl

2 directly after
Code:
admin links</a>
        </span>
3 enter the following code
Code:
| <a href="{$my_base_url}{$my_pligg_base}/search.php?search={$tags}">find more like 

this</a>
It should look something like this..


Enjoy!
__________________
Visit PliggPro the official Pligg Mods & Template Shop!


Last edited by chuckroast; 11-17-2006 at 07:43 PM..
Reply With Quote
The Following 15 Users Say Thank You to chuckroast For This Useful Post:
  #2 (permalink)  
Old 11-18-2006, 04:59 AM
New Pligger
 
Join Date: Nov 2006
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
that was so great of you thankx
Reply With Quote
  #3 (permalink)  
Old 12-07-2006, 12:14 AM
Constant Pligger
 
Join Date: Oct 2006
Posts: 136
Thanks: 5
Thanked 0 Times in 0 Posts
Does this search for all the tags?
__________________
www.StartupBug.com : User submitted content for Entrepreneurs
www.tutoriALLs.com : ALL the user submitted tutoriALls in one place
Reply With Quote
  #4 (permalink)  
Old 12-07-2006, 12:15 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
It only searches for stories that have the EXACT same tags as the story in question.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #5 (permalink)  
Old 12-07-2006, 05:13 AM
Constant Pligger
 
Join Date: Oct 2006
Posts: 136
Thanks: 5
Thanked 0 Times in 0 Posts
Okay... looks like i am still missing something...

Consider this example...

Story 1 has following tags - tag1, tag2, tag3
Story 2 has following tags - tag2, tag4, tag5
Story 3 has following tags - tag6, tag4, tag1

Now lets say, i clicked on the link 'find more like this' for story 1... does it show the results like;

1. All 3 stories because tag 2 is used for 2 stories stories along with other different tags and tag1 is common for story 3 and story 1?
Thanks and sorry to bother u.

Cheers
__________________
www.StartupBug.com : User submitted content for Entrepreneurs
www.tutoriALLs.com : ALL the user submitted tutoriALls in one place
Reply With Quote
  #6 (permalink)  
Old 12-07-2006, 08:56 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
No, it will not find any stories. The mod only finds stories that have the exact same three tags as story one.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #7 (permalink)  
Old 12-07-2006, 03:59 PM
pogung177's Avatar
Casual Pligger
 
Join Date: Dec 2006
Posts: 41
Thanks: 7
Thanked 3 Times in 2 Posts
short hack, big usefull
Reply With Quote
  #8 (permalink)  
Old 12-28-2006, 04:59 AM
New Pligger
 
Join Date: Dec 2006
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
really cool.
I love this
Reply With Quote
  #9 (permalink)  
Old 12-28-2006, 01:32 PM
New Pligger
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Perhaps there is a way to make this work better...

1. if the search function were smart enough to use the OR operator, you could create a string that would look for any of the tags.
Reply With Quote
  #10 (permalink)  
Old 01-07-2007, 05:55 PM
New Pligger
 
Join Date: Dec 2006
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Just implemented this hack on my site: http://www.buildersreputation.com and I am loving it. Thanks chuckroast for posting it!
__________________
Pligg rocks...
Does your home builder suck?
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 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
New Mod -- Display related stories revenazb Modification Tutorials 46 07-07-2007 01:19 AM
Pligg beta 9.5 [updated] kbeeveer46 Current Version 0 04-29-2007 09:58 PM
"Save this" / "My Stories" completed MOD eH9116 Modification Tutorials 19 04-13-2007 08:40 AM
"Top" in top Stories Sokora General Help 1 01-30-2007 10:30 PM
No pagination for stories in profile kbeeveer46 Bug Report 0 08-07-2006 01:22 AM


Search Engine Friendly URLs by vBSEO 3.2.0