Results 1 to 3 of 3

Thread: Limit of 1 link per member?

  1. #1
    Meow lee wilde's Avatar
    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

  2. #2
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,463

    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.

  3. #3
    Meow lee wilde's Avatar
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •