A couple of other bugs in the system

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   A couple of other bugs in the system
chriswilliams
CZ Super Newbie
chriswilliams has been a member for over 19 year's 19 Year Member
uk.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Feb 15, 2005
0.00 posts per day
Posts: 33
Points: 1,435
  MSN Messenger 
i have the forum running on my nuke 7.5 site i have two problems im hopeing someone can help with.

firstly,

when i create a new forum there are no moderators or admin, when i try to change my permitions (god account), to become moderator or admin the changes do not take affect, any ideas? cos im lost on fixing this one.

secondly the most ever users on line always reads 2 on 01 jan 1970 at 12.00am, at the bottom of the forum page,

please take a look [ Register or login to view links on this board. ]

you will see there are no admin or moderator for some of the forums( Events discussion, what was the last and some others)

many thanks in advance




_________________
[ Register or login to view links on this board. ]

I started with nothing and still have most of it left
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
It looks like it worked at one time. Have you added any mods to it? I believe the update for the mostonline is in the includes/page_header.php.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: A couple of other bugs in the system
chriswilliams
CZ Super Newbie
chriswilliams has been a member for over 19 year's 19 Year Member
uk.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Feb 15, 2005
0.00 posts per day
Posts: 33
Points: 1,435
  MSN Messenger 
there are mod's on the site although i have not modified anything linked to that file.or the members online. except fo adding a new theam

i did transfer the forum from phpbb to nuke when i set up the site. the forums that do not have moderators are new ones i have set up since it started

interesting, i just loaded a new version of nuke onto my server, it dose the same things.
i loaded it throuh Fantastico in cpannel. do you know of anyone else having these problems.




_________________
[ Register or login to view links on this board. ]

I started with nothing and still have most of it left
Back to top Reply with quote
#4   re: A couple of other bugs in the system
chriswilliams
CZ Super Newbie
chriswilliams has been a member for over 19 year's 19 Year Member
uk.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Feb 15, 2005
0.00 posts per day
Posts: 33
Points: 1,435
  MSN Messenger 
i found this, and it works to fix the moderator permitions problem...........

[Originally posted as part of [ Register or login to view links on this board. ] -- reposted to summarize bug-fix options under more descriptive Post Subject]

I've run across several posts mentioning problems with phpBB 2.0.10 not allowing forum moderator assignments. Contrary to some early replies, this is not a php5/phpBB incompatibility problem but a bug in phpBB 2.0.10 admin/admin_ug_auth.php.

(I strongly suspect that more and more new phpBB 2.0.10 admins will eventually run across this bug as their forums grow and they decide to assign moderators. Until then, the bug is essentially dormant.)

FWIW, I've found two viable solutions to this problem -- be warned that neither of these solutions are officially supported at this time!

-----

The first solution is better suited for new or existing unmodded installations using subSilver templates and operating under php5. It allows phpBB 2.0.10 to run under php5's default configuration; fixes the moderator permission bug; and touches on some postgeSQL function issues.

This solution involves installing the phpBB-php5 "patch" (really a minor version upgrade to phpBB 2.0.10.1) found at: [ Register or login to view links on this board. ]

[edit] The URL above has changed. Try [ Register or login to view links on this board. ] [/edit]

If you have an existing, non-trivially modded installation, be prepared to do some serious upgrading and re-installation of all your mods!

-----

The second solution is better suited for existing installations with or without mods operating under php5 (under php4 as well in theory) where the admin does not wish to do a full board upgrade.

This solution involves editing admin/admin_ug_auth.php

Locate the following code:

Code:

for($i = 0; $i < count($forum_access); $i++)
{
$forum_id = $forum_access[$i]['forum_id'];

if (
( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id]['auth_mod'] != $auth_access[$forum_id]['auth_mod'] ) ||
( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]['auth_mod']) )
)
{
$update_mod_status[$forum_id] = $change_mod_list[$forum_id]['auth_mod'];

if ( !$update_mod_status[$forum_id] )



There are three occurances of $change_mod_list[$forum_id]['auth_mod'] -- ['auth_mod'] doesn't belong there.

The corrected code looks like this:

Code:

for($i = 0; $i < count($forum_access); $i++)
{
$forum_id = $forum_access[$i]['forum_id'];

if (
( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id] != $auth_access[$forum_id]['auth_mod'] ) ||
( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]) )
)
{
$update_mod_status[$forum_id] = $change_mod_list[$forum_id];

if ( !$update_mod_status[$forum_id] )



Shortcut: As those 3 occurrances of $change_mod_list[$forum_id]['auth_mod'] are the only ones in the file. A quick method of fixing this bug is a global "find and replace" of $change_mod_list[$forum_id]['auth_mod'] with $change_mod_list[$forum_id] using an appropriate text editor.

I have done fairly thorough testing on this bug-fix at this point. I had previously intended to write the fix up in EasyMOD format, but suggest that the shortcut method above is preferrable anyway.




_________________
[ Register or login to view links on this board. ]

I started with nothing and still have most of it left
Back to top Reply with quote
#5   re: A couple of other bugs in the system
chriswilliams
CZ Super Newbie
chriswilliams has been a member for over 19 year's 19 Year Member
uk.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Feb 15, 2005
0.00 posts per day
Posts: 33
Points: 1,435
  MSN Messenger 
although i still havent fixed my, most users online, please any mory help will be most appreciated.
i notaced that it dose it on the new verson of nuke i downloaded that shows 2 users online in 1970




_________________
[ Register or login to view links on this board. ]

I started with nothing and still have most of it left
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum