URL to your eFiction: http://www.auroraseldon.com
Version of eFiction: 3.3
Have you bridged eFiction, if so with what?: NO
Version of PHP: 4.3.9
Version of MySQL: 4.1.12-3.RHEL4.1
Have you searched for your problem: YES
If so, what terms did you try: Changes to skins, tpl
Have you looked at the FAQs: YES, however, what I found is not working
State the nature of your problem: Skin/Setting problem
Well, I'd like to show the Recent Block at Index in other way, so I found this: https://efiction.org/forums/index.php?topic=4110.0
My variables.php file says:
<?php
$blocks["categories"]["status"] = 2;
$blocks["featured"]["status"] = '2';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
0 => 'home',
1 => 'recent',
2 => 'authors',
3 => 'catslink',
4 => 'titles',
5 => 'series',
6 => 'search',
7 => 'tens',
8 => 'challenges',
9 => 'help',
10 => 'contactus',
11 => 'login',
12 => 'logout',
13 => 'adminarea');
$blocks["menu"]["style"] = 1;
$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 2;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 2;
$blocks["recent"]["status"] = 2;
$blocks['recent']['tpl'] = 0;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$displayprofile = 1;
?>
Also, at the Admin/Block option, I have Recent Active, and when I enter to options, I have this:
Notice: Constant _DEFAULT already defined in /home/aurora/public_html/blocks/recent/sp.php on line 2
Notice: Constant _USETPL already defined in /home/aurora/public_html/blocks/recent/sp.php on line 3
Notice: Constant _NATPL already defined in /home/aurora/public_html/blocks/recent/sp.php on line 4
Notice: Constant _ALLOWTAGS already defined in /home/aurora/public_html/blocks/recent/sp.php on line 5
Notice: Constant _STRIPTAGS already defined in /home/aurora/public_html/blocks/recent/sp.php on line 6
Notice: Constant _BLOCKTYPE already defined in /home/aurora/public_html/blocks/recent/sp.php on line 7
Notice: Constant _TAGS already defined in /home/aurora/public_html/blocks/recent/sp.php on line 8
Notice: Constant _SUMLENGTH already defined in /home/aurora/public_html/blocks/recent/sp.php on line 9
Notice: Constant _SUMNOTE already defined in /home/aurora/public_html/blocks/recent/sp.php on line 10
Notice: Use of undefined constant _NUMUPDATED - assumed '_NUMUPDATED' in /home/aurora/public_html/blocks/recent/admin.php on line 35
And the settings are:
Not applicable. Use .tpl selected.
Block style: use tpl
Allowed Tags: strip all tags
Length of Summary:
_NUMUPDATED: 10
I also changed the index.tpl file, like this:
<div id="rightindex">
<div class="block">
<div class="title">.:[Advertencia]:.</div>
<div class="content">{welcome}</div>
</div>
<div class="block">
<div class="title">.:[{recent_title}]:.</div>
<div class="content">
<!-- START BLOCK : recentblock -->
<div class="recentbox">
<div class="title">{title} por {author}</div>
<div class="content"><span class="label">Resumen: </span>{featuredstory}{summary}<br />
<span class="label">Clasificación:</span> {rating} {score}<br />
<span class="label">Categorías:</span> {category} <br />
{classifications}
<span class="label">Series:</span> {serieslinks}<br />
<span class="label"> Publicado: </span>{published} <span class="label">Actualizado:</span> {updated} </div>
</div>
<!-- END BLOCK : recentblock -->
</div>
</div>
</div>
Well, as you can see, the block is empty!!! I am not sure of the correct settings, and I suppose it can be the problem
Thanks in advance
For one thing, it looks like you're missing a file in the recent block folder. That's where the notice warnings are coming from.
You need to remove the $block[recent]... lines from your variables.php. You've got it set to NOT use the .tpl in the variables.php which trumps the admin setting.
Thanks Tammy!! Now I can see the Recent Block in index.tpl and I also uploaded again all the recent block directory, but now I have this error at Admin, Blocks
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 706
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 713
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: recentblock in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /home/aurora/public_html/includes/class.TemplatePower.inc.php on line 701
Notice: Constant _NUMUPDATED already defined in /home/aurora/public_html/blocks/recent/en.php on line 29
What can it be?
Thanks
Looks like a problem in the admin. You can ignore it. I'd also suggest you turn debug off if you have it turned on.
Thanks, Tammy. I turned off debug, and it worked.