PDA

View Full Version : Deleted/Moderated Posts/Threads Manager - Show more than 4 per page


mkdevo
08 Oct 2006, 15:23
Just got this from Jake @ vb.com, and figured others would find it useful, so here you go.

This will allow you to see more than 4 posts/threads per page in the Deleted/Moderated Posts and Deleted/Moderated Threads manager.

Edit Template USERCP_SHELL.

Add the green code:

<if condition="$show['deleteditems'] OR $show['moderateditems']">
<tr>
<td class="thead">$vbphrase[moderation]</td>
</tr>
<if condition="$show['deleteditems']">
<tr>
<td class="$navclass[deletedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=deleted&amp;pp=X">$vbphrase[deleted_threads]</a></td>
</tr>
<tr>
<td class="$navclass[deletedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=deleted&amp;pp=X">$vbphrase[deleted_posts]</a></td>
</tr>
</if>
<if condition="$show['moderateditems']">
<tr>
<td class="$navclass[moderatedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=moderated&amp;pp=X">$vbphrase[moderated_threads]</a></td>
</tr>
<tr>
<td class="$navclass[moderatedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=moderated&amp;pp=X">$vbphrase[moderated_posts]</a></td>
</tr>

Where X is the number of posts per page.

The first one is for deleted threads.
The second one is for deleted posts.
The third one is for moderated threads.
The fourth one is for moderated posts.

shadowevil
08 Oct 2006, 15:28
Screenshot or demo ??? :-??

mkdevo
08 Oct 2006, 15:34
Screenshot or demo ??? :-??

it's pretty self-explanatory..

go to your forum's /moderation.php?do=viewposts&type=deleted page. you'll see 4 posts (if you have 4 or more deleted posts).. then add &pp=X (change X to a number greater than 4) to the end of the url. you'll then see that many posts per page.

this changes the links to those sections to make them that many posts per page by default.

bashy
08 Oct 2006, 15:54
Cheers m8, me uped it to 20 :)

Hornstar
09 Oct 2006, 11:02
How long has this been a feature :/ this is awesome.

mrthe
19 Feb 2008, 16:12
Thank you very usefull.

mikkitine
06 Mar 2008, 09:37
The screenshot/demo comment made me chuckle some.

Thanks for the template mod.

Traxdata
23 Oct 2009, 11:03
should be standard feature of vb software! btw, green isnt green anymore :erm:

quickregister
20 Nov 2012, 13:11
It worked great! Thank you!