Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7
Author Message
agentorange
Hangin' Around



Joined: May 15, 2008
Posts: 27

PostPosted: Tue May 20, 2008 9:06 am Reply with quote

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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue May 20, 2008 10:42 am Reply with quote

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.
 
View user's profile Send private message
agentorange







PostPosted: Tue May 20, 2008 11:29 am Reply with quote

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.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue May 20, 2008 9:03 pm Reply with quote

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?

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
agentorange







PostPosted: Wed May 21, 2008 6:52 am Reply with quote

No buttons, no choices and I had them before I screwed up my index.php
 
evaders99







PostPosted: Wed May 21, 2008 7:48 am Reply with quote

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&amp;op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
       ."<a href=\"modules.php?name=Your_Account&amp;op=chgtheme\">"._SELECTTHETHEME."</a>"
       ."</center></form></font></td>";
    }


That should be all that is necesary to show the theme button
 
agentorange







PostPosted: Wed May 21, 2008 11:50 am Reply with quote

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]
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed May 21, 2008 12:47 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
agentorange







PostPosted: Wed May 21, 2008 1:05 pm Reply with quote

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
 
fkelly







PostPosted: Wed May 21, 2008 1:36 pm Reply with quote

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.
 
agentorange







PostPosted: Wed May 21, 2008 2:11 pm Reply with quote

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
 
fkelly







PostPosted: Wed May 21, 2008 3:00 pm Reply with quote

Maybe someone who knows more about CNBYA can help. I've never seen it.
 
agentorange







PostPosted: Fri May 23, 2008 7:59 am Reply with quote

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
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©