Quote:
Originally Posted by grahamsmythe
Wow! I didn't in my wildest dreams ever think it would be that easy!
I thought I'd have to get into changing lots more code and other techincal stuff, but all it took was a bit of html - thanks for that, but I could have done that on my own if I'd have known it was so easy!
I've got my advertising up there now. As and when I get some takers - maximum of four I hope, I'll send you a donation for using the mod. It's fantastic
Regards
Graham
PS - Have a look at my site http://www.vincentownersclub.co.uk/
Any idea how I can get the banner to move up a bit, so that it's centered?
|
No worries! Open your header template, find:
Code:
<td>
(or it may be $header_advertisement now, I guess)
</td>
Replace with:
Code:
<td style="vertical-align:middle">
</td>
If you can't find the code you're supposed to find, you just have to add style="vertical-align:middle" to the <td> which holds the advertisement, whichever that may be.
Edit: And remove all those keywords from the bottom of your front page, Google will flay you alive for that! Sites have been banned for less.
Quote:
Originally Posted by mightyb
Im a bit concerned about security issue. I want to allow my members to display their own adcode. How can i make sure they only use adsense, clicksor or any other trusted code rather than something malicious. Thanks a lot!
|
When creating a custom field, vBulletin provides an option called RegEx which you can apply to that field. Regex is an extremely powerful and extremely complicated, alas, way of limiting what is added to that field. So powerful that you can specify what characters are allowed, how many, in what order...more or less anything to be as limiting as you like. The more specific you are, the more secure you will be and it goes without saying don't use the allow HTML option.
If you can post examples of what code you would like people to be able to post, when I get a minute I'll see if I can come up with a RegEx code for you. Adsense is comparatively easy, others might not be.