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)

skylab 01-26-2010 10:49 PM

Quote:

Originally Posted by Lynne (Post 1967140)
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();
}


I apologize for my ignorance but could you tell me in more detail?

Lynne 01-26-2010 11:51 PM

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.

skylab 01-27-2010 01:22 AM

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?

orlybriceno 01-27-2010 02:20 AM

Quote:

Originally Posted by Lynne (Post 1962892)
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.

Hey everyone,

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

Lynne 01-27-2010 02:10 PM

Quote:

Originally Posted by skylab (Post 1967579)
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?

Here is just fine:
PHP Code:

require_once('./global.php');

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

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 

Quote:

Originally Posted by orlybriceno (Post 1967603)
Hey everyone,

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

The only guides I am familiar with regarding the CMS are the artciles over on vb.com.

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)

orlybriceno 01-27-2010 02:58 PM

Quote:

Originally Posted by Lynne (Post 1968010)

The only guides I am familiar with regarding the CMS are the artciles over on vb.com.

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)

Hey Lynne, thanks again, I checked the article you suggested It's handy, I could use it some other time, in this case my project manager wants us to use the CMS specifically, I'm following your article from vB.com CMS-How-to-get-a-layout-like-vBulletin-com

Hope it can help me, if you stumble across more information about the CMS I would really appreciate it.

Cheers

netshaq 01-30-2010 03:37 PM

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

Lynne 01-30-2010 06:03 PM

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.

claystation 02-04-2010 02:46 PM

Is there any way to get your own vbulletin page to show up on the the internal vbulletin search?
Thanks,
Andy

Lynne 02-04-2010 08:02 PM

Quote:

Originally Posted by claystation (Post 1974716)
Is there any way to get your own vbulletin page to show up on the the internal vbulletin search?
Thanks,
Andy

You would have to write code to include what you have on that page into the search engine. I have no idea how to do this.


All times are GMT. The time now is 01:16 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.01935 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (6)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