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

+2
Take Notes
ifelthope1126
6 posters

Page 2 of 2 Previous  1, 2

Go down

Solved Profile toggle not working anymore

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

Female Posts : 107
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 May 5th 2016, 8:04 am

Bump.
ifelthope1126
ifelthope1126
Forumember

Female Posts : 107
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 May 6th 2016, 8:32 pm

Bump.
ifelthope1126
ifelthope1126
Forumember

Female Posts : 107
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 May 8th 2016, 5:11 am

Bump.
ifelthope1126
ifelthope1126
Forumember

Female Posts : 107
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 May 9th 2016, 9:34 pm

Bump.
ifelthope1126
ifelthope1126
Forumember

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

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by Take Notes 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.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Profile toggle not working anymore

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

Female Posts : 107
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 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
An
Forumember

Posts : 44
Reputation : 24
Language : English

https://help.forumotion.com

Back to top Go down

Solved Re: Profile toggle not working anymore

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

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

Female Posts : 107
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 May 12th 2016, 12:16 pm

You're welcome. Smile

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

Posts : 44
Reputation : 24
Language : English

https://help.forumotion.com

Back to top Go down

Solved Re: Profile toggle not working anymore

Post by SLGray May 12th 2016, 10:40 pm

Topic solved and archived


Profile toggle not working anymore - Page 2 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 : 51187
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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