Mod help request. C...
 
Notifications
Clear all

Mod help request. Category theme toggle

2 Posts
1 Users
0 Reactions
1,364 Views
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I'd like to have a new template and a new skin applied to a cloned browse/categories.php file. Seen here
http://fanforge.net/browse.php?type=categories2&id=1
as opposed to here
http://fanforge.net/browse.php?type=categories&id=1

The changes I made to the file merely added a 2 to three places

		while($cats = dbassoc($subs)) {
unset($catinfo);
$count++;
if(file_exists("$skindir/categories2.tpl")) $cat = new TemplatePower(
"$skindir/categories2.tpl" );
else $cat = new TemplatePower("default_tpls/categories2.tpl");
$cat->prepare( );
$cat->newBlock("categoryblock");
$cat->assign("image", ($cats['image'] && file_exists("$skindir/images/".$cats['image']) ?
"<img src=""$skindir/images/".$cats['image'"]."" alt="".$cats['category'].""
title="".$cats['category']."">" : ""));
$cat->assign("link", "<a href=""browse.php?type=categories2&amp;id=".$cats['catid'"]."">".

As you can see, it is not performing correctly. The sort is not disabling so it shows every story on the site. So, this is where I ask for help. Now, I will address the toggle button afterwards. Otherwise, I believe I know how to skin the new category page using the technique gotten from here (updated to a [mod release])
https://efiction.org/forums/index.php?topic=5865.0


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

 
Posted : 12/12/2007 1:02 am
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I ran into a problem on my end trying to get this to work, that is of course a new problem. It seems the column number is defined under settings and not in the variables file so even if i could toggle between skins, I cannot switch between a 1 column view and some other number in this case 3. Thoughts? I have some of it showing under Animated within the default2 theme. Thanks again.


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

 
Posted : 16/12/2007 5:48 pm
Share: