|
| |||||||
| 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 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | Big Thanks to VSDan for this mod, which I hope we can add as an option in future releases. ![]() Description: Allows surfer to report links (e.g., listing does not load, listing violates the rules) to webmaster, who receives reports via email. Demo: http://www.monster-submit.com/directory/index.php?p=d (click on 'Report' link) Download: http://www.monster-submit.com/phpld/ To download this and other VS mods, please go here : VS phpLD Mods __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #2 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | IMPORTANT NOTICE You need to edit report.php, and change email address to receive emails. By default it is set to support@monster-submit.com. I just realized this when I received my first email from someone who had just installed the mod, and tested it. David: can you update ZIP file by undefining email address. Regards, Dan Virtual Solutions monster-submit.com |
| |
| | #3 |
| Join Date: Jul 2005 Posts: 28 | Code: Content visible to registered users only. ops: i changed it.. thanks a lot for this nice contribution :lol: |
| |
| | #4 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | No problem, my mistake And, you're welcome!Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #5 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | I updated the zip and added a message in the first post. |
| |
| | #6 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | This shouldn't be too difficult to tweak into a "Recommend link" mod? |
| |
| | #7 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | You guessed it =) [Refer Listing] mod coming up shortly - already written and tested, just have to ZIP and pass over to David. Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #8 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | Great! I'll stay online to standby for download link. Looking forward! |
| |
| | #9 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | I discovered a bug: There's no link back to Directory Home in the top bar. |
| |
| | #10 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Easy fix - will update shortly. Thanks for the heads up! Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #11 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | Thank you for sharing the mod. Also, I think one should be redirected to directory home after email sent - not "www.domain.tld/directory/report.php"... However, I've tested it a few times from my site with different email adresses in report.php, but it seems like no emailas are beeign sent. Any ideas how come? I use SMTP in admin settings. |
| |
| | #12 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | 1. Regarding top_bar path, change: Code: Content visible to registered users only. Code: Content visible to registered users only. 3. There should be no redirection. You should only see confirmation message after submitting form. But in report.tpl, change: Code: Content visible to registered users only. Code: Content visible to registered users only. Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #13 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | Thanks. Emailing works for me now. I did a small change that I found made the mod a little more in order: Find: Code: Content visible to registered users only. Code: Content visible to registered users only. I also have another idea: It would be great if the email also indicated the URL to the specific category where the reported link is situated. Additionally, it would be nice if the thanks message after report has been sent, also included a link back to present category where the links was listed - just to serve the visitors and sort of guide them to were they were before they wanted to help. |
| |
| | #14 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | 1. Good idea, to preserve continuity, I will apply same path naming convention as phpLD. 2. Great ideas, I'll incorporate both ideas into next version, v1.10. Thanks! Maybe release later today. Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #15 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | Cheers Dan, what's the progress? I wonder of you can also integrate description in the end-user report page. I thinks it's relevant information as well. One more thing: Directory Home > Report {site_title} as well as in <title> and <h1>, description and so on. |
| |
| | #16 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Hi: Well, I was done until you spoke Will do:1. I can add description. Quick and easy. 2. Directory Home > Report {site_title} already done. 3. These, are I believe, are from out-of-the-box templates. My template is what I tailored for my site. I'll update to re-add those in to maintain continuity with other stock templates. Tad bogged down with other business, but will have 1.10 posted later today. Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #17 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Report Mod v1.10 (BETA) attached. Try it out, and get back to me. Once we figured it is done, I'll hand over to David to be posted in the Mods and Contributions forum. Others may want to wait. Ensure you change email address in report.php. Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #18 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | Thanks, good work. Let me give you some feedback. Open report.php Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. Open templates/report.tpl Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Oh-oh. I believe the {$LINK} variable isn't perfectly right setup. In my case, it simply links back to the directory home. |
| |
| | #19 |
| Supporter Moderator Join Date: Sep 2005 Location: Vancouver, BC, Canada Posts: 1,184 | Implemented. Regarding $LINK. It should take you to the actual listing (of site you reported) in the directory, and not the page you clicked on [Report]. I'm not completely happy with this solution, but using referer captured earlier is not reliable - referer, is more often than not, not defined as many surfers use firewalls, which are often set to not pass referer. What is the URL of your $LINK (when you hold mouse cursor over link, and read message bar)? May be problem with PHP predefined env variables that report.php pulls. Cheers, Dan Virtual Solutions monster-submit.com |
| |
| | #20 |
| Supporter Join Date: Aug 2005 Location: Sweden Posts: 218 | Great! Have you replaced the above attachment with the new version? Well, LINK doesn't take me to http://www.directoryhome.tld/categor...e-the-link-is/ Could I please have a link in the top mod info text as well, for feedback, testing and bug tracking? Svenska Länkkatalogen http://www.lankkatalogen.se |
| |