Profile Field for Custom Profiles adding an additional unwanted field?
5 posters
Page 1 of 1
Profile Field for Custom Profiles adding an additional unwanted field?
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
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Can you please post a screenshot of how you set up the profile in the tutorial in your administration panel?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
So it's currently @ the bottom of the profile however our .fieldddd is customized so that it has a background colour and a border so it still posts a field space for it with nothing in it.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Did you add everything to the list?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Yes there is nothing wrong with the list itself or the code.
What is the problem, however, is the fact I have customized the .fieldddd to have a 1px border and a white background.
^
An example of a profile with no background:
And what is happening because the profile background is using the field it is keeping an ugly field at the bottom.
I'm wondering if there is a way to get rid of that additional created field or is it possible to at least change the background colour + border of that field so it looks invisible.
What is the problem, however, is the fact I have customized the .fieldddd to have a 1px border and a white background.
^
An example of a profile with no background:
And what is happening because the profile background is using the field it is keeping an ugly field at the bottom.
I'm wondering if there is a way to get rid of that additional created field or is it possible to at least change the background colour + border of that field so it looks invisible.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Is that on all profiles or is it on just your one?
Re: Profile Field for Custom Profiles adding an additional unwanted field?
APE wrote:Is that on all profiles or is it on just your one?
It's happening to all profiles that have a custom "background" as shown in the screenshot.
I already know what the problem is (as I have mentioned), the code if I hadn't customized my .fieldddd would show nothing, but since it is not removing the field, it still creates a blank area that has a background and border.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
The best thing to do is to contact the one that made the code. In this case it is @Ange Tuteur
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Yeah I have tagged him but he must be too busy atm so I'll keep bumping if someone else could help me. I really know shit about navigating complicated codes like dis.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Never mind about bugging poor Ange!
I figured out how to get rid of our little straggler. I don't think our codes will be applicable to other forums because I'm not sure how others are set up, but the main point is to place the profile field to the very bottom of the list and then use last-child to hide it.
I figured out how to get rid of our little straggler. I don't think our codes will be applicable to other forums because I'm not sure how others are set up, but the main point is to place the profile field to the very bottom of the list and then use last-child to hide it.
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Yeah I thought about using nth:child but it wasn't working so I thought maybe something in the javascript would fix it.
This thread can be locked~
This thread can be locked~
Re: Profile Field for Custom Profiles adding an additional unwanted field?
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Additional Profile Field Permissions?
» Add a profile field for music to user profiles
» Custom Profile Field Appearance
» Custom profile field removal
» Custom profile field direct code
» Add a profile field for music to user profiles
» Custom Profile Field Appearance
» Custom profile field removal
» Custom profile field direct code
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum