Notifications
Clear all

Most recent block question (SOLVED)

9 Posts
3 Users
0 Reactions
1,718 Views
 lipa
(@lipa)
Posts: 48
Eminent Member
Topic starter
 

I didn't find the answer to this on the forum, sorry if someone already asked: On my middle index I added a Most recent block and it worked just fine.

<!-- START BLOCK : recentblock -->
     <b>Mais Recentes:</b>
     <div class="recentbox">
     <div class="title">{title} por {author}</div>
     <div class="content"><span class="label">Resumo: </span>{featuredstory}{summary}<br />
     <span class="label">Classificação:</span> {rating} {score}<br />
     <span class="label">Categorias:</span> {category} <br />
     {classifications}
     <span class="label">Capítulos:</span> {numchapters} <br />
     <span class="label">Série:</span> {serieslinks}<br />
     <span class="label"> Publicado: </span>{published} <span class="label">Actualizado:</span> {updated} </div>
     </div>

However it's shows only the last story updated, what do I have to add so I can see the last 2/3 stories updated?

It must be simple and I tried on my own but I can't get it right.
Thanks!!!


 
Posted : 03/06/2009 8:07 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

You either have to change the setting in Admin > Blocks> then "Options" in the Most Recent row, or in the variables.php file for the skin. If the skin has a variables.php file and it's controlling the number of Most Recent, it overrides the general settings in the Admin control panel.


 
Posted : 03/06/2009 9:29 pm
 lipa
(@lipa)
Posts: 48
Eminent Member
Topic starter
 

this was so easy and I was in that page so many times without noticing that little box! (was just paying attention to the tpl option at the time ) thanks!!!


 
Posted : 03/06/2009 9:56 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Cool. Another thing to note for the future is that any settings you change in the Admin control panel affect all skins, which is the purpose of giving skins variables.php files, which control only the individual skin. So, if in the future you wanted a skin that didn't use .tpl or only showed one entry of most recent, you could put that in the variables.php for the skin and it would override the settings only for that skin.

This wiki article also explains it: https://efiction.org/wiki/index.php5?title=Variables.php


 
Posted : 03/06/2009 10:00 pm
 lipa
(@lipa)
Posts: 48
Eminent Member
Topic starter
 

Thanks for reminding me, I really appreciate it 😉 ^^


 
Posted : 04/06/2009 5:03 am
(@samararaine)
Posts: 11
Active Member
 

Hey, where did you post this? You mentioned an index file? But which one?

I didn't find the answer to this on the forum, sorry if someone already asked: On my middle index I added a Most recent block and it worked just fine.

<!-- START BLOCK : recentblock -->
     <b>Mais Recentes:</b>
     <div class="recentbox">
     <div class="title">{title} por {author}</div>
     <div class="content"><span class="label">Resumo: </span>{featuredstory}{summary}<br />
     <span class="label">Classificação:</span> {rating} {score}<br />
     <span class="label">Categorias:</span> {category} <br />
     {classifications}
     <span class="label">Capítulos:</span> {numchapters} <br />
     <span class="label">Série:</span> {serieslinks}<br />
     <span class="label"> Publicado: </span>{published} <span class="label">Actualizado:</span> {updated} </div>
     </div>

However it's shows only the last story updated, what do I have to add so I can see the last 2/3 stories updated?

It must be simple and I tried on my own but I can't get it right.
Thanks!!!


 
Posted : 16/10/2010 5:46 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

I believe lipa was talking about the skin's index.tpl file.


 
Posted : 16/10/2010 10:36 pm
(@samararaine)
Posts: 11
Active Member
 

My question was actually cut off. I don't know why. I need to know where to put the following code. In the index file as stated above?

<!-- START BLOCK : featuredblock -->
<span class="text">{title} by {author} ({rating})<br> {summary}<br><br></span>
<span class="label">Categories:</span> {category} <br />
<span class="label">Chapters: </span> {numchapters} {toc}<br />
<span class="label">Completed:</span> {completed} 
<!-- END BLOCK : featuredblock -->

<!-- START BLOCK : recentblock -->
<span class="text">{title} by {author} ({rating})<br> {summary}<br><br></span>
<span class="label">Categories:</span> {category} <br />
<span class="label">Chapters: </span> {numchapters} {toc}<br />
<span class="label">Completed:</span> {completed} 
<!-- END BLOCK : recentblock -->

<!-- START BLOCK : randomblock -->
<span class="text">{title} by {author} ({rating})<br> {summary}<br><br></span>
<span class="label">Categories:</span> {category} <br />
<span class="label">Chapters: </span> {numchapters} {toc}<br />
<span class="label">Completed:</span> {completed} 
<!-- END BLOCK : randomblock -->

That's the proper code, right? I'm a complete novice. Thanks so much.


 
Posted : 17/10/2010 9:39 am
(@samararaine)
Posts: 11
Active Member
 

Lipa, I'm trying to do what you did title wise. "Mais Recentes" (something like that, I'm not looking at the post), and I wanted to do the same thing. Not use those words, but insert a title into my code that way. I did it, but there's a problem. For "Featured Stories", it shows up twice. Once before each featured story. I have my archive set to show five featured stories, and I don't want that title showing up before each of them. It's not doing this for recent stories or random story. Here's my code. Am I doing something wrong?

<div class="block">
<!-- START BLOCK : featuredblock -->
<b>Featured Stories:</b>
      <div class="featuredbox">
  <div class="title">{title} by {author} {rating}</div>
<div class="content"><span class="label">Summary:

</span>{featuredstory}{summary}<br />
<span class="label"></span> {category} <br />
{classifications}
<span class="label">Chapters: </span> {numchapters}<br />
<span class="label">Series:</span> {serieslinks}<br />
<span class="label">Words:</span> {wordcount}
<span class="label"> Published: </span>{published} <span

class="label">Updated:</span> {updated} <span

class="label">Completed:</span> {completed}</div>
</div>
<!-- END BLOCK : featuredblock -->

<!-- START BLOCK : recentblock -->
<b>Story of the Moment:</b>
      <div class="recentbox">
  <div class="title">{title} by {author} {rating}</div>
<div class="content"><span class="label">Summary:

</span>{recentstory}{summary}<br />
<span class="label"></span> {category} <br />
{classifications}
<span class="label">Chapters: </span> {numchapters}<br />
<span class="label">Series:</span> {serieslinks}<br />
<span class="label">Words:</span> {wordcount}
<span class="label"> Published: </span>{published} <span

class="label">Updated:</span> {updated} <span

class="label">Completed:</span> {completed}</div>
</div>
<!-- END BLOCK : recentblock -->

<!-- START BLOCK : randomblock -->
<b>Random Story:</b>
      <div class="randombox">
  <div class="title">{title} by {author} {rating}</div>
<div class="m4">{random_content}
<span class="label">Summary: </span>{random_story}{summary}<br />
<span class="label"></span> {category} <br />
{classifications}
<span class="label">Chapters: </span> {numchapters}<br />
<span class="label">Series:</span> {serieslinks}<br />
<span class="label">Words:</span> {wordcount}
<span class="label"> Published: </span>{published} <span

class="label">Updated:</span> {updated} <span

class="label">Completed:</span> {completed}</div>
</div>
<!-- END BLOCK : randomblock -->
</div>

Any help you can give me would be appreciated.


 
Posted : 17/10/2010 12:38 pm
Share: