PDA


View Full Version : Small Problem


wiccaan
01-27-2006, 03:55 AM
With the Quick Moderation box, it displays the correct info, but, it has the wrong links when clicking a link. Such as checking posts the link would give you:
http://www.mysite.com/mysite/forums//moderate.php?do=posts

Which is /forums//moderate.php ... ect

how the links are setup. I tried editing the main forum link to remove the ending "/" but that didnt help.

Any idea's?

wiccaan
01-28-2006, 04:06 PM
Bump :(

krowllaw
01-28-2006, 05:19 PM
I have the same problem...

Brian
01-29-2006, 03:32 PM
If you'll look in your modules/moderation.php file for this code:
require_once('./includes/functions_calendar.php');

Add this right below:
$admincpdir =& $vbulletin->config['Misc']['admincpdir'];
$modcpdir =& $vbulletin->config['Misc']['modcpdir'];


Then replace the content of your 'adv_portal_moderation' template with this:
<tr>
<td class="$bgclass">
<if condition="$show['threads']">
<div><phrase 1="$threads[count]" 2="$modcpdir/moderate.php?do=posts">$vbphrase[x_threads]</phrase></div>
</if>
<if condition="$show['posts']">
<div><phrase 1="$posts[count]" 2="$modcpdir/moderate.php?do=posts#postlist">$vbphrase[x_posts]</phrase></div>
</if>
<if condition="$show['events']">
<div><phrase 1="$events[count]" 2="$modcpdir/moderate.php?do=events">$vbphrase[x_events]</phrase></div>
</if>
<if condition="$show['attachments']">
<div><phrase 1="$attachments[count]" 2="$modcpdir/moderate.php?do=attachments">$vbphrase[x_attachment]</phrase></div>
</if>
<div><phrase 1="$users[count]" 2="$admincpdir/user.php?do=moderate">$vbphrase[x_users]</phrase></div>
</td>
</tr>

And that should take care of the problem.

NickFritz
01-30-2006, 05:59 PM
Thanks, worked a treat. why is this not in a patch file for the 2.1.0?

Cause i updated from 2.0.0 to 2.1.0 and this happened.

Brian
01-30-2006, 06:40 PM
Because this was a bug that was introduced as a results of the changes in 2.1.0. The current files have been updated to include this fix though.

rsriverrat
02-02-2006, 09:15 AM
brian thanks for that info however id like to urge u to have another look at the files for the download of 2.1.0, because i just downloaded this last night 2.1.06 and the problem is still there.... also the .module files in the extras folder are not valid

thanks for pointing me to this thread, when searching for quick moderation box this thread never showed...

Ratt

ncangler
02-02-2006, 09:22 AM
Brian, I just downloaded the CMPS files to just upload a new moderate.php file instead of editing and the edit is not there. When I add it I get an error.

Parse error: parse error, unexpected T_VARIABLE, expecting T_PAAMAYIM_NEKUDOTAYIM or '(' in /home/xxxxxx/public_html/forums/modules/moderate.php on line 12

Because this was a bug that was introduced as a results of the changes in 2.1.0. The current files have been updated to include this fix though.

Brian
02-02-2006, 05:30 PM
Weird... I must have missed the moderate.php file when I was updating things here. I've just uploaded the files again, so the package here should contain the correct code now.

ncangler
02-02-2006, 05:52 PM
That did it! Thanks Brian! BTW can't wait to see a Blog program. :)

Silvio
02-03-2006, 08:15 AM
ty so much Brian...perfectly working now

Silvio
02-03-2006, 09:04 AM
If you'll look in your modules/moderation.php file for this code:
........

Sir,
File name is modules/moderate.php

again ty for great hack :cool:

IranMatrix
02-19-2006, 12:41 AM
sorry brian but i dont have that file in my vBulletin package but i have a file called moderator.php and when i try to use it as that link it said you dont have permission but i`m super administrator and i think its a problem .
any one can help me ?! :)
the error is look like that :

Aria, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Brian
02-22-2006, 01:00 AM
That file is in the package with the CMPS, not vBulletin.

easyskillz
03-06-2006, 12:46 PM
yes it is moderate.php

yannisc
03-30-2006, 09:12 AM
I downloaded the vbadvanced 2.1 package yesterday, upgraded my forum but the moderation links are wrong:

they are: http://www.greektechforum.com/forums/http://www.greektechforum.com/forums/modcp/moderate.php?do=posts

(there is an extra forum url) in front.