Author |
Message |
agentorange
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: May 15, 2008
Posts: 27
|
Posted:
Tue May 20, 2008 9:06 am |
|
Hello All;
I was just wondering how do I turn on my theme selection for user, I can't change any themes right now
Cheers |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue May 20, 2008 10:42 am |
|
Unless you have altered your folder structure all themes that have a folder structure of themes/THEME_NAME/index.php should automatically appear when you select the Your Account module. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
agentorange
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 20, 2008 11:29 am |
|
Well as it happens my index.php file got corrupted and I replaced it with 1 I got from the developer. So now I'm wondering if I need to turn anything on in the file itself. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue May 20, 2008 9:03 pm |
|
No, there shouldn't be anything to turn on.
What exactly do you see in Your_Account? Do you see a Themes button? Do you see any choices there? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
agentorange
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 6:52 am |
|
No buttons, no choices and I had them before I screwed up my index.php |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 7:48 am |
|
In your modules/Your_Account/navbar.php file
Check for the following code (may be slightly different depending on what versions and such you've done)
Code:
$thmcount = 0;
$handle=opendir('themes');
while ($file = readdir($handle)) {
if ( (!ereg("[.]",$file)) ) {
$thmcount++;
}
}
closedir($handle);
....
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><br>"
."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>"
."</center></form></font></td>";
}
|
That should be all that is necesary to show the theme button |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
agentorange
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 11:50 am |
|
This is what I have
Code: // Set TD widths
$tds = 3;
$handle=opendir('themes');
while ($file = readdir($handle)) { if ( (!ereg("[.]",$file)) ) { $thmcount++; } }
closedir($handle);
if (is_active("Private_Messages")) { $tds++; }
if (is_active("Journal")) { $tds++; }
if (($thmcount > 1) AND ($ya_config['allowusertheme'] == 0)) { $tds++; }
if ($articlecomm == 1) { $tds++; }
if ($ya_config['allowuserdelete'] == 1) { $tds++; }
$tdwidth = (int) ( (100/$tds) );
// END Set TD widths
if (($thmcount > 1) AND ($ya_config['allowusertheme'] == 0)) {
$menuimg = menuimg("themes.png");
echo "<td width=\"$tdwidth%\" valign=\"top\" align=\"center\" class=\"content\">\n";
echo "<a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>\n";
echo "<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._ACCTTHEME."</a>\n";
echo "</td>\n";
}
[/quote]
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
Former Moderator in Good Standing
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Wed May 21, 2008 12:47 pm |
|
Are you using CNBYA or some other customized version of YA? It looks like there is a setting 'allowusertheme' that needs to be turned on administratively to allow users to select their own themes. Or maybe this was a change in Nuke 7.7 in admin preferences.
You need to look around for this. I'd guess that allow user themes is not turned on. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
agentorange
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 1:05 pm |
|
I am assuming that 0 turns off and 1 turns on? Ok tag is back for change theme but it tells me admin has disabled it.... checking settings |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 1:36 pm |
|
At the database level that's usually the way it's done. But if there is a "preferences" setting for it somewhere you usually just click a check box to on. If you are using CNBYA look there, otherwise in admin preferences for 7.7. I don't have 7.7 and can't check for you. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
agentorange
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 2:11 pm |
|
sorry I am using CNBYA and no setting in admin preferences, Oh got the themes page to come up but now can't change the theme I wll keep plugging at t and give you all an update, pretty much it's all to do with my orignal index.php and I'll be checking all the command line in it...1's and 0's lol |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 21, 2008 3:00 pm |
|
Maybe someone who knows more about CNBYA can help. I've never seen it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
agentorange
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 23, 2008 7:59 am |
|
FYI folks I figured out what was causing my issue's the savetheme was set to "0"
case "savetheme":
if (is_user($user)) {
if ($ya_config['allowusertheme']== 1) {
include("modules/$module_name/public/savetheme.php");
} else {
disabled();
All good now, and thank you to all who replied to my post.....
Cheers ![Cheers](modules/Forums/images/smiles/cheers.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|