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)

Lynne 12-15-2009 03:41 PM

Quote:

Originally Posted by Ted Clore (Post 1930729)
I've read and reread this article and completely do not understand it. Could someone give a step by step and explain things for a neophyte like myself. I am trying to wrap my site pages with vB headers, footers and widgets, and I think this is what this is supposed to do.

Any help is appreciated. Thank you.

What exactly have you done? The article is pretty straightforward. Did you create any templates? Did you make sure to name them custom_whatever ? Exactly what have you done so far?

Quote:

Originally Posted by nubian (Post 1930947)
Any way to make these URL friendly?
Like mydomain.com/aboutus ?

Google "htaccess mod_rewrite"

nubian 12-15-2009 03:53 PM

Quote:

Originally Posted by Lynne (Post 1931165)
Google "htaccess mod_rewrite"

Oh cool, all's that needed it a mod rewrite.
I'm currently using Mattyasia's.

Thanks for replying

Ted Clore 12-15-2009 10:08 PM

Quote:

Originally Posted by Lynne (Post 1931165)
What exactly have you done? The article is pretty straightforward. Did you create any templates? Did you make sure to name them custom_whatever ? Exactly what have you done so far?

Well..., I have moved on in a different direction, which seems to be working for me. Sorta.

What I am doing now is making a widget with HTML code in a Static HTML widget. Then I make a new layout with the Layout manager and place the widget into the center of the layout, just below the Primary Content. Then I go to to the Section Manager and make a new section naming it accordingly. And with the Layout window in the Layout editor, I select the layout I created earlier. This puts the content of the widget on the center of a page all by itself, if I want.

The only problem that I am having is that not all of the HTML codes work in the widgets. Headers and Navigational commands within the widget either don't work at all or take you to the Home page in CMS.

For instance, I have a very long article that is in a widget and navigation code that will take you to a section heading so that you don't have to scroll through a lot of text to get to that section. And after you have read that section you can click a TOP button that should take you back to the top of the page where the Contents are listed. Either link takes you to the Home page in CMS.

Here it is:

http://www.light-after-darkness.org/...ssion-of-Faith

Clicking on a title in the Contents section should take you to that section, it doesn't it takes you Home.

Clicking on "TOP" at the end of a section should take you back to the Contents portion of the article, it doesn't.

Any ideas, after this long post?

Lynne 12-15-2009 10:31 PM

Quote:

Originally Posted by Ted Clore (Post 1931409)
Clicking on a title in the Contents section should take you to that section, it doesn't it takes you Home.

Clicking on "TOP" at the end of a section should take you back to the Contents portion of the article, it doesn't.

Any ideas, after this long post?

Google "anchor html". You have your anchor links incorrect which is why they aren't going to the correct place. I've gotta run right now, but you should be able to google it and see what is wrong (hover over your links in the page to see where they are currently going).

Ted Clore 12-15-2009 11:35 PM

Quote:

Originally Posted by Lynne (Post 1931421)
Google "anchor html". You have your anchor links incorrect which is why they aren't going to the correct place. I've gotta run right now, but you should be able to google it and see what is wrong (hover over your links in the page to see where they are currently going).

The code works OK if it isn't in a widget:

SEE ME

So I don't think it is something wrong with the code.

Lynne 12-16-2009 03:18 AM

Quote:

Originally Posted by Ted Clore (Post 1931443)
The code works OK if it isn't in a widget:

SEE ME

So I don't think it is something wrong with the code.

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.

nubian 12-16-2009 03:37 AM

Would it be possible to get rid of what I have attached here in yellow?

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

I'm finding it to be quite redundant and also I'm unable to separate the words about and us like I can in the blockhead.

Lynne 12-16-2009 04:33 AM

I suppose you could, but you'll have to edit your template. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

nubian 12-16-2009 04:48 AM

Quote:

Originally Posted by Lynne (Post 1931522)
I suppose you could, but you'll have to edit your template. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

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".
If I were viewing this in firebug, I could see that the line for the aboutus text is this:
Code:

<span>aboutus</span>
This is what the code looks like.
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}</title>
    {vb:raw headinclude}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>
     
    <h2 class="blockhead">About Us</h2>
    <div class="blockbody">
      <div class="blockrow">
        Test here
      </div>
    </div>
   
    {vb:raw footer}
  </body>
</html>

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

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

Thanks

I.am 12-16-2009 10:27 AM

I can't see the text when i write on this template what stylevar color i have to edit?


All times are GMT. The time now is 08:58 PM.

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.01264 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
  • (6)bbcode_code_printable
  • (8)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