RC3 - Add News - Admin/Edit

Hey all,

Just wondering if its because I am trying to do this from work, but when I click on the news module, I get a blank page. If I click on edit from the news section on the homepage, it also give me a blank page.

I just want to make sure that it is because I am trying this from work or if there is something wrong.

Chris

Nothing to see here
Quote · 11 Dec 2009

Slow down with the responses, cant read them fast enough ..LOL

Just when someone gets a chance, can they please test this.

Chris

Nothing to see here
Quote · 11 Dec 2009

Hey Zarcon I'm doing my RC3 now.  its a little tedious as I need to preserve some modifications we made.  Once I finish I'll post up if anyone hasn't.

Quote · 11 Dec 2009

Thank you Mauricecano :)

Nothing to see here
Quote · 11 Dec 2009

Zarcon I finished my RC3 upgrade and tested the news module.  I can see my news on the site and in the admin panel.  When I click on edit from the site it takes me directly to the admin panel to edit thew news. I can also add new news to the site without problem.

Quote · 11 Dec 2009

Thanks Mauricecano, it could very well be the fact that I am doing this from work. I appreciate you taking the time to check for me.

Chris

Nothing to see here
Quote · 11 Dec 2009

Actually I was not able to edit/add news even from home. I have narrowed this down to the modules/boonex/news/admin.php file. It is a 3K in the RC3 package and 2K in the RC2. Here is the ONLY difference in the 2 files:

$GLOBALS['iAdminPage'] = 1;


At the very top of the admin.php file is this code. If it exists, for me, The news module is NOT accessible from the Admin Panel OR if you try to edit your current news from the homepage.

Any ideas on this one?


Chris

Nothing to see here
Quote · 12 Dec 2009

I have no problems to edit or else with the news module. 
Indeed if you click on the site on edit it go to admin page news.

this is on RC3

Kids first
Quote · 12 Dec 2009

So does your admin.php file in the news module have the code $GLOBALS['iAdminPage'] = 1; at the top of it? I just trying to figure out why my news will not work with that code at the top.

Chris

Nothing to see here
Quote · 12 Dec 2009

Yes mine has $GLOBALS['iAdminPage'] = 1;

Honestly I don't know what is causing your issue.  It's similar to the issue I had with the fatal error in groups_add for RC2 and had to comment out the new line they put in it to make it work.  Now it works fine in RC3.

Quote · 12 Dec 2009

Try to add the following line to your inc/header.inc.php file:

$iAdminPage                = 0;

just after the following:

$admin_dir                 = "administration";

Rules → http://www.boonex.com/terms
Quote · 14 Dec 2009

Hey AlexT, I tried this method below, but it still did not work. HOWEVER, I changed the code in the modules/boonex/news/admin.php file to $GLOBALS['iAdminPage'] = 0; instead of $GLOBALS['iAdminPage'] = 1; and it works.

If I leave this code at $GLOBALS['iAdminPage'] = 1; in the modules/boonex/news/admin.php, then my template is automatically changed to UNI, but the news administrations DOES work.

Is this normal and is it "safe"?

Chris

Try to add the following line to your inc/header.inc.php file:

$iAdminPage                = 0;

just after the following:

$admin_dir                 = "administration";

Nothing to see here
Quote · 14 Dec 2009

Hey AlexT, I tried this method below, but it still did not work. HOWEVER, I changed the code in the modules/boonex/news/admin.php file to $GLOBALS['iAdminPage'] = 0; instead of $GLOBALS['iAdminPage'] = 1; and it works.

If I leave this code at $GLOBALS['iAdminPage'] = 1; in the modules/boonex/news/admin.php, then my template is automatically changed to UNI, but the news administrations DOES work.

Is this normal and is it "safe"?

Chris

Try to add the following line to your inc/header.inc.php file:

$iAdminPage                = 0;

just after the following:

$admin_dir                 = "administration";

iAdminPage - force admin section to use UNI template ! it is necessary for such basic elements like forms, user thumbs and others .. so it is ok if you see UNI template in admin section, despite of you switched to your own template.

You admin design can look unpredictable if you change iAdminPage to 0 manually.

Rules → http://www.boonex.com/terms
Quote · 15 Dec 2009

Doesn't Work! ---> Try to add the following line to your inc/header.inc.php file:

$iAdminPage                = 0;

just after the following:

$admin_dir                 = "administration";

I have the same problem and this doesn't work for me either.  Zarcon's tweak does.  So, adding this to header.inc.php does not force this admin page to use the uni template.

This is the reported error:


Fatal error: Cannot redeclare class BxTemplVotingView in /templates/tmpl_dark/scripts/BxTemplVotingView.php on line 14

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 15 Dec 2009

Doesn't Work! ---> Try to add the following line to your inc/header.inc.php file:

$iAdminPage                = 0;

just after the following:

$admin_dir                 = "administration";

I have the same problem and this doesn't work for me either.  Zarcon's tweak does.  So, adding this to header.inc.php does not force this admin page to use the uni template.

This is the reported error:


Fatal error: Cannot redeclare class BxTemplVotingView in /templates/tmpl_dark/scripts/BxTemplVotingView.php on line 14

Is this error appeared when you changed iAdminPage from 1 to 0 ?

Rules → http://www.boonex.com/terms
Quote · 15 Dec 2009

Is this error appeared when you changed iAdminPage from 1 to 0 ?

No.  That's the error that appears when I click on the news module in Admin > Modules.  I expect, when Zarcon got a blank white page, it was because he has error reporting turned off.

Making the change from 1 to 0 had no effect and I received the same error... even with the usual /cache flushing.  It was not until I applied the same change as Zarcon, that it worked. 

It sure looks like various areas of admin get style information from the active site template, and Not uni.  Admin really should have it's own template system.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 15 Dec 2009

Please provide me access to your site via PM to check this problem.

Thank you

Rules → http://www.boonex.com/terms
Quote · 15 Dec 2009

RE: Please provide me access to your site via PM to check this problem.

Thank you

Info sent.  Try not to break anything : )

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 15 Dec 2009

I noticed a ticket in trac regarding the use of user side design boxes in admin, instead of admin design boxes.  Could this be one of those instances?  Why else would the fatal error refer to a file in the alternative site template, that should have nothing to do with anything in admin?

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 15 Dec 2009

Thanks for the ticket on this and for HL, Im glad it works for you until this gets resolved.

Chris

Nothing to see here
Quote · 16 Dec 2009

hmmm,

I use a custom theme, but have Uni standard in map. I can do everything in admin, make news files. 
So can't confirm this problem you all have. I have further nothing done on the core code or templates

killerhaai

Kids first
Quote · 17 Dec 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.