Technical Details
Forum version : #phpBB2Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : https://i.gyazo.com/946ab020678bcf87e24d92614e632880.png
Who the problem concerns : All members
Forum link : http://www.gasrforum.com/
Description of problem
Okay so I installed the profile field by @Ange Tuteur from here:http://fmdesign.forumotion.com/t279-profile-field-for-custom-post-profiles
and although it works like a dream, because I have my .fieldddd customized to have a box around it (because it looks much more organized that way), it is creating an extra blank box at the end of the profile.
I was wondering if there was a way so that the box could disappear.
Potentially something in here needs to be edited?
- Code:
customProfile({ value : '.*?', remove : true }); // remove field from profiles
function customProfile(o) {
var reg = new RegExp('<span class="label"><span style="color:#[a-f0-9]{6};">'+field+'</span>:\\s</span>(\\s|)'+o.value+'<br>','i');
for (var i=0,p=$('.postprofile, .user, .postdetails.poster-profile'); i<p.length; i++) {
if (p[i].innerHTML.match(reg)) {
if (o.remove) p[i].innerHTML = p[i].innerHTML.replace(reg,'');
else {
p[i].style.color = o.color;
p[i].style.borderColor = o.border;
p[i].style.background = o.background;
}
}
}
};
var info = 'Plugin developed by Ange Tuteur for customizing post profiles. For help with this plugin, please see the following link : http://fmdesign.forumotion.com/t279-profile-field-for-custom-post-profiles';
});
Thanks
Last edited by Bedlam on June 29th 2015, 10:29 am; edited 3 times in total