![]() |
bbcode help needed
Hi,
I share a lot of (legal) files on my board. But the bandwidth load is very heavy. Therefor i want my visitors to click a banner first before they get access to a file stated in a thread (one file, or downloadpage per thread). I was thinking about a custom bbcode. This is the javascript i want to use: Code:
<SCRIPT LANGUAGE="JavaScript"> Code:
<a href="javascript:adClick('http://www.sponsor.com', 'files.htm');"> I hope you can help me with it... --------------- Added [DATE]1224228025[/DATE] at [TIME]1224228025[/TIME] --------------- Got it, but now i want it for certain usergroups, so eg only for registered members... --------------- Added [DATE]1224233751[/DATE] at [TIME]1224233751[/TIME] --------------- I simply placed the javascript in the SHOWTHREAD template and then added a custom BBCODE where {param} is the destination for where the files are... Is it possible to create a usergroup called eg "mustclick" and then add the following code to the replacementcode in BBCODE (where usergroupid 10 stands for the mustclick group)? Code:
<if ($vbulletin->userinfo[?usergroupid?] == ?10?)> |
All times are GMT. The time now is 01:06 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|