View Full Version : Can this be done?
Kramer
03-12-2006, 02:15 AM
I have just installed the software and now what to know if it can do the following function. I would like to have a sub-directory or a list of links in a particular directory display on another page in a website. I want only the list of those sub-catagory and/or links in a particular directory, not the header and footer displayed. Can this be done? If so, is it built into the software or a mod?
Also, where would I find a list of new features in the current 3.x version compared to the current free version?
Thanks..
Ken Kramer
tarheit
03-12-2006, 04:58 AM
Something like the following should work:
Copy index.php to one_directory.php
In one_directory.php change 'echo $tpl->fetch('main.tpl', $id);' to
'echo $tpl->fetch('one_directory.tpl', $id);' (about the 2nd to last line).
Then copy main.tpl to one_directory.tpl under templates and edit it to get the look you want (remove header/footer, etc.)
Then in your other page just set $_REQUEST['c']=100; (or whatever your category id is) then include one_directory.php
-Tim
Kramer
03-12-2006, 08:04 PM
Thanks for the information, I have part of this working. Where exactly do I insert set $_REQUEST['c']=100; I've put that on the page were I'm attempting to insert the catagory/links, but it just displays everything.
Thanks..
Kramer
tarheit
03-13-2006, 01:58 AM
It shouldn't take much more than that. I just put the following in the middle of another page on my website and it worked fine
Content visible to registered users only.
Note my main.tpl already has the header and footer removed because I use the CMS used with the rest of my site to generate the header and footer.
Of course I'm using version 2 so there may be some differences if you are using something else.
-Tim
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.