Advertisement:

Author Topic: Tabbed Categories  (Read 89980 times)

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #140 on: January 14, 2014, 08:44:57 AM »
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.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #141 on: January 14, 2014, 11:44:02 AM »
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."

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #142 on: January 15, 2014, 09:53:20 AM »
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."

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #143 on: January 16, 2014, 07:08:34 AM »
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

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #144 on: January 16, 2014, 09:58:01 AM »
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."

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #145 on: January 16, 2014, 10:21:01 AM »
I'll PM you details with a temporary account to view the page

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #146 on: January 16, 2014, 10:24:59 AM »
Ok it seems I can't PM you

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #147 on: January 16, 2014, 12:35:28 PM »
Try again now 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."

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: Tabbed Categories
« Reply #148 on: February 12, 2014, 12:07:23 PM »
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 :(
« Last Edit: February 12, 2014, 02:05:16 PM by FireDitto »
Second Pass Weyr
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #149 on: February 13, 2014, 01:56:36 AM »
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."

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: Tabbed Categories
« Reply #150 on: February 13, 2014, 04:34:01 AM »
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.

I found a solution to the unread posts:

in Themes/(theme)/BoardIndex.template.php
Find:
Code: [Select]
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:
Code: [Select]
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
Code: [Select]
<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
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #151 on: February 13, 2014, 09:27:42 AM »
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."

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: Tabbed Categories
« Reply #152 on: February 13, 2014, 09:57:43 AM »
Attached
Second Pass Weyr
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #153 on: February 15, 2014, 03:12:18 PM »
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."

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: Tabbed Categories
« Reply #154 on: February 16, 2014, 12:14:45 PM »
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
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #155 on: February 18, 2014, 12:52:05 PM »
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."

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: Tabbed Categories
« Reply #156 on: February 18, 2014, 01:11:13 PM »
haha, thanks for trying! I'll bug DZ Studios later; I think I need sleep haha.
Second Pass Weyr
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5

Offline Semetery

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Male
  • The Carnival Has Just Begun
Re: Tabbed Categories
« Reply #157 on: June 15, 2014, 07:44:33 PM »
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!

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,477
  • Master of BBC Abuse
Re: Tabbed Categories
« Reply #158 on: June 15, 2014, 07:54:14 PM »
That's a css glitch. It needs list-style: none; applied to the tabs list class (whatever class that it).

Offline Semetery

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Male
  • The Carnival Has Just Begun
Re: Tabbed Categories
« Reply #159 on: June 15, 2014, 09:40:49 PM »
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.