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 a own vBulletin page (without plugin and php file) (https://vborg.vbsupport.ru/showthread.php?t=229194)

betty02 12-18-2009 06:45 AM

Quote:

Originally Posted by Lynne (Post 1932286)
Did you put the template in that particular style?


That's just the template. THIS_SCRIPT is defined in the php page.

Ohh sorry, were would i find that? if i post that would it help?

--------------- Added [DATE]1261126003[/DATE] at [TIME]1261126003[/TIME] ---------------

Quote:

Originally Posted by nubian (Post 1932298)
betty02,

Thanks for your reply.
You code removes the blockhead, I want to retain it.
Actually what I'm looking to do is change the text from this...

https://vborg.vbsupport.ru/external/2009/12/68.jpg

to this...

https://vborg.vbsupport.ru/external/2009/12/69.jpg

Any idea on how to accomplish this?
I plan on creating a massive amount of customized pages, like 50+ pages, so I'm debating on whether I should go this route or go with Lynne's method of using actual php files.


It's all picked up of your template name e.g if template is called custom_AboutUs it will appear like this - AboutUs, so if it's called custom_aboutus it will appear like aboutus. Pretty sure you cannot use spaces though.

nubian 12-18-2009 01:55 PM

Quote:

Originally Posted by betty02 (Post 1932738)
Ohh sorry, were would i find that? if i post that would it help?

--------------- Added [DATE]1261126003[/DATE] at [TIME]1261126003[/TIME] ---------------




It's all picked up of your template name e.g if template is called custom_AboutUs it will appear like this - AboutUs, so if it's called custom_aboutus it will appear like aboutus. Pretty sure you cannot use spaces though.

Damn damn damn, I was hoping in creating multiple pages like this with spacing in the words.

Lynne 12-18-2009 02:24 PM

Quote:

Originally Posted by betty02 (Post 1932738)
Ohh sorry, were would i find that? if i post that would it help?

I don't know where it is - you said you were using some script, so it would be in the file for that script.

turtile 12-19-2009 02:15 PM

I want to make a new page for my home page which would be index.html/php. I made the template and named it custom_homepage.

What shoud I use to call the template? If I make a file, index.php, what should go in it?

Thanks

Lynne 12-19-2009 03:02 PM

Quote:

Originally Posted by turtile (Post 1933486)
I want to make a new page for my home page which would be index.html/php. I made the template and named it custom_homepage.

What shoud I use to call the template? If I make a file, index.php, what should go in it?

Thanks

This is not the tutorial to use for what you want to do. You need to call the page using misc.php if you use this tutorial. There is another tutorial in this section for making vbulletin pages that you may call whatever you want (like a new index.php page).

anthony parsons 12-22-2009 04:22 AM

This needs an extra div class so that the now default vb css browser resetting will render HTML correctly. Using a default class from 4 and wrapping it around all custom entered HTML, then renders lists, paragraphs and so forth correctly.

<div class="article cms_clear restore">

M3xital 12-23-2009 02:01 PM

Thanks Allan, it works just fine on my board.

Magz 12-26-2009 02:50 PM

Sorry if this has been asked, but how can i set it to be viewable by only certain usergroups?

tia

Lynne 12-26-2009 03:58 PM

Quote:

Originally Posted by Magz (Post 1938651)
Sorry if this has been asked, but how can i set it to be viewable by only certain usergroups?

tia

You would have to put a condition around the stuff in the page you don't want others to see:
HTML Code:

<vb:if condition="is_member_of($bbuserinfo, x,y,z)">
the content you want usergroups x.y,and z to see
<vb:else />
You do not have permission to see this page
</vb:if>


Magz 12-26-2009 05:14 PM

Your a star,

thank you Lynne


All times are GMT. The time now is 02:02 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.01318 seconds
  • Memory Usage 1,743KB
  • 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_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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