vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Changing index.php for custom category list? (https://vborg.vbsupport.ru/showthread.php?t=2756)

09-01-2000 05:26 PM

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

09-01-2000 11:41 PM

JonnyQuest, another little question :D

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]

09-05-2000 02:26 AM

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.

09-05-2000 06:26 AM

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.

09-05-2000 12:21 PM

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


09-05-2000 12:41 PM

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.

09-06-2000 04:27 AM

thanks was worth a shot :D ... 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 :D

09-09-2000 05:21 PM

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.

09-09-2000 07:05 PM

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.

09-10-2000 11:50 AM

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?


All times are GMT. The time now is 06:36 AM.

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.01083 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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