PDA

View Full Version : Report this link


flashyn
07-14-2005, 03:46 PM
I am a little nervous about people changing their site after it has been approved. Imagine that people redirect to a **censored****censored****censored****censored** or racist site...
It would be nice to have a "report this link" button.

For me it would be enought if it opened an email with "report this link" in the subject heading and the name of the link.

Do you think this is easy to code?

thx

springdot
07-14-2005, 03:57 PM
You could always just add it to the header or footer template, so it would appear on every page....

Either use a mailto: link so it will start an email for the visitor, or add a shortcut to a complaint form they could fill in?

flashyn
07-14-2005, 04:03 PM
yeah, good idea. :lol:

I would like to put it beneath the description of a link. Do you happen to know where I find this line of Code??

cheers

springdot
07-14-2005, 04:12 PM
I hadn't thought of that, but it's a really good idea... give me a minute, and i'll see if I can find where...

springdot
07-14-2005, 04:17 PM
OK, if you open templates/link.tpl and go right to the bottom, you will the following code :

Content visible to registered users only.


I would suggest changing Content visible to registered users only. to

Content visible to registered users only.

This should add the text "Report this link" under the description (no spaces) - you will obviously need to edit what I have above so it has your particular link in, and any formatting you would like.


Cheers
James

flashyn
07-14-2005, 04:25 PM
wow, that was quick :D

I'll try to change it and keep you updated.

springdot
07-14-2005, 05:08 PM
flashyn, I actually liked your idea so much I've implemented it on my directory ...

If you want to look at what I've done, have a look at www.londonbusinesslinks.co.uk and check out any of the links.....

I opted to have the "report" bit follow the text of the description and separated only by ... but there's no reason why you couldn't have it on a new line or anything else....

I also chose to make the link redirect to a form, rather than use a mailto: because this way your email address isn't as plastered all over the internet!

Cheers
James

flashyn
07-14-2005, 06:52 PM
yes, this looks very nice..!

one thought:

is { $link.URL} the id of the link??

if so, couldn't the link id automatically be put in the form, so that the user doesn't have to remember the details of the link?

*sorry* I really do not know too much about coding :oops:

another question: would you mind if i "stole" the code of report.htm?

springdot
07-14-2005, 07:04 PM
Content visible to registered users only.

I'm not sure of this, and can't check at the moment - I will get back to you later though. There has to be a way to include the link details in the form automatically.

As for the code from my report page - check your private messages!! :)


Cheers
James

David
07-14-2005, 07:11 PM
That's pretty cool.
Looks like something we will want to offer as an option.

Valtar
07-14-2005, 08:07 PM
Yea this is a nice one I'm in the process of putting it in my code, Good work, James!

minstrel
07-23-2005, 07:36 PM
Here is the \temp[lates\link.tpl file with this feature implemented on my site:

Content visible to registered users only.This fully automates the email and includes the URL of the bad link in the body of the email. All the visitor has to do is hit "Send".

Ap0s7le
07-24-2005, 01:33 AM
I'm about to leave, but I thought I'd write this up before I did.

I created a 'report.php' which takes the ID of the offending link and emails you the info along with a link to the admin.

I left the options open in it to be able to accept a Thank you/Error page.
There are comments in the code, and the report script needs a lil info from you.

No biggie.

Anyhow, I also modified the link.tpl to handle this. I had it popup a confirm box when you click on Report Link and made the symbol into it's proper code.

I don't have the Thank you page setup right now so it'll just reload the page you sent it from.

Let me know if anyone tries it,

thanks