Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-28-2000 Last Update: Never Installs: 0
 
No support by the author.

I share my forums with some other motorsport sites including some rally sites. What I would like to do for them is allow them to link to my front page but only see the rallying and one other category i.e. I have the categories[*]General[*]Racing[*]Rallying[*]Computers[*]Private Messaging

Want I want to do is create a new index.php say rallyindex.php which will only display[*]General[*]Rallying[*]Private Messaging

I've had a look around index.php but can't make head nor tail of it. Anyone be kind enough to help?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-01-2000, 05:26 PM
Guest
 
Posts: n/a
Default

thanks that worked wonderfully in dividing my forum into 2

1. anime http://animeboards.net/forums/anime.shtml

2. non-anme
http://animeboards.net/forums/noanime.shtml

just made 2 copies of the custom index.php file

anime.php?go=1 defined all anime categories then i used anime.shtml to SSI anime.php?go=1

noanime.php?go=1 defined all non-anime categories then used noanime.shtml to SSI noanime.php?go=1

in anime.php and noanime.php i redefined the forumhome template for a custome one for each of the 2 copes so they can have a custom home link back to anime.shtml and noanime.shtml
Code:
eval("echo dovars(\"".gettemplate("forumhome")."\");");
forumhome-anime template
forumhome-noanime template
Reply With Quote
  #23  
Old 09-01-2000, 11:41 PM
Guest
 
Posts: n/a
Default

JonnyQuest, another little question

is it possible to set a categoryA not to display on the real index.php page (display order=0 in the control panel) but to have the categoryA show itself on a custom category page i.e. categoryA.php (a copy of index.php) ?

cause right now i tried hiddening a category on index.php called test but in the custom category at http://animeboards.net/forums/noanime.php?go=1, category test shows up at the very top in '0' position ...

[Edited by eva2000 on 09-01-2000 at 08:46 PM]
Reply With Quote
  #24  
Old 09-05-2000, 02:26 AM
Guest
 
Posts: n/a
Default

eva,
I'm a bit confused by your question. I looked at that URL and didn't see the hidden category you are talking about.
The custom category hack I wrote will display hidden forums if you set them to appear in the category list. If you don't want them to appear, add the
Code:
displayorder<>
into the select statement, or even easier, don't put them into the category list.
I hope this makes sense.
Reply With Quote
  #25  
Old 09-05-2000, 06:26 AM
Guest
 
Posts: n/a
Default

what i was trying to ask is, i want to hide a category CategoryAfrom the normal index.php file (i.e. set display=0 in the control panel) but in the custom file noanime.php i want to show the category, CategoryA in a particular order not necessary at 0 (top position)

noanime.php i want would list would be like

CategoryB (display=1)
ForumB1
ForumB2

CategoryA (display=2) and not at display=0
ForumA1
ForumA2

---------
the problem is to hide CategoryA in index.php you set it to display=0 so it moves the category to the very top of the page although hidden.
Reply With Quote
  #26  
Old 09-05-2000, 12:21 PM
Guest
 
Posts: n/a
Default

Goldenboy,

I have been out of town for a week due to personal matters. JonnyQuest posted the hack in my stead.


Quote:
Originally posted by Goldenboy
Huss, why do you even post if you're not going to offer any help at all? I've seen a bunch of threads where you tease people with hacks and then never post about it again.

Its really annoying.

Goldenboy
Reply With Quote
  #27  
Old 09-05-2000, 12:41 PM
Guest
 
Posts: n/a
Default

eva,
I believe what you're saying is that you want to be able to control the order of categories which are hidden (display=0). This one is a bit tougher. You can set the displayorder to look at a different field in the select statement, or to list them alphabetically. You may try setting the display to a negative number, allowing you to control what order the hidden forums appear in(?). However, I believe that the hidden forums will always appear before the non-hidden forums.
This will require a totally different hack to pull off.
Reply With Quote
  #28  
Old 09-06-2000, 04:27 AM
Guest
 
Posts: n/a
Default

thanks was worth a shot ... can negative display orders work... i'll give it try first... for now i just created in advance 6 categories test1 through to test6 and set them all to display=0 and that work on that order...

nevertheless this is a great hack and thanks... it has allowed me to further expand my forums
Reply With Quote
  #29  
Old 09-09-2000, 05:21 PM
Guest
 
Posts: n/a
Default

One main thing.

Say that i don't want index.php to display all the categories ever and thus the user must come in with ?go=x how could i make it in the elseif statement to say take the person to a different page where they are given an option of the various go=? that they can then enter in.

Does that make sense? My forum has quite a few distinct major categories and i only want visitors to be able to be in 1 of these at once.

Thanks for any help on this, the mod is a lifesend.
Reply With Quote
  #30  
Old 09-09-2000, 07:05 PM
Guest
 
Posts: n/a
Default

One more little thing on this subject on the thread display i have got:

ASciFi.com > General Discussion

Ok, what i want to do is have

AsciFi.com> $catname(with a link like index.php?go=3) > General Discussion.

What templates will i need to edit? I assume i will need a template for each ?go=x but which template do i need to edit in.

Thanks again.
Reply With Quote
  #31  
Old 09-10-2000, 11:50 AM
Guest
 
Posts: n/a
Default

eva2000,

i think there is another way of doing what you want. How about only having 1 index file, indexcustom.php but call it index.php. Those categories that you want hidden in the normal index.php just don't include in the

} else {
$catname="";
$yourcat="1_2_3_4";
}
} else {
$catname="";
$yourcat="1_2_3_4";

bit and then they won't show up. You can still set their order normall then.

See what i mean?
Reply With Quote
Reply

Thread Tools

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 09:53 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.02857 seconds
  • Memory Usage 2,275KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete