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
  #12  
Old 08-28-2000, 10:33 PM
Guest
 
Posts: n/a
Default

well i think i found what huss used...

a hack called myforums by godfather... too lazy to get the thread... but i think it's part of a bookmark forum hack ?
Reply With Quote
  #13  
Old 08-28-2000, 10:42 PM
Guest
 
Posts: n/a
Default

I posted info on how to modify index.php to only display the forums that you want. Others have posted similiar info also. Just search for something like (index.php custom)
Reply With Quote
  #14  
Old 08-28-2000, 10:44 PM
Guest
 
Posts: n/a
Default

here's the godfather one http://vbulletin.com/forum/showthrea...hreadid=1029..

that one is not what i want... got search for rangersfan's one

found it http://vbulletin.com/forum/showthread.php?threadid=1433

[Edited by eva2000 on 08-28-2000 at 07:46 PM]
Reply With Quote
  #15  
Old 08-28-2000, 10:49 PM
Guest
 
Posts: n/a
Default

Actuall it is here http://www.vbulletin.com/forum/showt...?threadid=1433

And you posted in it so I guess you forgot? Note John mentions an easy way to set custom styles per forum in the "Next Major Version". So I guess it would be prudent to just sit on this and wait for the release in a few weeks time and see if it is in there?
Reply With Quote
  #16  
Old 08-28-2000, 10:53 PM
Guest
 
Posts: n/a
Default

so can someone make sense of that thread http://vbulletin.com/forum/showthread.php?threadid=1433 ? rangersfan and johnnyquest both hack good ways of doing it...
Reply With Quote
  #17  
Old 08-29-2000, 10:20 AM
Guest
 
Posts: n/a
Default

I am lost in confusion on those threads. Isn't there a simple disilled instructions anywhere or even just a hint as to how to make a customindex.php file to just show certain directories. All this stuff seems too much for my simple requirements.
Reply With Quote
  #18  
Old 08-29-2000, 11:40 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by rangersfan
Actuall it is here http://www.vbulletin.com/forum/showt...?threadid=1433

And you posted in it so I guess you forgot? Note John mentions an easy way to set custom styles per forum in the "Next Major Version". So I guess it would be prudent to just sit on this and wait for the release in a few weeks time and see if it is in there?
yeah i lost the thread... i tried your way of doing it and it's alot easier i think...

i did a sample at http://animeboards.net/forums/tvshows.php

problem is the header and footer for the category page still shows the header and footer from the main forum at the index.php page.
Reply With Quote
  #19  
Old 08-29-2000, 11:02 PM
Guest
 
Posts: n/a
Default

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
  #20  
Old 09-01-2000, 03:59 AM
Guest
 
Posts: n/a
Default

please can you post this hack?
Reply With Quote
  #21  
Old 09-01-2000, 01:57 PM
Guest
 
Posts: n/a
Default

Here is the complete custom category hack:

1) Make a copy of index.php.

2) At the very beginning of this file add the following code:
Code:
if (isset($go)) {
		if ($go==1) {
			$catname="Category 1";
			$yourcat="16_2_4_13_14";
		} elseif ($go==2) {
			$catname="Category 2";
			$yourcat="3_16_2_4_13_14";
		} elseif ($go==6) {
			$catname="Category 3";
			$yourcat="1_2_13_4_14";
		} else {
			$catname="";
			$yourcat="3_16_2_4_13_1_11_7_14";
		}
}	else {
			$catname="";
			$yourcat="3_16_2_4_13_1_11_7_14";
}

$yourcat=str_replace("_", " OR categoryid=", $yourcat);
You need to replace the category names with the name that you are going to call each custom category list. Also, you need to change the numbers in each $yourcat variable to include the categories for that list. For example, in the above code, I will have a custom category called "Category 3" that contains categories 1, 2, 13, 4 and 14. The order of the categories here doesn't matter.
The final two else statements should contain all visible categories.

3) Find the following line:
Code:
  $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
replace it with the following:
Code:
  $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category HAVING categoryid=$yourcat ORDER BY displayorder");
4) In the forumhome template, you can insert the variable $catname wherever you want the custom list name to appear.

5) to call this script, simply add the parameter ?go=number of custom category. For example, if you have called this script index2.php, you would link to http://www.yourdomain.com/forum/index2.php?go=1 and you would only see the forums which you designated for category 1. The categories will appear in the order you have them designated in the control panel.

I hope this makes sense. I realized while trying to describe this that custom categories isn't the best wording as this still uses the set categories from the board. You can see an example of this here: http://www.bigsoccer.com/forum/boards.php?go=3
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 10:01 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.03279 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
  • (3)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