Quote:
|
Great work.
|
Hey everyone!! I have had some great joy with this article, and it has helped me out a lot, but now I am wanting to do a bit more with it. I have now got so many custom pages that I was wondering if I could put them all together to pull up different templates.
For example... radio.php would be the only PHP file I need to build. Then I have a link to radio.php?id=status, that will pull up the status template. radio.php?id=schedule, that will pull up the schedule template And so on. This would then cut down the amount of pages I have on my web server, but keep what I have done already!! I tried using the example above to no avil... not sure how that is supposed to work but it didn't!! I wonder if you could you the "if, elsif, else" solution on it though? PHP Code:
|
If you are using id as the passed variable, then you need to use $_REQUEST['id'] in the code, not $_REQUEST['do']
|
Okay, here is what I am using...
PHP Code:
When I load up radio.php I get the error... HTML Code:
Fatal error: Call to undefined function construct_navbits() in /home/pukkarad/public_html/forum/radio.php on line 15 |
Quote:
|
Sorted!! Was just missing one thing. But now, how do I make sure that the tab shows selected for that page? Page name is "radio.php"?
|
Quote:
|
you don't need all the templates in the globaltemplates array;)
If you need them only for a special action (do == 'xxx') you can use the actiontemplates |
Quote:
|
globaltemplates => cached global for the page (allways)
actiontemplates => cached if a special action is called ($_GET['do'] == 'whatever') you could also make: PHP Code:
PHP Code:
|
Thank you for that explanation! It makes more sense to me now.
|
Hey Lynne!! I am wondering, is there a way to get a "tree" on where the links have gone on each page?
For example, I have the main tab heading as "Radio" and then "Schedule" as a drop-down menu with each Day listed below. Just like you get Member List > Username at the top. Cheers. |
Sorry PukkaBen, I don't understand what you are wanting at all. An image might help.
|
1 Attachment(s)
Okay, I have the screen shot below to help explain what I'd like to get out of it.
https://vborg.vbsupport.ru/attachmen...1&d=1263664260 But I'd like it to follow my links in the navigation. So on the "Tuesday" schedule page it would be Radio -> Schedule -> Tuesday I hope that helps. |
You mean the navbits - what says Member List > PukkaHQ right now? You'd have to look at the API for construct_navbits to find out what to pass to have it listed how you want. I've never really looked at that function, so I don't know exactly what you want to do.
|
too complicated for this brain today. :(
|
Hello Lynne, very nice but any idea why my link is not showing up in the navbar? I did the template exactly as yoiurs but named it news. In the php I named it news.php and changed the 2 red test to news then changed test page to news page.
|
Quote:
|
There is no automatic link in the navbar;)
|
Oops, sorry brain not working. I saw this post:
https://vborg.vbsupport.ru/showpost....6&postcount=63 and without reading thought it created that link. Actually reading it I see its anither mod. Sorry, works outstanding then, thank you. |
Is there a way to do a custom page from the vB CMS? Thanks
|
Quote:
|
Quote:
|
Can anybody help me with getting this to work on my new page please ?
<?php /* Copyright 2004 Greg Williams and Serena Swan, All Rights Reserved. This file is part of BowlingDB. BowlingDB is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. BowlingDB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with BowlingDB; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require("bowlingfuncs.inc.php"); printDoctype(); ?> <head> <title>Bowling Database</title> <link href="bowling.css" rel="stylesheet" type="text/css" /> </head> <body> <?php $homedir=""; include("menuheader.php"); ?> <?php include("pagebottom.php"); ?> </body> </html> I get this error Parse error: syntax error, unexpected '<' in /home/tenpinfo/public_html/BowlingDB/index.php on line 43 |
I'm having a little trouble. I got the page to work, but now I want it to show something if a user is logged in, and something else if a guest views the page. How could I do this?
|
Quote:
HTML Code:
<vb:if condition="$show['member']"> |
Thank you! I had been trying all sorts of conditions but I just kept screwing them up. I would have been up all night trying to figure this out, I had at least 20 tabs open on the subject.
|
hey there. how could i make it so that only certain groups can view the page? thanks!
|
Just add something after you include the global.php file:
Code:
if (!is_member_of($vbulletin->userinfo, x, y, z)) |
Quote:
|
I'm not sure what else I can tell you about that. It's an statement that says "if the user is not a member of usergroup x,y, or z, then give them the No Permission page" I'm not sure what else you want to know about it.
|
Where to put it.... You had said after global.php statement. Am I just pasting it right after that call? Would it be too much to ask if you could give me an example with everything?
|
Quote:
thanks Lynne for the quick reply, sadly I didn't see it on time, great tutorial, I haven't been able to implement it because the server where the vB4 installation that I work with resides doesn't allow me system access, so I only can work within vB. So I want to know if someone knows where to find a guide or tutorial to accomplishing this, creating a custom page but withing the vB 4 CMS. Thanks to all in advance |
Quote:
PHP Code:
Quote:
If you cannot add pages (can't ftp them), then you may want to look at this article - [HOW TO - vB4] Create a own vBulletin page (without plugin and php file) |
Quote:
Hope it can help me, if you stumble across more information about the CMS I would really appreciate it. Cheers |
Lynne,
all i get is a blank page. please help I really need to add custom pages to my site here is my test page. http://www.netshaq.com/forum/test.php can you figure out what i am doing wrong ? thanks steve |
Did you create the template in the style you are using? You will get a blank page if that style does not have that template. If that isn't the problem, you will need to post your exact code - please use the php and html tags when you do.
|
Is there any way to get your own vbulletin page to show up on the the internal vbulletin search?
Thanks, Andy |
Quote:
|
All times are GMT. The time now is 12:12 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|