damowhite666
Active member
Never-mind. I've been a douche... I was logged in while testing xD Works great
That would be really good if you can tell me how to do this.It is that i advertise on Facebook as well so i would like to be able to give them both options if possible.Thank you for your quick response
<a href="{xen:link 'register'}">
<a href="{xen:link 'login'}">
<?php
class xenCODE_ForceRegister_Listener {
public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template) {
switch ($templateName) {
case 'PAGE_CONTAINER':
$template->preloadTemplate('xenCODE_ForceRegister');
break;
}
}
public static function template_render($name, &$contents, $params, XenForo_Template_Abstract $template) {
if ($name == 'xenCODE_ForceRegister_css') {
$images = array('v1','v2','v3','v4','v5');
$randomzie = v1;
$addtemplate = 'div.xenCODE_ForceRegister{ background: url("styles/XenCrea.com/Scroll/xenCODE/ForceRegister/'.$randomzie.'.png") no-repeat scroll 0 0 transparent; bottom: 0; height: 200px; position: fixed; right: 1px; width: 300px; z-index: 1; }';
$needle = 'div.xenCODE_ForceRegister{}';
$contents = str_replace($needle, $addtemplate, $contents);
return $contents;
}
if ($name == 'body') {
$addtemplate = $template->create('xenCODE_ForceRegister', $template->getParams());
$rendered = $addtemplate->render();
$needle = '</footer>';
$contents = str_replace($needle, $rendered.$needle, $contents);
return $contents;
}
}
}
?>
lolwut?Teach me how to budgie, teach me, teach me how to budgie.
We use essential cookies to make this site work, and optional cookies to enhance your experience.