URL to your eFiction: www.hairfanfiction.net
Version of eFiction: 3.5.2
Have you searched for your problem: yes
If so, what terms did you try: "most recent" "site info" "listing most recent on index", etc.
State the nature of your problem: When a new story is validated, I would like a link to appear on the index page.
I'm sure there must be an easy way to accomplish this that I'm missing, but I'll ask anyway. *sheepish grin* When someone posts a new story and it gets validated, I would like a link to the story (+/- summary, info, etc.) to show up on the main page so that members are aware that a new story has been posted. Is there a way to accomplish this?
Thank you for your time!
Renee-chan
That's actually a built-in feature. You'll want to use recent block. https://efiction.org/wiki/index.php5?title=Blocks
Right... and I have all of that set up in blocks. I have no problem getting it to show in the menu bar as a link that people can click on, but I'm not sure how to get it to show up on the index page. Reading the FAQ on it (and looking at my index file)... I'm honestly a little scared to try writing random code into the file. O_O A little help...?
Thanks. ^_^
Renee-chan
The link in the menu is a totally different thing than the block. You only really need to start reading from here: https://efiction.org/wiki/index.php5?title=Blocks#Adding_a_Block. The rest is mostly background info for how the blocks work/have changed from the previous version.
I had step 1 and 2 accomplished. It's step 3 that's giving me a problem. I can't find a variables.php file to check. O_O Please tell me I'm not missing something really obvious.
I appreciate you being so patient with me. I feel like a bit of an ignoramus. *sigh*
-Renee
I was the new girl a couple of months ago, so I know how you feel. I'm still figuring things out. The elegance skin doesn't actually have a variables.php file. Um, at least it doesn't in my copy. You can edit the status of your blocks and rearrange the menu from your control panel. Any other time, I'd suggest that you make a copy of the one in the default_tpls, but I'm afraid that it might make a mess. I think the skin will function fine without it.
Not all skins have a variables.php file. They are only necessary in cases where you want to override the global site settings. So, for instance, say you turn on shoutbox block to active in your admin control panel, but then you have an individual skin where you don't want it to appear. You could set it to 0 in the skin's variables.php file and turn it off there, while leaving it on for the rest of your skins. If your skin doesn't have one, then you can skip that step.
Edit: I modified the wiki article for clarity.
Ah! *light bulb* You guys are awesome! Lyndsie, thank you _so_ much.
http://www.hairfanfiction.net/ -- in case you'd like to see proof that I actually got it. ^_~
Thanks again!
Renee-chan
Hey,
You did a great job on the banner with your design!
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
babaca,
Thanks! π I'm glad you liked it! ^_^
Renee-chan
Hey, for step 1 I think it is, where did you put all that code? It says on the wiki something about "includes / storyblock.php", but I can't figure out if that's where I need to add my code or not. Everything's done in the admin panel, but I have code to add the recent stories functionality to my site. As well as featured and random. If I'm confusing you, here's what I mean.
<code>
<!-- 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 -->
</code>
Did you add anything like that in any of your steps? And if so, can you tell me where? I've just about given up on this. I'm so completely not smart when it comes to coding and such. I used the example on the wiki, but there isn't much clarification where it's needed most.
Since you figured it out, can you help me?
Hope I don't get yelled at for asking for help here.
I had step 1 and 2 accomplished. It's step 3 that's giving me a problem. I can't find a variables.php file to check. O_O Please tell me I'm not missing something really obvious.
I appreciate you being so patient with me. I feel like a bit of an ignoramus. *sigh*
-Renee
You don't need to change anything to do with the storyblock.php. Sounds like what you're looking to change is a skin. Those will be found in the skins folder within their respective folders. Here is the place to start: https://efiction.org/wiki/index.php5?title=Creating_Skins_for_3.0
