vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

chingon 01-21-2010 08:06 PM

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.

orlybriceno 01-21-2010 10:58 PM

Is there a way to do a custom page from the vB CMS? Thanks

Lynne 01-21-2010 11:08 PM

Quote:

Originally Posted by orlybriceno (Post 1962877)
Is there a way to do a custom page from the vB CMS? Thanks

You create articles in the CMS and can do various things to have them look like custom pages, but that is not something that this article is about at all. Help for the CMS is provided on vbulletin.com.

glen290 01-22-2010 02:23 PM

Quote:

Originally Posted by glen290 (Post 1954562)
throwing in the towel, cant get no joy with this lol

Sort of got this working now, just got to try and get the php page i already have to work with it..:)

glen290 01-23-2010 08:02 PM

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

nsilva 01-25-2010 10:32 PM

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?

Lynne 01-25-2010 11:19 PM

Quote:

Originally Posted by nsilva (Post 1966605)
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?

Put a condition around the stuff in the template:
HTML Code:

<vb:if condition="$show['member']">
stuff to show logged in members
<vb:else />
stuff to show non-logged in users (guests)
</vb:if>


nsilva 01-25-2010 11:31 PM

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.

skylab 01-26-2010 02:40 PM

hey there. how could i make it so that only certain groups can view the page? thanks!

Lynne 01-26-2010 03:18 PM

Just add something after you include the global.php file:
Code:

if (!is_member_of($vbulletin->userinfo, x, y, z)) 
{
// no permission if you aren't a member of usergroupid x, y, or z
        print_no_permission();
}



All times are GMT. The time now is 01:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02787 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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