| Previous topic :: Next topic |
| Author |
Message |
michaelphill
Joined: 30 Nov 2006
Posts: 18
|
| Posted: Mon Mar 12, 2007 3:07 pm Post subject: Remove theme |
|
|
| Is there a way to deactive certain themes? I'd like to force users to use BlueLagoon. |
|
| Back to top |
|
joebordes
Joined: 18 Aug 2006
Posts: 1137
Location: Alicante/Valencia, Spain
|
| Posted: Mon Mar 12, 2007 3:45 pm Post subject: Re: Remove theme |
|
|
Hi,
Simply eliminate it from the themes directory.
Regards, Joe
TSolucio |
|
| Back to top |
|
Lukas
Joined: 22 Sep 2006
Posts: 408
Location: Czech rep.
|
| Posted: Mon Mar 12, 2007 3:51 pm Post subject: Re: Remove theme |
|
|
Before this I advice you turn off apache then delete themes directory and turn on apache, because is there some cache issue what can caused error message like this one:
Warning: include() [function.include]: Failed opening 'themes/bluelagoon/footer.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/.../.../index.php on line 674
Thanks & Regards
LN |
|
| Back to top |
|
BrianLaughlin
Joined: 13 Dec 2005
Posts: 801
|
| Posted: Mon Mar 12, 2007 5:17 pm Post subject: Re: Remove theme |
|
|
| Added to wiki. |
|
| Back to top |
|
timmeh
Joined: 20 Nov 2007
Posts: 10
|
| Posted: Thu Dec 27, 2007 11:31 am Post subject: Re: Remove theme |
|
|
| How does one go about turning Apache off on a web host? |
|
| Back to top |
|
BrianLaughlin
Joined: 13 Dec 2005
Posts: 801
|
| Posted: Thu Dec 27, 2007 6:15 pm Post subject: Re: Remove theme |
|
|
I think...
service httpd stop
then
service httpd start
or
/etc/init.d/httpd stop
/etc/init.d/httpd start
Good luck, |
|
| Back to top |
|
timmeh
Joined: 20 Nov 2007
Posts: 10
|
| Posted: Thu Dec 27, 2007 7:25 pm Post subject: Re: Remove theme |
|
|
Excuse my ignorance, but where do I enter this command?
Cheers |
|
| Back to top |
|
rasomu
Joined: 14 Jul 2005
Posts: 131
Location: Valencia, Spain
|
| Posted: Fri Dec 28, 2007 10:46 am Post subject: Re: Remove theme |
|
|
Put that on modules/users/login.php line 147
add
<input type="hidden" name='login_theme' value='bluelagoon'>
<input type="hidden" name='login_language' value='es_es'>
Comment
<!--<tr bgcolor="#f5f5f5">
<td class="small" align="right" width="30%"><?php echo $current_module_strings['LBL_THEME'] ?></td>
<td class="small" align="left" width="70%"><select class="small" name='login_theme' style="width:70%" tabindex="3"><?php echo get_select_options_with_id(get_themes(), $display_theme) ?></select></td></tr><tr bgcolor="#f5f5f5">
<td class="small" align="right" width="30%"><?php echo $current_module_strings['LBL_LANGUAGE'] ?></td>
<td class="small" align="left" width="70%"><select class="small" name='login_language' style="width:70%" tabindex="4">
<?php echo get_select_options_with_id(get_languages(), $display_language) ?></select></td>
</tr>-->
With this code you set default template and language to your users, you can do it only for templates not commenting the language code. |
|
| Back to top |
|
timmeh
Joined: 20 Nov 2007
Posts: 10
|
| Posted: Sat Dec 29, 2007 5:42 pm Post subject: Re: Remove theme |
|
|
Hmmm. A bit lost. Can it be spelled out to a noob like me from somebody?
I must turn off apache by writing what Brian noted above in line 147? Then must I enter all that code directly below the apache command? Seems a bit much to just have one theme displayed at login and not 3 |
|
| Back to top |
|
Lukas
Joined: 22 Sep 2006
Posts: 408
Location: Czech rep.
|
| Posted: Sat Dec 29, 2007 6:51 pm Post subject: Re: Remove theme |
|
|
@ timmeh
You just need restart webserver e.g. apache...
Regards,
LN |
|
| Back to top |
|
| |