|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | topic widgets |
| | #1 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | The following mod will highlight terms in the search results page. As easy as 1-2-3: Step 1 Open templates/link.tpl: Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Cheers, Dan Virtual Solutions monster-submit.com Last edited by VSDan; 12-23-2006 at 07:38 PM. |
| |
| | #2 |
| Join Date: Jul 2005 Posts: 70 | Can we see this working? |
| |
| | #3 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Sure can: go to the following URL, and enter webmaster as search term: http://www.monster-submit.com/directory/ Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #4 |
| Supporter Join Date: Dec 2005 Posts: 484 | Thanks for a great mod everything works as instructed. Yet I seem to be having the problem of words being over-highlighted. For instance a search for 'hosting' finds 'Linux hosting' - hosting will be highlighted but the space before it will also be highlighted along with the word. This over-highlighting poses problems as the process dosen't seem to recognise 'hosting' if 'linuxhosting' is placed together as one word. I don't understand maybe its me any help much appreciated, thanks Neticus |
| |
| | #5 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Hi Neticus: I don't have that problem myself. Can you provide URL to your directory so I can check. __________________ Dan █ phpLD Mods :: phpLD_Vault █ Webmaster Resources Directory █ phpLD_Vault Support IMPORTANT NOTE: phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions! |
| |
| | #6 |
| Supporter Join Date: Dec 2005 Posts: 484 | Hi VSDan, have figured it out as suspected it was a problem from my side. Sorry my bad! What it was was I had removed 'Search Results for: ' in the following code in index.php, Yet had also left a space inbetween the commas when I did so, thus ' ' when it should have been '' . That space was also being processed as part of the search hence the over-highlighting effect. Code: Content visible to registered users only. So thats the downlow! Again thanks for the reply. Cheers Neticus. |
| |
| | #7 |
| Supporter Join Date: Oct 2005 Posts: 41 | I can't seem to get this working...I've added the code as supplied, but the search terms won't highlight :( __________________ ] |
| |
| | #8 |
| Supporter Join Date: Oct 2005 Posts: 41 | Any idea what the problem could be? :?: __________________ ] |
| |
| | #9 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Is this where it is being used: /php/ Can you post your link.tpl. __________________ Dan █ phpLD Mods :: phpLD_Vault █ Webmaster Resources Directory █ phpLD_Vault Support IMPORTANT NOTE: phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions! Last edited by David; 05-17-2010 at 11:06 PM. |
| |
| | #10 |
| Supporter Join Date: Oct 2005 Posts: 41 | Sure, thanks: Code: Content visible to registered users only. __________________ ] |
| |
| | #11 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | This could take some debugging. Can you send me your FTP access information? If so, then you can send c/o support at monster-submit dot com __________________ Dan █ phpLD Mods :: phpLD_Vault █ Webmaster Resources Directory █ phpLD_Vault Support IMPORTANT NOTE: phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions! |
| |
| | #12 |
| Join Date: Jan 2006 Posts: 5 | Along with angeljs I also added the code as supplied, but the search terms won't highlight. I also just installed phpLD and everything else seems to work great. I tried to do some debugging, but as a newby without too much php experience I'm trying my best. I did find that the following Code: Content visible to registered users only. Search results for: term But will not highlight just "term". The search though pulls out all links with "term" in them. So in a list I have the following highlights: This is a link with the word term, which won't highlight, but Search results for: term will highlight. Weird huh. Any help would be great. Thanks! |
| |
| | #13 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Can you post your index.php and main.tpl files. __________________ Dan █ phpLD Mods :: phpLD_Vault █ Webmaster Resources Directory █ phpLD_Vault Support IMPORTANT NOTE: phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions! |
| |
| | #14 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | I think I see the problem (should have mentioned in my instructions). In index.php, change: Code: Content visible to registered users only. Code: Content visible to registered users only. __________________ Dan █ phpLD Mods :: phpLD_Vault █ Webmaster Resources Directory █ phpLD_Vault Support IMPORTANT NOTE: phpLD_Vault Support not handled in this forum AND not via PM here. Click on link above for support. NO exceptions! |
| |
| | #15 |
| Join Date: Jan 2006 Posts: 5 | Thanks VSDan for the fix! I also added some extras in order to highlight multiple word searches (seperated by spaces). replace Code: Content visible to registered users only. Code: Content visible to registered users only. Last edited by VSDan; 07-30-2006 at 06:41 PM. |
| |
| | #16 |
| Join Date: Nov 2005 Posts: 159 | Hey, This doesn't seem to highlight it for me.. Try a search on All Dot Net - Don't see any differences. Thanks Last edited by David; 05-17-2010 at 11:06 PM. |
| |
| | #17 |
| Supporter Join Date: Dec 2005 Posts: 484 | Have you tried this yet?: http://www.phplinkdirectory.com/foru...hp?p=9284#9284 Last edited by David; 05-17-2010 at 11:05 PM. |
| |
| | #18 |
| Join Date: Nov 2005 Posts: 159 | Thanks a lot ![]() There were that many replies with different fixes I read it a few times but still missed a lot |
| |
| | #19 |
| Supporter Join Date: Mar 2006 Posts: 22 | thanks, Lynda |
| |
| | #20 |
| Supporter Join Date: Oct 2005 Posts: 41 | Oh, dear, now something else has happened. __________________ ] Last edited by David; 05-17-2010 at 11:07 PM. |
| |