The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
|||
|
|||
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-noanime template |
#23
|
|||
|
|||
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] |
#24
|
|||
|
|||
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<> I hope this makes sense. |
#25
|
|||
|
|||
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. |
#26
|
|||
|
|||
Goldenboy,
I have been out of town for a week due to personal matters. JonnyQuest posted the hack in my stead. Quote:
|
#27
|
|||
|
|||
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. |
#28
|
|||
|
|||
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 |
#29
|
|||
|
|||
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. |
#30
|
|||
|
|||
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. |
#31
|
|||
|
|||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|