PDA

View Full Version : Sideblock Help: Creating This


Reece^B
09-18-2011, 06:46 AM
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 (https://www.vbulletin.com/forum/showthread.php/371709-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:
<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>