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.

Warning button for Administrators and Moderators not working

5 posters

Go down

Solved Warning button for Administrators and Moderators not working

Post by Ak-Wolf February 4th 2015, 5:49 am

Hello, I followed every step here:
Warning button for Administrators and Moderators

but nothing shows when I go to a topic and try to add a post.
I use phpbb2, what is the solution?

Thank you in advance
avatar
Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

https://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by _Twisted_Mods_ February 4th 2015, 6:16 am

can you provide a link to your forum
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ak-Wolf February 4th 2015, 2:33 pm

Here you go this forum is where I test codes and edit them so it suits my forum:
http://testlone.phpbbonline.com/
avatar
Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

https://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by _Twisted_Mods_ February 4th 2015, 3:46 pm

well on your test forum this script is causing a error try replacing it with this one and see if it works

Code:

$(function(){var forums=[];forums[http:forums["رقمالقسم"]=["رابط الايقونه"]; $('a.forumlink').each(function(){var mforum=$(this).attr('href').match(/^\/f(\d+)-/)[1];if(forums[mforum]!==undefined)$(this).closest('tr').find('.row1:first img').attr('src',forums[mforum]);});];});

_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ak-Wolf February 5th 2015, 5:49 am

_Twisted_Mods_ wrote:well on your test forum this script is causing a error try replacing it with this one and see if it works

Code:

$(function(){var forums=[];forums[http:forums["رقمالقسم"]=["رابط الايقونه"]; $('a.forumlink').each(function(){var mforum=$(this).attr('href').match(/^\/f(\d+)-/)[1];if(forums[mforum]!==undefined)$(this).closest('tr').find('.row1:first img').attr('src',forums[mforum]);});];});


I am confused, am I suppose to change the whole Java script provided in the past topic, to this one you just put?
are you sure this code is for the Warning? Confused
avatar
Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

https://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by mangaka February 5th 2015, 7:51 am

Yup, don't tick any of the options like 'In All Pages' in the script you've used before, then set the script that has been given above. Make a new JavaScript for it and paste the whole code. Correct me if I'm wrong, sure~
mangaka
mangaka
Forumember

Female Posts : 121
Reputation : 5
Language : Indonesia
Location : Well

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by amvosgine February 5th 2015, 8:14 am

Thanks for your information.
avatar
amvosgine
New Member

Posts : 4
Reputation : 1
Language : francais

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ak-Wolf February 5th 2015, 3:21 pm

This is so confusing! 100% the script _Twisted_Mods_ gave me is not for this option.
He probably mixed someone's topic with mine and placed his code here.

I went to Administration Panel > Modules > JavaScript codes managment and create a new script.
added this code:


Code:

$(function(){var
forums=[];forums[http:forums["رقمالقسم"]=["رابط الايقونه"];
$('a.forumlink').each(function(){var
mforum=$(this).attr('href').match(/^\/f(\d+)-/)[1];if(forums[mforum]!==undefined)$(this).closest('tr').find('.row1:first
 img').attr('src',forums[mforum]);});];});

Replaced the Arabic language up there to the Link and Icon of the a section as he said!
Followed everything else as stated in the main topic
Warning button for Administrators and Moderators

Nothing working
avatar
Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

https://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ange Tuteur February 5th 2015, 4:00 pm

Hi,

I'm still getting an error on your forum. It again, appears to be coming from this script :
Code:
$(function(){var forums=[];forums[http:forums[رقمالقسم]=["رابط الايقونه"];$('a.forumlink').each(function(){var mforum=$(this).attr('href').match(/^\/f(\d+)-/)[1];if(forums[mforum]!==undefined)$(this).closest('tr').find('.row1:first img').attr('src',forums[mforum])})});

I recommend removing it from your JavaScript codes management to see if it's the problem.

Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ak-Wolf February 5th 2015, 4:22 pm

Ange Tuteur wrote:Hi,

I'm still getting an error on your forum. It again, appears to be coming from this script :
Code:
$(function(){var forums=[];forums[http:forums[رقمالقسم]=["رابط الايقونه"];$('a.forumlink').each(function(){var mforum=$(this).attr('href').match(/^\/f(\d+)-/)[1];if(forums[mforum]!==undefined)$(this).closest('tr').find('.row1:first img').attr('src',forums[mforum])})});

I recommend removing it from your JavaScript codes management to see if it's the problem.


Solved thank you Hello
avatar
Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

https://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ange Tuteur February 5th 2015, 4:23 pm

You're welcome Smile

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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