PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
agentorange
New Member
New Member


Joined: May 15, 2008
Posts: 23

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

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: 15201
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
agentorange
New Member
New Member


Joined: May 15, 2008
Posts: 23

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

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


Joined: Apr 30, 2004
Posts: 2844

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

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


Joined: May 15, 2008
Posts: 23

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

No buttons, no choices and I had them before I screwed up my index.php
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2844

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

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


Joined: May 15, 2008
Posts: 23

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

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]
View user's profile Send private message
fkelly
Moderator


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

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

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
New Member
New Member


Joined: May 15, 2008
Posts: 23

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

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


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

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

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


Joined: May 15, 2008
Posts: 23

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

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


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

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

Maybe someone who knows more about CNBYA can help. I've never seen it.
View user's profile Send private message Visit poster's website
agentorange
New Member
New Member


Joined: May 15, 2008
Posts: 23

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

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum