Info Block Question
 
Notifications
Clear all

Info Block Question

4 Posts
2 Users
0 Reactions
1,351 Views
(@dsecrets)
Posts: 32
Eminent Member
Topic starter
 

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 πŸ™‚


 
Posted : 01/09/2008 1:18 am
 Elle
(@jenny)
Posts: 594
Honorable Member
 

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: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 01/09/2008 11:14 am
(@dsecrets)
Posts: 32
Eminent Member
Topic starter
 

I made the changes you suggested and it seems to have worked πŸ™‚ Thank you VERY much, Jenny!!!  πŸ˜€


 
Posted : 01/09/2008 11:29 am
 Elle
(@jenny)
Posts: 594
Honorable Member
 

You're welcome. πŸ™‚


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 01/09/2008 4:14 pm
Share: