Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28

Thread: Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Module

  1. #21
    Cannabalistic Lemur geoff's Avatar
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Moudle

    ok...ty for that tip.

    btw, changing links to gallery did not work for the gallery quick moderation deal...heh..just FYI

  2. #22
    Banned
    Join Date
    Mar 2004
    Posts
    61

    Default Re: Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Moudle

    adv_gallery_images

    is what you need to change it too..

  3. #23

    Default Re: Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Moudle

    I use vb 3.6.7 and vb cmps 3 and I get an database error when attempting this hack.

    Can this hack be done in my setup?

  4. #24

    Default Re: Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Moudle

    The instant I add the above code it breaks my entire site so I have to remove it ASAP. Maybe this solution has changed since vb 3.6?

    Anyone know?

  5. #25
    Senior Member
    Join Date
    Aug 2005
    Posts
    250

    Default Re: Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Moudle

    Fyi this is still working on 3.7rc1 / cmps 3 / vba links 2.
    Add into the moderation.php file:
    PHP Code:
    $links $db->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "adv_links WHERE valid = 0"); 
    And as Gary Bolton already mentioned above add into the vba_portal_moderation template:
    PHP Code:
    <div><a href="$vboptions[bburl]/$modcpdir/vba_links.php?do=validate" target="_blank">Links</a> ($links[count])</div

  6. #26
    Junior Member
    Join Date
    Aug 2004
    Posts
    25

    Default

    This is not working for VBA Links 3. The template edit is wrong. 3.0 no longer uses vba_links.php

  7. #27
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,460

    Default

    If you're running v3.0.0 then you should be able to use this for your link:

    "$vboptions[vba_links_homeurl]/moderate.php$session[sessionurl_q]"

  8. #28
    Member
    Join Date
    Aug 2006
    Location
    Tennessee
    Posts
    41

    Default Updated CODE for newer versions...

    Didn't work for me, because the previous 'quoted' CODE above was for such OLD versions of both vB's CMPS & vBLinks Add-On. However, I kept reading the thread and trying different things until I stumbled across the right stuff... So thought I'd post it here for anyone else interested in doing such. I'm still surprised this isn't a built into the Quick Moderation Module of vBa's CMPS by now.


    The Thread's original post, revised for versions: vBulletin (v3.8.6PL1), CMPS (3.2.2) & vBLinks (3.3.0) should read:

    First, open your /forum/modules/moderate.php FILE and look for:
    Code:
    eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_moderation') . '";');
    Right Above that line, ADD:
    Code:
        $links = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "adv_links WHERE valid = 0");
    Next, in AdminCP open your 'adv_portal_moderate' Template and find:
    Code:
    <div<if condition="$users[count]"> style="font-weight: bold"</if>><a href="$admincpdir/user.php?$session[sessionurl]do=moderate" target="_blank">$vbphrase[members]</a> ($users[count])</div>
    Then, just below it add the following code segment:
    Code:
    <div><a href="$vboptions[vba_links_homeurl]/moderate.php$session[sessionurl_q]" target="_blank">Links</a> ($links[count])</div>
    </td>
    <td class="thead" align="center">$links[count]</td></tr>
    <tr><td class="alt1" width="100%">
    Thanxx to EVERYone who chimed-in and added snippets of revised CODE along the way. Through studying those examples, I figured out what I needed to make it work for our versions of software.

    MODERATOR: Feel free to MOVE this post to a different forum if you feel it fits better there, I couldn't turn up this information in the v2 or v3 sections for vBa Links or CMPS.
    Attached Images Attached Images

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Quick Moderation Module
    By Kirby in forum Feedback & Suggestions
    Replies: 0
    Last Post: 01-16-2008, 03:48 AM
  2. Adding Links Awaiting Moderation to vBa CMPS Quick Mod Module
    By adwade in forum Modifications (version 3.x & 2.x)
    Replies: 2
    Last Post: 09-21-2006, 12:25 AM
  3. Quick Moderation links have extra /
    By eclectica in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 02-09-2006, 04:08 PM
  4. 'Active Users' links are 404. Also, 'Quick Moderation' not working.
    By Turboface in forum Troubleshooting / "How do I..." Questions
    Replies: 2
    Last Post: 11-28-2004, 11:55 PM
  5. Replies: 6
    Last Post: 08-05-2004, 09:45 AM

Posting Permissions

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