Weblinks Notification Hack/Script?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Weblinks Notification Hack/Script?
ZardozZ
CZ Super Newbie
 Codezwiz Site Donator
ZardozZ has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Chief Wizard
Age: 74
Gender: Male
Website:
Status: Offline
Joined: Sep 04, 2005
0.00 posts per day
Posts: 34
Points: 2,381
   
Does anyone know of a hack or script that would notify the admin of a Waiting Link for review in the WebLinks module? Similar to the email notification sent to the admin when a user leaves a news article for review?

tnx in advance for any help...
ZZ




_________________
ZZ Bachman / [ Register or login to view links on this board.]
Have a Blog? Ring Surf it @ [ Register or login to view links on this board.]
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
If you attach your modules/Web_Links/admin/index.php I can take a look for you.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Weblinks Notification Hack/Script?
ZardozZ
CZ Super Newbie
 Codezwiz Site Donator
ZardozZ has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Chief Wizard
Age: 74
Gender: Male
Website:
Status: Offline
Joined: Sep 04, 2005
0.00 posts per day
Posts: 34
Points: 2,381
   
Here is my Weblinks admin/ index.p h p
attached.... I would like it to notify the aqdmin's email when a new link has arrived in the queue waiting review...

ZZ



Attached Files
index.txt (44.45 KB, Downloaded: 5234 Time(s))



_________________
ZZ Bachman / [ Register or login to view links on this board.]
Have a Blog? Ring Surf it @ [ Register or login to view links on this board.]
Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Actually i would need the Web_Links/iudex.php not the admin file.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Weblinks Notification Hack/Script?
ZardozZ
CZ Super Newbie
 Codezwiz Site Donator
ZardozZ has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Chief Wizard
Age: 74
Gender: Male
Website:
Status: Offline
Joined: Sep 04, 2005
0.00 posts per day
Posts: 34
Points: 2,381
   
Thanks for assisting with this request....

Here is the WebLinks/index file

Tnx Telli...
ZZ



Attached Files
index.txt (49.62 KB, Downloaded: 5234 Time(s))



_________________
ZZ Bachman / [ Register or login to view links on this board.]
Have a Blog? Ring Surf it @ [ Register or login to view links on this board.]
Back to top Reply with quote
#6   re: Weblinks Notification Hack/Script?
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Give this a shot.



Attached Files
ZardozZ.zip (8.93 KB, Downloaded: 5233 Time(s))



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: Weblinks Notification Hack/Script?
ZardozZ
CZ Super Newbie
 Codezwiz Site Donator
ZardozZ has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Chief Wizard
Age: 74
Gender: Male
Website:
Status: Offline
Joined: Sep 04, 2005
0.00 posts per day
Posts: 34
Points: 2,381
   
Thanks Telli....
I loaded it and there must still reamin a minor adjustment. I used Beyond Compare2 to see what you did and might need to study it more.

In testing it I did not get an email sent to my admin address. I wonder if this is because I am originating the request and may be a bogus way of testing? If you want to add the link to your site there as a way to test here is the link...
[ Register or login to view links on this board. ]

The Waiting Links increments in the admin block but the email is not sent. I have not played around with it yet but it looks as though it should work as I think I understand what you were doing with the code addition you added to the file. Thanks for taking an interest in this. I travel alot on business and having notifications in my email helps remind me to get on the site an process stuff.... icon_smile.gif

ZZ




_________________
ZZ Bachman / [ Register or login to view links on this board.]
Have a Blog? Ring Surf it @ [ Register or login to view links on this board.]
Back to top Reply with quote
#8   re: Weblinks Notification Hack/Script?
ZardozZ
CZ Super Newbie
 Codezwiz Site Donator
ZardozZ has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Chief Wizard
Age: 74
Gender: Male
Website:
Status: Offline
Joined: Sep 04, 2005
0.00 posts per day
Posts: 34
Points: 2,381
   
Nope... I see you added a link on my site.... but never received an eMail that is was waiting there to be activated...

I have not had time to really dig into this.... one questions. Does the $msg need to be added to the global statement ? Could there be something else I need to configure with the mail function somewhere? I am not getting any errors so the coding is fine and I see where you put it, right after the SQL insertion which would make sense, but no mail. What I can do is take a close look at where in the News Submit code the eMail is called and see if I can spot something. The code you added at least helps me to find what to look for in the other modules to make a comparision.

I don't want to take up more of your time until I have had a chance to troubleshoot it myself a bit.....

Thanks telli for the lead. I will post back or PM if I figure it out..... or need more guidance.

ZZ




_________________
ZZ Bachman / [ Register or login to view links on this board.]
Have a Blog? Ring Surf it @ [ Register or login to view links on this board.]
Back to top Reply with quote
#9   re: Weblinks Notification Hack/Script?
ZardozZ
CZ Super Newbie
 Codezwiz Site Donator
ZardozZ has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Chief Wizard
Age: 74
Gender: Male
Website:
Status: Offline
Joined: Sep 04, 2005
0.00 posts per day
Posts: 34
Points: 2,381
   
Got it running telli after making a small mod to the FROM variable. $adminmail

Thanks much for this !!!
a few buck in the hopper.....

Still can't find the info on how to add the notification in the form posts when someone contributes to the donator module ? The same little blue ball icon and statement "Codewis Site Donator" that appears under the user Avatar in the User Info block. I have the Code Wiz Donator block loaded and running fine. Just was wondering about the code to make users that have donated more visible to other members... icon_smile.gif I like what you have done here !!

BR,
ZZ




_________________
ZZ Bachman / [ Register or login to view links on this board.]
Have a Blog? Ring Surf it @ [ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum