vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Style Categories (https://vborg.vbsupport.ru/showthread.php?t=299906)

ADomoWorld 07-07-2013 06:43 PM

Style Categories
 
With VB4 is there a way to add categories to my style manager ? Kind of how there is a mobile design section and a standard section.

Id like to have different categories to display different games, tv, and movie sections.

Thanks, for any help.

Amaury 07-07-2013 10:50 PM

Please elaborate.

tbworld 07-07-2013 11:00 PM

Quote:

Originally Posted by ADomoWorld (Post 2432598)
With VB4 is there a way to add categories to my style manager ? Kind of how there is a mobile design section and a standard section.

Id like to have different categories to display different games, tv, and movie sections.

Thanks, for any help.


Styles are of course hierarchical in the admincp so in that sense yes, the tree can have branches.

I think what you are referring to is the select style menu in the footer for the client. The answer is also yes, but you would have to do some custom coding to the select box and group by display order. You can also simply just create the select menu manually.

ADomoWorld 07-07-2013 11:09 PM

Quote:

Originally Posted by tbworld (Post 2432635)
Styles are of course hierarchical in the admincp so in that sense yes, the tree can have branches.

I think what you are referring to is the select style menu in the footer for the client. The answer is also yes, but you would have to do some custom coding to the select box and group by display order. You can also simply just create the select menu manually.

That is exactly what Im looking for, the ability to add sections, categories of styles.

What would be the steps or process to do this ?

tbworld 07-07-2013 11:47 PM

How many groups and styles are you talking about?
Is this something you want to do manually or automatically?

I had a setup like that before we made adaptable templates. Somehow I thought it would be cool to have different views for different kind of users. Modifying all those styles ended up boring the heck out of me so I dropped it. But it was fun to write the code and not to difficult.

I use the display order in the admincp and it told me how to filter and display the tree.

1000 Header GroupName1 (Fake style) for the group name...
1100 Sub Group Name
1110 Style1
2000 Header GroupName2

Then I pre-filter the admincp data and add group header names and null fields for seperators. I don't think I have the code anymore or I would just give it to you.

You can by doing the same thing by creating a manual menu if you do not have too many styles. I will check my backups and see if I can find the code. If not I can get you to a starting point.

ADomoWorld 07-08-2013 12:08 AM

I suppose Id like for it to become automatic if I end up adding a lot more skins, but if the process of manually doing it is simple, I don't mind at all.

An example I had was:

---Default Templates
--Skin1
--Skin2
--Skin3
---Category 1
--Skin1
--Skin2
--Skin3
---Category 2
--Skin1
--Skin2
--Skin3

If the process is simple Id prefer that, but if I can get it to automatically create such categories that would be awesome.

ADomoWorld 07-10-2013 11:02 PM

Friendly Bump ? Anyone else with some way to help or get me started ?


All times are GMT. The time now is 07:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01005 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete