Firefox PHP

Template: Tabbed Emerald

Posted by Joe Curia 
Anonymous User
Re: Template: Tabbed Emerald
August 01, 2009 05:01PM
For example, i have a tabbed emerald template and a tabbed fruity template. One logical configuration would be that on one tab i could place the emerald and on one other i could place the fruity, for example. Such an independent framework ( which already exists concerning folders with other templates) would allow also to use the banner manager module separately according to each template and each tab.
Anonymous User
Re: Template: Tabbed Emerald
August 01, 2009 05:17PM
Another bug: i create a series of folders as following, with the tabbed template:

RootFolder--
Folder1
------Folder2
----------Folder3
---------------Forum1


The forum 1 is accessible via the jumpmenu, but is not accessible via the index page which shows:

tab1
folder2
folder3

without any access within for the folder3 which contains the forum1
Anonymous User
Re: Template: Tabbed Emerald
August 01, 2009 05:24PM
Quote
Brian Moon
Nice thinking out of the box.

The more important part of the work is: thinking. Coding is secondary, and reserved to specialists.
Anonymous User
Re: Template: Tabbed Emerald
August 01, 2009 05:42PM
For people interested by this configuration, concerning the use of different banners for element included in a tab, the only possible patch for doing this actually is to configure separate tabbed templates, not for folders included in a tab, or for tabs themselves, but for forums included in a tab. This is possible because Phorum allows each particular forum to have its own particular template (cf edit forum in admin panel).

So, one can have this possible configuration (waiting for further improvements by specialists):

Root folder (default forum template settings)

tab1 (default template)
---forum1.1 (template forum1.1)
---forum1.2 (template forum1.2)
---
---forumx (template forum1.x)

tab2 (default template)
---forum2.1 (template forum2.1)
---forum2.2 (template forum2.2)
---
---forumx (template forum2.x)
...
tabx (default template)
---forumx.1 (template forumx.1)
---forumx.2 (template forumx.2)
---
---forumx.x (template forumx.x)

After saying this, this is clear that the tabbed feature is not only or merely a template, but a kind of module concerning templates, because it is possible to apply a tabbed configuration to any templates whatsoever.
Re: Template: Tabbed Emerald
August 01, 2009 08:58PM
That is not a bug.
The tabbed template simply does not support deeper levels.

And you keep seeing the tabs/forums relation wrong. I cannot explain things any better, but you are not on the correct path in understanding what they are, what they represent and why it is coherent with Phorum's core.

With tabbed emerald, you can assign a template to the folders. The issue is that the template design does not provide links to those folders. The tabs are NOT links to the folders, but they are links that tell the index page to render differently. So the functional target for the links that are beneath the folder names has changed, which changes the concept.

When doing things like you have them in mind (when you open a tab, you expect that to be the view of the folder), you'd need an additional module that collects data from the database to be able to render all the tabs, since that's not information that is readily available from the core when visiting a subfolder.

If you still do not get this, then I hope that somebody else can explain this to you. I will retreat from this discussion now.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Template: Tabbed Emerald
August 03, 2009 09:08PM
Quote
ab1
Quote
Brian Moon
Nice thinking out of the box.

The more important part of the work is: thinking. Coding is secondary, and reserved to specialists.

Any moron can think of some insane feature. Making it happen is all that matters. What a friggin moron. There is only one type of useful person. That is a person that is smart AND gets things done. Without one of the other, they are waste of oxygen. You sir, don't appear to be big on getting things done. And, still not sure how smart you are.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Anonymous User
Re: Template: Tabbed Emerald
August 05, 2009 08:09PM
You, developers, are good to insult people who don't know coding, but i begin to doubt about your capacity to make global things coherent:

[www.phorum.org]
Re: Template: Tabbed Emerald
August 05, 2009 08:42PM
LOL Your parents had that exact same problem when making you. "Coherently challenged" they call it.

I really do not get your point of linking to the subforums module. Phorum is flexible. Even so flexible that one can program a module that implements subforums without having to hack the core of the system and even without having to hack templates to get a different view. Without coherency in the system, this would not be possible. That is cool. Thanks for reminding me of this accomplishment.

If you cannot stand this kind of flexibility, then please, sod off and find a forum that matches your needs or start your own project that does what you need. We wouldn't want to bother you any longer with this incoherent, stupid piece of software that we wrote.

BTW: we're not that good at insulting people. You sir, are actually the first person on these boards that makes me post the truth in very direct wordings. I am sure that there are many Phorum admins on this board that can vouch for me being a friendly, patient and helpful person (read back all the replies on your early posts and you'll see that this is a true statement). There is a big chance that it's your personality that is triggering these insults.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Template: Tabbed Emerald
November 12, 2009 09:18PM
I am using this template with many folders needed. Trouble is the tabs listing has stopped creating a new line of tabs with the 3rd line of tabs going over the forum width. How can I alter the settings to solve this?

Edit: I can see where the problem lies. It appears that index_new.tpl file is limited to 3 rows. I have attempted to add an extra row but nothing seems to be happening.

Update: Worked this out now. To display more than 3 rows you alter 2 files - index_new.tpl and list.tpl. Using this code inplace of the old will allow 4 rows. You will be able to work out how to add more rows should you need them from looking at the code alterations:

Language: PHP
$PHORUM["DATA"]["template_tabbed_emerald_current_length"] = 0; $row_2_printed = 0; $row_3_printed = 0; $row_4_printed = 0; ?> <script type="text/javascript"> function tab_highlight(el) { el.className = "te_selected_tab"; } function tab_normal(el) { el.className = "te_tab"; } function open_folder(el) { new_id = el.id.substr(el.id.lastIndexOf("_")+1); window.location.replace("{URL->HTTP_PATH}?tab="+new_id); }   </script>   <div id="te_tab_enclosure" class="new_tab_enclosure"><table cellspacing=0 cellpadding=0 border=0><tr valign="bottom"> {LOOP FORUMS} {IF FORUMS->parent_id 0} {VAR template_tabbed_emerald_current_forum_id FORUMS->forum_id} <?php $PHORUM["DATA"]["template_tabbed_emerald_current_length"] += strlen($PHORUM["DATA"]["FORUMS"][$full_iters]["name"]); if ($PHORUM["DATA"]["template_tabbed_emerald_current_length"] < $PHORUM["DATA"]["template_tabbed_emerald_row_length"]) { $PHORUM["DATA"]["template_tabbed_emerald_row"] = 1; } else if ($PHORUM["DATA"]["template_tabbed_emerald_current_length"] < ($PHORUM["DATA"]["template_tabbed_emerald_row_length"]*2) || $PHORUM["DATA"]["template_tabbed_emerald_total_rows"] == 2) { $PHORUM["DATA"]["template_tabbed_emerald_row"] = 2; if ($row_2_printed == 0) { print "</tr></table><table cellspacing=0 cellpadding=0 border=0';><tr valign=';bottom';>"; $row_2_printed = 1; } } else if ($PHORUM["DATA"]["template_tabbed_emerald_current_length"] < ($PHORUM["DATA"]["template_tabbed_emerald_row_length"]*3) || $PHORUM["DATA"]["template_tabbed_emerald_total_rows"] == 3) { $PHORUM["DATA"]["template_tabbed_emerald_row"] = 3; if ($row_3_printed == 0) { print "</tr></table><table cellspacing=0 cellpadding=0 border=0';><tr valign=';bottom';>"; $row_3_printed = 1; } } else if ($PHORUM["DATA"]["template_tabbed_emerald_current_length"] < ($PHORUM["DATA"]["template_tabbed_emerald_row_length"]*4) || $PHORUM["DATA"]["template_tabbed_emerald_total_rows"] == 4) { $PHORUM["DATA"]["template_tabbed_emerald_row"] = 4; if ($row_4_printed == 0) { print "</tr></table><table cellspacing=0 cellpadding=0 border=0';><tr valign=';bottom';>"; $row_4_printed = 1; } } ?>

Works fine on my site now - see sig.

My Phorum



Edited 3 time(s). Last edit at 11/13/2009 03:08PM by Bluesplayer.
Re: Template: Tabbed Emerald
September 13, 2014 09:06PM
Hello There from Costa Rica,

Just wanted to say I'm Enjoying your Posts, Styles, and Mods. I know it's been awhile since you last logged on here, but I'm new to Phorum and it certainly appears to be losing steam, although it's much more fun than phpBB and that ilk.

I've just started using Your Tabbed Emerald and am slowing making tweeks.

But, I do have a Question I posted earlier today in Support, but perhaps you have an answer:

Here's what I posted:

I want Phorum to open and function within my HomePage.

I can Open Phorum with a Load Content Command within my Website.

I have a separate Header, and Left SideBar that I want to remain Static.

But, when I select a Post, Phorum jumps into its own Page.

Can I change Coding or URLs within Phorum files to Open Posts, etc., within itself and not into a new Page?

Here's the WebSite I'm building [SlothCreek.com].

If you click on PUBLICATIONS at the top left it loads Phorum into that.

Thanks Alot for All,

Roland
ZenBlaster
Costa Rica

Roland@SlothCreek.com
SlothCreek.com
Sorry, only registered users may post in this forum.

Click here to login