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.

Warning button for Administrators and Moderators not working

View previous topic View next topic Go down

Solved Warning button for Administrators and Moderators not working

Post by Ak-Wolf on 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

Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

http://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

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

can you provide a link to your forum

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
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 on 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/

Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

http://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by _Twisted_Mods_ on 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_
Helper
Helper

Male Posts : 2032
Reputation : 302
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 on 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

Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

http://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by mangaka on 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
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 on February 5th 2015, 8:14 am

Thanks for your information.

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 on 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

Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

http://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

Post by Ak-Wolf on 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

Ak-Wolf
New Member

Posts : 6
Reputation : 1
Language : English

http://help.forumotion.com/

Back to top Go down

Solved Re: Warning button for Administrators and Moderators not working

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

You're welcome Smile

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.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