Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Auto approval of links?

Quote Reply
Auto approval of links?
I promise, my last dumb newbie question for a while :)

Does this script auto approve each link submission, or is it possible for them to sit in queue until I manually approve each one?



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
AFAIK, you need to validate links before they can be added to the directory. You obviously also need to do a 'build all' before they will show up on the category pages.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Auto approval of links? In reply to
Thanks, I haven't quite delved deeply into the script yet, been spending more time reading the forums here for hints, tips, etc.

If I can approve each link before it's posted, that's perfect for me



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [Andy] Auto approval of links? In reply to
Well, I haven't found anywhere when you 'build' that would allow me to approve any submissions whatsoever.

Every link I'm manually added has just shown up after I did a build, and it did not give me any change to approve or reject anything.



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
Have you tried adding one using the add.cgi via the form, and not the admin? That is where the approval procedure starts. Someone submits a site, you receive an email telling you about it, then you can approve and add, or delete it.


Leonard
aka PerlFlunkie
Quote Reply
Re: [hairy] Auto approval of links? In reply to
add.cgi needs you to verify the new links (Validate), whilst adding them via 'Add' in admin.cgi will add them automatically.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Auto approval of links? In reply to
Going to test it that way right now.

Damn, you're good, thank you :)

I did not, however, receive an email saying I had a submission that needed approval.

I guess that means I have something wrong in links.cgi in the sendmail path?



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
Glad to hear it. What path do you have setup for sendmail? (the whole line)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Auto approval of links? In reply to
It was wrong initially, had several errors, but I went through the posts here and duplicated what others had when they posted their links.cgf file

I'm thinking that at times, I have to use sendmail -t even though the server report says it's just /usr/sbin/sendmail

# PATH of sendmail. # SMTP Server

$db_mail_path = '$usr/sbin/sendmail';


( Location of Sendmail:

sendmail:
/usr/sbin/sendmail


/usr/lib/sendmail

)



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
It should be;

$db_mail_path = 'usr/sbin/sendmail';

Note the missing $ (which you had in your existing configuration).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Auto approval of links? In reply to
I removed the extra $ and added a resource but an email still did not arrive.

Yes, my email is in there as the administrator, before you ask :)

Any other things I can look for?

# Notify visitors automatically when their links are validated?

$db_email_add = 0;

# Notify visitors automatically when their links are modified?

$db_email_modify = 0;


0 means no, right? So I need to change those to 1?



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
Yeah, 1 = Yes, 0 = No... but that is for Users.. not admin. Didn't you say it was the admin that didn't get emails, or the users?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Auto approval of links? In reply to
I'm the admin who submitted the link for one of my own sites as a test, so I should have received 2 emails in theory ... and received absolutely none.



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
Aha!

I submitted again after changing the 0 to a 1

Validated and received this error

CGI ERROR
==========================================
Error Message : Unable to init mailer! Reason: Sendmail was not defined or not found: usr/sbin/sendmail
Script Location : admin.cgi
Perl Version : 5.006


Help!



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
Sorry, its /usr/sbin/sendmail , not usr/sbin/sendmail.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Auto approval of links? In reply to
*gentle slap*

:)

Thanks, testing it now

1 Email arrived - The following link is awaiting validation:

2 Emails arrived - Thank you for visiting our site. We've added the following link into our directory:


You're awesome, thanks so much :) Now I'll go edit the mail templates and personalize them a bit :)



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] Auto approval of links? In reply to
Glad to hear it Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!