vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Template Code Help (https://vborg.vbsupport.ru/showthread.php?t=228295)

ashley76 11-18-2009 01:41 PM

Template Code Help
 
I have created a new widget but, I want to have the nice little box around the widget... What is the code I need for a new template to have the nice little rounded corner box around my widget?

I tried taking the vbcms_widget_static_page template code a getting rid of some of the stuff in there but, I can't make it work..

Lynne 11-18-2009 02:15 PM

Did you try looking at the template vbcms_widget_searchwidget_page ? It is used around the Recent Blog Posts widget and has the rounded corners and nice box.

ashley76 11-18-2009 02:38 PM

That is what I meant to say I was using (sorry) but, I can't seem to figure out what to take out so that my advert code (in the widget) will show up in the box. Right now I just get a blank box...

Lynne 11-18-2009 03:37 PM

And what is showing up in the page source? Is anything there? Did you configure your widget? I don't really know from what you wrote exactly what you are trying to do and what you have done to accomplish it.

ashley76 11-18-2009 04:44 PM

Here is the template I wrote or more or less edited from vbcms_widget_searchwidget_page

Code:

<div class="cms_widget">
        <div class="block">
                <div class="cms_widget_content">

       
                </div>
        </div>
</div>

And if you go here http://www.test.bowencollectors.com/forum you can see that the widget on the right hand side has nothing in it...

When I configured the code in the widget it was just a basic script code that loads an ad from another page. Looks similar to the ad on the left hand side of the page...

Lynne 11-18-2009 06:02 PM

What 'type' of widget did you create? And exactly what did you enter in the Configure box?

ashley76 11-18-2009 06:14 PM

I created a static html widget and used the below code in the configuration...

ragtek 11-18-2009 06:32 PM

center is deprecated element;)
http://www.w3.org/TR/REC-html40/pres....html#h-15.1.2

Lynne 11-18-2009 07:05 PM

If you replace that code with just "hello", do you see anything? When troubleshooting, it's always best to figure out where you are going wrong and the first thing you want to find out is if it is seeing your input at all.

ashley76 11-18-2009 07:09 PM

nope...

not yet... The ad works without the template... though


All times are GMT. The time now is 09:50 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.01750 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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