News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Tabbed Categories

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

Previous topic - Next topic

420Connect.co.uk

Also getting test failed in both custom and default themes..

SMF 2.0.9

It's this part it's failing on:

echo '
<div id="boardindex_table">
<table class="table_list">';

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
foreach ($context['categories'] as $category)
{
// If theres no parent boards we can see, avoid showing an empty category (unless its collapsed)
if (empty($category['boards']) && !$category['is_collapsed'])
continue;

echo '
<tbody class="header" id="category_', $category['id'], '">
<tr>
<td colspan="4">
<div class="cat_bar">
<h3 class="catbg">';

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a class="collapse" href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

if (!$context['user']['is_guest'] && !empty($category['show_unread']))
echo '
<a class="unreadlink" href="', $scripturl, '?action=unread;c=', $category['id'], '">', $txt['view_unread_category'], '</a>';

echo '
', $category['link'], '
</h3>
</div>
</td>
</tr>
</tbody>';

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{

echo '


Also after reading the theme compatability:
Will it look okay here? www.420connect.info

Thank you!
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

Hi 420connect.info,

Sorry for my late reply. To answer both questions:

Perhaps you have mods installed that alter the board index in some way this mod doesn't like. I'll take a look tomorrow.

I can't tell if the mod will look okay in your theme on your site by looking at it :) After you've got the patched files tomorrow, you can tell. Though if your theme uses standard coding it should look at least decent.
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."

420Connect.co.uk

Not to worry, thank you very much in advance and I look forward to seeing the result! :)
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

Sorry I haven't been able to get to it with the downtime of today, I promise I'll look into it 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."

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

420Connect.co.uk

Thank you very much for the help however I think the theme I'm using is quite modified from the original, so it doesn't work great for me.. :(
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

MyTime

Hey i'm sorry, i'm having some trouble figuring out what exactly this mod does.
Does it give you the ability to create categories for topics inside of boards?
Thank you for your time

Kindred

No.

It makes the categories into tabs instead of the list...

See askawitchcommunity.org
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

420Connect.co.uk

Hey Nano,

I Had another go at getting this installed successfully but unfortunately I was getting the same errors as my previous post so decided to install it manually..

I've only tried it on the /default/ theme so far but still get the issue I had previously and noticed a few others got too:



I do have quite an array of mods installed, so it is probably one of them causing the issues..

1. Topic Solved 1.1.1 [ Uninstall ]
2. Move Right BBCode 1.5 [ Uninstall ]
3. Alternate User Posting 1.0.1 [ Uninstall ]
4. SMFPacks Popup Pro Mod 1.0 [ Uninstall ]
5. Levertine Gallery 1.1.1 [ Uninstall ]
6. Arantor CAPTCHA 1.0.8 [ Uninstall ]
7. Signature Area BBCode Buttons 2.0.3 [ Uninstall ]
8. E-Arcade 3.0 [ Uninstall ]
9. 6 Custom buttons / tabs with Sub Menus (4) 0.5 [ Uninstall ]
10. Favourite (Favorite) Boards 1.2 [ Uninstall ]
11. Social Login 3.1 [ Uninstall ]
12. Tapatalk SMF 2.0 Plugin 4.2.1 [ Uninstall ]
13. Separate the sticky topics 1.0.0 [ Uninstall ]
14. PDF Tag 1.2 [ Uninstall ]
15. ICAP: Info Center Access Permission 1.0.0 [ Uninstall ]
16. Say Thanks 1.1.2 [ Uninstall ]
17. QRR: Quick Reply Reposition 1.1.2 [ Uninstall ]
18. WYSIWYG Quick Reply 2.3 [ Uninstall ]
19. Project Snow 1.2 1.2 [ Uninstall ]
20. Simple Menu Icons 1.0 [ Uninstall ]
21. Misc Anti Spam 1.0 [ Uninstall ]
22. RIAST: Remove Index & Add Smart Title 1.3.0 [ Uninstall ]
23. SMF Trader System 1.7 [ Uninstall ]
24. Spoiler BBCode 1.1.3 [ Uninstall ]
25. More Spiders 1.2 [ Uninstall ]
26. Search Focus Dropdown 1.6.1 [ Uninstall ]
27. Send Locked Topics To Bottom 1.0 [ Uninstall ]
28. Related Topics 1.401 [ Uninstall ]
29. Invitation Message In Your Face (IMIYF) 0.3.2 [ Uninstall ]
30. URL Popup 1.0.2 [ Uninstall ]
31. Scrolling Buttons 0.3 [ Uninstall ]
32. SimpleAds 1.0.1 [ Uninstall ]
33. ENotify 2.0.2 [ Uninstall ]
34. Internal Links Use Same Window 1.2 [ Uninstall ]
35. Socialize 1.8 [ Uninstall ]
36. Joinable Groups 1.0 [ Uninstall ]
37. Enhanced PM System 2.6 [ Uninstall ]
38. Custom BBCodes Manager 1.4 [ Uninstall ]
39. Registered Links 3.0 [ Uninstall ]
40. Highslide Image Viewer 1.7 [ Uninstall ]
41. Better Profile Menu 1.7 [ Uninstall ]
42. Hide Membergroup Titles 1.0 [ Uninstall ]
43. New Some/New None 1.3 [ Uninstall ]
44. Ultimate Profile 0.9.1 [ Uninstall ]
45. Country Flags 2.1 [ Uninstall ]
46. NiceTooltips 1.9 [ Uninstall ]
47. Badge Awards 1.0.15 [ Uninstall ]
48. Additional Membergroups on Profile 1.2 [ Uninstall ]
49. AdditionalMembergroups 1.04 [ Uninstall ]
50. SMFPacks Shoutbox Pro 1.0.8 [ Uninstall ]
51. Remove Help From Menu 1.0 [ Uninstall ]
52. Stop Forum Spam 1.0 [ Uninstall ]
53. Bad Behavior mod 1.5.18 [ Uninstall ]
54. SimplePortal 2.3.6 [ Uninstall ]
55. Referrals System 3.1 [ Uninstall ]
56. Default Avatar 2.3 [ Uninstall ]
57. Images On Board 3.0 [ Uninstall ]
58. Multiple Stars V2 [ Uninstall ]
59. Drafts 2.0.5 [ Uninstall ]
60. Tagging System 3.0 [ Uninstall ]
61. LUP: Logout Under Profile 1.0.0 [ Uninstall ]
62. @mention members 1.1.2 [ Uninstall ]
63. Ad Managment


Attached are my boardindex files again if you wouldn't mind having another look when you get a chance.

Many thanks!
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Kindred

your problem is related to files not being completely loaded...   javascript and CSS, I imagine...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

420Connect.co.uk

Quote from: Kindred on February 02, 2015, 08:00:01 AM
your problem is related to files not being completely loaded...   javascript and CSS, I imagine...

Thank you for the advice Kindred.
(This possibly explains other mini-issues, I've experienced..)

Could I twist your arm to have a peek at the coding when you've got a minute or so?
..It's like looking at a foreign dictionary for me :P

Much appreciated
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

Do you still have issues with the mod 420connect?

Sorry for not replying earlier, have you checked the developer console (usually F12) for any errors? If it looks like that it usually means a jQuery conflict caused by a clash between this mod and another 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."

420Connect.co.uk

I don't have it 'active' at the moment but I'm still interested in using it, yes.

- As I said in my previous post and pointed out by Kindred, I believe a few of my issues (not just this one) are caused by conflicting jqueries..

I attempted to add in a code I found somewhere but it had no affect to my knowledge so soon removed it again, something like:

jQuery.noconflict;

I probably put this in the wrong place too and might have to apply it to a few files?
I really don't know but I'm happy to upload any files if you wouldn't mind applying the 'no-conflict-script' to see if that helps?


& Thanks again for the reply! :D
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

If you could attach your Sources/BoardIndex.php file here I can take a look :)

ETA: Additionally, uninstall the mod completely and install attached package, tell me if that 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."

420Connect.co.uk

Quote from: NanoSector on February 18, 2015, 10:33:31 AM
If you could attach your Sources/BoardIndex.php file here I can take a look :)

ETA: Additionally, uninstall the mod completely and install attached package, tell me if that works.

When I try to install - I get this failure:

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>';


in BoardIndex.template.php

and BoardIndex.php attached :)

(Sorry for the delayed reply, I was making another thread :P)
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

For that, I need your BoardIndex.template.php again, haha :P

If the BoardIndex.php edit reported success I won't need it, what I wanted to change is automatically applied.
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."

420Connect.co.uk

(One is from default)
(One is based on the 'Apple' theme by Bryan)
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

Let me know if these work. Replace the files, then install the mod ignoring any errors on BoardIndex.template.php.
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."

420Connect.co.uk

wow, I wish I took a screenshot..

Whatever happened in that change somehow threw all my css / theme weird and formatted strangely :S
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

NanoSector

I'll take a look in a while, made a reminder :)
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."

Advertisement: