Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
topic widgets
Old 09-21-2005   #1
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default [Report Listing] Mod

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
David is offline  
Old 09-21-2005   #2
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

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
VSDan is offline  
Old 09-21-2005   #3
flashyn
 
Join Date: Jul 2005
Posts: 28
Default

Code:
Content visible to registered users only.
that was me- sorry ops:

i changed it..

thanks a lot for this nice contribution :lol:
flashyn is offline  
Old 09-21-2005   #4
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

No problem, my mistake And, you're welcome!


Cheers,

Dan
Virtual Solutions
monster-submit.com
VSDan is offline  
Old 09-21-2005   #5
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

I updated the zip and added a message in the first post.
David is offline  
Old 09-21-2005   #6
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

This shouldn't be too difficult to tweak into a "Recommend link" mod?
Nobody is offline  
Old 09-21-2005   #7
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

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
VSDan is offline  
Old 09-21-2005   #8
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

Great! I'll stay online to standby for download link. Looking forward!
Nobody is offline  
Old 09-21-2005   #9
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

I discovered a bug: There's no link back to Directory Home in the top bar.
Nobody is offline  
Old 09-21-2005   #10
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

Easy fix - will update shortly. Thanks for the heads up!


Cheers,

Dan
Virtual Solutions
monster-submit.com
VSDan is offline  
Old 09-21-2005   #11
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

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.
Nobody is offline  
Old 09-21-2005   #12
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

1. Regarding top_bar path, change:

Code:
Content visible to registered users only.
to:

Code:
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:

Code:
Content visible to registered users only.
to:

Code:
Content visible to registered users only.

Cheers,

Dan
Virtual Solutions
monster-submit.com
VSDan is offline  
Old 09-21-2005   #13
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

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.
Replace with:
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.
Nobody is offline  
Old 09-21-2005   #14
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

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
VSDan is offline  
Old 09-22-2005   #15
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

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.
Nobody is offline  
Old 09-22-2005   #16
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

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
VSDan is offline  
Old 09-22-2005   #17
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

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
VSDan is offline  
Old 09-22-2005   #18
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

Thanks, good work. Let me give you some feedback.


Open report.php

Find:

Code:
Content visible to registered users only.
Replace with:

Code:
Content visible to registered users only.
Find:
Code:
Content visible to registered users only.
Replace with:
Code:
Content visible to registered users only.

Open templates/report.tpl

Find:

Code:
Content visible to registered users only.
Replace with:
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.
Nobody is offline  
Old 09-22-2005   #19
VSDan
Supporter
Moderator
 
VSDan's Avatar
 
Join Date: Sep 2005
Location: Vancouver, BC, Canada
Posts: 1,184
Default

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
VSDan is offline  
Old 09-22-2005   #20
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

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
Nobody is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.