Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
fmahannahOffline



Joined: Jan 21, 2004
Posts: 43
Location: 1
Status: Offline
Post 22 Posted: Nov 11, 2004 - 04:17 PM Reply with quote Back to top

Can anyone tell me why the XForum plugin only works in the userpoints block with no error if the block is left or center, not right? Rolling Eyes

Thanks!
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 11, 2004 - 06:07 PM Reply with quote Back to top

My block always was on the right side and it was working when I was using the XForum...

What is the error ?

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
fmahannahOffline



Joined: Jan 21, 2004
Posts: 43
Location: 1
Status: Offline
Post   Posted: Nov 11, 2004 - 06:25 PM Reply with quote Back to top

With the block on the right side it does not total the xforum posts and shows the error as seen at http://www.wwats.org

On the left side it works fine.
View user's profile Send private message
fmahannahOffline



Joined: Jan 21, 2004
Posts: 43
Location: 1
Status: Offline
Post   Posted: Nov 11, 2004 - 06:31 PM Reply with quote Back to top

Can it be because I run the xforum block in the center and the new way you handle error storage?
View user's profile Send private message
fmahannahOffline



Joined: Jan 21, 2004
Posts: 43
Location: 1
Status: Offline
Post   Posted: Nov 11, 2004 - 06:47 PM Reply with quote Back to top

I think it might be because the xforum block does an include once for settings.php and then the userpoints block does it again ....
View user's profile Send private message
fmahannahOffline



Joined: Jan 21, 2004
Posts: 43
Location: 1
Status: Offline
Post   Posted: Nov 11, 2004 - 06:49 PM Reply with quote Back to top

That was it ... to fix it in the user points block I did this:

//include_once('modules/XForum/settings.php');
$table_threads = "nuke_XForum_threads";
$table_posts = "nuke_XForum_posts";
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 11, 2004 - 10:18 PM Reply with quote Back to top

Nice catch... Wink

The include_once is mostly good if you are including a file that has functions.

The include_once will include those functions once even if it's the tenth inclusion.

Unfortunatly, the setting doesn't contains only functions but loose code...

That is why.

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
DarkMindZ