http://www.yoursiteurl/browse.php?type=categories
Want to make your categories look better on the Browse page with descriptions AND images?
Add this to the style.css file of each skin you want it to show up on:
.column DIV { margin: 1em !important; clear: left;}
.column DIV IMG { float: left; margin: 4px;}
I have my columns set to columns of 3. Each category has the image shown on the upper left, and the text wrapping around it. The descriptions have space between the ones to the sides, as well as the ones above and below.
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
Here is my site. Sam Emme Tales
I am using 4 columns. What would be the css if you want the titles to go below the images?
I charge into the light and need only yours to find my way. Archive of One:
Are you using {categories_content} in your index.tlp file?
If so, it would be better to just add or replace this in your variables.php file of the skin in question:
$blocks['categories']['template'] = "{image}<br /> {link} [{count}]";
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
Yes, I am using {categories content} in the index.tlp file.
As a test I've added text to the description part of the category (which I want to keep) and then switched out my $blocks["categories"]["status"] = 2; with the one you have $blocks['categories']['template'] = "{image}<br /> {link} [{count}]";. While the titles have gone under the images, my descriptions have been removed. Did I miss something?
I charge into the light and need only yours to find my way. Archive of One:
Just so you know, they mean different things.
What $blocks["categories"]["status"] = 2 means is the "block" of "categories" status is 2 (2 means on, or 'on' on the index page)
What $blocks['categories']['template'] = "{image}<br /> {link} [{count}]"; means is the "block" of "categories" look (or template) should be the image, then a break, the link and number of stories.
The look, or template doesn't include the description in what I gave you..
{image}<br /> {link} [{count}]
XXX
XXX
Category [45]
is how it shows up.
I don't have descriptions in my categories, so I'm not sure, but try adding {descriptions} or {description} to the template part in variables.php so it's something like
{image}<br /> {link} [{count}] {description}
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
Thanks, I figured it out.
I added back to the variables.php : $blocks["categories"]["status"] = 2
I also added this line : $blocks["categories"]["template"] = "{image} <br>{link} [{count}] <div>{description}</div>";
Lastly, I added this line to the categories.tpl : {image}<br>{link} {count}<br>{description}
I charge into the light and need only yours to find my way. Archive of One:
The block is controlled separately from the page. Edit your categories.tpl to move the content where you want. I suggest you start by doing it in one skin and then if you want it that way in all, copy it.
I really wanna change the look of my categories.
This is how my categories.tpl looks like
<!-- START BLOCK : categories -->
<div id=columncontainer>{image}<br>{link} {count}<br>{description}</div>
<!-- END BLOCK : categories -->
And this is what I have on the variables.php
/* CATEGORIES */
$blocks["categories"]["status"] = '1';
$blocks['categories']['template'] = "{image}<br /> {link} [{count}]";
But now there are none of my categories on the website. :/ What did I miss?
http://worldofx.de/fanfics/browse.php?type=categories
My Hub TrekNation | World of X | Arda Fanfiction
