Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2005, 07:54 AM
EscortCossie EscortCossie is offline
 
Join Date: Jun 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-28-2005, 11:52 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-28-2005, 11:59 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just set "Act as category" to "No", and it should show them. (not entirely sure though)
Reply With Quote
  #4  
Old 03-28-2005, 11:59 AM
EscortCossie EscortCossie is offline
 
Join Date: Jun 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg Untitled-2.jpg (228.4 KB, 0 views)
Reply With Quote
  #5  
Old 03-28-2005, 12:14 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How many categories do you have?
Reply With Quote
  #6  
Old 03-28-2005, 12:32 PM
EscortCossie EscortCossie is offline
 
Join Date: Jun 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #7  
Old 03-28-2005, 12:40 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #8  
Old 03-28-2005, 12:43 PM
EscortCossie EscortCossie is offline
 
Join Date: Jun 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 03-28-2005, 12:53 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Why only that forum, though?
Reply With Quote
  #10  
Old 03-28-2005, 01:03 PM
EscortCossie EscortCossie is offline
 
Join Date: Jun 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:47 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.04401 seconds
  • Memory Usage 2,269KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete