Gossamer Forum
Home : Products : Others : Gossamer Community :

Bug on system_template_set in Misc Options

Quote Reply
Bug on system_template_set in Misc Options
Hi,

system_template_set does not preserve the selected value.
<%Community::Web::Tools::template_listings%>

A solution to correct this bug?

Thanks for your assistance.

Mick

Last edited by:

MJ_: Nov 24, 2011, 4:46 AM
Quote Reply
Re: [MJ_] Bug on system_template_set in Misc Options In reply to
Hi,

What do you mean? Its not preserving when you pass in t=xxx into community.cgi?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Bug on system_template_set in Misc Options In reply to
Hi Andy,

It is in Setup > Misc Options.

If I modify again my configuration (system_banip for example), the value of system_template_set is put again on Default. I must again select Luna and I must validate again.

An idea?

Thanks!

Mick
Quote Reply
Re: [MJ_] Bug on system_template_set in Misc Options In reply to
Mmm weird, can't say I've seen that bug before. Could be worth emailing GT to see if they are aware of it (and a possible fix). If I get some time later, I'll try and have a look at the code that deals with it, to see if I can spot whats going on (but no guarantees on that, as I'm pretty bogged down with work still :))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Bug on system_template_set in Misc Options In reply to
Hi Andy,

The answer of GT is: This sounds like a permissions or space problem on the server actually...

What is strange, it is all the other options are preserved and the file conf is correctly modified.

Is There perhaps another user of Luna which can make a test on its installation?

Thanks again!

Mick
Quote Reply
Re: [MJ_] Bug on system_template_set in Misc Options In reply to
Hi,

I just tested it on my dev install, which is v1.1.1 ... and it seems to update fine. Did you check the config file, to make sure its updates properly?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Bug on system_template_set in Misc Options In reply to
Hi Andy,

Yes, the config file is updated but the select is always on default !

In the meantime, I modified the admin_setup_misc.html file.

Code:
<select name="system_template_set" class="object">
<option selected="selected">luna</option>
<option>default</option>
</select>

Thanks! :)

Mick
Quote Reply
Re: [MJ_] Bug on system_template_set in Misc Options In reply to
If you wanna send over GComm admin logins + FTP, and I'll have a quick look for you (just to get a 2nd opinion :))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Bug on system_template_set in Misc Options In reply to
Mmmm, thats a weird bug!

In community.conf, its updated correctly:

Code:
'system_template_set' => 'luna',

..yet in Community/Web/Tools.pm, template_listings , doing:

Code:
print "Content-Type: text/html \n\n";
use Data::Dumper;
print Dumper($CFG);

..shows "system_template_set" as being set to "default", and not "luna" (like it is in community.conf). ... ie:

Code:
'system_template_set' => 'default',

Not really sure whats going on there!

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Bug on system_template_set in Misc Options In reply to
..and weirder still!

In /lib/Community.pm , if add a Dumper($CFG) in this function:
Code:
sub comm_config {
# -------------------------------------------------------------------
return $CFG;
}

..it shows up the template set properly!!!

Code:
'system_template_set' => 'luna',

...so it appears to be just a bug on that page for some reason - not sure why though

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates