vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

veenuisthebest 12-12-2008 01:26 AM

Can anyone please tell me how to give our own meta description/keywords for the custom page instead of the default vb's meta info.

Can this be done from the page itself without using plugins.

Thanks

Lynne 12-12-2008 02:15 AM

Quote:

Originally Posted by veenuisthebest (Post 1683503)
Can anyone please tell me how to give our own meta description/keywords for the custom page instead of the default vb's meta info.

Can this be done from the page itself without using plugins.

Thanks

You can write whatever you want in the meta tags.

veenuisthebest 12-12-2008 04:36 AM

Quote:

Originally Posted by Lynne (Post 1683518)
You can write whatever you want in the meta tags.

But how?

headinclude template is included in the page that already has the default METAINFO. How do I overwrite it ?

Thanks

Simon Lloyd 12-12-2008 07:14 AM

Quote:

Originally Posted by veenuisthebest (Post 1683615)
But how?

headinclude template is included in the page that already has the default METAINFO. How do I overwrite it ?

Thanks

Simply copy your meta tags from the in between <head></head> from the forumhome template (as your own meta tags should be there) and paste in between the <head> tags in the new page!

freni32 12-12-2008 12:46 PM

Quote:

Originally Posted by Digital Jedi (Post 1683450)
What style are you using when you go to look at the page? If you've created a template in a particular style, it will only show up when viewing the page in that style. If your currently browsing the forums using another style then you'll get a blank page.

Under Style & Templates I have the "default style" and under that style I have a template called "CarTemplate" my forum uses the "CarTemplate" style....

Digital Jedi 12-12-2008 01:23 PM

Quote:

Originally Posted by freni32 (Post 1683799)
Under Style & Templates I have the "default style" and under that style I have a template called "CarTemplate" my forum uses the "CarTemplate" style....

And when you go to look at that page, what style are you personally using as you view it?

freni32 12-12-2008 01:32 PM

Quote:

Originally Posted by Digital Jedi (Post 1683812)
And when you go to look at that page, what style are you personally using as you view it?

I am using vbadvanced dynamics, I have it set by default to override everyone to use that template "CarTemplate" so I know it isn't using the old default style....

veenuisthebest 12-12-2008 02:05 PM

Quote:

Originally Posted by Simon Lloyd (Post 1683690)
Simply copy your meta tags from the in between <head></head> from the forumhome template (as your own meta tags should be there) and paste in between the <head> tags in the new page!

I think I didn't get you or you didn't get me :D

FORUMHOME template DOES NOT HAVE keywords/description meta tags. Just the headinclude template has that info.

See the problem is that when we create a custom page, we include $headinclude in OUR NEW template (that is associated with the new page).

Now this makes the same old metainfo for the new page. If however, I try to add my own meta tags to the template, they are added twice (because of the headinclude template).

How do I overwrite those default meta tags with mine??

Thanks

Lynne 12-12-2008 02:21 PM

Quote:

Originally Posted by veenuisthebest (Post 1683834)
How do I overwrite those default meta tags with mine??

Thanks

The easiest way is to just put a condition in the headinclude template based on THIS_SCRIPT.

veenuisthebest 12-12-2008 03:45 PM

Quote:

Originally Posted by Lynne (Post 1683850)
The easiest way is to just put a condition in the headinclude template based on THIS_SCRIPT.

ya lynne, i understand that would be the easiest way. But editing headinclude template just for that small metainfo thing doesn't look good.

Isn't their a way to do it ONLY through the PHP file? or maybe using a plugin BUT without running an additional query.

Thanks


All times are GMT. The time now is 07:06 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.04058 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
  • (9)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