[Solved] Problems s...
 
Notifications
Clear all

[Solved] Problems showing Random Stories

7 Posts
3 Users
0 Reactions
1,997 Views
ShiKahr
(@shikahr)
Posts: 60
Trusted Member
Topic starter
 

I want to show random stories on the index page, but it shows only empty blocks. I read I have to change to "use .tpl so I did. But it doesn't change anything. Do I have to change it somewhere else than Admin --> Blocks --> Options? When I change and go back to the Options, it tells me Not applicable. Use .tpl selected.. Did I do something wrong?

Thanks for help.


Get your Arsch out of the couch." Gayle Tufts

 
Posted : 31/05/2008 2:10 pm
(@tammy)
Posts: 2577
Member Moderator
 

Please use the support template.  You haven't given us nearly enough information to try to help you.  We need to know the URL of your site and the name of the skin you're trying to work on.  With the information you've given I can only suggest you make sure you've activated the block and that the variables.php file in the skin isn't turning it back off.  There's plenty of threads that discuss those two issues.


 
Posted : 31/05/2008 3:45 pm
ShiKahr
(@shikahr)
Posts: 60
Trusted Member
Topic starter
 

What do you mean with support template?

Well, I use "Lite" what is an adaption of the "CSSZen" template.
The url of the site is www.shipper-fanfiction.de.vu


Get your Arsch out of the couch." Gayle Tufts

 
Posted : 31/05/2008 5:01 pm
(@tammy)
Posts: 2577
Member Moderator
 

You have nothing in your .tpl files for the random block.  Please see https://efiction.org/forums/index.php?topic=4308.0 .


 
Posted : 31/05/2008 5:17 pm
ShiKahr
(@shikahr)
Posts: 60
Trusted Member
Topic starter
 

You have nothing in your .tpl files for the random block.

Sorry but I don't understand this. When one looks into the sources okay, one does not see anything, but I have more than one story in my archive. So , why should it be empty? Do I have to activate something else beside the random block? On the Admin-site it is activated to be shown "Index only". On this site there is a Preview "Current" and when I have the Block style "Standard" it shows me what it would be look like on the frontside. But when I change the Block style to "Use .tpl" it shows me the error "Not applicable. Use .tpl selected." What does that mean? I don't have a clue what is meant with that. The archive is not empty, so it should show me random stories, shouldn't it?

I read the link, too. But it doesn't help me either. I opened the variables.php and changed the $blocks["random"]["status"]. I tried it with "0", "1", "2" and "3". But everytime the same result. Could there be another problem or a setting I have to change?

Thanks for help.


Get your Arsch out of the couch." Gayle Tufts

 
Posted : 01/06/2008 8:56 am
(@jacci)
Posts: 503
Honorable Member
 

have you got somewhere in your index.tpl {random_content} coded in ?

Setting variables to display won't do anything unless you have called the random content into your index page

typically a block to display random story will look something like this:

     <div class="block">
       <div class="title">{random_title}</div>
       <div class="content">{random_content}</div>
     </div>

why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 01/06/2008 9:07 am
ShiKahr
(@shikahr)
Posts: 60
Trusted Member
Topic starter
 

Yes, I have. But thanks for the tip, because I found the problem. After I changed the block["random"]["status"] to "2" in the variables.php  I had to change the block style back to "Standard". And now it works.

Problem solved.
Thanks again.


Get your Arsch out of the couch." Gayle Tufts

 
Posted : 01/06/2008 9:16 am
Share: