CAN YOU PLEASE GET THIS FOR ME THANKS IN ADVANCE
http://www.vbulletin.org/forum/showthread.php?t=131150&highlight=adclick
http://www.vbulletin.org/forum/showthread.php?t=131150&highlight=adclick
Galeras said:Do you need that: How to add your own custom adcode blocks in 3 minutes ?
<template name="footer_advertisement" templatetype="template"><![CDATA[
<div align="center">
$footer_adcode
</div>
]]></template>
<template name="custom_advertisement" templatetype="template"><![CDATA[
<div>
$custom_adcode
</div>
]]></template>
<setting varname="adintegrate_footer_adcode_rand" displayorder="45">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="adintegrate_custom_onoff" displayorder="991">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="adintegrate_custom_adcode" displayorder="992">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="adintegrate_custom_adcode_rand" displayorder="993">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
if ($vbulletin->options['adintegrate_footer_onoff'])
{
$adtemplates[] = 'footer_advertisement';
}
if ($vbulletin->options['adintegrate_custom_onoff'])
{
$adtemplates[] = 'custom_advertisement';
}
if ($vbulletin->options['adintegrate_footer_onoff'])
if ($vbulletin->options['adintegrate_custom_onoff'])
{
if ($vbulletin->options['adintegrate_custom_adcode'])
{
$custom_split = explode("$adshared", $vbulletin->options['adintegrate_custom_adcode']);
$custom_adcode = $custom_split[0];
if ($custom_split[1])
{
$custom_adcode = $custom_split[0] . $GLOBALS['adcode_shared'] . $custom_split[1];
}
eval('$custom_advertisement = "' . fetch_template('' . custom_advertisement . '') . '";');
}
else if ($vbulletin->options['adintegrate_custom_adcode_rand'])
{
$custom_adcode = explode("$addelimiter", $vbulletin->options['adintegrate_custom_adcode_rand']);
$custom_rand = array_rand($custom_adcode);
$custom_adcode = $custom_adcode["$custom_rand"];
$custom_split = explode("$adshared", $custom_adcode);
$custom_adcode = $custom_split[0];
if ($custom_split[1])
{
$custom_adcode = $custom_split[0] . $GLOBALS['adcode_shared'] . $custom_split[1];
}
eval('$custom_advertisement = "' . fetch_template('' . custom_advertisement . '') . '";');
}
}