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)

Lynne 06-02-2010 03:49 AM

Quote:

Originally Posted by thezman (Post 2046745)
I have a simple question. I want a customer page that displays a table I created in Dreamweaver. Where do I place the html to have it display on my customer page?

html goes in the template.

thezman 06-02-2010 07:32 PM

Quote:

Originally Posted by Lynne (Post 2046876)
html goes in the template.

Then I have a problem somewhere. I tested with a simple bit of code (<b>Test</b>) right in the section that says customer code goes here. I get an error. I take out the code and the error goes away.

Further, the page is viewable (unmodified) but not as a part of the VB framework. It is just blank page, without the tabs, headings and so forth.

Lynne 06-02-2010 10:54 PM

Quote:

Originally Posted by thezman (Post 2047254)
Then I have a problem somewhere. I tested with a simple bit of code (<b>Test</b>) right in the section that says customer code goes here. I get an error. I take out the code and the error goes away.

Further, the page is viewable (unmodified) but not as a part of the VB framework. It is just blank page, without the tabs, headings and so forth.

It is the php page that says "Custom Code Goes Here" - that is not the template. The template is the thing created in Step 2. Did you do that? And did you create the template in the Style you are currently using on your site? If you don't, then you will get a blank page.

Percocet 06-07-2010 11:10 PM

So after you create the new test.php and the new template how do you get them to show up on your site? I assume you place the template in your template files, but what do you do with the test.php file?

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

Ok i figured it out. You just place it in the main VBULLETIN folder that will be titled "forum" if you followed the install directions exactly as they are on the vb website :)

Lynne 06-07-2010 11:42 PM

You need to upload test.php to your site.

Wilfred1 06-11-2010 10:17 PM

From an SEO perspective is it better to have the html code in the php file instead of using a template?

Lynne 06-12-2010 03:48 AM

Really? Why?

You can put the php in the php file, it's just not as easy as using a template, but you are free to do it however you want.

Wilfred1 06-12-2010 04:12 AM

Thanks Lynne - but I am just asking which way is better for SEO or doesn't it matter as the bots will find it all just the same?

ragtek 06-12-2010 08:04 AM

It doesn't matter

jdrakopo 06-23-2010 12:28 PM

Thanks for posting this.
However, I'm receiving the following error on my page:
>> Parse error: syntax error, unexpected T_VARIABLE in /home/bostonwh/public_html/adhub.php on line 44

...where line 44 is as follows:
$templater = vB_Template::create('adhub');

... and I DO have a template defined by that name which is identical to what you have above (though, I'm wondering if it's acceptable for me to have 'test' and 'TEST' be the same term - which in my case is 'adhub' for both)


All times are GMT. The time now is 11:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02285 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)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