The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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"> <!-- Begin function adClick(ad, site) { window.open(ad); window.location = site; } // End --> </script> Code:
<a href="javascript:adClick('http://www.sponsor.com', 'files.htm');"> Click here to visit our sponsor and go to the files</a> 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?)> <a href=?javascript:adClick(?http://www.sponsor.com?, ?{param}?);?> <img src=?http://wherethebanner.is? border=?0? /></a> <else> <a href=?tothefiles.com?>To the files</a> </if> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|