Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Help ⇒ Issues in my admin panel after switching hosts.Help!


Issues in my admin panel after switching hosts.Help!
Have you run into a problem, such as receiving an error, blank page, or other similar issue? This forum is not for questions such as "What does this do?" or "Where did this come from?"
Go to page Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Help

View previous topic :: View next topic  
Author Message
mixy
Heavy poster
Heavy poster

Offline Offline
Joined: Aug 29, 2009
Posts: 173

PostPosted: Mon Mar 15, 2010 12:13 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

InspectorClueNo wrote:
I've been reading in forums that his intention was to disable 3rd party themes for ACP, reducing theme developing time while gaining full ACP control.
Please could you explain more what you mean by the above
[quote="InspectorClueNo"In your case it worked, your issue was coming from a 3rd party theme ;)[/quote]
I think i understand what this mean but not the first lines.
thanks.


mixy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/Mysql 5.0+/Dragonfly cms-9.3.1,
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Mar 15, 2010 12:34 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

ACP = Admin Control Panel

Any 3rd party themes are disabled in ACP forcing to load the default theme. Its behaving as it should.


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
mixy
Heavy poster
Heavy poster

Offline Offline
Joined: Aug 29, 2009
Posts: 173

PostPosted: Mon Mar 15, 2010 12:45 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

So is there no way i can use my azul carbon theme with it?
Thanks


mixy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/Mysql 5.0+/Dragonfly cms-9.3.1,
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Mar 15, 2010 3:06 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

Not in admin pages.


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
mixy
Heavy poster
Heavy poster

Offline Offline
Joined: Aug 29, 2009
Posts: 173

PostPosted: Mon Mar 15, 2010 3:08 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

InspectorClueNo wrote:
Not in admin pages.
But it wont even show on the normal pages.So how do i make it show up on the other pages?
Thanks.


mixy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/Mysql 5.0+/Dragonfly cms-9.3.1,
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Mar 15, 2010 3:25 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

You are logged in as admin for sure, but are you also logged in as user?

Since I follow CVS commits I've also noticed that nano changed a display related function to fix a current bug, the function is strictly related to theme settings like: user preferences, default site theme, theme preview, admin pages ... might be a bug that shows up for admin only due to the session caching? I've got no clue lol

I cant personally tell or test because I use the default theme on my intranet site ... see how you go.


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Mar 16, 2010 8:19 am
Post subject: Re: Issues in my admin panel after switching hosts.Help!

Good catch, /includes/functions/display.php replace get_theme function with the above code.

PHP:
<?php /* copy everything below this line */
function get_theme() {
static $theme;
if (isset($theme)) return $theme;

global $MAIN_CFG, $CPG_SESS, $userinfo;
$theme = $MAIN_CFG['global']['Default_Theme'];
if ($MAIN_CFG['member']['allowusertheme'] || is_admin()) {
if (isset($_GET['prevtheme'])) {
if (!preg_match('#^([a-zA-Z0-9_\-]+)$#', $_GET['prevtheme'], $theme)) {
cpg_error(sprintf(_ERROR_BAD_CHAR, 'theme'), _SEC_ERROR);
}
$theme = $CPG_SESS['prevtheme'] = $theme[1];
} else if (!empty($CPG_SESS['prevtheme'])) {
$theme = $CPG_SESS['prevtheme'];
} else if (is_user()) {
$theme = $userinfo['theme'];
}
}
$theme = (!defined('ADMIN_PAGES') && file_exists("themes/{$theme}/theme.php")) ? $theme : 'default';
$CPG_SESS['theme'] = $theme;
return $theme;
}

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Help
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



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


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy