vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Sideblock Help: Creating This (https://vborg.vbsupport.ru/showthread.php?t=270496)

Reece^B 09-18-2011 06:46 AM

Sideblock Help: Creating This
 
1 Attachment(s)
Hi,
How do I go about creating a sidebar like this (see attachment)
  • a vB search box
  • a advert box
  • a facebook like box

Thank you

Lynne 09-18-2011 04:35 PM

You would create a Custom HTML/PHP block and set the Content Type to HTML and then input the html for the item (possibly the facebook one would be a php block since you may have to enter a userid or something - I've never looked into the code for that)

Reece^B 09-18-2011 07:40 PM

I add my HTML however it doesn't sit inside a titled block eg; 'adverts'

It just displays an ad on it's own

Lynne 09-18-2011 08:36 PM

Then you did something wrong? Have you read the article on doing this? Creating an HTML or PHP Block
We really can't help you figure out what is wrong when you don't post your exact code.

Reece^B 09-20-2011 04:26 PM

Banner code:
PHP Code:

<div align='center'><a href="Link for Banner Here" target="_blank">
<
img src="http://www.pitbikeclub.co.uk/images/ads/ghost.gif" width="500" height="120" border="1" style="border:1px solid black;" alt="Alternate Text Here"/>
</
a></div>
<
TD ALIGN="center">
<
a href="http://www.ghostbikes.com/" target="_blank"><img src="http://www.pitbikeclub.co.uk/images/ads/ghost.gif" alt="Ghost Bikes" border="0" /></a>
&
nbsp;
&
nbsp;
<
a href="http://www.luckymx.co.uk/" target="_blank"><img src="http://www.pitbikeclub.co.uk/images/ads/lmx-website-advert.gif" alt="Lucky MX" border="0" /></a>
&
nbsp;
&
nbsp;
<
a href="http://www.cwbikes.co.uk/" target="_blank"><img src="http://www.pitbikeclub.co.uk/images/ads/cw.png" alt="CW Bikes" border="0" /></a>
</
TD


Lynne 09-20-2011 05:12 PM

Did you take a good look at that code? What are those <td>s doing in there? Especially since there is no <table> or <tr> tags surrounding the whole thing? You can't just throw <td>s into a page like that.

That being said, it does show up on my site when I put that code into an html block.

Reece^B 09-20-2011 06:27 PM

They was there to center the ads, im now using div tags. However its bot a case of it now showing but its not sitting in a block with a header with the block name.

Eg, Recent Threads, then below a list of posts.

Lynne 09-21-2011 12:23 AM

How about a link to see the issue and post the current code.

Reece^B 09-24-2011 03:49 PM

<a href="http://www.pitbikeclub.co.uk/testvb/forum.php" target="_blank">Link to my test site</a>


All times are GMT. The time now is 03:09 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.00969 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete