![]() |
|
|
#1
|
||||
|
||||
|
This is a fairly easy hack, but I'm sure will be very useful for those who also have the CMPS installed. As the title states, it will add the number of links awaiting moderation to your 'Quick Moderation' module in the CMPS.
First, open your /forum/modules/moderat.php file and look for: PHP Code:
PHP Code:
Code:
<div><a href="$vboptions[bburl]/$modcpdir/links.php?do=validate" target="_blank">Links</a> ($links[count])</div>
Last edited by Brian; 07-23-2004 at 04:42 PM. |
|
#2
|
|||
|
|||
|
Worked perfectly, thank you
|
|
#3
|
||||
|
||||
|
I like what you did with that module.
|
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
Hmmm... I tried this and received the following error:
Quote:
|
|
#6
|
|||
|
|||
|
Quote:
PHP Code:
|
|
#7
|
||||
|
||||
|
Oops, didn't realize that I had single 's in the query. Just updated the post.
|
|
#8
|
|||
|
|||
|
Thanks Shon & Brian - that works!
|
|
#9
|
|||
|
|||
|
Works great..! Mhh Shon like to share your nice table?
|
|
#10
|
|||
|
|||
|
Quote:
Template: adv_portal_moderation Code:
<!-- Quick Moderation Block -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="187">
<thead>
<tr>
<td class="thead">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('moderate')"><img id="collapseimg_moderate" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_moderate.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_options[portal_blockbullet] $vbphrase[quick_moderation]</strong></span></td>
</tr>
<thead>
<tbody id="collapseobj_moderate" style="$collapseobj_moderate">
<tr>
<td class="$getbgrow">
<table border="0" cellpadding="3" cellspacing="1" class="tborder" width="100%">
<if condition="$show['threads']">
<tr><td class="alt1" width="80%">
<div><a href="$vboptions[bburl]/$modcpdir/moderate.php?do=posts">Threads</div>
</td>
<td class="thead" align="center">$threads[count]</td></tr>
</if>
<if condition="$show['posts']">
<tr><td class="alt2" width="80%">
<div><a href="$vboptions[bburl]/$modcpdir/moderate.php?do=posts#postlist">Posts</div>
</td>
<td class="thead" align="center">$posts[count]</td></tr>
</if>
<if condition="$show['events']">
<tr><td class="alt1" width="80%">
<div><a href="$vboptions[bburl]/$modcpdir/moderate.php?do=events">Events</div>
</td>
<td class="thead" align="center">$events[count]</td></tr>
</if>
<if condition="$show['attachments']">
<tr><td class="alt2" width="80%">
<div><a href="$vboptions[bburl]/$modcpdir/moderate.php?do=attachments">Attachments</div>
</td>
<td class="thead" align="center">$attachments[count]</td></tr>
</if>
<tr><td class="alt1" width="80%">
<div><a href="$vboptions[bburl]/$admincpdir/user.php?do=moderate">Users</a></div>
</td>
<td class="thead" align="center">$users[count]</td></tr>
<tr><td class="alt2" width="80%">
<div><a href="$vboptions[bburl]/$modcpdir/links.php?do=validate" target="_blank">Links</a></div>
</td>
<td class="thead" align="center">$links[count]</td></tr>
<tr><td class="alt1" width="80%">
<div><a href="$vboptions[bburl]/$modcpdir/links.php?do=validateposts" target="_blank">Link Posts</a></div>
</td>
<td class="thead" align="center">$linkposts[count]</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
<br />
<!-- End Quick Moderation Block -->
|
|
#11
|
|||
|
|||
|
Thanks, installed! looks very nice... so far not Link Posts and Join Requests used.. So later will be maybe nice..
Thanks again for sharing! |
|
#12
|
||||
|
||||
|
Shon, very nice! The only change I did was to change the hard-coded width of "187" to be "100%" instead so that it behaves like the rest of my modules.
Thanks.
__________________
Kevin vBadvanced Support -- For vBa assistance, please use the support forums... unsolicted PMs, IMs, and email will not be responded to. Sci-Fi Forums | vBulletin Arcade vBulletin Users | vBulletin Styles | vBulletin SEO | Digital Photography Help |
|
#13
|
||||
|
||||
|
nice
thanks Brian
__________________
STREET VIEW ONLINE <---------------------CHECK IT OUT |
|
#14
|
|||
|
|||
|
My quick moderation always shows 1 post needs to be moderated, but there are none. Any ideas?
|
|
#15
|
|||
|
|||
|
Shon,
I used your template and its great! What should I add to moderate.php so that it pulls the number of link posts too? Right now it shows no number there, not even 0. Thanks! Quote:
|
|
#16
|
||||
|
||||
|
For cmps 2 this needs to be changed in Brians first post
Change: Code:
<div><a href="$vboptions[bburl]/$modcpdir/links.php?do=validate" target="_blank">Links</a> ($links[count])</div> Code:
<div><a href="$vboptions[bburl]/$modcpdir/vba_links.php?do=validate" target="_blank">Links</a> ($links[count])</div> --------------------------- PS: Brian, using the same method, what database entry would I have to add to also display Gallery images that need moderating as well? All I need to know is the database code to add to modules/moderate.php Last edited by Gary Bolton; 09-20-2005 at 12:22 AM. |
|
#17
|
||||
|
||||
|
I know Im bringing up an old post but it fit...
I tried to add the line to my moderate.php within the modules fodler and got an error is the new line still that since links has changed? |
|
#18
|
|||
|
|||
|
Quote:
Code:
$links = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "links WHERE valid = 0");
|
|
#19
|
||||
|
||||
|
hell ya!!
that worked out got one for Gallery by chance? |
|
#20
|
|||
|
|||
|
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quick Moderation Module | Kirby | Feedback & Suggestions | 0 | 01-16-2008 04:48 AM |
| Adding Links Awaiting Moderation to vBa CMPS Quick Mod Module | adwade | Modifications | 2 | 09-21-2006 01:25 AM |
| Quick Moderation links have extra / | eclectica | Troubleshooting & Problems | 2 | 02-09-2006 05:08 PM |
| 'Active Users' links are 404. Also, 'Quick Moderation' not working. | Turboface | Troubleshooting / "How do I..." Questions | 2 | 11-29-2004 12:55 AM |
| quick moderation module not showing members awaiting moderation | Mont | Bugs & Other Issues | 6 | 08-05-2004 10:45 AM |