View Full Version : [Report Listing] Mod
David
09-21-2005, 05:37 PM
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 (http://www.monster-submit.com/phpld/)
VSDan
09-21-2005, 07:39 PM
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
flashyn
09-21-2005, 07:48 PM
Content visible to registered users only.
that was me- sorry :oops:
i changed it..
thanks a lot for this nice contribution :lol:
VSDan
09-21-2005, 07:51 PM
No problem, my mistake :D And, you're welcome!
Cheers,
Dan
Virtual Solutions
monster-submit.com
David
09-21-2005, 08:36 PM
I updated the zip and added a message in the first post.
Nobody
09-21-2005, 08:37 PM
This shouldn't be too difficult to tweak into a "Recommend link" mod? :)
VSDan
09-21-2005, 08:42 PM
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
Nobody
09-21-2005, 08:49 PM
Great! I'll stay online to standby for download link. Looking forward!
Nobody
09-21-2005, 08:56 PM
I discovered a bug: There's no link back to Directory Home in the top bar.
VSDan
09-21-2005, 09:11 PM
Easy fix - will update shortly. Thanks for the heads up!
Cheers,
Dan
Virtual Solutions
monster-submit.com
Nobody
09-21-2005, 09:13 PM
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.
VSDan
09-21-2005, 09:25 PM
1. Regarding top_bar path, change:
Content visible to registered users only.
to:
Content visible to registered users only.
2. Regarding not getting emails, not sure why. Do sendmail and SMTP use same code (report.php)?
3. There should be no redirection. You should only see confirmation message after submitting form. But in report.tpl, change:
Content visible to registered users only.
to:
Content visible to registered users only.
Cheers,
Dan
Virtual Solutions
monster-submit.com
Nobody
09-21-2005, 09:53 PM
Thanks. Emailing works for me now.
I did a small change that I found made the mod a little more in order:
Find:
Content visible to registered users only.
Replace with:
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.
VSDan
09-21-2005, 10:08 PM
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
Nobody
09-22-2005, 05:21 PM
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.
VSDan
09-22-2005, 06:33 PM
Hi:
Well, I was done until you spoke :D 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
VSDan
09-22-2005, 07:14 PM
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
Nobody
09-22-2005, 08:29 PM
Thanks, good work. Let me give you some feedback.
Open report.php
Find:
Content visible to registered users only.
Replace with:
Content visible to registered users only.
Find:
Content visible to registered users only.
Replace with:
Content visible to registered users only.
Open templates/report.tpl
Find:
Content visible to registered users only.
Replace with:
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.
VSDan
09-22-2005, 08:59 PM
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
Nobody
09-22-2005, 09:12 PM
Great! Have you replaced the above attachment with the new version?
Well, LINK doesn't take me to www.directoryhome.tld/category/subcategory-where-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
VSDan
09-22-2005, 09:31 PM
I have not yet uploaded revised yet. Not until I get $LINK issue resolved. Works on our server, so must be issue with ENV. $LINK is defined as:
Content visible to registered users only.
At what point does it fail? You could try some breakpoints like:
Content visible to registered users only.
Sure, I can add link, if you provide URL.
Cheers,
Dan
Virtual Solutions
monster-submit.com
Nobody
09-22-2005, 11:47 PM
I meant a link simply to my own link directory. Thank you on behalf.
I recently got the idea, that the link on the report page should also be transfered throught the "out" JavaScript tracking. One more click out tracked...
I will test the new LINK settings tomorrow. Thank you.
VSDan
09-23-2005, 12:09 AM
1. That's what I meant - I'll link to your directory (in your tag line) in the mod comment section.
2. I'll leave that to user as a custom edit. Tracking clicks for URL that is reported as bad, does not seem fitting.
3. Do get back to me with the results of your tests. Thanks!
Cheers,
Dan
Virtual Solutions
monster-submit.com
flashyn
09-23-2005, 09:03 PM
another question:
any chance of changing the size of "report"-font to the size of the description of the link??
VSDan
09-27-2005, 09:57 PM
Updated version of [Report Mod] - v1.10
xboxundone
09-28-2005, 06:01 PM
where do i put the files and do i need to make changes to any other files?
VSDan
09-28-2005, 06:45 PM
I would have thought that was self-explanatory as the mod does things like any other mod or phpLD module. My apologies, here you go:
1. Upload report.php to root phpLD directory (same directory as index.php, for example).
2. Upload report.tpl to templates/ directory.
3. Edit your existing templates/link.tpl by adding something like the following:
Content visible to registered users only.
Cheers,
Dan
Virtual Solutions
monster-submit.com
xboxundone
09-28-2005, 06:57 PM
Content visible to registered users only.
Thanks youll have to forgive me i am little slow at times with things :)
VSDan
09-28-2005, 07:09 PM
Not a problem, we all move at our own pace =) I've become bit more familiar with the workings of phpLD from coding mods, that I forget some are not as experienced with modding phpLD. My fault, lesson learned on my part =)
Cheers,
Dan
Virtual Solutions
monster-submit.com
pedrosite
11-09-2005, 12:01 PM
I have installed this mode, i have tried it, but mail don't arrive to me. Waht's the reason? Thanks.
My directory: http://www.pedrosite.it/preferiti
I have solve the problem myself... thanks anyway....
Inspirator
11-11-2005, 06:38 AM
I was thinking of a combi-mod where the visitor can suggest/report a link or category or both. I makes sense that one could suggest/report a link normally choosing a category and when there isn't the right one to suggest a new category.
I am wrong with that?
So why we need 2 mods when we could have it in one?
Just a thought.
Best Regards
Inspirator
Sxperm
12-13-2005, 08:28 AM
I tried following your instruction and when I entered report page I found this error
Listing ID:
Warning: Smarty error: validate: validator id 'v_id' is not registered. in D:\AppServ\www\libs\smarty\Smarty.class.php on line 1088
Listing Title:
Warning: Smarty error: validate: validator id 'v_title' is not registered. in D:\AppServ\www\libs\smarty\Smarty.class.php on line 1088
Listing Category:
Warning: Smarty error: validate: validator id 'v_category' is not registered. in D:\AppServ\www\libs\smarty\Smarty.class.php on line 1088
Sorry for not capture a screen to make you easy understanding but this is all text I found. Please give me some advice.
regards,
Sxperm
thompson
12-20-2005, 04:56 PM
thanks for the mod.
it works great.
NetMarketer
12-28-2005, 06:34 PM
Hi All,
I was wondering if anybody knows why this is happening to me.
I installed the report.tpl and report.php
when I go to the URL with report.php?id=8
The form shows, but no variables are merged. The mail is sent to admin, but no data is there.
the ID 8 is valid.
Any suggestions?
Thanks
-- Never mind figured it out ;-)
VSDan
01-06-2006, 10:45 PM
[Report Listing] mod updated as v1.30 - fixes some issues, and includes enhancements.
mikedippel
01-07-2006, 12:12 AM
As usual, your mods are right on the money! I just installed the report.php upgrade. One thing: would it be possible to define the admin login URL at the very bottom of the email that gets sent to the webmaster? This would result in a clickable link to admin to make it easier to login to edit.
Thanks again.
LinkReal
01-08-2006, 11:58 PM
Content visible to registered users only.
rock-on this MOD is hot!!! :twisted:
Thanks VSDan
now if i can just find the rating one...
GiveItaGo
01-18-2006, 04:53 PM
Hi
I just tried to download this MOD but it is no longer there?
Does anybody know I can get it or have a copy of it?
Many thanks in advance
Regards
Paul
VSDan
01-18-2006, 05:22 PM
I don't know what happened, but I re-uploaded. Issue fixed =)
GiveItaGo
01-18-2006, 06:12 PM
Dan
Works perfectly now - the download and the MOD - thankyou very much.
I have sent you an email regarding the other requets I have and am looking forward to hearing from you.
kind regards
Paul
VSDan
01-30-2006, 07:15 AM
[Report Listing] Mod v1.40
Changes:
Improved security by adding check for email injection (sql injection was never an issue).
Upgrade:
1. You only need to replace report.php.
2. Define your email address in [LINE 14] of report.php by setting $email variable. For example:
$email = 'directory@yourdomain.com';
John D
02-06-2006, 08:44 PM
Hey,
I had this working fine but I changed my style and had a coder work on some things and now this mod isn't working.
Heres an example of what hte URL is going to:
%7B$smarty.const.DOC_ROOT%7D/report.php?id=%7B$link.ID%7D
Anyone know what's gone wrong?
Thanks
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.