Notifications
Clear all

3.5: minmimizing categories makes them vanish in admin panel [fixed in 352]

20 Posts
5 Users
0 Reactions
6,086 Views
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

Fresh install
URL: http://beta.fanforge.net
Username: Admin
Password: PM me as its set to level 1
Video example: http://www.youtube.com/watch?v=szfn2ivZBa8


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 08/02/2009 8:40 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Whoa, my site's doing that too.  (3.4.3)  Also, a video?  Sweet.


 
Posted : 09/02/2009 12:38 am
(@babaca)
Posts: 722
Member Moderator
 

I don't have that problem but it's probably because I don't have sub-categories. But I concur with Lyndsie video evidence is sweet. πŸ˜‰


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 09/02/2009 12:33 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

Yeah, the free trial ran out so i'll figure something out if i see anything else.

At any rate, I compared the category.php files under admin across updates. Not sure what  it is I'm looking for.

http://fanforge.net (this works) 3.4.2

      http://pastebin.com/m61920499


        if (isset($_POST["submit"]) && !isset($_GET['catcounts'])) {
                if(isset($_POST['catid']) && $_POST['parentcatid'] == $_POST['catid']) {
                        $output .= write_error(_ACTIONCANCELLED." "._CATERROR);
                        $tpl->assign( "output", $output );
                        $tpl->printToScreen();
                        dbclose( );
                        exit( );

http://beta.fanforge.net (does not work) 3.5

      http://pastebin.com/m6c2fbda1


        if (isset($_POST["submit"]) && !isset($_GET['catcounts'])) {
                if(isset($_POST['catid']) && $_POST['parentcatid'] == $_POST['catid']) $output .= write_error(_ACTIONCANCELLED." "._CATERROR);

It appears a section was cut out, thoughts? I reverted it, its broke on my test site still. I'll see if there is another associated section. That's the only difference between the files, thi sis weird. would there be something in includes?


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 06/03/2009 5:56 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Maybe it's the AJAX? I don't have subcategories, so I'm not sure.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 07/03/2009 6:54 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

Alright, next up

i don't have a 3.4.2 fresh build handy, i looked in y backups and found a 3.4 build so eh if you have a 3.4.2 build, please pass me the categories list includes file

3.4



$cats = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_categories WHERE parentcatid = '$catid'");

3.5



$cats = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_categories WHERE parentcatid = '$catid' OR catid = '$catid' ORDER BY leveldown, displayorder");

Curious how there is more code in the latter one. I'd like to know what this code does.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 09/03/2009 4:39 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

includes/categorylist.php from 3.4.2:


<?php
define("_BASEDIR", "../");
include("../config.php");
include("../includes/dbfunctions.php");
list($tableprefix) = dbrow(dbquery("SELECT tableprefix FROM ".$settingsprefix."fanfiction_settings WHERE sitekey = '$sitekey'"));
define("TABLEPREFIX", $tableprefix);
include("../includes/queries.php");

$catid = isset($_GET['catid']) && preg_match("/^[0-9]+$/", $_GET['catid']) ? $_GET['catid'] : -1;
$cats = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_categories WHERE parentcatid = '$catid'");
echo "var el = '".$_GET['element']."';n";
$x = 0;
$find = array ('"', chr(150), chr(147), chr(148), chr(146));
$replace = array ('"', "-", """, """, "'");
while($category = dbassoc($cats)) {
echo "categories[$x] = new category(".$category['parentcatid'].", ".$category['catid'].", "".htmlentities(str_replace($find, $replace, stripslashes($category['category'])))."", ".$category['locked'].", ".$category['displayorder'].");rn";
$x++;
}
?>

The difference you're noting first appears in 3.4.3.


 
Posted : 09/03/2009 5:13 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

and i presume that build works ok.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 09/03/2009 5:28 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

I have no idea.  I don't currently have it installed anywhere.  I just have copies of pretty much every 3.x version of eFiction.  If you want any of the zips, let me know.


 
Posted : 09/03/2009 5:45 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

hmm alright, itanshi - gmail

send me eh, i have 3.4 and 3.5 so the versions between, thanks so much ^^


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 09/03/2009 5:55 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I compared files, i dunno what the problem is. This problem is pretty urgent. I can't feasibly manage categories from the website with this error.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 18/03/2009 4:16 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Please check and see if this is an issue still with 3.5.1. Thank you.


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

 
Posted : 24/04/2009 9:15 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

Yeah, it was patched in the svn. I don't think it is in the zip tho


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 25/04/2009 2:36 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

What does svn mean?


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

 
Posted : 26/04/2009 1:25 am
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

http://efiction.svn.sourceforge.net/

check the news update


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 26/04/2009 3:40 am
Page 1 / 2
Share: