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-16-2011 03:12 PM

Quote:

Originally Posted by CouponWCents (Post 2208540)
I know how to create a template but how do you "create a new file"?

Use a plain text editor such as notepad or bbedit and create a file and save it as xxxx.php Then upload it to your site.

CouponWCents 06-16-2011 03:20 PM

Ok, yay! I got that. What I am trying to do is link an amazon store to a page. I have uploaded your code in the OP to the ftp and created a template. I guess what I am having trouble with is linking my amazon store to that template. Does that make sense?

Lynne 06-16-2011 03:29 PM

Then in your template, using proper html, link to the store.

CouponWCents 06-16-2011 03:31 PM

This is what I put but when I type in www.mysite.com/amazon.php, it is just a blank page

{vb:stylevar htmldoctype}
<html xmlns="<iframe src="http://astore.amazon.com/coupo002-20" width="90%" height="4000" frameborder="0" scrolling="no"></iframe>"{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 id="amazon.php">
<h1>{vb:raw pagetitle}</h1>
</div>

<h2 class="blockhead">amazon</h2>
<div class="blockbody">
<div class="blockrow">
Text
</div>
</div>

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

Lynne 06-16-2011 03:46 PM

Quote:

Originally Posted by CouponWCents (Post 2208558)
This is what I put but when I type in www.mysite.com/amazon.php, it is just a blank page

Perhaps you are using a style that does not have that template included in it?

CouponWCents 06-16-2011 04:21 PM

I created a template named Amazon under my style and added the code above into it.

Lynne 06-16-2011 05:28 PM

Quote:

Originally Posted by CouponWCents (Post 2208578)
I created a template named Amazon under my style and added the code above into it.

Then in your php file, you had better be calling the *exact* same template. Not "amazon", but "Amazon".

CouponWCents 06-16-2011 09:09 PM

I finally got it! Thanks so much Lynne!

cellarius 06-17-2011 11:17 AM

Lynne, may I make a suggestion, if you don't mind? Maybe it would be a good thing to add a big bold note in first post about the case sensivity. That seems to get people in trouble fairly regularly. (or have I missed that note? just took a quick look)

Lynne 06-17-2011 04:49 PM

Quote:

Originally Posted by cellarius (Post 2208935)
Lynne, may I make a suggestion, if you don't mind? Maybe it would be a good thing to add a big bold note in first post about the case sensivity. That seems to get people in trouble fairly regularly. (or have I missed that note? just took a quick look)

I think you are right. I tried to do it by just using colors to show it is the same, but I think I should be a bit more, um, blunt! If they don't see it now, well..... :/


All times are GMT. The time now is 05:57 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.02000 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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