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 toggle not working anymore

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

Solved Profile toggle not working anymore

Post by ifelthope1126 on April 5th 2016, 9:27 pm

First topic message reminder :

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Safari
Who the problem concerns : All members
When the problem appeared : Today.
Forum link : http://sunset.forumtwilight.com and http://testforum.lithuanianforum.net/

Description of problem

Hello!

Today me and my forum members have noticed, that profile toggle isn't working on our forums anymore. It's working, but not how it used to before. This is my previous topic, where you can see, what tutorial and what codes I've used. No new codes were added or edited and no templates were modified since when I've installed these codes. These codes made some of the profile fields to be hidden and seen only by pressing the button, and some of the fields to remain always visible. Now all the fields are invisible and we can see them only when we press the button. I've tested it on all possible devices (laptop, iPhone, iPad) and browsers (Google Chrome, Mozilla Firefox, Safari). It just doesn't work for no one, no matter on which device or browser they log in to forum.

Let me know, if you need more explanations on my problem or screenshots Wink


Last edited by ifelthope1126 on May 12th 2016, 11:48 am; edited 1 time in total

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down


Solved Re: Profile toggle not working anymore

Post by ifelthope1126 on May 5th 2016, 8:04 am

Bump.

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by ifelthope1126 on May 6th 2016, 8:32 pm

Bump.

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by ifelthope1126 on May 8th 2016, 5:11 am

Bump.

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by ifelthope1126 on May 9th 2016, 9:34 pm

Bump.

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by Genesis on May 10th 2016, 5:43 am

Hopefully I can look into this more soon, I'm still a little confused on what the issue exactly is and I have not that juch time to spare.

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by ifelthope1126 on May 10th 2016, 11:39 pm

Yeah, it would be very nice if you looked into my problem. When you'll have time, of course. Until then I'll just keep bumping this topic, so maybe others would help too. I'm afraid I don't have screenshots of how it used to be like before the code stopped working. When you'll need more information, I'll try my best to explain what's the problem, but since english is not my first language, it could be hard Confused

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by An on May 12th 2016, 11:39 am

Hi,

It appears that the regular expression in the filter function needs to be tweaked. Give the following script a try.
Code:
$(function() {
  var fields = ['Vardas', 'Amžius', 'Miestas', 'Raštingumas', 'Antras ir t.t. veikėjas', 'Veidukas', 'Credit', 'Priflūdinta', 'Įkandimai', 'Su mumis nuo'];
  $('.post .user-info').each(function() {
    for (var i = 0; i < fields.length; i++) {
      $(this).find('.profile-field .label').filter(function() {
        return $(this).text().replace(/ : $/, '') == fields[i];
      }).parent().insertBefore($(this).parent().find('.toggle-trig'));
    }
  })
});

OR replace
Code:
$(this).text().trim().replace(/:$/,'')
in your scripts with
Code:
$(this).text().replace(/ : $/, '')

An
Forumember

Posts : 42
Reputation : 23
Language : English

http://help.forumotion.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by ifelthope1126 on May 12th 2016, 11:50 am

Worked perfectly! Thank you so much! :rose:
Solved.

ifelthope1126
Forumember

Female Posts : 70
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by An on May 12th 2016, 12:16 pm

You're welcome. Smile

P.S.
I'm sorry you had to wait so long.

An
Forumember

Posts : 42
Reputation : 23
Language : English

http://help.forumotion.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by SLGray on May 12th 2016, 10:40 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 : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top


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