The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Profile Field for Custom Profiles adding an additional unwanted field?

5 posters

Go down

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

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

Technical Details

Forum version : #phpBB2
Position : 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
Bedlam
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

Post by SLGray 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?


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

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

Male Posts : 50267
Reputation : 3466
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

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

Profile Field for Custom Profiles adding an additional unwanted field? 4a7319691df4e3641aecb03dd858b7eb
Profile Field for Custom Profiles adding an additional unwanted field? 008b339c28cd20a653636be3fa07f90b

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
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

Did you add everything to the list?


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

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

Male Posts : 50267
Reputation : 3466
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Bedlam 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.

Profile Field for Custom Profiles adding an additional unwanted field? 946ab020678bcf87e24d92614e632880
^

An example of a profile with no background:

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

And what is happening because the profile background is using the field it is keeping an ugly field at the bottom.

Profile Field for Custom Profiles adding an additional unwanted field? 49d4054ede42bbce511326342a81b9e7

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
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

bump
Bedlam
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

bumpp
Bedlam
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

bump
Bedlam
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

bump
Bedlam
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

bump
Bedlam
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

Post by Ape June 27th 2015, 1:51 am

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


Profile Field for Custom Profiles adding an additional unwanted field? Left1212Profile Field for Custom Profiles adding an additional unwanted field? Center11Profile Field for Custom Profiles adding an additional unwanted field? Right112
Profile Field for Custom Profiles adding an additional unwanted field? Ape_b110
Profile Field for Custom Profiles adding an additional unwanted field? Keep_s10
Profile Field for Custom Profiles adding an additional unwanted field? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17760
Reputation : 1900
Language : fluent in dork / mumbojumbo & English haha

View user profile 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 June 27th 2015, 11:31 am

I'll follow this one!
avatar
viezesokken
New Member

Posts : 20
Reputation : 2
Language : English, Dutch

View user profile 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 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
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

Post by Ape 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


Profile Field for Custom Profiles adding an additional unwanted field? Left1212Profile Field for Custom Profiles adding an additional unwanted field? Center11Profile Field for Custom Profiles adding an additional unwanted field? Right112
Profile Field for Custom Profiles adding an additional unwanted field? Ape_b110
Profile Field for Custom Profiles adding an additional unwanted field? Keep_s10
Profile Field for Custom Profiles adding an additional unwanted field? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17760
Reputation : 1900
Language : fluent in dork / mumbojumbo & English haha

View user profile 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 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
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

Post by Diabolus 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. 

Profile Field for Custom Profiles adding an additional unwanted field? EaZrPWE
Diabolus
Diabolus
New Member

Posts : 9
Reputation : 1
Language : English

View user profile http://gasrforum.com

Back to top Go down

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

Post by Bedlam 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
Bedlam
Forumember

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

View user profile http://www.gasrforum.com/

Back to top Go down

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

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

Topic solved and archived


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

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

Male Posts : 50267
Reputation : 3466
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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