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 01-12-2010 06:05 PM

Quote:

Originally Posted by meissenation (Post 1953744)
Anyone know why
HTML Code:

<strong></strong> and <ul></ul><li></li>
tags do not work in the custom page? I've never seen HTML just be ignored like that. I can view it in the source code for the page so I know it's not my cache just not refreshing but yet it's not doing what the HTML tags say to do.

http://www.mifbody.com/vbulletin/advertise.php

If you view the source and then compare where it says "SOLD" in red - it should be strong. All the headings should be strong for that matter.


Edit:
Weird -
HTML Code:

<b></b>
works perfectly fine, though...

View your css using something like firebug and you'll see that vb has added css that deals with those tags. If you don't like it, then modify it. You can add css to your own page to override the other.

glen290 01-12-2010 06:08 PM

Been trying to get this to work all day with no luck, just get a blank page every time, copied it exactly but no joy :mad:

meissenation 01-12-2010 06:13 PM

Quote:

Originally Posted by glen290 (Post 1953762)
Been trying to get this to work all day with no luck, just get a blank page every time, copied it exactly but no joy :mad:

I was getting a blank page too. This line has to be the EXACT name and case (upper case vs lower case) as your template name:
Code:

$templater = vB_Template::create('test');
For example - if your template is named TEST, you'll get a blank page.

psypher 01-12-2010 06:14 PM

Awesome job, works great for me.

glen290 01-12-2010 06:21 PM

Quote:

Originally Posted by meissenation (Post 1953765)
I was getting a blank page too. This line has to be the EXACT name and case (upper case vs lower case) as your template name:
Code:

$templater = vB_Template::create('test');
For example - if your template is named TEST, you'll get a blank page.


Checked that a few times and still the same, must be doing something wrong creating the template.

I went in to style manager / add new template and named it test then pasted in the info from the first page (2nd box) is this correct ?

meissenation 01-12-2010 06:30 PM

Quote:

Originally Posted by Lynne (Post 1953758)
View your css using something like firebug and you'll see that vb has added css that deals with those tags. If you don't like it, then modify it. You can add css to your own page to override the other.

Thanks for the info, Lynne. Lots of learning to do. I absolutely hate this CSS stuff... wish I could just disable it and go back to the old system where everything just worked and looked correct. Change the CSS in one thing and now you've completely ruined the look of something totally unrelated. What happened to the good old days when you could just put <strong> if you want it to be strong and use UL?! LOL Crazy. Way too overcomplicated.

Anyway - thanks for the info, Lynne. Guess I'll have to create my own CSS (yuck) just to be able to use strong and ordered lists...

PS - frustration directed at VB development team, not you Lynne.

Lynne 01-12-2010 08:05 PM

Quote:

Originally Posted by glen290 (Post 1953772)
Checked that a few times and still the same, must be doing something wrong creating the template.

I went in to style manager / add new template and named it test then pasted in the info from the first page (2nd box) is this correct ?

Make sure you added the template to the style you are using on your site.

Quote:

Originally Posted by meissenation (Post 1953783)
Thanks for the info, Lynne. Lots of learning to do. I absolutely hate this CSS stuff... wish I could just disable it and go back to the old system where everything just worked and looked correct. Change the CSS in one thing and now you've completely ruined the look of something totally unrelated. What happened to the good old days when you could just put <strong> if you want it to be strong and use UL?! LOL Crazy. Way too overcomplicated.

Anyway - thanks for the info, Lynne. Guess I'll have to create my own CSS (yuck) just to be able to use strong and ordered lists...

PS - frustration directed at VB development team, not you Lynne.

I just looked at your site. You aren't using your tags correctly. You need to go:
Code:

<ul>
<li>stuff</li>
<li>more stuff</li>
</ul>

You have <ul> tags all over in your list.

As for the css for strong, just add this in your custom css for the page:
HTML Code:

<style type="text/css">
strong {font-weight:bold;}
ul.unordered li {list-style-type: disc;list-style-position:inside;}
</style>

And then for your list:
HTML Code:

<ul class="unordered">
<li>stuff</li>
<li>more stuff</li>
</ul>


glen290 01-13-2010 10:35 AM

Quote:

Originally Posted by Lynne (Post 1953865)
Make sure you added the template to the style you are using on your site.


Only using the default style on my test board, still no joy..:( :(

meissenation 01-13-2010 11:54 AM

Quote:

Originally Posted by Lynne (Post 1953865)
Make sure you added the template to the style you are using on your site.


I just looked at your site. You aren't using your tags correctly. You need to go:
Code:

<ul>
<li>stuff</li>
<li>more stuff</li>
</ul>

You have <ul> tags all over in your list.

As for the css for strong, just add this in your custom css for the page:
HTML Code:

<style type="text/css">
strong {font-weight:bold;}
ul.unordered li {list-style-type: disc;list-style-position:inside;}
</style>

And then for your list:
HTML Code:

<ul class="unordered">
<li>stuff</li>
<li>more stuff</li>
</ul>


Lynne -

Thanks for your help, I sincerely appreciate it. The UL tags are being used correctly, though. I extracted just the content of the block and pasted it here:
HTML Code:

Advertising with the Michigan FBody Association is a sure fire way to get more customers to your local shop! What better way to get local customers interested in your products than to advertise them on a website that thousands of Michigan residents would see? Let's take a look at the features that each Sponsor gets!<br>
<br>
 
<b>Premier Package - $200 per Year</strong> - Ultimate Exposure! </b><b><font color="red">SOLD!</font></b>
<UL>
<LI>Premier Package = Ultimate in Company Exposure!</LI>
<UL>
<LI>This package is only available to ONE company at a time! With this package, you not only do you get everything that is offered in the "Gold" package, but your company will have sponsored <strong>FOUR</strong> trophies for the annual Spring Meet & Greet! That's right, each <b>1st Place</b> Generation-Specific trophy (1st Place - 1st Generation, 1st Place - 2nd Generation, etc) will be sponsored by your company with this package! Instant recognition for being a sponsor that helps make our Meet & Greet possible, your company's name will be mentioned throughout the course of the Meet & Greet and at the Awards ceremony!</LI>
</UL>
<LI>Banner on EVERY MiFbody.com Page</LI>
<UL>
<LI>Your banner will be displayed in the top right corner of every single page on MiFbody.com. Your banner will also rotate in the Horizontal Banner section as well as the Right Sponsor Bar section. That's right - your banner is guaranteed to be displayed once on every single page, and the potential for up to three different locations on the page! <b>Now that's some exclusive exposure!</b></LI>
</UL>
<LI>SubForum under the Sponsor Section</LI>
<UL>
<LI>The sub forum allows sponsors to post specific company information, deals, specials, new products, etc that you want to advertise.</LI>
</UL>
<LI>Right Sponsor Bar Banner</LI>
<UL>
<LI>A 100 pixel wide banner is displayed on the main vBulletin templates such as the Forum Home, Forum Display, and Show Thread templates. </LI>
</UL>
<LI>Horizontal Banner Section</LI>
<UL>
<LI>To ensure even more exposure, we've implemented a random rotating banner section that displays above the main content area. That way your company's banner will get maximum exposure on many pages that the average user navigates through. </LI>
</UL>
<LI>Banner Statistics (Upon request)</LI>
<UL>
<LI>Banner Impressions (times the banner is shown on the page) and Banner Clicks are logged by default. Upon request, we can pull up your impressions and clicks to let you know how well your banner is doing.</LI>
</UL>
<LI>Company Flier / Brochure</LI>
<UL>
<LI>At our annual Spring Meet & Greet, we will hand out a Sponsor-provided flier upon registration and check-in. This will get your product information into the hands of over 200 people! </LI>
</UL>
</UL>
<br>
 
<b>Platinum Package - $150 per Year</b> - Better Exposure!
<UL>
<LI>Two Sponsored Spring Meet & Greet Trophies!</LI>
<UL>
<LI>With the Gold "Plus" Package, your company will be sponsoring two Non-Generation specific trophies for our Annual Spring Meet & Greet! This will give you even more exposure than the Gold and Silver package! When we are holding the awards ceremony, your company's name will be mentioned as being the sponsor of the trophy! This is a great way to get recognition for your company.</LI>
</UL>
<LI>SubForum under the Sponsor Section</LI>
<UL>
<LI>The sub forum allows sponsors to post specific company information, deals, specials, new products, etc that you want to advertise.</LI>
</UL>
<LI>Right Sponsor Bar Banner</LI>
<UL>
<LI>A 100 pixel wide banner is displayed on the main vBulletin templates such as the Forum Home, Forum Display, and Show Thread templates. </LI>
</UL>
<LI>Horizontal Banner Section</LI>
<UL>
<LI>To ensure even more exposure, we've implemented a random rotating banner section that displays above the main content area. That way your company's banner will get maximum exposure on many pages that the average user navigates through. </LI>
</UL>
<LI>Banner Statistics (Upon request)</LI>
<UL>
<LI>Banner Impressions (times the banner is shown on the page) and Banner Clicks are logged by default. Upon request, we can pull up your impressions and clicks to let you know how well your banner is doing.</LI>
</UL>
<LI>Company Flier / Brochure</LI>
<UL>
<LI>At our annual Spring Meet & Greet, we will hand out a Sponsor-provided flier upon registration and check-in. This will get your product information into the hands of over 200 people! </LI>
</UL>
</UL>
<br>
 
<b>Gold Package - $100 per Year</b> - Good Exposure!
<UL>
<LI>SubForum under the Sponsor Section</LI>
<UL>
<LI>The sub forum allows sponsors to post specific company information, deals, specials, new products, etc that you want to advertise.</LI>
</UL>
<LI>Right Sponsor Bar Banner</LI>
<UL>
<LI>A 100 pixel wide banner is displayed on the main vBulletin templates such as the Forum Home, Forum Display, and Show Thread templates. </LI>
</UL>
<LI>Horizontal Banner Section</LI>
<UL>
<LI>To ensure even more exposure, we've implemented a random rotating banner section that displays above the main content area. That way your company's banner will get maximum exposure on many pages that the average user navigates through. </LI>
</UL>
<LI>Banner Statistics (Upon request)</LI>
<UL>
<LI>Banner Impressions (times the banner is shown on the page) and Banner Clicks are logged by default. Upon request, we can pull up your impressions and clicks to let you know how well your banner is doing.</LI>
</UL>
<LI>Company Flier / Brochure</LI>
<UL>
<LI>At our annual Spring Meet & Greet, we will hand out a Sponsor-provided flier upon registration and check-in. This will get your product information into the hands of over 200 people! </LI>
</UL>
</UL>
<br>
 
<b>Silver Package - $50 per Year</b>
<UL>
<LI>Right Sponsor Bar Banner</LI>
<UL>
<LI>A 100 pixel wide banner is displayed on the main vBulletin templates such as the Forum Home, Forum Display, and Show Thread templates. </LI>
</UL>
<LI>Banner Statistics (Upon request)</LI>
<UL>
<LI>Banner Impressions (times the banner is shown on the page) and Banner Clicks are logged by default. Upon request, we can pull up your impressions and clicks to let you know how well your banner is doing.</LI>
</UL>
<LI>Company Flier / Brochure</LI>
<UL>
<LI>At our annual Spring Meet & Greet, we will hand out a Sponsor-provided flier upon registration and check-in. This will get your product information into the hands of over 200 people!  </LI>
</UL>
</UL>
<br>
 
<b>Spring Meet & Greet Trophy Sponsorship - $30 / trophy</b><br>
Each year, we hold a Spring Meet & Greet car show. We have a number of trophies that are awarded to show winners and for a small price you can get recognition at our show too! For only $30 per trophy, you can sponsor one of the trophies at our Meet & Greet - when we get to awarding the trophy, your company's name will be announced to everyone at the show! Likewise, we will have a small flier that will be given out at registration/check-in that will thank all of the trophy sponsors and will give their company information - website, address, contact information. The people at our show know where to go to thank you by buying your products! <strong>Please note: the trophy sponsorship will be applied at the next possible car show. If you sponsor the trophy before this year's show, it will be applied to this year's show. Obviously, if you sponsor a trophy after our car show has already happened for the year, it will be applied to next year's show.</strong>
 
<br><br>
Want to know more information about advertising with the Michigan Fbody Association? Send an email to our advertising e-mail address and we will be in contact with you as soon as possible to discuss the packages in more detail.<br><br><center><a href="mailto:advertising@mifbody.com">Advertising Email Address</center>
</font>

If you copy and paste that into notepad and save it as an HTML it will work correctly - the UL tags that are all over the place are creating nested lists.

Lynne 01-13-2010 02:24 PM

Try this for your css:
Code:

<style type="text/css">
strong {font-weight:bold;}
ul.unordered li {list-style-type: disc;list-style-position:inside; display: list-item; margin-left: 2.5em; padding-left: 0;}

ul.unordered ul li {list-style-type: circle; display: list-item;margin-left: 2.5em; padding-left: 0;}
</style>

And you aren't nesting them correctly. The <li></li> needs to be around the nested list, ie:
HTML Code:

<LI>SubForum under the Sponsor Section
  <UL>
  <LI>The sub forum allows sponsors to post specific company information, deals, specials, new products, etc that you want to advertise.</LI>
  </UL>
</LI>



All times are GMT. The time now is 06:25 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.02038 seconds
  • Memory Usage 1,823KB
  • 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
  • (5)bbcode_code_printable
  • (8)bbcode_html_printable
  • (8)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