PDA

View Full Version : subforum portals?


EasyTarget
10-22-2005, 08:07 PM
Is there a way to set this up so that you can use it for subforums only? so that it shows users browsing the subforum, takes the subforum style, etc?

EasyTarget
11-28-2005, 12:11 AM
*bump*
is it possible to use a vbadvanced a few times on the same site? so like index1.php would show info from one part of the forums and index2.php or a subdomain could show info from another? and if so.. how?

Our Sponsors
 

Slave
11-28-2005, 06:47 AM
You mean like I have?

(look at the games links on the left)

http://www.savageforums.com

Slave
11-28-2005, 06:49 AM
Although, reading your question again :p, it doesn't do the users browsing per subportal ..

Our Sponsors
 

EasyTarget
11-28-2005, 08:01 PM
yeah, that's pretty hot. how'd you set that up?

PixelFX
11-29-2005, 02:19 AM
you just copy your cmps/index.php file, edit it and add the line


define('VBA_PAGE', 'page_ID');


then put it in a subdirectory or folder .. url/blah/index.php .. goto cmps acp . create a page .. aka url/index.php?id=page_ID <-- whats the same as you add to the code above into the cmps index.php and your good to go.

Demo: http://www.orbsydia.com/l2/index.php
Main Page: http://www.orbsydia.com/index.php

Example of how this works :D been doing it for a long time now, soon I'll have mod to link up vba gallery as well, with unique images.

Slave
11-29-2005, 05:15 AM
yeah, that's pretty hot. how'd you set that up?
Pretty much how you would setup a normal page and then within the properties of that page point it only to the forums/subforum you want it to read from ..

I'm also using the following hack ..

http://www.vbadvanced.com/forum/showthread.php?t=5193

Which allows me to only show news items from the threads I want to show, allowing me to use the same forum for normal threads as well as news posts.

I've had to create copies of some modules to enable me to have that module only pull stuff from certain areas .. an example would be the Latest Links module where I have a module per page and within the php code of that module I've played with the SQL WHERE statement to only pull from the one cat within the links hack.

Hope that helps :)

Slave
11-29-2005, 05:17 AM
you just copy your cmps/index.php file, edit it and add the line


define('VBA_PAGE', 'page_ID');


then put it in a subdirectory or folder .. url/blah/index.php .. goto cmps acp . create a page .. aka url/index.php?id=page_ID <-- whats the same as you add to the code above into the cmps index.php and your good to go.

Demo: http://www.orbsydia.com/l2/index.php
Main Page: http://www.orbsydia.com/index.php

Example of how this works :D been doing it for a long time now, soon I'll have mod to link up vba gallery as well, with unique images.
Nice info .. thanks :)

Saying that .. just tried it and it doesn't work for me :p

Is this using version 2 of cmps? My main site is 1.0.1

EasyTarget
11-30-2005, 04:10 PM
wow thanks for the info guys. I'll definately be trying these out.

PixelFX
12-02-2005, 03:51 AM
Slave, it will work on both versions :D I'm using vb3.5.1 and cmps 2.0 ...

I have a mod I've made that works with links directory, vba gallery, cmps, and the above hack :D