View Full Version : Custom Page Content
karlm
03-05-2007, 10:20 PM
Is there a 'demonstration' on 'how to build/create' a custom page content?
I had a go at it, and i guess i pooped it- nothing ever seems to show. I'd like to drop a google ads banner in the vbadvanced, but instead it came out as a unique page entirely LoL.
Brian
03-06-2007, 12:50 PM
If you're trying to add Google ads to your homepage then you would need to add a template Module with your Google adsense code as the content for the template.
karlm
03-23-2007, 11:53 AM
Brian, could you elaborate on this please - for a beginner's perspective... I'm at a loss.
I've added a module called "sponsored ads" but not sure where i created content for it.
bridges
03-23-2007, 11:55 AM
You need to a module not a page.
Brian
03-23-2007, 11:56 AM
Admin CP => vBa CMPS => Add Module => Template Module
Go there, fill in the blanks, and be sure to insert the code for your Google ads as the content for the template.
karlm
03-23-2007, 12:38 PM
i did that, i have it set to display on my left column - but it doesn't. I've checked that it's ticked (for individual pages) and it is. It's set to show to everyone (once it's working, it'll be for unset for admins & subscribers, etc.) but still not showing when i'm logged in as admin and when i use a different browser to view as a guest.
karlm
03-23-2007, 12:43 PM
Erm, actually it does show - sorry - but only in one skin... (default) though when i added the template, it said it had updated all skins? Any ideas please?
And a hearty thank you for the full instructions above.
karlm
03-23-2007, 01:08 PM
Also, final question (i think).
the border is missing and the title is at the bottom.
http://www.antimisandry.com/uploads/viewer.php?id=88odd.jpg
http://www.antimisandry.com/uploads/thumbs/88odd.jpg (http://www.antimisandry.com/uploads/viewer.php?id=88odd.jpg)
Brian
03-24-2007, 12:14 PM
Erm, actually it does show - sorry - but only in one skin... (default) though when i added the template, it said it had updated all skins? Any ideas please?
Sounds like you're using styles without a parent style. Whenever you have multiple styles, you really should set one as the "main" style and then set that style as the "Parent Style" for any other styles you have. That way you only have to add custom templates to the main style when adding new ones. So I'd suggest either doing that, or copy the template over to the rest of your styles as well.
For the border, try wrapping this code around the Google ad code in your template.
<tr><td class="$bgclass">
Google ad code here
</td></tr>
karlm
03-24-2007, 10:24 PM
Thanks for your help Brian (and Bridges), I managed to figure out the adding code to all skin, which is actually beneficial (as i can now customize the ads to the skin accordingly) but hadn't a clue where to look for the wrapping.
Thanks again :D
PS - I've been playing around and creating custom content on my site now, and WOW - that functionality is supberb!
I'm loving this cmps the more I get accustomed to it :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.