[solved] Lost categ...
 
Notifications
Clear all

[solved] Lost categories while skinning - what did I do?

12 Posts
2 Users
0 Reactions
3,130 Views
(@guest1798)
Posts: 0
 

This is what happens when I only decide to mess with layouts every two years. /sigh

Anyway.  So, I've modified the everloving crap out of the csszen skin.  After a few rough spots, I thought everything was going splendidly; the front page was done in basic form, and I started working on styling the story pages, and then the listings pages.  Since I picked up efiction way back when to be my very own personal fiction archive I decided to pull out a few things -- I don't need by-lines, since everything in there is obviously mine, I wanted to clean out a few labels I wasn't interested in (completed, etc), as well as a few of the upper bits -- forget the drop-down menus, and the big giant 'Stories' -- it's a purely fic archive so it's a redundant title in what's supposed to be a pretty minimal layout.

But then horror struck! I noticed a typo on the story I was using as my base for story template editing, and edited to fix.  When I finished, the fic had disappeared from the category list.  I found it, via the warning level (and noticed that there was no link for category in the story info box), and tried to edit to put a category on it again.  However, when I go to the edit screen (both story and chapter), 'category' is completely gone.  When I went to my home page, the 'category' block is now empty, too.  Finally deleted it, and figured I'd just add it again ... but any new fic I try to add won't allow me to choose a category either. 😐

Nervous and unable to figure out wtf I did wrong, I dragged all the default .tpls back into the skin folder I'm working on, but it's still gone.  I haven't edited any of the .php files, only the .tpls and stylesheets in this particular folder.  I did tweak the settings a bit to try to get rid of the 18+ notice (since it was giving errors in the validator, and I don't really use those, either), but I can't for the life of me figure out what I did.  Ticky box ticking stuff, not link changing stuff.

So, the shame:

You can see what I'm talking about @   http://karaoke-soul.net
The skin is called 'stark'
the .css file is found at http://karaoke-soul.net/skins/stark/style.css
I'm running 3.5.1

I'm testing in Firefox; I haven't gotten far enough to mess with cross-browser compatibility, so I'm not sure how it renders in everything else. It validates, though. o_o/

And, I suppose, while we're at it -- how do I get rid of the link headers at the top of each page?  It looks to be part of the [output] [other results] bits, which wreak hell on my browse page if I don't leave them alone.  Not a huge deal, I'm just trying to stay as clean as possible.

Help a sister out? ♥

Thanks for looking!  And thank you for any advice on the situation. :3

--

ETA: Just upgraded to new version; was hoping that would fix it.  No dice. :<


 
Posted : 25/05/2011 6:37 am
(@babaca)
Posts: 722
Member Moderator
 

Do you have the Category block turned on? That's in ADMIN->BLOCK->Categories

Do you have it set to Show on the Index only? (Your other choices in this pull-down is Inactive or Active)
You could also click on the Options link next to it and select if you want 1 column or multiple columns; there is also a Default or Use .TPL if default doesn't work try Use TPL


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 25/05/2011 1:26 pm
(@guest1798)
Posts: 0
 

Category block is definitely turned on.  It is set to Index only, as well.

I tried 'use.tpl' as well, but nothing happens; the exact same issue is present; the categories block remains stubbornly empty on my front page.

If you want to take a look at it yourself, there's a test account: username is test, and password is password.


 
Posted : 25/05/2011 4:37 pm
(@babaca)
Posts: 722
Member Moderator
 

You may have to tweak in the index.tpl or header.tpl depending of if you modified one of the skins that are around here. For instance in your Soul skin,

You have in the index.tpl:

  <div class="block">
      <div class="tl"><div class="tr">
<div class="title">Categories</div>
</div></div>
      <div class="content"></div>
      </div>

But it should be something like:

  <div class="block">
      <div class="tl"><div class="tr">
<div class="title">Categories</div>
</div></div>
      <div class="content">{categories_content}</div>
      </div>

I think that will fix the problem where the class for the ="content" you need to put {categories_content} in that div tag.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 25/05/2011 4:57 pm
(@guest1798)
Posts: 0
 

Hokay, I think we're getting to the heart of it now.  I checked out what you mentioned there, and ... I swear I haven't changed anything, but it's exactly as you said it should be.  categories_content is definitely in there, but does not show up on-site.

Have I maybe somehow messed with the place categories_content pulls its code from?


 
Posted : 25/05/2011 5:32 pm
(@babaca)
Posts: 722
Member Moderator
 

Check the Variables.php file that is in your skins folder. A typical variables.php will look like this:

<?php
$blocks["categories"]["status"] = 2;
$blocks["featured"]["status"] =  '0';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
  0 => 'home',
  1 => 'recent',
  2 => 'authors',
  3 => 'catslink',
  4 => 'titles',
  5 => 'series',
  6 => 'search',
  7 => 'tens',
  8 => 'challenges',
  9 => 'help',
  10 => 'contactus',
  11 => 'login',
  12 => 'logout',
  13 => 'adminarea');
$blocks["menu"]["style"] = 1;
$blocks["login"]["status"] = 2;
$blocks["random"]["status"] = 2;
$blocks["recent"]["status"] = 2;
$blocks['recent']['tpl'] = 0;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
?>

You might have to change the part that says:
$blocks["categories"]["status"] = 2;

to

$blocks["categories"]["status"] = 1;


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 25/05/2011 5:44 pm
(@guest1798)
Posts: 0
 

Tried it -- hoped for the best, but alas. :<

This is what my variables looks like.  Looking through it, I changed the categories/column line to =1;, but there was no change there so I put it back to 0 like I found it.

<?php
$blocks["categories"]["status"] = 1;
$blocks["categories"]["template"] = "{image} {link} [{count}]";
$blocks["categories"]["columns"] = 0;
$blocks["featured"]["status"] =  '0';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
0 => 'home',
1 => 'about_link',
2 => 'browse',
3 => 'electric',
4 => 'shounen');
$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
"title" => "",
"status" => "1",
"file" => "menu/menu.php",
"style" => 0,
"content" => array (
0 => 'adminarea',
1 => 'login',
2 => 'logout',
3 => 'contactus'
)
);
$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 0;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 0;
$blocks["recent"]["status"] = 2;
$blocks["recent"]["tpl"] = 1;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$blocks['news']['num'] = 3;
$new = "<span class='new'>New!</span>";
$displayprofile = 0;
$linkstyle = 0;
$displayindex = 1;
?>

 
Posted : 25/05/2011 5:59 pm
(@babaca)
Posts: 722
Member Moderator
 

Change:

$blocks["categories"]["columns"] = 0;

to

$blocks["categories"]["columns"] =1;


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 25/05/2011 6:08 pm
(@guest1798)
Posts: 0
 

Okay, it's there but categories still aren't showing up.  Is there a global variable setting somewhere that is overriding it somewhere?


 
Posted : 25/05/2011 7:15 pm
(@babaca)
Posts: 722
Member Moderator
 

Try changing the Category status back from 1 to 2. Truthfully I'm never sure what those numbers mean. Also check in your admin settings that you gave categories a number (Adimin->Settings->Display Settings->Number of Columns) make sure it's not set to 0 or it won't show anything put at least 1 in there and it should show up on your skin. Are you sure in ADMIN->Settings->SITE SETTINGS that for Categories you have it set to More than 1. Just changing the variables might not be enough.

SOLUTION BELOW:

ADMIN->Settings->SITE SETTINGS->CATEGORY Make sure you select MORE THAN ONE. I just tested it by selecting ONLY ONE and my categories didn't show up on the front page. (They did show up under Browse->Category).


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 25/05/2011 7:32 pm
(@guest1798)
Posts: 0
 

Oh my god, that did it -- I feel completely silly!  I was certain I'd done something huge ... thank you so much, babaca!  You're a lifesaver! ♥


 
Posted : 26/05/2011 1:42 am
(@babaca)
Posts: 722
Member Moderator
 

I'm glad that we got it sorted out. Sometimes it is the little things that cause all the trouble.  πŸ‘Ώ


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 26/05/2011 2:20 am
Share: