PDA

View Full Version : Fix: Notification when link is deleted (or rejected).


yktan
07-14-2005, 10:55 AM
Here's a quick fix to send out notifications when links are deleted:

Open admin\dir_links_edit.php
Find:
Content visible to registered users only.
Add below:
Content visible to registered users only.

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

Note: Like the approve process, this notification is only send out if the link is not previously approved (set active) or set inactive.

yktan
07-22-2005, 04:02 AM
Hi, due to a redirection problem, I've modified the Mod. Please apply this Mod instead of the previously posted one if you are being redirected out of ACP when you delete a link:

Open admin\dir_links_edit.php
Find:
Content visible to registered users only.
Add below:
Content visible to registered users only.

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

Note: Like the approve process, this notification is only send out if the link is not previously approved (set active) or set inactive.

Also note: This is a temporary fix.

Note for dcb: The original Mod that is posted is theoretically correct but I'm getting an incorrect $_SERVER['HTTP_REFERER'] when it enters the dir_links_edit.php when I am using Internet Explorer. Mozilla Firefox is sending up the correct REFERER. Any ideas on how to fix this? I searched high and low and it is explicitly documentated that that variable is heavily dependant on the agent to be set correctly.

minstrel
07-22-2005, 06:00 AM
That worked for me, yktan!