to previous topic Print topic to next topic

 Root :: Developments :: Blocks :: Userpoints Block and XForum
 Moderated by:
 
  Bottom  Userpoints Block and XForum
fmahannah Posted: 11.11.2004, 17:17
Pizzaman
Pizzaman
avatar

registered: Jul 17, 2003
Posts: 43

Status:  offline
last visit: 11.11.04
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? icon_rolleyes

Thanks!
Top  fmahannah send PM
 
Chestnut Posted: 11.11.2004, 19:07
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
My block always was on the right side and it was working when I was using the XForum...

What is the error ?


Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
fmahannah Posted: 11.11.2004, 19:25
Pizzaman
Pizzaman
avatar

registered: Jul 17, 2003
Posts: 43

Status:  offline
last visit: 11.11.04
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.
Top  fmahannah send PM
 
fmahannah Posted: 11.11.2004, 19:31
Pizzaman
Pizzaman
avatar

registered: Jul 17, 2003
Posts: 43

Status:  offline
last visit: 11.11.04
Can it be because I run the xforum block in the center and the new way you handle error storage?
Top  fmahannah send PM
 
fmahannah Posted: 11.11.2004, 19:47
Pizzaman
Pizzaman
avatar

registered: Jul 17, 2003
Posts: 43

Status:  offline
last visit: 11.11.04
I think it might be because the xforum block does an include once for settings.php and then the userpoints block does it again ....
Top  fmahannah send PM
 
fmahannah Posted: 11.11.2004, 19:49
Pizzaman
Pizzaman
avatar

registered: Jul 17, 2003
Posts: 43

Status:  offline
last visit: 11.11.04
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";
Top  fmahannah send PM
 
Chestnut Posted: 11.11.2004, 23:18
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
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
Site Admin
Top  Chestnut send PM Homepage
 



Powered by pnForum Version 2.0.1
DarkMindZ