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)

Nicke71 07-18-2010 08:37 PM

Thanks Lynne, will dig more into this as I intend to do my own pages / apps a part of vB instead of outside vB.

Very helpful.

euantor 07-29-2010 09:22 AM

I've followed this to the letter, yet I'm getting " " at the top of every new page. Strangely, these characters don't usually appear on the main site. Any ideas anybody?

Lynne 07-29-2010 02:27 PM

Quote:

Originally Posted by euantor (Post 2076160)
I've followed this to the letter, yet I'm getting " " at the top of every new page. Strangely, these characters don't usually appear on the main site. Any ideas anybody?

Those are characters you get when you are not using just a basic text editor. You need to use something like notepad++ or bbedit to edit the php files or hidden characters can get added to the page.

2fast4ya 07-29-2010 07:52 PM

Okay, I've read this article a thousand different times, and it's shown me the thousand different reasons why I'm such a noob when it comes to this stuff. So bare with me here.

I understand the concept of creating the PHP page where all of your content will fall under. This is is where I add the custom HTML or PHP code for the extra content that I wanted. For example, an "About Us" page.

Now it's my understanding that once you create this test.php page, you need to then create a Template in VB to CALL that php page. Am I wrong? Because when I'm looking at the Create a Template code, I can't see any part of that code that calls on test.php ...

Again, I'm sure I'm missing something simple and obvious and stupid, but I have to ask.

Let me just start to understand this concept first before I even begin to try to do this. If I can pull this off without losing my mind in frustration it would be great lol :o

Lynne 07-29-2010 10:14 PM

Quote:

Originally Posted by 2fast4ya (Post 2076480)
Now it's my understanding that once you create this test.php page, you need to then create a Template in VB to CALL that php page. Am I wrong? Because when I'm looking at the Create a Template code, I can't see any part of that code that calls on test.php ...

Actually, it's the opposite. The test.php page calls the template.

Nicke71 07-30-2010 03:42 AM

Hi Lynne.

I just made my first vb powered page, it fetch local movie showtimes and displays it.

I just wonder how to handle css within this page? I added css to additional.css file, but it is possible to have the extra css only for my custom page? (Instead of making it loading for all vb pages)

And thanks again for all help you provide to vb community.

Lynne 07-30-2010 02:06 PM

Quote:

Originally Posted by Nicke71 (Post 2076654)
Hi Lynne.

I just made my first vb powered page, it fetch local movie showtimes and displays it.

I just wonder how to handle css within this page? I added css to additional.css file, but it is possible to have the extra css only for my custom page? (Instead of making it loading for all vb pages)

And thanks again for all help you provide to vb community.

You could add CSS directly into your template, or create a new css template and include it in your page by following the examples of how it is included in the headinclude and headinclude_bottom template.

2fast4ya 07-30-2010 08:27 PM

i figured it out! Thank you so much Lynne for your wonderful help!

Nicke71 07-31-2010 11:55 AM

Thanks, I added it to the template and it worked fine. Probably the best way if only one page use the css.

mordor1 08-04-2010 02:56 PM

Does any 1 know how make a redirect on a costum page if user is not loged in?


All times are GMT. The time now is 10:49 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.02015 seconds
  • Memory Usage 1,741KB
  • 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
  • (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