Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
kwiqness
Hangin' Around



Joined: Mar 01, 2012
Posts: 25

PostPosted: Thu Nov 21, 2013 2:58 pm Reply with quote

Ok, so I uploaded a theme that was supposedly compatible with Raven2.5. WRONG!

Now I can't see anything but a banner. I try to remove the theme from the ftp share, and i get a blank white page, I try to change the values on the SQL backend, and it doesn't take effect.

Did I just screw myself, or is there a way out of this without completely re-installing the site?

Thanks
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Thu Nov 21, 2013 5:06 pm Reply with quote

If you remove the theme folder completely, it should revert to a default theme. You should also be able to change the theme via SQL. Which table(s) are you updating? Are you getting errors updating?

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1774

PostPosted: Fri Nov 22, 2013 8:29 am Reply with quote

Open phpmyadmin and search in table nuke_config the field 'Default_Theme'. There you can enter a name of another installed theme.

After that make sure, that your own user-account haven't stored the deleted theme. Open table nuke_users, search field 'theme' and if you have here a entry, then remove the theme-name - blank field.

Now it should work!

Please note: Don't delete a used theme-folder before you haven't determined a new theme!

_________________
Github: RavenNuke 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Nov 22, 2013 12:53 pm Reply with quote

Curious which theme you were using to see if it's worth fixing.
 
View user's profile Send private message Send e-mail
kwiqness







PostPosted: Fri Nov 22, 2013 4:58 pm Reply with quote

I don't think it was a raven them now that I look. It is called Evil Incarnate. I picked it up from clanthemes. I did get my issue resolve thanks to the recommendation of neralex.

I went back to the basic themes. I will probably just design one the way I want.

WHile I am here I have another questions though, related to profiles and custom fields. I want to only allow a certain group the ability to see member profiles. Is there something native, in the vanilla build that would dis-allow members from seeing other members profiles, so I could permis the admin group I build to see them exclusively?

I have been reading through the wiki documents and other resources I can find regarding raven, just to familiarize myself with it, but I haven't run across anything just yet.

Thanks for all the help, I really appreciate it.
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Fri Nov 22, 2013 6:23 pm Reply with quote

you would have to modify modules/Your_Account/public/userinfo.php to add this functionality. You can't restrict access to the entire module or people can't login Smile

I haven't tried this and don't have time to test it, but it might help get you started. look for (around line 55)
Code:


      /*
       * General User Info
       */
      if (defined('LOGGEDIN_SAME_USER')) {


change to (note that this would give access to group 1 which is by default the moderator group. If you create/use another NSN group substitute 1 for the actual group id. BTW, Don't confuse NSN groups with User Groups which are tied to points.)
Code:


      /*
       * General User Info
       */
      if (in_groups(1) OR defined('LOGGEDIN_SAME_USER')){
      if (defined('LOGGEDIN_SAME_USER')) {



next look for (around line 254)
Code:


   } else {
      OpenTable();
      echo '<div class="text-center"><strong>' . _NOINFOFOR . ' <span class="italic">' . $usrinfo['username'] . '</span></strong></div>';
      if ($usrinfo['user_level'] == 0) {
         echo '<br /><div class="text-center"><strong>' . _ACCSUSPENDED . '</strong></div>';
      }
      if ($usrinfo['user_level'] == -1) {
         echo '<br /><div class="text-center"><strong>' . _ACCDELETED . '</strong></div>';
      }
      CloseTable();
   }


add before
Code:


   } else {
      echo 'some message to display for those not authorized';
   }
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©