Author |
Message |
Tizwit
Involved
Joined: Aug 29, 2004
Posts: 324
Location: New Mexico
|
Posted:
Wed Jan 03, 2007 11:47 pm |
|
I am wondering if there is a way to limit link submissions to members only. Getting a little tired of deleting those "Viagra" links |
_________________ Brian
[ Only registered users can see links on this board! Get registered or login! ]
Helping the Children in the NM Children's Hospital |
|
|
|
evaders99
Former Moderator in Good Standing
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Thu Jan 04, 2007 12:59 am |
|
Assuming you made the changes to modules/Web_Links/index.php to provide the necessary protection, you should be able to configure $links_anonaddlinklock in modules/Web_Links/lconfig.php
Here's the simple fix for the protection
Code:
FIND
function Add($title, $url, $auth_name, $cat, $description, $email) {
global $prefix, $db, $user;
REPLACE WITH
function Add($title, $url, $auth_name, $cat, $description, $email) {
global $prefix, $db, $user, $links_anonaddlinklock;
if (!is_user($user) AND $links_anonaddlinklock != 1) die();
|
|
_________________ - Star Wars Rebellion Network -
Need help? Nuke Patched Core, Coding Services, Webmaster Services |
|
|
|
Tizwit
|
Posted:
Thu Jan 04, 2007 1:23 am |
|
What changes to "modules/Web_Links/index.php?
Also I went and looked in the Iconfig file and found a way to set it to lock out unregistered:
Code:$links_anonaddlinklock: Lock Unregistered users from Suggesting New Links? (0=Yes 1=No)
|
Would that do the same?
evaders99 wrote: | Assuming you made the changes to modules/Web_Links/index.php to provide the necessary protection, you should be able to configure $links_anonaddlinklock in modules/Web_Links/lconfig.php
Here's the simple fix for the protection
Code:
FIND
function Add($title, $url, $auth_name, $cat, $description, $email) {
global $prefix, $db, $user;
REPLACE WITH
function Add($title, $url, $auth_name, $cat, $description, $email) {
global $prefix, $db, $user, $links_anonaddlinklock;
if (!is_user($user) AND $links_anonaddlinklock != 1) die();
| | [/code] |
|
|
|
|
montego
Site Admin
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Thu Jan 04, 2007 6:40 am |
|
|
|
|
Tizwit
|
Posted:
Fri Jan 05, 2007 11:06 am |
|
ah Ok I understand. Thank you
I will try to put that fix into place on my next day off.
Thank you Evaders and Montego |
|
|
|
|
|