The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Profile Field for Custom Profiles adding an additional unwanted field?

View previous topic View next topic Go down

Solved Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 13th 2015, 10:20 pm

Technical Details

Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : http://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

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by SLGray on June 13th 2015, 10:22 pm

Can you please post a screenshot of how you set up the profile in the tutorial in your administration panel?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35612
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 13th 2015, 10:36 pm




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.

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by SLGray on June 13th 2015, 10:45 pm

Did you add everything to the list?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35612
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 13th 2015, 10:56 pm

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.

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 16th 2015, 6:45 am

bump

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 19th 2015, 2:30 am

bumpp

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 21st 2015, 10:20 am

bump

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 23rd 2015, 9:17 pm

bump

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 26th 2015, 11:44 pm

bump

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by APE on June 27th 2015, 1:51 am

Is that on all profiles or is it on just your one?





APE
Manager
Manager

Male Posts : 8309
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by viezesokken on June 27th 2015, 11:31 am

I'll follow this one!

viezesokken
New Member

Posts : 20
Reputation : 2
Language : English, Dutch

http://www.themazerunnernl.actieforum.com

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 27th 2015, 2:07 pm

@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.

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by APE on June 27th 2015, 6:03 pm

The best thing to do is to contact the one that made the code. In this case it is @Ange Tuteur





APE
Manager
Manager

Male Posts : 8309
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 27th 2015, 6:21 pm

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.

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Diabolus on June 27th 2015, 8:38 pm

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. 


Diabolus
New Member

Posts : 9
Reputation : 1
Language : English

http://gasrforum.com

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by Bedlam on June 29th 2015, 10:29 am

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~

Bedlam
Forumember

Female Posts : 62
Reputation : 4
Language : English
Location : Canada

http://www.gasrforum.com/

Back to top Go down

Solved Re: Profile Field for Custom Profiles adding an additional unwanted field?

Post by SLGray on June 29th 2015, 7:25 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35612
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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