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-16-2009 02:18 PM

Quote:

Originally Posted by Lynne (Post 1927787)
For the condition used for the tab, did you try this?
PHP Code:

if (THIS_SCRIPT == 'misc'

or, you may have to do:
PHP Code:

if (THIS_SCRIPT == 'misc' AND $_REQUEST['template'] == 'whatever'

Something like that should work. Play with it.


Exactly what are you trying to do? You don't want to include the whole misc.php page in another script. Where are you adding the php code to include the misc.php page? If you have other php pages already, you probably would do better following this - [HOW TO - vB4] Create a own vBulletin page

Had a play around with that mate and nothing has worked - say my page is called shoutbox i have tried putting that in aswell and instead of misc etc and still nothing. Thanks for help so far though but any other will be really appreciated!

Lynne 12-16-2009 02:55 PM

Quote:

Originally Posted by nubian (Post 1931526)
Hi Lynne.

My apologies, I'm understanding what you told me but I'm not understanding why you told me and how this would get rid of the aboutus text? :confused:

I've create a template called, "custom_aboutus".

....
I thought maybe getting rid of this...
Code:

{vb:raw navbar}
would do it but that removes my entire menu.

Thanks

You would have to actually edit the navbar itself. That part is called the breadcrumbs. If you remove it in the navbar, it will be removed everywhere that you use that style (like in the forums and threads also).

Quote:

Originally Posted by I.am (Post 1931595)
I can't see the text when i write on this template what stylevar color i have to edit?

Please see this article on how to find stylevars - HOW TO Find what Stylevar you need to edit
Quote:

Originally Posted by betty02 (Post 1931679)
Had a play around with that mate and nothing has worked - say my page is called shoutbox i have tried putting that in aswell and instead of misc etc and still nothing. Thanks for help so far though but any other will be really appreciated!

You'll have to look at your shoutbox page and find out what THIS_SCRIPT is defined as. I have no idea and can't help with that since I don't have the mod.

Ted Clore 12-16-2009 08:45 PM

Quote:

Originally Posted by Lynne (Post 1931494)
You can see that the links are different, right? In the standalone code above, the link for the first article is:
Code:

http://www.light-after-darkness.org/forums/articles/WCF1.php#I
- notice the url for that page and then the anchor at the end.

On the CMS page, the link for the first article is:
Code:

http://www.light-after-darkness.org/forums/#I
- notice that url is incorrect for the page, it should be something like:
Code:

http://www.light-after-darkness.org/forums/content.php?59-The-Westminster-Confession-of-Faith#I
It needs the page name and section name in there.

Thank you Lynne, your help was truly appreciated. Got it under control and working like a charm now. :)

nubian 12-17-2009 05:27 AM

Would it be possible to get "aboutus" to display "About Us"?

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

betty02 12-17-2009 06:32 AM

Quote:

Originally Posted by Lynne (Post 1931693)
You would have to actually edit the navbar itself. That part is called the breadcrumbs. If you remove it in the navbar, it will be removed everywhere that you use that style (like in the forums and threads also).


Please see this article on how to find stylevars - HOW TO Find what Stylevar you need to edit

You'll have to look at your shoutbox page and find out what THIS_SCRIPT is defined as. I have no idea and can't help with that since I don't have the mod.

Heres my current code if this helps mate?

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} Shoutbox</title>
    {vb:raw headinclude}
    {vb:raw template_hook.headinclude}

  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>

<!--SHOUTBOX-->

    {vb:raw footer}
  </body>
</html>


dtommy79 12-17-2009 11:52 AM

It doesn't work for me on RC4.
I get an object not found 404 error.

I named the template custom_banners and i use this url: http://localhost/vb4scifiw/forum/mis...mplate=banners

betty02 12-17-2009 01:14 PM

That URl wont work, as it's not a web link the http://localhost bit should be your website e.g my website is www.twingooc.com localhost wont work as a URL iirc?

dtommy79 12-17-2009 02:05 PM

Quote:

Originally Posted by betty02 (Post 1932230)
That URl wont work, as it's not a web link the http://localhost bit should be your website e.g my website is www.twingooc.com localhost wont work as a URL iirc?

It doesn't really matter that it is on localhost. Just figured I didn't need to use the forum dir.

Lynne 12-17-2009 03:10 PM

Quote:

Originally Posted by dtommy79 (Post 1932183)
It doesn't work for me on RC4.
I get an object not found 404 error.

I named the template custom_banners and i use this url: http://localhost/vb4scifiw/forum/mis...mplate=banners

Did you put the template in that particular style?

Quote:

Originally Posted by betty02 (Post 1932090)
Heres my current code if this helps mate?

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

nubian 12-17-2009 03:22 PM

Quote:

Originally Posted by betty02 (Post 1932090)
Heres my current code if this helps mate?

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} Shoutbox</title>
    {vb:raw headinclude}
    {vb:raw template_hook.headinclude}

  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>

<!--SHOUTBOX-->

    {vb:raw footer}
  </body>
</html>


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.


All times are GMT. The time now is 01:46 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.01571 seconds
  • Memory Usage 1,764KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)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