Over at Dragonfayth ( http://seventh-star.net/drfa), CSS Zen is my default skin until I can design my own, or upgrade some of the 2.0 ones I liked. I decided to enable the included Featured Stories and Random Story block, and so I edited the index.tpl in the csszen skin folder to reflect that. I made sure I used the right variables and everything, but on the skin, the block TABLES appear, but no content, even though there are both Random and Featured Stories set in the Admin Panel. Why aren't they showing up, even though the tables are clearly there?
Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log
Did you go into the random and featured admin and set it to use .tpl?
No... should I have (is that what use .tpl means-- use the index.tpl file to call the blocks)? If it's not set to that, how else do the blocks show up?
Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log
Use .tpl means you use the <!-- START BLOCK : recentblock --> method. If you don't have use .tpl set you include the default content with {recent_content}.
Right, so all I did when I edited index.tpl was include the following (which is the do not use *.tpl method, if I'm reading your reply correctly):
<div class="block">
<div class="title">{random_title}</div>
<div class="content">{random_content}</div>
</div>
<div class="block">
<div class="title">{featured_title}</div>
<div class="content">{featured_content}</div>
</div>
There's nothing wrong with the formatting or nesting of that, right? And the TABLES show up, just no content within them.
Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log
Did you turn them on in the blocks panel? They should be set to index only unless you want them on every page, then you just set them to active.
Yes, currently they're both set to Index Only.
Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log
Check the skin's variables.php. I believe I probably forced these blocks to off there.
Okay, that might be it-- that might also have something to do with my other post (About the categories block being all mangled because of a variables.php edit). But what are the differences between 0, 1, and 2 settings? I checked the readme, but it didn't say.
Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log
0, 1 and 2 for what?
For status:
0 - off
1 - active
2 - index only
Yes, I was wondering about the 0, 1, and 2 I kept setting for the status of blocks or menu options. Though, I also did see '3' for this one:
$blocks['news']['num'] = 3;
, and I think my categories problem (in my other post) stemmed from my confusion over what numbers were allowable for
$blocks["categories"]["columns"] = 0;
confused me. I'm actually editing that post now, but this issue is now resolved, as I changed the number in variables.php to the correct setting, and now both blocks appear. Thanks!
Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log
The num variable for news is the number of news items to display.
