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

gurdain

Ah sorry, you were right it was 1.1, I had sent you the file from the wrong folder.

Attached the relevant file this time.

NanoSector

Sorry for the delay, been busy the past few days.

Will take a look tonight, and if not tomorrow. Made a post-it note so I don't forget :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."

NanoSector

Can you tell me if the following file works?
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."

gurdain

I get a template parse error (line 455 which shows ?>)

I fixed that by adding an extra } before line 455

The category tabs are now showing, but they are not showing the correct boards.
I have an error underneath which says:
Fatal error: Call to undefined function template_info_center() in /homepages/9/d101452752/htdocs/infoboard/Sources/Load.php(2246) : eval()'d code on line 235

NanoSector

Do you have a link to your site?

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."

gurdain

I'll PM you details with a temporary account to view the page

gurdain

Ok it seems I can't PM you

NanoSector

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

#148
NVM. Fixed it XD

EDIT: Also; is it possible to add the edit in that shows categories with new posts within them, please? This new one doesn't seem to do that :(
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

NanoSector

I believe that was posted a while ago. I'm almost off to school but have a read through the topic, perhaps you'd find it  :)
If not remind me to take a look later today or this week.   
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

It was, indeed. However, my Search & Find did not reveal anything where hte code is at all similar and so I don't know what action to take in order to adjust the new code provided in the Easy Tabs.

Quote from: Yoshi on July 18, 2013, 03:10:11 PM
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.


EDIT: Attempting to use that code with the line
<li class="tab"><a href="#cat', $category['id'], '">', $category['name'], '</a></li>';

Inserts the 'new' icon, but destroys the categories besing assigned tabs (one long lsit). I'm not good enough at coding to hash it out.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

NanoSector

Can you attach said file to the topic please?
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

Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

NanoSector

Hmm. Weird, took a peek and it should work just fine. (sorry for the long wait, added an SSD to my laptop and had to reinstall everything yesterday).

Do you have a live example of this happening somewhere around?
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

my site - http://katila.second-pass.net - has it installed as the default layout and yeah, it isn't bringing up the 'New' image. I haven't been keen to try editing it, because as I said, when I did it broke it and my site is live and I can't afford to have it running broken xD
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

NanoSector

Been doodling on your site for the past two days but I can't get it to work either with my CSS skillz (not).

Maybe your theme author may know or someone from the community :)
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

haha, thanks for trying! I'll bug DZ Studios later; I think I need sleep haha.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Semetery

Hey everyone!

I'm a little late to the party perhaps? I just recently setup SMF for the first time and am loving it, so my apologies for being late.

The install went perfectly, I didn't have any problems at all, but when I go to the forum index I get bullet-points beside the category names. I'm thinking there's a problem with the javascript somehow? Did I miss something that I should've done during the install? I made sure to check the boxes so that it'd insert the code into my theme.



Any help would be tremendously appreciated. It's a feature I used with phpBB and after jumping ship have truly missed!

Antechinus

That's a css glitch. It needs list-style: none; applied to the tabs list class (whatever class that it).

Semetery

Thanks for your help!

I apologize to be such a noob about it, but where do I find that out and fix it? I use the inspect-element tool in FF but it's only showing that it's an inline'element' and the regular link css for the overall forum. It's under <div id = category_tabs"> but I'm not seeing any CSS related to it at all.

Advertisement: