its probably really easy to do but I've been messing around with the eFiction for a few days now and I think my brain is fried π
I wanted to change what's listed in the Site Info Block... right now its like this:
Members:
Series:
Stories:
Chapters:
Word count:
Authors:
Reviews:
Reviewers:
Newest Member:
Challenges:
Challengers:
Recommendations:
Recommenders:
and I'd like it to be like this instead:
Members:
Authors:
Stories:
Series:
Chapters:
Word count:
Reviews:
Challenges:
Recommendations:
Newest Member:
can anyone help please? thank you!
You'll have to change the setting to in the block admin to use .tpl and use that format. See the wiki.
thanks Tammy.... but there's no "use .tpl" setting for the Site Info block.
there's a "template" box and a drop down menu for Chart, Narritive, and Variables.
I tried this:
{members}<br>
{authors}<br>
{stories}<br>
{series}<br>
{chapters} <br>
{wordcount}<br>
{reviews}<br>
{challenges} <br>
{recommendations}<br>
{newmember}
and nothing worked.
I also tried editing the variables.php of my skin with this coding:
$blocks["info"]["status"] = 2;
$blocks['info']['tpl'] = 1;
and created a infoblock.tpl with this coding:
<!-- START BLOCK : infoblock -->
<div class="listbox">
{members}<br>
{authors}<br>
{stories}<br>
{series}<br>
{chapters} <br>
{wordcount}<br>
{reviews}<br>
{challenges} <br>
{recommendations}<br>
{newmember}
</div>
<!-- END BLOCK : infoblock -->
still nothing though.... π
Hi Vikki. π
I think by "use tpl" Tammy meant that you'd have to go into the Site Info block through your adminsitrator and set it to use TPL code.
Log into your eFiction installation. Then, navigate to your administrator. Go to Blocks. You should then see a list of all your blocks (which exist in the blocks subfolder). You should see Site Info (or maybe just called Info, depending on your installation). Click on the Options link right next to it.
Now you'll see all the available options for the block. You'll see near the bottom of the page a text entry window. THIS is where you can enter TPL code to override its layout. Remember to turn off TinyMCE if you have it enabled (it can and usually does cause nasty side effects when you're doing code - ALWAYS code in plain text!).
Hope this helps! π
Sorry. It's "variables" you want to use. It's the same as use .tpl in the other blocks.
thanks! both of you!
I tried it... without the TinyMC and its coming up blank now.
this is the coding I'm adding... is it wrong? am I missing something?
{members}<br>
{authors}<br>
{stories}<br>
{series}<br>
{chapters} <br>
{wordcount}<br>
{reviews}<br>
{challenges} <br>
{recommendations}<br>
{newmember}
I thought maybe it was just my browser (i use IE) so I tried it with Firefox and still.... nothing. π₯
Do you still have it set to use tpl in the variables.php? That could be the issue. Also you may want to do this:
Members: {members}
Authors: {authors}
And whatnot, otherwise you'll just get numbers with no reference for what they mean.
this is what I have in my variables.php
$blocks["info"]["status"] = 1;
I also added this, but with or without it... there was no difference:
$blocks["info"]["template"] = "Members: {members}<br>
Authors: {authors}<br>
Stories: {stories}<br>
Series: {series}<br>
Chapters: {chapters} <br>
Word Count: {wordcount}<br>
Reviews: {reviews}<br>
Challenges: {challenges} <br>
Recommendations: {recommendations}<br>
Newest Memeber: {newmember}";
I checked my phpMyAdmin ... thinking maybe it wasnt saving to the database and this is what block_variables field looks like:
a:2:{s:5:"style";s:1:"2";s:8:"template";s:272:"Members: {members}<br>
Authors: {authors}<br>
Stories: {stories}<br>
Series: {series}<br>
Chapters: {chapters} <br>
Word Count: {wordcount}<br>
Reviews: {reviews}<br>
Challenges: {challenges} <br>
Recommendations: {recommendations}<br>
Newest Memeber: {newmember}";}
as for my skin... its coded:
<div id='infoblock'>
<div class="blocktitle">{info_title}</div>
<div class="blockcontent">{info_content}</div>
</div>
I don't get what I'm doing wrong or why it isnt working *head desk* π
You can fix it one of two ways:
1. Change the settings to "narrative" instead of "variables"
2. Put the template from the settings into your skin in place of {info_content}
You've basically got 1/2 of 2 different styles right
When you choose "narrative" it uses the template.
When you choose "variables" it uses the individual variables in your .tpl in place of {info_content}
