News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Tabbed Categories

Started by NanoSector, June 16, 2013, 08:30:12 PM

Previous topic - Next topic

NanoSector

Quote from: DarthRiddle on July 05, 2013, 03:35:48 PM
Attached

Thanks for the help.

Quote from: Yoshi on July 04, 2013, 06:44:34 PM
I should add a note to the readme, telling what to do if it is not compatible with your theme.

Well, you can either try to apply the changes yourself or if you really get stuck, you can attach your BoardIndex.template.php file here and we'll see what we can do.
Here you are.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

kingkingston

Quote from: Yoshi on July 07, 2013, 08:12:02 AM
Quote from: kingkingston on July 07, 2013, 06:57:09 AM
i tried to add it to the firerox multicolour theme but got a parse error

did i modify the board index right ?
You haven't added in the mod at all ???

Tell me if the attached version works.
yep it seems to have done the trick :)

i must have uploaded the unmodded back up on here lol

DarthRiddle

Quote from: Yoshi on July 04, 2013, 06:44:34 PM
I should add a note to the readme, telling what to do if it is not compatible with your theme.

Well, you can either try to apply the changes yourself or if you really get stuck, you can attach your BoardIndex.template.php file here and we'll see what we can do.
[/quote]Here you are.
[/quote]

Its a no go. Thanks for the efforts.



NanoSector

Try this one. The code for your news block wasn't closed properly.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

kingkingston

don't know if you could do it, but what would be cool is if the tabs lit up or went another colour if there was a new post or topic started in that category

it would look awesome :)

NanoSector

Quote from: kingkingston on July 08, 2013, 11:36:51 AM
don't know if you could do it, but what would be cool is if the tabs lit up or went another colour if there was a new post or topic started in that category

it would look awesome :)
Do you mean that there would be a sign that there are new topics in the boards in that category?

If so I've been thinking about that myself :P
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

kingkingston

Quote from: Yoshi on July 08, 2013, 11:37:34 AM
Quote from: kingkingston on July 08, 2013, 11:36:51 AM
don't know if you could do it, but what would be cool is if the tabs lit up or went another colour if there was a new post or topic started in that category

it would look awesome :)
Do you mean that there would be a sign that there are new topics in the boards in that category?

If so I've been thinking about that myself :P

yeah, same thought :)

TiPsY

Hello

There's a problem when parsing the code in ./Themes/default/BoardIndex.template.php and the reason is smf ads package

any idea how to include both codes?

the error is the following

Code (Find) Select
echo '
</tbody>';
}
echo '
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
}
echo '
</table>
</div>';


Code (Replace) Select
echo '
</tbody>
</table>
</div>';
}

echo '
</div>';



my code in BoardIndex.template.php
echo '
</tbody>';
}
echo '
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';

}
echo '
</table>
</div>';


Thanks in advance.

NanoSector

Hey TiPsY,

Just replace:
echo ' </td></tr></tbody>';

}
echo '
</table>
</div>';


With:

echo '
</td>
</tr>
</tbody>
</table>
</div>';
}

echo '
</div>';


And it should work :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Scareface

Edited this a little bit to my style :P




NanoSector

Wow, that's looking good Scareface! :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

FrizzleFried

That does look nice.  It would be awesome if the ability to include an image like that in each tab was added to the stock mod (hint ... hint ... ) ;)

NanoSector

I'll look into it, sounds like a nice challenge :)

(might be for another mod though, but I can always integrate it into this mod)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

FireDitto

Hi! Sorry for the delays in getting back; I was curious if you'd had a chance to fiddle with the option to center? I'm not sure how to go about it :)

The images look amazing, and I would love the ability to make the headers light up whenever a new or unread post/thread is within that portion of the forum. That would be brilliant!
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

NanoSector

Sorry I forgot about your request! :(

I'll take a look at both Unread posts and the option to align tabs today,  if not tomorrow.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Chalky

Curious... I've just installed this on my test forum and look what it's done.  Same in my custom theme and the default theme...  I'm guessing it's a mod conflict but I've no idea right now which mod it might be, I have a few....  :P

Biology Forums

What if your category tabs exceed that bar?

Chalky

Ah no, it will be because I hacked my board index to show the upcoming calendar at the top instead of in the info centre.  The mod installed fine because I didn't remove any code, I just shuffled it around a bit lot.  Come to think of it it would have been a miracle if this mod had worked on my forum  :P

It is a great mod though Yosh  :)

NanoSector

#58
Quote from: Liam_michael on July 14, 2013, 10:24:21 AM
What if your category tabs exceed that bar?
No idea, but the amount of categories and boards should generally be kept at a minimum.

Quote from: ChalkCat on July 14, 2013, 03:59:22 PM
Ah no, it will be because I hacked my board index to show the upcoming calendar at the top instead of in the info centre.  The mod installed fine because I didn't remove any code, I just shuffled it around a bit lot.  Come to think of it it would have been a miracle if this mod had worked on my forum  :P

It is a great mod though Yosh  :)
Thanks, though did you get it to work properly?

I found a solution to the unread posts:

in Themes/(theme)/BoardIndex.template.php
Find:
echo '
<li><a href="#cat_' . $category['id'] . '">' . $category['name'] . '</a></li>';

(or something similar...if you can't find it at first shot try searching for </a></li> instead. Do make sure you are replacing everything from the nearest echo ' until the '; )

Replace with:
echo '
<li><a href="#cat_', $category['id'], '" style="max-height:18px">', $category['name'] . (!empty($category['new']) ? '&nbsp;<img src="' . $settings['lang_images_url'] . '/new.gif" class="icon" alt="" />' : ''), '</a></li>';


Adjust the max-height to whatever suits you best, it might take some experimenting. It is put there to avoid tabs jumping up and down.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Chalky

Hi Yoshi, no I gave up when I realised my upcoming events would be breaking it  :)

Advertisement: