|
Post by allthingsofgillian on Jul 2, 2010 22:11:30 GMT -8
Here's my problem. I have an updated Axel Mini-Profile code and an Avatar Reflected Code that I want to work at the same time. Well, they don't. I was wondering if someone can tell me if it's possible for the two to work together? Much appreciated if someone can help. Thanks! Axel Mini-Profile Code <script type="text/javascript"> /*Axel Mini Profile Mod by DBuzzin*/
var defaultAvatar ='';
if(location.href.match(/n=(search2|(user)?rece|display|pmvi|goto|calendar|viewpro)/)){
var grabMp = document.getElementsByTagName("td"); for(i=0; i < grabMp.length; i++){ if(grabMp[i].className.match(/windowbg/i) && grabMp[i].width=="20%" && grabMp[i].innerHTML.match(/Joined:/i)){
var userName = grabMp[i].innerHTML.split(/<br\s?\/?>/i)[0]; var userRank = grabMp[i].innerHTML.split(/<br\s?\/?>/i)[1]; var rankStars = grabMp[i].innerHTML.split(/<br\s?\/?>/i)[2]; var onOrOff = grabMp[i].innerHTML.match(/member is (.+?)<br\s?\/?>/i) ? RegExp.$1: ''; var posts = grabMp[i].innerHTML.match(/Posts: (.+?)<br\s?\/?>/i) ? RegExp.$1: ''; var joined = grabMp[i].innerHTML.match(/Joined: (.+?)<br\s?\/?>/i) ? RegExp.$1: '';
var customT = grabMp[i].innerHTML.split(/<br\s?\/?>/i)[3]; if (customT.match(/member is/i)) { customT = ''; }
if(grabMp[i].innerHTML.match(/Location:/i)){ var loc = grabMp[i].innerHTML.match(/Location: (.+?)<br\s?\/?>/i) ? RegExp.$1: ''; }else{ var loc ='Undisclosed'; }
if(grabMp[i].innerHTML.match(/Gender:/i)){ var gender = grabMp[i].innerHTML.match(/Gender: (.+?)<br\s?\/?>/i) ? RegExp.$1: ''; }else{ var gender ='Undisclosed'; }
var avvy = grabMp[i].getElementsByTagName("center")[0];
var getText = avvy.innerHTML.split(/<br\s?\/?>/i)[2]; if (getText.match(/<img/i)) { var icons = avvy.innerHTML.split(/<br\s?\/?>/i)[2]; var ep = avvy.innerHTML.split(/<br\s?\/?>/i)[3]; pText =''; }else if (!getText.match(/<img/i)) { var icons = avvy.innerHTML.split(/<br\s?\/?>/i)[4]; var ep = avvy.innerHTML.split(/<br\s?\/?>/i)[5]; if(ep.indexOf("<span> ") != -1 || ep.indexOf("<SPAN> ") != -1) { icons += ep.substr(ep.indexOf("<span> ") != -1 ? ep.indexOf("<span> ") : ep.indexOf("<SPAN> ")); ep = ep.split("<SPAN> ")[0].split("<span> ")[0]; } pText = getText; }else if (pb_username == 'Guest'){ var icons = avvy.innerHTML.split(/<br\s?\/?>/i)[4]; var ep = ''; pText = getText; if(ep.indexOf("<span> ") != -1 || ep.indexOf("<SPAN> ") != -1) { icons += ep.substr(ep.indexOf("<span> ") != -1 ? ep.indexOf("<span> ") : ep.indexOf("<SPAN> ")); ep = ep.split("<SPAN> ")[0].split("<span> ")[0]; } }
if(avvy.firstChild.nodeName == 'IMG') { var avatar = '<br /><img src="'+avvy.firstChild.src+'" height="100" width="100" /><br /><br />'; }else{ var avatar ='<br /><img src="'+defaultAvatar+'" height="100" width="100" /><br /><br />'; }
var mpTab ='<table width="100%" class="bordercolor" cellspacing="1">'; mpTab +='<tr><td class="titlebg" align="center" colspan="2">'+userName+'</td></tr>'; mpTab +='<tr><td class="windowbg" align="center" colspan="2">'+rankStars+'</td></tr>'; mpTab +='<tr><td class="windowbg" align="center" colspan="2"><b>'+userRank+'</b></td></tr>'; mpTab +='<tr><td class="windowbg" align="center" colspan="2">'+customT+'<br />'+avatar+'<br />'+pText+'<br /><br /></td></tr>'; mpTab +='<tr><td class="titlebg" colspan="2" width="50%" align="center">User Info</td></tr>'; mpTab += '<tr><td class="windowbg" width="50%" align="left">Gender:</td>'; mpTab += '<td class="windowbg" align="center">'+gender+'</td></tr>';
mpTab += '<tr><td class="windowbg" width="50%" align="left">Posts:</td>'; mpTab += '<td class="windowbg" align="center">'+posts+'</td></tr>'; mpTab += '<tr><td class="windowbg" width="50%" align="left">Location:</td>'; mpTab += '<td class="windowbg" align="center">'+loc+'</td></tr>';
mpTab +='<tr><td class="windowbg" align="center" colspan="2">Joined: '+joined+'</td></tr>'; mpTab +='</table>';
mpTab +='<br /><table width="100%" class="bordercolor" cellspacing="1">'; mpTab +='<tr><td class="titlebg" width="50%" align="center">Messenger\'s</td></tr>'; if (!icons == '') { mpTab +='<tr><td class="windowbg" width="50%" align="center">'+icons+'</td></tr>'; }else{ mpTab +='<tr><td class="windowbg" width="50%" align="center">None</td></tr>'; } if (pb_username != 'Guest') { mpTab +='<tr><td class="titlebg" width="50%" align="center">Email & Pm</td></tr>'; mpTab +='<tr><td class="windowbg" width="50%" align="center">'+ep+'</td></tr>'; } mpTab +='</table>';
grabMp[i].innerHTML = mpTab; } } }
// --> </script> Avatar Reflection Code Code removed
|
|
|
Post by Wormopolis on Jul 2, 2010 22:17:33 GMT -8
Im assuming you have already tried the standard "reverse the order of the codes" method?
|
|
|
Post by allthingsofgillian on Jul 2, 2010 22:18:34 GMT -8
I tried the reflection code under the axel above, two codes above, two codes below...nothing...sorry I forgot to mention that in my previous post.
|
|
|
Post by Wormopolis on Jul 2, 2010 22:40:09 GMT -8
run reflection code after MP remodel.
find these lines:
if(avvy.firstChild.nodeName == 'IMG') { var avatar = '<br /><img src="'+avvy.firstChild.src+'" height="100" width="100" /><br /><br />'; }else{ var avatar ='<br /><img src="'+defaultAvatar+'" height="100" width="100" /><br /><br />'; }
change to:
if(avvy.firstChild.nodeName == 'IMG') { var avatar = '<br /><img src="'+avvy.firstChild.src+'" height="100" width="100" alt="[avatar]"/><br /><br />'; }else{ var avatar ='<br /><img src="'+defaultAvatar+'" height="100" width="100" alt="[avatar]"/><br /><br />'; }
|
|
|
Post by allthingsofgillian on Jul 3, 2010 8:30:29 GMT -8
Thank you VERY much for the updated code. Much appreciated for this. You are simply awesome!
|
|
|
Post by allthingsofgillian on Jul 3, 2010 9:24:32 GMT -8
I'm having some issues...both of these issues are not showing up for the IE users. Only Chrome and FF users...is there a reason for this?
|
|
|
Post by Wormopolis on Jul 3, 2010 14:48:54 GMT -8
depends on the issue? is the reflection not showing up?
|
|
|
Post by allthingsofgillian on Jul 3, 2010 16:39:55 GMT -8
The entire thing is not showing up...axel code and reflection. Also, I was wondering someone if you could possibly add into the Axel code if possible. It doesn't have the Karma available and we use karma on the forum, would there be any way you can input that into the code? EDIT: Also, what's really strange is on my forum the axel code is only showing up for the first 3-4 posts in a thread and not the other posts. But the other forum (my friends) in which I put the same code in does.
|
|
|
Post by Wormopolis on Jul 3, 2010 21:57:11 GMT -8
ok.. remove the reflection code. then give me a link to a thread where only a few MP are being changed.
|
|
|
Post by allthingsofgillian on Jul 3, 2010 21:59:49 GMT -8
Okay no problem. My forum's link to a thread you requested: THREADAlso, I did what you asked, I removed the reflection code.
|
|
|
Post by Wormopolis on Jul 3, 2010 22:46:18 GMT -8
gah.. I need "guests must login" turned off so I can see the threads.
|
|
|
Post by allthingsofgillian on Jul 4, 2010 9:09:07 GMT -8
I have PM'ed you some information regarding the "Guests Must Login" feature. I hope my PM helps.
Thanks.
|
|
|
Post by Wormopolis on Jul 4, 2010 18:44:45 GMT -8
Hell I dont even see the MP remodel working on ANY threads in IE...
|
|
|
Post by allthingsofgillian on Jul 4, 2010 18:46:51 GMT -8
I know that's why I was asking for help. :/
|
|
|
Post by Wormopolis on Jul 4, 2010 20:09:48 GMT -8
Im working through it right now. the code itself has some issues in its original form. the edit I made above isnt even part of the issues it has, so I have to fix those things first.
|
|