I apologise if this is in the wrong place!!
URL to your eFiction: http://www.gluttonyfiction.com
Version of eFiction: 3.4.3.
Have you bridged eFiction, if so with what?: No
Version of PHP: 5.2.5
Version of MySQL: 5.0.51a-community
Have you searched for your problem: (yes/no) Yes
If so, what terms did you try: All I could think of
State the nature of your problem: When using the {submission} code in Narrative Text for the Info Block, it only show's this to admins. I want to make it available to all members, is there a way to do this?
Do you have a test account for us? No, but I can create one for you π
In blocks/info/info.php:
Change:
$adminnotices = "";
if(isADMIN) {
if(file_exists(_BASEDIR."languages/".$language."_admin.php")) include_once(_BASEDIR."languages/".$language."_admin.php");
else include_once(_BASEDIR."languages/en_admin.php");
$countquery = dbquery("SELECT COUNT(DISTINCT chapid) FROM ".TABLEPREFIX."fanfiction_chapters WHERE validated = '0'");
list($count) = dbrow($countquery);
if($count) $adminnotices = sprintf(_QUEUECOUNT, $count);
$codequery = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_codeblocks WHERE code_type = 'adminnotices'");
while($code = dbassoc($codequery)) {
eval($code['code_text']);
}
}
To:
if(file_exists(_BASEDIR."languages/".$language."_admin.php")) include_once(_BASEDIR."languages/".$language."_admin.php");
else include_once(_BASEDIR."languages/en_admin.php");
$countquery = dbquery("SELECT COUNT(DISTINCT chapid) FROM ".TABLEPREFIX."fanfiction_chapters WHERE validated = '0'");
list($count) = dbrow($countquery);
if($count) $adminnotices = sprintf(_QUEUECOUNT, $count);
$codequery = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_codeblocks WHERE code_type = 'adminnotices'");
while($code = dbassoc($codequery)) {
eval($code['code_text']);
}
Not tested, but should theoretically work.
archive:
site:
Available for skin/mod commission! π
I made the changes you suggested and it seems to have worked π Thank you VERY much, Jenny!!! π
You're welcome. π
archive:
site:
Available for skin/mod commission! π
