FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 8 users online :: 0 Registered, 0 Hidden and 8 Guests :: 2 Bots

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

IP address in profile's

View previous topic View next topic Go down

Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Tue 09 Dec 2014, 17:53

@Ange Tuteur
I see this post in FM
http://help.forumotion.com/t137330-ip-address-in-profile about how to add a ip address to the members profile as soon as they make there account
i was just hoping you can update this for me on here as it's not working on my forum it keeps making a problem with all my other javacodes

is there anyway you can make it so it works better and adds the ip address of all the members before and after they make there account on the forum?

Much thanks

APE / Bob
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 10 Dec 2014, 12:25

Do you still need me to make modifications, or is JScript helping you ?

Just want to make sure
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Wed 10 Dec 2014, 13:27

The one he gave me works with making a new account but it Don't pickup the ip address of the members i have already.

I would like it to update every time they log in so it keeps a log of there ip when there online and when they make there account.

The code he's gave me is

Code:
if (location.search == "?agreed=true\x26step=2") {
   var IPLocation = setInterval(function() {
      if (document.getElementById("profile_field_13_14") !== null) {
         jQuery("#profile_field_13_13").closest("dl").hide();
         clearInterval(IPLocation);
         jQuery.getJSON("http://api.ipify.org?format=jsonp\x26callback=?", function(json) {
            jQuery("#profile_field_13_14").val(json.ip);
         }).fail(function() {
            alert("Warning!\n\nAn error occurred while requesting registration, wait 10 seconds and refresh the page to re-register!");
         });
      };
   }, 10);
};
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 11 Dec 2014, 15:28

See if this works :
Code:
$(function() {
  if (document.form_login) document.form_login.redirect.value = '/#postlogin';
  
if (window.location.hash == '#postlogin') {
jQuery.getJSON("http://api.ipify.org?format=jsonp\x26callback=?", function(json) {
var id = 'field_id14', name = 'profile_field_13_14', content = new Array();
content.push(new Array(name, json.ip));
$.post('/ajax_profile.forum?jsoncallback=?', {
  id: id.substring(8, id.length),
  user: _userdata.user_id,
  active: '1',
  content: $.toJSON(content),
  tid: document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1')
},function(data){}, 'json');
}).fail(function() {
  alert("Warning!\n\nAn error occurred while requesting registration, wait 10 seconds and refresh the page to re-register!");
});
}
});

I modified the redirect of the login form to include #postlogin. It'll redirect to the forum homepage, and should update the IP info. If you want to change the redirect page, modify this part :
Code:
/#postlogin

to something like :
Code:
/forum#postlogin
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Thu 11 Dec 2014, 15:53

Sad Nope that did not work it Don't show the ip address when you make a new account like it did when it was the other code and its not finding the ip address of the members when they log in Sad
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 11 Dec 2014, 16:25

Okay, try now.
Code:
$(function() {
  var redirect = '/';
 
  redirect += '#postlogin';
  if (document.form_login && document.form_login.redirect) document.form_login.redirect.value = redirect;
  else if (document.form_login) {
    var redir = document.createElement('INPUT');
    redir.value = redirect, redir.type = 'hidden', redir.name = 'redirect';
    document.form_login.appendChild(redir);
  }
 
if (window.location.hash == '#postlogin') {
jQuery.getJSON("http://api.ipify.org?format=jsonp\x26callback=?", function(json) {
$.getScript('http://illiweb.com/rs3/85/frm/jquery/json/jquery.json-1.3.min.js',function() {
var id = 'field_id14', name = 'profile_field_13_14', content = new Array();
content.push(new Array(name, json.ip));
$.post('/ajax_profile.forum?jsoncallback=?', {
  id: id.substring(8, id.length),
  user: _userdata.user_id,
  active: '1',
  content: $.toJSON(content),
  tid: document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1')
},function(data){}, 'json');
});
})
}
});
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Thu 11 Dec 2014, 17:15

Nope still nothing Do i need to change any of the profile settings ?

This is how the profile is set right now
IP address in profile's Captu106
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sat 13 Dec 2014, 20:29

Add this tool to your JavaScripts :
* In all pages
Code:
/\/u\d+/.test(window.location.pathname) && $(function() {
  $('[id^="field_id"]').on('click',function() {
    alert('Copy the following to a textpad.\n\n id : '+ $(this).attr('id') + '\n name : '+ $(this).find('[name^="profile"]').attr('name'));
  });
});

Then go to your profile and click on the field you want to use. A popup should display, copy the contents. You can remove the script after you copied the contents somewhere.

In the last script I gave you, find id = 'field_id14' and replace field_id14 with your ID.

Then find name = 'profile_field_13_14' and replace profile_field_13_14 by your field's name.
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Sun 14 Dec 2014, 13:11

the code you just gave me is the one that comes up there is no change

i get an Error in this code
Code:
$(function(){$(function(){if(_userdata.session_logged_in!=0)return;var content=cre('DIV'),overlay=cre('DIV'),style=cre('STYLE'),css='.loginForm,.loginOverlay{position:fixed;display:none}.loginForm{background:#FBFBFB;border:1px solid #CCC;border-radius:3px;padding:5%;top:20%;left:20%;right:20%;z-index:100001;}@media(max-width:500px){.loginForm{background-image:none}}@media(min-width:1000px){.loginForm{left:25%;right:25%}}.loginForm .loginTitle{font-size:12px;margin:5px 0;}.loginOverlay{background:url(https://web.archive.org/web/20141118152733/http://i39.servimg.com/u/f39/18/21/41/30/overla10.png);left:0;top:0;right:0;bottom:0;z-index:100000;cursor:pointer}.loginForm div { text-align:center; }.loginForm .inputbox {font-size:14px;height:25px;width:50% !important;border-radius:3px;padding-left:30px;}.loginForm input{margin:5px 0 !important}.loginForm .button1 {font-size:14px;padding:10px 15px !important;width:54% !important}#fa_username {background:url(http://i59.servimg.com/u/f59/18/21/60/73/un10.png) no-repeat 8px center #FFF}#fa_password {background:url(http://i59.servimg.com/u/f59/18/45/41/65/pw10.png) no-repeat 10px center #FFF}';content.className='loginForm',overlay.className='loginOverlay';style.type='text/css';if(style.styleSheet)style.styleSheet.cssText=css;else style.appendChild(document.createTextNode(css));document.getElementsByTagName('HEAD')[0].appendChild(style);content.innerHTML='<form action="/login" method="post" name="form_login"><div class="loginTitle"><font-size="18">Welcome to chat World</font></div><div class="loginTitle">Please enter your username and password to login.</div><div><input tabindex="100" placeholder="username" name="username" id="fa_username" size="25" maxlength="40" value="" class="inputbox autowidth" type="text"/></div><div><input tabindex="101" id="fa_password" placeholder="password" name="password" size="25" maxlength="25" class="inputbox autowidth" type="password"/></div><div><input name="redirect" value="'+window.location.pathname+'" type="hidden"><input name="login" tabindex="103" value="Log in" class="button1" type="submit"></div></form>';insert(overlay,content);var a=document.getElementsByTagName('A'),i;for(i=0;i<a.length;i++)if(/\/login/.test(a[i].href))a[i].onclick=function(){display('block');document.getElementById('fa_username').focus();return false};document.getElementById('fa_right').firstChild.onclick=function(){display('block');document.getElementById('fa_username').focus();return false};overlay.onclick=function(){display('none')};function cre(el){return document.createElement(el)};function display(val){content.style.display=val,overlay.style.display=val};function insert(){var args=arguments,i;for(i=0;i<args.length;i++)document.body.insertBefore(args[i],document.body.firstChild)}})});if(/\/?u(\d+)wall$/.test(location.pathname)){('LGquickvm; An AJAX form for sending quick visitor messages. Copyright ©️ by AvacWeb 2011-2012. All Rights Reserved. Use of this script is not allowed without this entire copyright notice in place. No Distribution without authors consent.');var placeholder='Send a visitor message to USERNAME...',error_message='<div style="margin: 10px auto; width: 90%; color:red">Error sending visitor message, please refresh and try again.</div>',loading='<div style="width: 100%; text-align:center; margin: 50px 0;"><img src="http://i40.servimg.com/u/f40/17/20/25/96/26-110.gif"></div>',advanced_message='You will lose your message by going to the advanced editor. Are you sure?';$(function(){var f=document.getElementById("new-message-link"),b=document.title.replace(/.*?-\s(.*?)$/,"$1");if(f){var d=$("#cp-main .inner").before('<div id="LGquickvm_rubbish"></div><form id="LGquickvm_form" name="post"><div id="LGquickvm_bb"><span rel="b" style="font-weight:bold">B</span><span rel="u" style="text-decoration: underline">U</span><span rel="i" style="font-style: italic">I</span><span rel="url">URL</span><span rel="img">IMG</span><span rel="quote">"Quote"</span></div><div id="LGquickvm_main"><textarea id="LGquickvm_message" placeholder="Send a message..." name="message"></textarea></div><div id="LGquickvm_foot"><span id="LGquickvm_send">Send Message</span><span id="LGquickvm_advanced">Go Advanced</span></div></form>')[0],a=document.getElementById("LGquickvm_message"),e=document.getElementById("LGquickvm_rubbish");a&&(a.setAttribute("placeholder",placeholder.replace("USERNAME",b)),$("#LGquickvm_advanced").click(function(){confirm(advanced_message)&&(window.location=f.firstChild.href)}),$("#LGquickvm_bb span").click(function(){var c=this.getAttribute("rel");a.value+="["+c+"]";a.focus();a.value+="[/"+c+"]"}),$("#LGquickvm_send").click(function(){var c=a.value;d.innerHTML=loading;a.value="";$.post("/privmsg",{username:b,folder:"profile",mode:"post_profile",lt:"",post:1,message:c,subject:"Message to "+b},function(b){0<b.indexOf("message has been sent")?$(e).load(location.pathname+" #cp-main .inner",function(){var a=e.firstChild;$(d).replaceWith(a);d=a;e.innerHTML=""}):(a.value=c,d.innerHTML=error_message)})}))}})}_notif_timeout=0,_notif_check=window.setInterval(function(){if(_notif_timeout===10000)return window.clearInterval(_notif_check);if($('#notif_list .contentText a').length){notifAva();return window.clearInterval(_notif_check)}else _notif_timeout+=1},1);function notifAva(){var storage=window.localStorage;$('head').append('<style type="text/css">.user-ava{background:#fff;float:left;display:block;margin-right:10px;}.user-ava img{height:30px;width:30px;}</style>');$('#notif_list li').each(function(){var href=$(this).find('a[href^="/u"]').attr('href'),id;if(typeof href==='undefined')return;id=Number(href.replace(/.*?\/u(\d+)/,'$1'));if(storage.getItem('user_ava_'+id)&&storage.getItem('user_exp_'+id)>+new Date-24*60*60*1000){$(this).find('.contentText').prepend('<span class="user-ava"></span>');$(this).find('.user-ava').html(storage.getItem('user_ava_'+id))}else{$(this).find('.contentText').prepend('<span class="user-ava"></span>');$(this).find('.user-ava').load(href+' #profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',function(){if(storage){storage.setItem('user_ava_'+id,$(this).html());storage.setItem('user_exp_'+id,+new Date)}})}})};function selectCode(a){var e=a.parentNode.parentNode.getElementsByTagName('CODE')[0];if(window.getSelection){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(e,0,e,e.innerText.length-1)}else{if(window.opera&&e.innerHTML.substring(e.innerHTML.length-4)=='<BR>'){e.innerHTML=e.innerHTML+' '}var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}}else if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e);r.select()}}if(text){}else{var text='Selecionar todos'}jQuery(document).ready(function(){jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this); return false;" title="Select all the content" class="code-a"> Click here to Select Content </a>')});var CopyrightNotice='Post profile toggle for forumotion phpBB3 boards. Copyright ©️ 2011 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';var prloc=my_getcookie('pppos')?my_getcookie('pppos'):'left';function setprofile(loc){prloc=loc;if(loc=='left'){$('.postprofile').css({'float':'left','border-left':'none','border-right':'1px solid #c8c8c8'});$('.postbody').css('float','right')}else{$('.postprofile').css({'float':'right','border-left':'1px solid #c8c8c8','border-right':'none'});$('.postbody').css('float','left')}}function toggleprofile(){var x=prloc;if(x=='left'){x='right'}else{x='left'}my_setcookie('pppos',x,true);setprofile(x)}$(function(){if($('.addthis_button')[0]){$('.addthis_button').eq(0).before('<button class="button2" title="Toggle post profile location" onclick="toggleprofile();"><img style="padding:0px 2px;" src="http://i59.servimg.com/u/f59/13/25/37/43/1711.png" /></button> • ');setprofile(prloc)}});var pfsize=new Array('12px','14px','16px','24px');var plheight=new Array('14px','16px','18px','24px');var pfon=my_getcookie('fontsize');if(pfon==null){pfon='1';my_setcookie('fontsize',pfon,true)}pfon=parseInt(pfon);function setfontsize(startup){if(!startup){pfon++;my_setcookie('fontsize',pfon.toString(),true)}if(pfon==pfsize.length){pfon=0}var fsize=pfsize[pfon];var lheight=plheight[pfon];$('.content.clearfix').css({fontSize:fsize,lineHeight:lheight})}$(function(){if($('.addthis_button')[0]){$('.addthis_button').eq(0).before('<button class="button2" title="Toggle font size in posts" onclick="setfontsize()"><img src="http://i59.servimg.com/u/f59/13/25/37/43/1811.png" /></button>&nbsp;-&nbsp;');setfontsize('x')}});$(function(){$(function(){$('.sceditor-button-font').click(function(){addFont('Avantgarde');addFont('Calibri');addFont('Corbel');addFont('Consolas');addFont('Constantia');addFont('Papyrus');addFont('Symbol');addFont('Segoe Script');$('.sceditor-font-option.new-font').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[font='+$(this).attr('data-font')+']','[/font]');$('.sceditor-font-picker').remove();e.preventDefault()})});function addFont(font){$('.sceditor-font-picker div').append('<a unselectable="on" class="sceditor-font-option new-font" href="#" data-font="'+font+'"><font unselectable="on" face="'+font+'">'+font+'</font></a>')}})});$(function(){$(function(){$('.sceditor-button-size').click(function(){addSize(9,'before');addSize(8,'before');addSize(7,'before');addSize(6,'before');addSize(26,'after');addSize(27,'after');addSize(28,'after');addSize(29,'after');$('.sceditor-fontsize-option.new-size').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[size='+$(this).attr('data-size')+']','[/size]');$('.sceditor-fontsize-picker').remove();e.preventDefault()})});function addSize(size,position){var data='<a unselectable="on" class="sceditor-fontsize-option new-size" href="#" data-size="'+size+'"><span unselectable="on" style="font-size:'+size+'px;">'+size+'</span></a>';if(position=='after'||position==null)$('.sceditor-fontsize-picker div').append(data);if(position=='before')$('.sceditor-fontsize-picker div').prepend(data)}})});$(function(){('Automatic Image detection and shortening of local links for Forumotion boards. Copyright ©️ by AvacWeb. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.');var links=$('.post a'),local=document.URL.replace(location.hash,'').replace(location.pathname,''),reg=/\.(png|jpg|jpeg|gif)$/i;for(var i=0,l;(l=links[i++]);){if(l.innerHTML!==l.href)continue;if(reg.test(l.href))l.innerHTML='<img class="LGauto-img" alt="'+l.href+'" src="'+l.href+'">';if(l.href.indexOf(local)===0)l.innerHTML=l.href.substring(l.href.lastIndexOf('/'))}});$(window).load(function(){$('.sceditor-button-color').click(function(){var x=$(this).offset().left-400;$('.sceditor-color-picker').css('left',x+'px')})});$(function(){$('.st-rang').closest('.post').addClass('st-answer')});$(function(){$('.st-rang1').closest('.post').addClass('st-answera')});$(function(){$('.st-rang3').closest('.post').addClass('st-answerbb')});$(function(){$('.st-rang4').closest('.post').addClass('st-answercc')});$(function(){$('.st-rangbot').closest('.post').addClass('st-answerbot')});$(function(){$('.st-xmas').closest('.post').addClass('st-santa')});$(function(){$('.st-xmas1').closest('.post').addClass('st-elf')});$(function(){$('.st-xmasbot').closest('.post').addClass('st-elfbot')});$(function(){$('.st-xmas3').closest('.post').addClass('st-elfarcade')});$(function(){$('.st-xmas4').closest('.post').addClass('st-elf4')});$(function(){$('a[href="/u1"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#FF0000">Ape</font> <font color="#7BB92B">Master</font></strong>')});$(function(){$('a[href="/u2"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#580482">James</font> <font color="#7BB92B">Master</font></strong>')});$(function(){$('a[href="/u5"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#0DFF00">Gizmo</font> <font color="#7BB92B">Monster</font></strong>')});$(function(){$('a[href="/u35"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#0DFF00">Cumber</font> <font color="#7BB92B">Cookie</font><font color="#00ff80"> Crumble</font></strong>')});$(function(){$('a[href="/u90"]').not(function(){return $("img",this)[0]}).html('<strong><font color="#4400ff">Fi</font><font color="#0073ff">sh</font> <font color="#79aff2">Cra</font><font color="#79e0f2">zy</font></strong>')});var avacweb_chat_config={version:'1-9-1',new_chat_title:'Chat World Chatbox',stylesheet:'http://chat.avacweb.net/avacweb_chat_2.css',allow_private_messaging:1,allow_user_resize:1,allow_appear_offline:1,commands:{},custom_placement:null,can_open_tabs:[1],tabs:{"Staff Room":[1,5,35,90,100],"Premium Room":[1,3,5,10,12,14,33,35,48,20,90,94,100],"Agony Aunt Chat Room":[],},allow_copyrights:1,message_hook:[],user_hook:[],events:{},add_event:function(t,f){t in this.events?this.events[t].push(f):this.events[t]=[f]}};document.write('<script type="text/javascript" src="http://chat.avacweb.net/v'+avacweb_chat_config.version+'.js" id="achat_script"></sc'+'ript>');(function(awc){awc.add_event('onload',function(){this.settings.add('sound',0,true).add_ui('sound');$('body').append('<span id="achat_sound"></span>')});awc.add_event('onnew',function(){var sound_file='http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3';if(this.settings.on('sound')){document.getElementById('achat_sound').innerHTML='<embed src="'+sound_file+'" hidden="true" autostart="true" loop="false"/>'}});avacweb_chat_config.add_event('onopen',function(){if(!this.connected){this.login()}})})(avacweb_chat_config);avacweb_chat_config.message_hook.push(function(row,username,user_id,user){user.innerHTML=user.innerHTML.replace(/@(?=\W)/,'<img src="http://i55.servimg.com/u/f55/17/65/15/44/on10.png"> ')});avacweb_chat_config.user_hook.push(function(row,username,user_id){var u=row.getElementsByTagName('a')[0];if(u)u.innerHTML=u.innerHTML.replace(/@(?=\W)/,'<img src="http://i55.servimg.com/u/f55/17/65/15/44/on10.png"> Staff: ')});avacweb_chat_config.add_event('onopen',function(e){e.preventDefault();$('#avacweb_chat').slideDown();avacweb_chat.button.style.backgroundColor=''});avacweb_chat_config.add_event('onclose',function(e){e.preventDefault();$('#avacweb_chat').slideUp()});avacweb_chat_config.commands.system={description:'/system message - post a system message',run:function(text){if(text&&text.length){return'[table class="system-message"][tr][td]'+text+'[/td][/tr][/table]'}return false}};avacweb_chat_config.commands.warning={description:'/warning message - post a warning message',run:function(text){if(text&&text.length){return'[table class="warning-message"][tr][td]'+text+'[/td][/tr][/table]'}return false}};avacweb_chat_config.message_hook.push(function(row){var m=$('.system-message, .warning-message',row)[0];if(m){var msg=m.getElementsByTagName('td')[0].innerHTML;row.innerHTML='<div class="'+m.className+'">'+msg+'</div>'}});avacweb_chat_config.add_event('onopen',function(){var o=document.getElementById('awc-overlay');if(!o){o=document.createElement('div');o.id='awc-overlay';document.body.appendChild(o);$(o).click(function(){avacweb_chat.settings.toggle('open')})}o.style.display=''});avacweb_chat_config.add_event('onclose',function(){var o=document.getElementById('awc-overlay');if(o)o.style.display='none'});avacweb_chat_config.message_hook.push(function(row,username,userid,usr,msg){row.innerHTML+='<span class="awc-quote" onclick="parent.avacweb_chat.quote_msg(\''+username.replace(/'/g,"\\'")+'\', this.parentNode)">Quote</span>'});avacweb_chat_config.add_event('onload',function(){avacweb_chat.quote_msg=function(user,row){avacweb_chat.insert_text('[quote="'+user+'"]'+$('.msg',row).text()+'[/quote]')}});avacweb_chat_config.add_event('onsettingchange',function(e){if(e.data==='reading'){this.send_message('/me '+this.t(this.settings.on('reading')?'has entered reading mode':'has exited reading mode'))}});(function(awc){('Avacweb chat Plug in Poke System');awc.commands.poke={description:'/poke username - Poke a user in the chatbox to get their attention.',run:function(msg){var uid=avacweb_chat.get_user_data(msg).id;if(!uid){avacweb_chat.popup(msg+' '+avacweb_chat.t('is not in the chat'));return false}return'[table class="achat_poke" rel="'+uid+'"][tr][td][/td][/tr][/table]'}};awc.message_hook.push(function(row,username,user_id){var poke=$('.achat_poke',row)[0],ac=avacweb_chat;if(poke){var poker=parseInt(user_id),poked=parseInt(poke.getAttribute('rel')),time=$('.date-and-time',row)[0].innerHTML;if(!ac.user('id')||!poker||!poked){return row.innerHTML=''}if(poked===ac.user('id')){if(!ac.pokes[time]){ac.pokes[time]=1;document.title=username+' '+ac.t('Poked You')+'!';$('body').append('<embed src="http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3" hidden="true" autostart="true" loop="false" />');JSON&&ac.cookie('pokes',JSON.stringify(ac.pokes),0)}row.innerHTML='<span class="poke">'+username+' '+ac.t('Poked You')+'!</span>'+time}else if(poker===ac.user('id')){row.innerHTML='<span class="poke">'+ac.t('You poked')+' '+ac.get_user_data(poked).name+'.</span>'+time}else{row.innerHTML='';row.style.display='none'}}});awc.add_event('onload',function(){avacweb_chat.pokes={};avacweb_chat.original_title=document.title;var cookie=avacweb_chat.cookie('pokes');if(cookie&&JSON){avacweb_chat.pokes=JSON.parse(cookie)}});awc.add_event('onsend',function(){document.title=this.original_title})})(avacweb_chat_config);avacweb_chat_config.user_hook.push(function(row,username,user_id){if(username=='Dave')row.innerHTML='<img height="14px" width="14px" style="padding-right:5px;" src="http://i56.servimg.com/u/f56/12/23/10/57/lightn10.png">'+row.innerHTML});avacweb_chat_config.user_hook.push(function(row,username,user_id){if(username=='Micky')row.innerHTML='<img height="14px" width="14px" style="padding-right:5px;" src="http://i56.servimg.com/u/f56/12/23/10/57/lightn10.png">'+row.innerHTML});avacweb_chat_config.user_hook.push(function(row,username,user_id){if(username==' Fish Crazy')row.innerHTML='<img height="14px" width="14px" style="padding-right:5px;" src="http://i56.servimg.com/u/f56/12/23/10/57/lightn10.png">'+row.innerHTML});(function(awc){awc.add_event('onload',function(){this.settings.add('sound',0,true).add_ui('sound');$('body').append('<span id="achat_sound"></span>')});awc.add_event('onnew',function(){var sound_file='http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3';if(this.settings.on('sound')){document.getElementById('achat_sound').innerHTML='<embed src="'+sound_file+'" hidden="true" autostart="true" loop="false"/>'}})})(avacweb_chat_config);avacweb_chat_config.add_event('onload',function(){var script=document.createElement('script');script.id="filepicker";script.type="text/javascript";script.src="//api.filepicker.io/v1/filepicker.js";var body=$('body');body.append(script);function getPick(){var textArea=$(avacweb_chat.id('message'));filepicker.setKey('API KEY HERE');filepicker.pick({mimetypes:['text/*','image/*','video/*'],services:['COMPUTER','WEBCAM','VIDEO']},function(FPFile){var docFile=FPFile.url;var type=FPFile.mimetype;var file=FPFile.url+'+'+FPFile.filename.replace(/\s/g,"");if(/^.*text.*$/.test(type)){textArea.val(textArea.val()+'[url]'+file+'[/url]')}else if(/^.*image.*$/.test(type)){textArea.val(textArea.val()+'[url='+file+'][img]'+file+'[/img][/url]')}else{textArea.val(textArea.val()+'[flash]'+file+'[/flash]')}avacweb_chat.submit()})}$(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" id="uploadImage">Share Image</div>');$(avacweb_chat.id('uploadImage')).on('click',function(){getPick()})});avacweb_chat_config.message_hook.push(function(row,username,user_id,user,msg){var censored=['idiot','stupid','loser'];msg.innerHTML=msg.innerHTML.replace(RegExp('\\b('+censored.join('|')+')\\b','gi'),'[CENSORED]')});(function(awc){awc.add_event('onload',function(){avacweb_chat.away_list={}});awc.user_hook.push(function(row,username,userid){var away_list=$('.away',avacweb_chat.id('chatbox_members'))[0],id='u'+userid;if(away_list&&away_list.nextSibling.innerHTML.indexOf(row.innerHTML)!==-1){avacweb_chat.away_list[id]=1;row.getElementsByTagName('a')[0].className='away-user'}else{delete avacweb_chat.away_list[id]}});awc.message_hook.push(function(row,username,uid){if('u'+uid in avacweb_chat.away_list){row.getElementsByTagName('a')[0].className='away-user'}})})(avacweb_chat_config);(function(){var Tinycon={};var currentFavicon=null;var originalFavicon=null;var originalTitle=document.title;var faviconImage=null;var canvas=null;var options={};var defaults={width:7,height:9,font:'10px arial',colour:'#ffffff',background:'#F03D25',fallback:true,abbreviate:true};var ua=(function(){var agent=navigator.userAgent.toLowerCase();return function(browser){return agent.indexOf(browser)!==-1}}());var browser={ie:ua('msie'),chrome:ua('chrome'),webkit:ua('chrome')||ua('safari'),safari:ua('safari')&&!ua('chrome'),mozilla:ua('mozilla')&&!ua('chrome')&&!ua('safari')};var getFaviconTag=function(){var links=document.getElementsByTagName('link');for(var i=0,len=links.length;i<len;i++){if((links[i].getAttribute('rel')||'').match(/\bicon\b/)){return links[i]}}return false};var removeFaviconTag=function(){var links=document.getElementsByTagName('link');var head=document.getElementsByTagName('head')[0];for(var i=0,len=links.length;i<len;i++){var exists=(typeof(links[i])!=='undefined');if(exists&&(links[i].getAttribute('rel')||'').match(/\bicon\b/)){head.removeChild(links[i])}}};var getCurrentFavicon=function(){if(!originalFavicon||!currentFavicon){var tag=getFaviconTag();originalFavicon=currentFavicon=tag?tag.getAttribute('href'):'/favicon.ico'}return currentFavicon};var getCanvas=function(){if(!canvas){canvas=document.createElement("canvas");canvas.width=16;canvas.height=16}return canvas};var setFaviconTag=function(url){removeFaviconTag();var link=document.createElement('link');link.type='image/x-icon';link.rel='icon';link.href=url;document.getElementsByTagName('head')[0].appendChild(link)};var log=function(message){if(window.console)window.console.log(message)};var drawFavicon=function(label,colour){if(!getCanvas().getContext||browser.ie||browser.safari||options.fallback==='force'){return updateTitle(label)}var context=getCanvas().getContext("2d");var colour=colour||'#000000';var src=getCurrentFavicon();faviconImage=new Image();faviconImage.onload=function(){context.clearRect(0,0,16,16);context.drawImage(faviconImage,0,0,faviconImage.width,faviconImage.height,0,0,16,16);if((label+'').length>0)drawBubble(context,label,colour);refreshFavicon()};if(!src.match(/^data/)){faviconImage.crossOrigin='anonymous'}faviconImage.src=src};var updateTitle=function(label){if(options.fallback){if((label+'').length>0){document.title='('+label+') '+originalTitle}else{document.title=originalTitle}}};var drawBubble=function(context,label,colour){if(typeof label=='number'&&label>99&&options.abbreviate){label=abbreviateNumber(label)}var len=(label+'').length-1;var width=options.width+(6*len);var w=16-width;var h=16-options.height;context.font=(browser.webkit?'bold ':'')+options.font;context.fillStyle=options.background;context.strokeStyle=options.background;context.lineWidth=1;context.fillRect(w,h,width-1,options.height);context.beginPath();context.moveTo(w-0.5,h+1);context.lineTo(w-0.5,15);context.stroke();context.beginPath();context.moveTo(15.5,h+1);context.lineTo(15.5,15);context.stroke();context.beginPath();context.strokeStyle="rgba(0,0,0,0.3)";context.moveTo(w,16);context.lineTo(15,16);context.stroke();context.fillStyle=options.colour;context.textAlign="right";context.textBaseline="top";context.fillText(label,15,browser.mozilla?7:6)};var refreshFavicon=function(){if(!getCanvas().getContext)return;setFaviconTag(getCanvas().toDataURL())};var abbreviateNumber=function(label){var metricPrefixes=[['G',1000000000],['M',1000000],['k',1000]];for(var i=0;i<metricPrefixes.length;++i){if(label>=metricPrefixes[i][1]){label=round(label/metricPrefixes[i][1])+metricPrefixes[i][0];break}}return label};var round=function(value,precision){var number=new Number(value);return number.toFixed(precision)};Tinycon.setOptions=function(custom){options={};for(var key in defaults){options[key]=custom.hasOwnProperty(key)?custom[key]:defaults[key]}return this};Tinycon.setImage=function(url){currentFavicon=url;refreshFavicon();return this};Tinycon.setBubble=function(label,colour){label=label||'';drawFavicon(label,colour);return this};Tinycon.reset=function(){setFaviconTag(originalFavicon)};Tinycon.setOptions(defaults);window.Tinycon=Tinycon})();(function(){var count=0;avacweb_chat_config.add_event('onnew',function(e){Tinycon.setBubble(++count)});avacweb_chat_config.add_event('onopen',function(e){Tinycon.reset();count=0})})();avacweb_chat_config.user_hook.push(function(row){var l=row.getElementsByTagName('a')[0];if(l){l.setAttribute('onclick','if(event) event.preventDefault(); '+l.getAttribute('oncontextmenu'));l.removeAttribute('oncontextmenu')}});avacweb_chat_config.add_event('onopen',function(e){e.preventDefault();$('#avacweb_chat').fadeIn();avacweb_chat.button.style.backgroundColor=''});avacweb_chat_config.add_event('onclose',function(e){e.preventDefault();$('#avacweb_chat').fadeOut()});$(function(){var disable_default_stylesheet=false;addTheme('Light skin','http://demo.nicetheme.com/forum?theme_id=179920');addTheme('dark skin','http://demo.nicetheme.com/forum?theme_id=200189');addTheme('power grey','http://demo.nicetheme.com/forum?theme_id=200857');addTheme('Power blue','http://demo.nicetheme.com/forum?theme_id=179057');addTheme('Jazzy snazzy','http://demo.nicetheme.com/forum?theme_id=199351');addTheme('Black Blue','http://demo.nicetheme.com/forum?theme_id=204671');addTheme('stripe blue','http://demo.nicetheme.com/forum?theme_id=166595');addTheme('Xmas Theme','http://demo.nicetheme.com/forum?theme_id=167363');addTheme('Xmas Theme 1','http://demo.nicetheme.com/forum?theme_id=132157');addTheme('Xmas Theme 2','http://demo.nicetheme.com/forum?theme_id=165922');addTheme('Xmas Theme 3','http://demo.nicetheme.com/forum?theme_id=146950');addTheme('Underwater skin','http://demo.nicetheme.com/forum?theme_id=192222');addTheme('easy skin','http://en.hitskin.com/search-a-skin/blue-white-grey/168317');addTheme('Blast Blue','http://demo.nicetheme.com/forum?theme_id=154705');addTheme('Snaz Black','http://demo.nicetheme.com/forum?theme_id=139794');var c=document.cookie.split(';'),dds=disable_default_stylesheet,s;for(i=0;i<c.length;i++){if(/newtheme=\/\d+-ltr\.css/.test(c[i])){var theme=c[i].replace(/newtheme=(\/\d+-ltr.css)/,'$1').replace(/\s/g,'');newSheet();if(window.localStorage){$('#themeStyle').html(localStorage.selectedTheme);cleanStyle()}else $('#themeStyle').load(theme,function(){cleanStyle()});$('#themePicker option[value="'+theme+'"]').attr('selected','true')}}function addTheme(name,theme){if(!document.getElementById('themePicker')){var n=document.createElement('DIV'),d=document.createElement('OPTION');s=document.createElement('SELECT');n.innerHTML='<span style="font-weight:bold;font-size:12px;vertical-align:middle;">Select theme&nbsp;:&nbsp;</span>';s.id='themePicker';d.value=$('head link[href$="-ltr.css"]').attr('href')+'(default)';d.innerHTML='Default';n.appendChild(s);s.appendChild(d);$('#page-footer, #pun-about, #gfooter').append(n)}var o=document.createElement('OPTION');o.value=theme.replace(/.*?(\d+)/,'/$1-ltr.css');o.innerHTML=name;s.appendChild(o)};s.onchange=function(){var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));if(!document.getElementById('themeStyle'))newSheet();if(/\(default\)/.test(s.value)){var v='default';if($('#themeStyle').html().length>0&&dds==true)$('#themeStyle').load(s.value.replace(/\(default\)/,''));else $('#themeStyle').html('')}else{var v=s.value;$('#themeStyle').load(s.value,function(){cleanStyle();if(window.localStorage)localStorage.selectedTheme=$('#themeStyle').html()})}document.cookie='newtheme='+v+'; expires='+date.toGMTString()+';'};function newSheet(){var t=document.createElement('STYLE');t.id='themeStyle';document.getElementsByTagName('HEAD')[0].appendChild(t)};function cleanStyle(){if($('head link[href$="-ltr.css"]').length&&dds==true)$('head link[href$="-ltr.css"]').remove();$('#themeStyle').html($('#themeStyle').html().replace(/#hitskin_preview.*/,''))}});$(function(){$("#profile_field_2_-20").focus(function(){$(this).val(($(this).val()?$(this).val()+"\n":"")+(new Date().getMonth()+1)+"/"+new Date().getDate()+"/"+(new Date().getFullYear()-2000)+" ([b]"+$("#i_icon_mini_logout").attr("alt").replace(/^.*?\[ (.*) \]$/,"$1")+"[/b])"+" : ").unbind("focus")})});(function(){"LGBB, a Javascript BBCode parser and API. Copyright \u00a9 by AvacWeb 2011-2013. All Rights Reserved. Use of this script is not allowed without this entire copyright notice in place. No Distribution without authors consent.";var h={expando:"{LGBB:"+(new Date).getMilliseconds()+"}",bbcodes:{},basics:[],attrReg:/([\w-]+)=("|'|)(.*?)\2(?=[\s\]])/g,parseTag:function(a,b,c){for(var d=b.insensitive?"i":"",e="\\["+b.tag+"[^\\]]*?\\]",k="\\[\\/"+b.tag+"\\]",d=c?RegExp("("+e+")(?!.*"+e+")((?:.|[\\r\\n])*?)"+k,d):RegExp(e,d),l=[];d.test(a);)a=a.replace(d,function(a,d,e){c||(d=a);var f={},g;for(g in b.defaultAttr)f[g]=b.defaultAttr[g];d=h.attrReg.test(d)?d.match(h.attrReg):[];if(d.length)for(var k=0;g=d[k++];)(a=/([\w-]+)=['"]?(.*?)['"]?$/.exec(g))&&a.length&&(a[1]===b.tag&&(a[1]="default"),f[a[1]]=a[2]);if(b.validate&&(c?!b.validate.call(b,e,f):!b.validate.call(b,f)))return l.push(a),h.expando;a=b.replacement;b.replace&&(g=c?b.replace.call(b,e,f):b.replace(f),"string"===typeof g?a=g:g&&"object"===typeof g&&(e=g.content||e,f=g.attr||f,"string"===typeof f&&(f={"default":f})));return h.swapReplacers(a,e,f)});for(d=0;e=l[d++];)a=a.replace(h.expando,e);return a},swapReplacers:function(a,b,c){if(!a)return"";b||(b="");c||(c={});a=a.replace(/{CONTENT}/g,b);for(var d in c)a=a.replace(RegExp("{ATTR-"+d.toUpperCase()+"}","g"),c[d]);c["default"]&&(a=a.replace(/{ATTR}/g,c["default"]));return a.replace(/{ATTR(-[A-Z-]+)?}/g,"")},parse:function(a){var b=h.bbcodes,c=h.basics;h.expando="{LGBB:"+(new Date).getMilliseconds()+"}";for(var d=0,e;e=c[d++];){var k=e[0];if("string"===typeof k&&-1===e[1].indexOf(k))for(;-1!==a.indexOf(k);)a=a.replace(k,e[1]);else a=a.replace(k,e[1])}for(var l in b)if(b.hasOwnProperty(l)&&(c=b[l])&&c.replacement&&c.tag)try{a=h.parseTag(a,c,c.close)}catch(m){console.log("LGBB: Error parsing "+c.tag+" tag.",m)}return a},add:function(a,b){if(!/^\w+$/.test(a))throw new Exception("Invalid LGBB tag name: "+a);b.tag||(b.tag=a);b.defaultAttr?"string"===typeof b.defaultAttr&&(b.defaultAttr={"default":b.defaultAttr}):b.defaultAttr={};"close"in b||(b.close=!1);h.bbcodes[a]=b;return this},addSwap:function(a,b){h.basics.push([a,b]);return this}};window.LGBB=h})();$(function(){var p=$('.post .content');for(var i=0,post;(post=p[i++]);){var codes=post.getElementsByTagName('code'),store=[];for(var j=0,c;(c=codes[j++]);){store.push(c.innerHTML);c.innerHTML=''}post.innerHTML=LGBB.parse(post.innerHTML);for(var s,j=0;(s=store[j]);)codes[j++].innerHTML=s}});LGBB.add('div',{close:true,replacement:'<div class="{ATTR}">{CONTENT}</div>'});LGBB.add('span',{close:true,replacement:'<span class="{ATTR}">{CONTENT}</span>'});LGBB.addSwap(/Code:(.*?)\<code\>(?:\<br\>)?\[codetitle=["']?([^\]]+?)["']?]/gi,'$2:$1<code>');for(var LG=1;LG<7;LG++){LGBB.add('h'+LG,{close:true,insensitive:true,replacement:'<h'+LG+'>{CONTENT}</h'+LG+'>'})}LGBB.add('bspoiler',{close:true,defaultAttr:'Spoiler',replacement:'<div style="padding: 3px; text-align:center; border-bottom: 1px solid"><em>{ATTR}: </em><input type="button" onclick="togglebspoiler(this)" value="Show"/></div><div class="bspoiler" style="display:none">{CONTENT}</div>'});function togglebspoiler(elem){$(elem.parentNode.nextSibling).toggle();elem.value=(elem.value==='Show')?'Hide':'Show'}LGBB.add('noguest',{close:true,replacement:'<span class="noguest">{CONTENT}</span>',replace:function(content){if(!document.getElementById('logout'))return'Please log in or register to view this content. ';return content}});LGBB.add('offtopic',{close:true,replacement:'<div style="padding: 3px; float: right; border: 1px solid; font-size: 0.8em">Off Topic: {CONTENT}</div>'});LGBB.add('tip',{close:true,defaultAttr:'(?)',replacement:'<a class="LGtip" href="#">{ATTR}<span>{CONTENT}</span></a>',filter:function(content){return(content&&content.length>0)}});$(function(){$(function(){if(_userdata.user_level===0||!document.getElementById('text_editor_textarea'))return;var username=_userdata.username,UID=_userdata.user_id,color='#7CBA2C';if(UID===1)color='#ff0000';if(UID===35)color='#ff00ff';if(UID===5)color='#006600';if(UID===90)color='#2fabb3';if(UID===100)color='#cc3300';if(UID===0)color='#EAC117';if(UID===0)color='#990099';if(UID===0)color='#008B8B';if(UID===0)color='#8855DD';$('.sceditor-group:last').after('<div class="sceditor-group" id="sceditor-modtools"><a class="sceditor-button sceditor-button-modcolor modtool" title="Insert your mod color"><div style="background:url(http://i56.servimg.com/u/f56/18/45/41/65/mcolo10.png) no-repeat center;"></div></a><a class="sceditor-button sceditor-button-modcan modtool" title="Mod cans"><div style="background:url(http://i56.servimg.com/u/f56/18/45/41/65/modera11.png) no-repeat center;"></div></a></div>');$('body').append('<div id="modCans" class="modList noSelect" style="display: none;"><style type="text/css">.modOption {cursor:pointer;padding:3px 6px;}.modOption:hover {background:#eee;text-decoration:underline;}.modOption:active {background:#ffa;}.modList {position:absolute;color:#333;font-size:10px;background:#fff;border:1px solid #ccc;box-shadow:1px 2px 4px rgba(0,0,0,0.2);z-index:4000;border-radius:2px;}.noSelect {-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.listGroup {display:none;border-bottom:1px solid #ccc;}.groupToggler {text-align:center;font-weight:bold;padding:3px 6px;cursor:pointer;border-bottom:1px solid #ccc;}.groupToggler:hover {background:#eee;}</style><div id="generalMod" class="groupToggler">General Moderation</div><div id="general_can" class="listGroup"></div><div id="graphicMod" class="groupToggler">Warning Moderation</div><div id="graphic_can" class="listGroup"></div><div id="reviewMod" class="groupToggler">Warning Bar Moderation</div><div id="review_can" class="listGroup"></div></div>');$('.sceditor-button-modcan').click(function(){if($('#modCans').css('display')=='none')$('#modCans').css('left',$('.sceditor-button-modcan').offset().left+'px').css('top',$('.sceditor-button-modcan').offset().top+25+'px').show();else $('#modCans').hide()});toggle('#generalMod','#general_can');toggle('#graphicMod','#graphic_can');toggle('#reviewMod','#review_can');$('.sceditor-button-modcolor').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('[color='+color+'][b]','[/b][/color]')});$('.sceditor-container textarea').keydown(function(e){if(e.ctrlKey&&e.keyCode===77)insertColor()});$('.sceditor-container iframe').contents().keydown(function(e){if(e.ctrlKey&&e.keyCode===77)insertColor()});newModcan('general_can','Text Removed from members post','Note some of your text was removed by a staff member');newModcan('general_can','Topic Solved','Topic solved and archived');newModcan('general_can','Explicit Title','Please change the title of your topic to something that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.');newModcan('general_can','Double Post','Please don\'t double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!');newModcan('general_can','Recycle Bin','This post has been moved to the Recycle Bin and is<br>NOW LOCKED.');newModcan('general_can','Bold and Color','Please don\'t use bold or colour and keep to the default text. This is reserved for the staff for moderation.');newModcan('general_can','Backseat Moderation','Please refrain from moderating members, this is a staff member\'s job.');newModcan('general_can','Excessive Caps lock','Please avoid using caps as it is considered as screaming and is very hard to read.');newModcan('general_can','Wrong Section','This topic is in the wrong section, please create a new topic in this [url=]section[/url]');newModcan('general_can','Language not English','Please speak in English as this is an English forum.');var t0='[table style="padding: 1px; border: 1px solid #9EB8CE; background: #cfdce8; box-shadow: 1 1 1pt #878787; margin: 10px auto auto; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;" width="95%"][tr][td style="border-right: 1px solid #9EB8CE;width:70px;"][img]http://i39.servimg.com/u/f39/17/65/15/44/warn11.png[/img][/td]\n[td][img]http://2img.net/i/fa/empty.gif[/img][font=georgia][b][size=14]Hello Member,[/size]\n\n';newModcan('graphic_can','-Admins Only- First Warning',t0+'[color=#ff0000]This is your First warning[/color]\n PLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Administrator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Admins Only- Second Warning',t0+'[color=#ff0000]This is your Second warning !![/color]\nPLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Administrator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Admins Only- Third Warning',t0+'[color=#ff0000]This is your third and final warning[/color]\n PLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Administrator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Global Moderator Only- First Warning',t0+'[color=#ff0000]This is your First warning[/color]\n PLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Global Moderator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Global Moderator Only- Second Warning',t0+'[color=#ff0000]This is your Second warning !![/color]\nPLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Global Moderator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Global Moderator- Only Third Warning',t0+'[color=#ff0000]This is your third and final warning[/color]\n PLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Global Moderator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Moderator Only- First Warning',t0+'[color=#ff0000]This is your First warning[/color]\n PLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Moderator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Moderator Only- Second Warning',t0+'[color=#ff0000]This is your Second warning !![/color]\nPLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+',  Moderator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-Moderator Only- Third Warning',t0+'[color=#ff0000]This is your third and final warning[/color]\n PLEASE NOTE We Run a 3 strike Warning system here \n\nso please follow the rules or you will be [color=#ff0000]BANNED.[/color]\n\nRespectfully,\n'+username+', Moderator[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','-ALL STAFF- Banned Warning',t0+'[center][color=#ff0000][b] THIS MEMBER HAS HAD 3 WARNINGS!![/b][/color]\n\n[b]SO THIS MEMBER IS NOW [color=#ff0000]BANNED.[/color][/b][/center]\n\nRespectfully,\n'+username+', Staff Member[/b][/font]\n[hr]\n[center][font=Trebuchet MS][b][color=#7bb92b][i]Please read the warning system rules:  [url=http://chatworld.forumotion.co.uk/t805-warning-system-rules]warning system Rules[/url][/i][/color][/b][/font][/center]\n[/td][/tr][/table]');newModcan('graphic_can','ALL STAFF- Private Information Warning',t0+'[center][color=#ff0000][b][u][i][size=18]WARNING!![/size][/b][u][/color][u][/center][u]
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 14 Dec 2014, 19:48

I think the problem is you're using the popup login form. I checked and the redirect doesn't contain #postlogin.

In your script find window.location.pathname and replace it with :
Code:
window.location.pathname + '#postlogin'

or try changing the form to this :
Code:
// toolbar login
$(function(){$(function(){
  if (_userdata.session_logged_in != 0) return;
  /* -- CUSTOMIZATION BEGIN -- */
  var both = true,
      redirect = window.location.pathname + '#postlogin',
      imgOverlay = 'http://i39.servimg.com/u/f39/18/21/41/30/overla10.png',
      imgConnex = 'http://i59.servimg.com/u/f59/18/21/60/73/connex10.png',
  /* -- CUSTOMIZATION END -- */
      content = cre('DIV'), overlay = cre('DIV'), cacheMe = cre('DIV'), style = cre('STYLE'), css = '.loginForm,.loginOverlay{position:fixed;display:none}.loginForm{background:url('+imgConnex+') no-repeat 8% center #FBFBFB;background-size:12.5%;border:1px solid #CCC;border-radius:3px;padding:5%;top:20%;left:20%;right:20%;z-index:100001;}@media(max-width:500px){.loginForm{background-image:none}}@media(min-width:1000px){.loginForm{left:25%;right:25%}}.loginForm .loginTitle{font-size:12px;margin:5px 0;}.loginOverlay{background:url('+imgOverlay+');left:0;top:0;right:0;bottom:0;z-index:100000;cursor:pointer}.loginForm div { text-align:center; }.loginForm .inputbox {font-size:14px;height:25px;width:50% !important;border-radius:3px;padding-left:30px;}.loginForm input{margin:5px 0 !important}.loginForm .button1 {font-size:14px;padding:10px 15px !important;width:54% !important}#fa_username {background:url(http://i59.servimg.com/u/f59/18/21/60/73/un10.png) no-repeat 8px center #FFF}#fa_password {background:url(http://i59.servimg.com/u/f59/18/45/41/65/pw10.png) no-repeat 10px center #FFF}';
  content.className = 'loginForm', overlay.className = 'loginOverlay';
  cacheMe.innerHTML = '<img src="'+imgOverlay+'"/><img src="'+imgConnex+'"/>', cacheMe.style.display = 'none';
  style.type = 'text/css';
  if (style.styleSheet) style.styleSheet.cssText = css;
  else style.appendChild(document.createTextNode(css));
  document.getElementsByTagName('HEAD')[0].appendChild(style);
  content.innerHTML = '<form action="/login" method="post" name="form_login"><div class="loginTitle">Please enter your username and password to login.</div><div><input tabindex="100" placeholder="username" name="username" id="fa_username" size="25" maxlength="40" value="" class="inputbox autowidth" type="text"/></div><div><input tabindex="101" id="fa_password" placeholder="password" name="password" size="25" maxlength="25" class="inputbox autowidth" type="password"/></div><div><input name="redirect" value="'+redirect+'" type="hidden"><input name="login" tabindex="103" value="Log in" class="button1" type="submit"></div><a href="#close" id="closeMe" style="position:absolute;bottom:5px;right:5px;">Close</a><p align="center"><input name="autologin" id="autologin" tabindex="4" class="checkbox" checked="checked" type="checkbox"><label for="autologin"> Log in automatically</label></p></form>';
  insert(overlay, content, cacheMe);
 
  if (both === true) {
    var a = document.getElementsByTagName('A');
    for (var i=0; i<a.length; i++) if (/\/login/.test(a[i].href) && /(mainmenu|rightHeaderLink)/.test(a[i].className)) a[i].onclick = function() { display('block'), fadeIn(overlay, content); document.getElementById('fa_username').focus(); return false };
  } else {
    document.getElementById('fa_right').firstChild.onclick = function() {
      display('block'), fadeIn(overlay, content);
      document.getElementById('fa_username').focus();
      return false
    }
  }
  overlay.onclick = function() { close() };
  document.getElementById('closeMe').onclick = function() { close(); return false };
 
  function cre(el) { return document.createElement(el) };
  function display(val) { content.style.display = val, overlay.style.display = val };
  function close() { display('none'), overlay.style.opacity = 1, content.style.opacity = 1 };
  function insert() { var args = arguments; for (var i=0; i<args.length; i++) document.body.insertBefore(args[i], document.body.firstChild) };
  function fadeIn() {
    var args = arguments;
    for (var i=0; i<args.length; i++) args[i].style.opacity = 0;
    var fader = window.setInterval(function() {
      for (var i=0; i<args.length; i++) {
        var opa = Number(args[i].style.opacity);
        if (opa >= 1) {
          window.clearInterval(fader);
          return args[i].style.opacity = 1;
        } else args[i].style.opacity = opa + 0.15
      }
    },25);
  }
})});
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Tue 16 Dec 2014, 17:57

Nope @Ange Tuteur it still don't work it don't matter i will just give up Sad

Thank's for your help i will just have it so it picked up when they first make an account and if i need to i will add the ones in by hand when i need to Wink

thanks anyway Wink

Merry Christmas buddy

Bob
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 16 Dec 2014, 19:25

Okay, sorry I wasn't able to get it to work for you.

Happy holidays.
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Wed 17 Dec 2014, 03:42

Thats ok mate you did your best IP address in profile's 30790212 IP address in profile's 44378611
FiB
FiB

Gender : Male
Posts : 185
Points : 3668
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Thu 19 Mar 2015, 18:56

Where do you add this code ? css?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12055
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 19 Mar 2015, 21:41

It should go in JS code management, but I don't think it works.
FiB
FiB

Gender : Male
Posts : 185
Points : 3668
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Fri 20 Mar 2015, 09:16

Ape wrote:@Ange Tuteur
I see this post in FM
http://help.forumotion.com/t137330-ip-address-in-profile about how to add a ip address to the members profile as soon as they make there account
i was just hoping you can update this for me on here as it's not working on my forum it keeps making a problem with all my other javacodes

is there anyway you can make it so it works better and adds the ip address of all the members before and after they make there account on the forum?

Much thanks

APE / Bob

@APE did this work at all?
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 3833
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Sat 21 Mar 2015, 13:28

it only works for new members when they first make an account. it don't find the Ip address of the members you already have.
FiB
FiB

Gender : Male
Posts : 185
Points : 3668
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Sat 21 Mar 2015, 13:32

I can't get it to work at all Embarassed
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum