» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 40
0 members and 40 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on How to use just one Theme within the Nuke 6.5 to 6.9 - Themes forums, part of the PHP-Nuke 6.5 to 6.9 category; How to remove the choice for the users for a theme. I want to use just 1. In the admin ...


Go Back   Nukemods Forum » PHP-Nuke 6.5 to 6.9 » Nuke 6.5 to 6.9 - Themes

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-15-2003, 03:36 PM
Junior Member
 
Join Date: Apr 2003
Location: The Netherlands
Posts: 60
How to use just one Theme
How to remove the choice for the users for a theme.
I want to use just 1. In the admin config its possible to ser the standard theme, but a user can still change a theme for the forum.
In the forum config i cant set the theme to subblack. There's only the default subsilver.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-15-2003, 03:56 PM
Junior Member
 
Join Date: Apr 2003
Posts: 16
I take it you are using 6.5?

Okay here is a way of doing it, although somebody might suggest a better way.

Set the Nuke Preferences in admin to subblack and your forum will be subblack.

Goto /modules/Your_Account/ and open up nav.php

Find line 71-77

Code:
if ($thmcount > 1) {
	$menuimg = menuimg("themes.gif");
	echo "<td width=\"10%\"><font class=\"content\">"
              ."<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a>
"
	   ."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>"
	    ."</center></form></font></td>";
   }
And place a // in front of each line.

This will mean if they goto "Your Account" the ability to change themes is taken away.

The downside is that if you want to test an alternative theme yourself, you will have to take out the // from line 71 - 77 login to your account and change theme for yourself - then re-do the // again.

Hope that helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-15-2003, 04:05 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
The easiest way is to remove ALL but your Default theme from your themes folder on your FTP, then the selection to change themes will magically disappear from the Your Account page since you now only have ONE theme in your themes folder.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-15-2003, 04:17 PM
Junior Member
 
Join Date: Apr 2003
Posts: 16
I just knew there was an easier way Thanks for explaining that Mike, I didnt know that option vanishes with just one theme
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-15-2003, 04:36 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by TalkNuke
I just knew there was an easier way Thanks for explaining that Mike, I didnt know that option vanishes with just one theme
hey, we all learn something new everyday..if we didn't, wouldn't life suck ? :-)

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-15-2003, 05:58 PM
Junior Member
 
Join Date: Apr 2003
Location: The Netherlands
Posts: 60
He guys thank you both!!

So i remove the other themes with ftp :wink:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-15-2003, 06:01 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
One mroe thing. If your users have any issues because of removing the "other" themes. you may need to clear their theme selction filed in the database.

You can do that using this script.
Copy this. Paste it in notepad and save as cleartheme.php
Code:
<?php

######################################################
# File to clear themes from PHP-Nuke 6.5
# After you used this file, you can safely delete it.
######################################################
#            -= WARNING: PLEASE READ =-
#
# NOTE: This file uses config.php to retrieve needed
# variables values. So, to do the upgrade PLEASE copy
# this file in your server root directory and execute
# it from your browser.
######################################################

include("mainfile.php");

####################### BEGIN THE UPDATE #######################################



// clear theme
$db->sql_query("UPDATE ".$prefix."_users SET theme=''");
Upload to your main Nuke directory and then run it
http://www.yoursite.com/cleartheme.php

that will clear the theme selection field fo all users..Doesn't hurt anything.

Backup your Database just in case though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-15-2003, 04:19 PM
Junior Member
 
Join Date: May 2003
Location: California
Posts: 6
Send a message via AIM to Darius
Mikem: I am doing the same thing, removing all other themes... And I have a question, are there any directories in the themes folder that need to stay there, that are neccessary files, or should I just delete every folder that's not the theme I want?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-15-2003, 05:08 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
There should only be theme's folder sin the themes directory.
You should be safe to delete all the "other" themes in your themes directory and leave your default one.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-15-2003, 08:36 PM
Junior Member
 
Join Date: Jan 2003
Posts: 83
You want a hard problem about this topic? Here we go...

Nuke 6.0 with phpbbtonuke 2.0.4
BackDog theme for Nuke (graphics changed)
Charcoal theme for phpbb (damn...i didn't knew from begining that Charcoal has BlackDog as theme for Nuke integrated into his package)

BlackDog is hardly coded and gives many kinds of bugs and already I fixed some of them but many other left. So if i overwrite BlackDog files into Charcoal it gives me nasty errors.

No other themes in /theme folder only those 2. Ofcourse users can change from Your_account the theme from BlackDog into Charcoal looks same BUT many modules which are working good unde BlackDog are changed a little bit (ie. if i have one module with right side blocks OFF after users apply Charcoal those Blocks are shown)
Also if a user tries to change the theme from Forum Profile and clicks on the single choice (Charcoal) then he has that theme for Nuke also.

I tried to UPDATE the field theme with '' in nuke_users but if a user which made that change comes back he has the changed theme just because of the cookies i think and is updated into db without doing anything.
I tried to make the theme field from nuke_users NULL and default IS NULL but no good.

Again i think te best way is to copy actual BlackDog over Charcoal.. but when i did it i got nasty erros.

Anyone willing to fix this mess?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:08 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31