vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Make Category look like a Forum (https://vborg.vbsupport.ru/showthread.php?t=78933)

EscortCossie 03-28-2005 07:54 AM

Make Category look like a Forum
 
Hi there,

I'm desperately looking for a hack that will make a category show "last post", "threads" and "posts" on forum home just like a forum without subforums would.

I have searched both this site as well as vb.com and vbulletintemplates.com without any success.

Would really appreciate anyone helping me out.

Thanks,
EC

why-not 03-28-2005 11:52 AM

Hi

If your not concern about another (2) querys, I think you can do this fairly easily. Looking at the code, I would venture to say that you would really need to set a limit on what you want to show and not show! This will also be based on user and forum permissions, that is why we need the second query! I'm kind of busy finishing updating and making a few mods now. If someone does not help you before I am done, (2 week the most) I will do it then. I will add it to the Forum Manager >> edit forum and add a switch in the Usergroup permissions to allow access. The only thing that will be a pain is that you will have turn this on/off for each forum. Remember though, this will only work on Forums that are parent forums, ie: Categorys greater than (1) level deep.

Sonia

Deaths 03-28-2005 11:59 AM

Just set "Act as category" to "No", and it should show them. (not entirely sure though)

EscortCossie 03-28-2005 11:59 AM

1 Attachment(s)
Thanks for your reply.

Yes, I would only need this for forums acting like categories (with only subforums in them and no posts.)

Quote:

Originally Posted by Deaths
Just set "Act as category" to "No", and it should show them. (not entirely sure though)

Yes, but then you have this problem.. see attachment

Only way to solve this as I see it, is to set the forum to act as a category, but then I need to make "latest post" "threads" and "posts" to be visible on forumhome.

Deaths 03-28-2005 12:14 PM

How many categories do you have?

EscortCossie 03-28-2005 12:32 PM

Quote:

Originally Posted by Deaths
How many categories do you have?

I'm not sure if I know what you mean...

Would you mind take a look yourself?
http://www.escortpower.net/forums/

Deaths 03-28-2005 12:40 PM

Hmm, you have 5 categories, maybe more because I'm only a guest...
3 extra queries per category, that makes 15 extra queries.

You sure you want to do that :ermm:?

PS How did you get that VBT skin :D?

EscortCossie 03-28-2005 12:43 PM

Yes, I only have 5 categories, but I only need to add this modification to this forum (if that's possible?)

http://www.escortpower.net/forums/fo...play.php?f=190

Deaths 03-28-2005 12:53 PM

Yes, it's possible with template conditionals, and PHP conditionals (to limit the queries).

Why only that forum, though?

EscortCossie 03-28-2005 01:03 PM

That is the one forum using subforums only, so I don't need the other categories displaying post/thread count. (not at this time that is. maybe later on)


All times are GMT. The time now is 05:39 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.01070 seconds
  • Memory Usage 1,729KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete