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)

GossipAll 01-01-2012 06:52 PM

How do I remove the meta description and meta keywords from the static page? It inserts the default "Home" meta descriptions and keywords on the static page.

So how do I remove this? Or add custom meta description and keywords on the static page?

Lynne 01-01-2012 09:04 PM

Did you try just adding them into the template after the headininclude template is called?

HTML Code:

<meta name="keywords" content="xxxx" />
<meta name="description" content="yyyy" />

and then change the condition in the headinclude template to not show those for your page:
HTML Code:

<vb:if condition="$show['threadinfo'] OR Your Condition">

<vb:elseif condition="$show['foruminfo']" />
other stuff....
        <meta name="keywords" content="{vb:raw vboptions.keywords}" />
        <meta name="description" content="{vb:raw vboptions.description}" />
</vb:if>


TheSupportForum 01-04-2012 04:52 PM

i need some help with this template using the information from 1st page

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} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div class="blockbody">
      <div class="blockrow">

<vb:if condition="$vboptions['policy_active']">
<ol id="forums" class="floatcontainer">
    </div>
    </div>
<li class="forumbit_nopost L1" id="cat1">
                           
<div id="section1_a" class="block collapse">
    <h2 class="blockhead">
        <span class="forumtitle"><a href="">{vb:raw vboptions.policy_title}</a></span>
        <span class="forumlastpost"></span>
        <a class="collapse" id="collapse_section1" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_cel_dummy_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
    </h2>
    <div class="forumrowdata"  id="section1">
        <p class="subforumdescription">{vb:raw vboptions.policy_content}</p>
    </div>
</div>

<div>
<div>
<vb:else />           
        <div class="foruminfo td">
            <img src="{vb:stylevar imgdir_button}/kural.gif" class="forumicon" id="forum_statusicon_2" alt="" />
            <div class="forumdata">
                <div class="datacontainer">
                    <div class="titleline">
                        <h2 class="forumtitle">{vb:raw vboptions.policy_closedreason}</h2>
</div>
                    <p class="forumdescription"></p>       
 
</vb:if>

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

i get a white space but and need to remove it as shown in the screenshot, can anyone help

http://img651.imageshack.us/img651/1876/whitedv.jpg

kh99 01-04-2012 10:50 PM

I'm not really an html person, but I'm thinking maybe <div ... followed by <p ... is creating a blank line?

Lynne 01-05-2012 05:14 PM

Just taking a quick look, this is totally not correct:
HTML Code:

    <div class="blockbody">
      <div class="blockrow">

<vb:if condition="$vboptions['policy_active']">
<ol id="forums" class="floatcontainer">
    </div>
    </div>
<li class="forumbit_nopost L1" id="cat1">

You can't open an <ol> in the middle of the divs and then have the list continue after you close the divs. Any tag you open must be closed before you may close a tag then encloses it.

TheSupportForum 01-06-2012 04:15 PM

Quote:

Originally Posted by Lynne (Post 2284191)
Just taking a quick look, this is totally not correct:
HTML Code:

    <div class="blockbody">
      <div class="blockrow">

<vb:if condition="$vboptions['policy_active']">
<ol id="forums" class="floatcontainer">
    </div>
    </div>
<li class="forumbit_nopost L1" id="cat1">

You can't open an <ol> in the middle of the divs and then have the list continue after you close the divs. Any tag you open must be closed before you may close a tag then encloses it.

how do i correct it, i tried removing parts of the code to get rid of that white space
the reason it looks not correct was due to me removing some of the original code this from this point of it

Code:

<div class="blockbody">
      <div class="blockrow">


Lynne 01-06-2012 05:26 PM

I don't know how that code should be since I didn't write it. I actually see no reason for any of the code I quoted to be in that page as it doesn't seem to do anything.

Davidinh 01-07-2012 08:42 PM

i created a custom page it just show an object (etc. picture)
i want to interage the forum (by forumid) into my custom page
can all of you guide me which template that i need to concern for it

any adviced or suggestion will be appriciated

Lynne 01-08-2012 02:30 AM

Quote:

Originally Posted by Davidinh (Post 2284949)
i created a custom page it just show an object (etc. picture)
i want to interage the forum (by forumid) into my custom page
can all of you guide me which template that i need to concern for it

any adviced or suggestion will be appriciated

If you have a custom page and you want to do something, then you would edit the template for your custom page.

thenamesgould 01-13-2012 05:28 AM

Works great for my 404 page! Thanks!!! :D


All times are GMT. The time now is 01:18 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.02399 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)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