I apologize for asking three zillion questions lately, but we're really close to going live with our major site overhaul, and I want everything perfect before The Big Day. LOL.
Here's my question. Is there a way to take, on the Add to Series page, the "Choose Another Author" link AND the select series box and make those visible to admins only?
If "Choose Another Author" has to stay, that's okay, I guess, but we DO NOT want them adding series into other series. It's annoying the crap out of us already and we're just on our beta site (one of our rules is no one-story series, and our beta testers are happily creating series after series in these complex circles. No.)
I thought about just commenting that part out since the admins probably wouldn't be using it either, but someone suggested just hiding it for non-admins in case we ever wanted the functionality.
Anyone have any thoughts or suggestions?
URL to your eFiction: http://www.mickiclark.com/efiction33
Version of eFiction: 3.3.1
Have you bridged eFiction, if so with what?: SMF
Version of PHP:
Version of MySQL: MySQL 4.1.14
Yes. In the Admin panel go into panels.
Sort for S - Submissions
Edit Add New Series
Checkmark the hidden box and Submit.
That way, no member can create new series except for Admins. Admins can do it through the Admin panel. Everyone who has a Series already will still be able to edit and add to them.
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
Oops. I guess I didn't explain myself very well. I just meant that on the page, instead of :
CHOOSE ANOTHER AUTHOR
Stories:
story
story
Series:
series
series
They would just see the stories and NOT be able to add series to another series. Can you do that from the Admin panel?
URL to your eFiction: http://www.mickiclark.com/efiction33
Version of eFiction: 3.3.1
Have you bridged eFiction, if so with what?: SMF
Version of PHP:
Version of MySQL: MySQL 4.1.14
No. You'd have to mod the series function.
just delete the bad series. that's what I do.
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
I figured it out. I just commented out the portion of the table for adding series to series (our admins don't plan on doing it) and then in the "Choose Another Author" link, commented out the reference to the owner -- so now admins can see it but nobody else.
URL to your eFiction: http://www.mickiclark.com/efiction33
Version of eFiction: 3.3.1
Have you bridged eFiction, if so with what?: SMF
Version of PHP:
Version of MySQL: MySQL 4.1.14
Thank you for commenting with what you did so others can benefit. π
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
If you think others might try, here's what I did:
if($admin /*|| USERUID == $owner */) $output .= "<div style="text-align: center;"><a href=""series.php?action=$action&add=$add&stories=others&seriesid=$seriesid">"._CHOOSEAUTHOR."</a></div>";"
$output .= "<table style="width: 500px; margin: 0 auto;" class="tblborder"><tr><th class="tblborder">"._STORIES."</th></tr>";
$numstories = 0;
while($story = dbassoc($stories)) {
if(!empty($selectedstories[$story['sid']])) continue;
$output .= "<tr><td><input type="checkbox" class="checkbox" value="".$story['sid']."" name="sid[]">".stripslashes($story['title'])."</td></tr>";
$numstories++;
}
if($numstories == 0) $output .= "<tr><td align="center">"._NORESULTS."</td></tr>";
//$series2 = dbquery("SELECT title, seriesid FROM ".TABLEPREFIX."fanfiction_series WHERE uid = '".(isset($_GET['stories']) && isNumber($_GET['stories']) ? $_GET['stories'] : $owner)."' ORDER BY title ASC");
//$output .= "<tr><th class="tblborder">"._SERIES."</th></tr>";
//$numseries = 0;
//while($series = dbassoc($series2)) {
// if($series['seriesid'] != $seriesid) {
// $output .= "<tr><td><input type="checkbox" class="checkbox" value="".$series['seriesid']."" name="subseriesid[]">".stripslashes($series['title'])."</td></tr>";
// $numseries++;
// }
//}
//if($numseries < 1) $output .= "<tr><td align="center">"._NORESULTS."</td></tr>";
It seems to be working--my testers haven't had problems.
URL to your eFiction: http://www.mickiclark.com/efiction33
Version of eFiction: 3.3.1
Have you bridged eFiction, if so with what?: SMF
Version of PHP:
Version of MySQL: MySQL 4.1.14
