vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > Pre-Sale Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2004, 08:46 PM
lee wilde's Avatar
lee wilde lee wilde is offline
Meow
 
Join Date: Jun 2004
Location: Perth, Australia
Posts: 47
Default Limit of 1 link per member?

Hi, I am considering purchasing today. We use vBulletin and vbadvanced CMPS.

Is there a way of limiting members to link to 1 site only?

Thanks
Reply With Quote
  #2  
Old 11-30-2004, 05:42 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Limit of 1 link per member?

Shouldn't be too hard to do. Once you purchase the links directory, simply open up your 'addlink.php' file and look for this code:
PHP Code:
globalize($_POST, array('catid' => INT)); 
Right under that, add this:
PHP Code:
    $linkcount $DB_site->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "links WHERE userid = '$bbuserinfo[userid]'");

    if (
$linkcount['count'] >= 1)
    {
        eval(
print_standard_error('adv_links_too_many_links'));
    } 
*Edit*
For some reason the php and code tags are adding a space between 'too_many_link' and the 's' right after that, so please be sure to remove that space when you add the code.

Then add a new phrase with a varname of 'adv_links_too_many_links' with the text you would like displayed if a user has already submitted a link.

Last edited by Brian; 11-30-2004 at 05:44 PM.
Reply With Quote
  #3  
Old 12-01-2004, 05:25 AM
lee wilde's Avatar
lee wilde lee wilde is offline
Meow
 
Join Date: Jun 2004
Location: Perth, Australia
Posts: 47
Default Re: Limit of 1 link per member?

Cool, thanks! Now I have a new toy to play with.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link Options, Rate Link is bad link deb0 Troubleshooting & Problems 5 11-04-2004 05:35 PM
Incorrect Image and Active Member Link URLs zylstra Troubleshooting / "How do I..." Questions 5 10-11-2004 04:34 PM
Member Name Link On Front Page dieselpowered Troubleshooting / "How do I..." Questions 2 09-28-2004 07:22 PM
Webmaster E-mail Address and Link Poster Shon Feedback & Suggestions 0 09-03-2004 03:21 PM


All times are GMT -4. The time now is 11:33 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.