Latest topics
» IconSkouliki
by skouliki Sun 17 Sep 2017, 11:05

» Awards
by Mr_Grande Sun 17 Sep 2017, 08:52

» Modify Category Tabs lead to a desired position and auto scroll click
by djblah Fri 15 Sep 2017, 14:56

» Display a preview of the user profile on hover
by Eiki Thu 14 Sep 2017, 02:38

» [GAME] Count to 30 - Ange Edition
by SLGray Mon 11 Sep 2017, 14:23

» Rank CSS
by Mr_Grande Fri 08 Sep 2017, 09:24

» make the topic a color
by Ultimas Wed 06 Sep 2017, 19:44

» Chit Chat Thread
by Valoish Sun 03 Sep 2017, 23:20

» The like/thumbs up or down feature
by Dr.kran Sun 03 Sep 2017, 19:21

» My text boxes are glitched, can you help with this type of problem?
by Wolfuryo Sun 03 Sep 2017, 17:08

» User - Made Creations
by SLGray Sun 03 Sep 2017, 16:25

» FM Themes
by SLGray Sun 03 Sep 2017, 16:24

» i need to add css improvement
by Wolfuryo Sat 02 Sep 2017, 12:12

» How do I add hover examine feature?
by Dr.kran Wed 30 Aug 2017, 16:43

» [GAME] World Snake
by SLGray Wed 30 Aug 2017, 14:46

Recent Tutorials
Top posting users this month
Who is online?
In total there are 7 users online :: 1 Registered, 0 Hidden and 6 Guests

Eslam Love

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Weird view of Installer Page

View previous topic View next topic Go down

avatar
Luffy

Title :
Crazy Tanker
Gender : Male
Age : 23
Posts : 291
Points : 1637
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Wed 26 Oct 2016, 13:28

Hello @Ange Tuteur,

Today i noticed the new update notification and i went to my installer page to check and update the theme but, it appears that the Installer Page has some "bugs"..
See other times i did this it was fine but today it just doesn't show me almost anything.
Here's a screenshot of what i see once i view my installer : http://prntscr.com/cz9yl5

I do not have any clue why this is happening since the code has stayed the same and nothing was changed...
The page is /22-installer but i believe you have Admin powers to check it.
If you need owner account access please let me know.. Thanks!

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 26 Oct 2016, 13:59

Hi @Luffy,

I believe the cause of the control panel not working is a javascript error on your forum.


The query to document.getElementId returned null since it couldn't find "table#ys". It's usually good to check if an element is null or not before using it. For example :
Code:
var table = document.getElementById('table#ys');

if (table) {
  table.insertAfter('.module:nth-child(2)');
}
That way you wont get any errors. Still there's a few reasons for this error :

1. The reason it returned null is because a query string was used ( table#ys ), when an id string without the hash should only be used in getElementById ; 'ys'.
2. There's no "insertAfter" method in pure javascript, this does exist in jQuery though. In pure JS you can use insertBefore, appendChild, insertAdjacentHTML, etc..

Sorry for the lecture lol. Anyways, you can also resolve the issue by changing it to the jQuery equivalent, since that's what it looks like it's written for.
Code:
$('table#ys').insertAfter('.module:nth-child(2)')

If the CP doesn't work after resolving this error let me know. Salute
avatar
Luffy

Title :
Crazy Tanker
Gender : Male
Age : 23
Posts : 291
Points : 1637
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Thu 27 Oct 2016, 13:46

Ange i don't know what to change but anyway you can close this thread as Think Tank is closing. Smile

Thanks for your help. Smile

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 28 Oct 2016, 11:19

Oh I see, that's sad to hear..

Anyway from what I could tell an error was caused by this script :
Code:
$(function(){$(function(){document.getElementById('table#ys').insertAfter('.module:nth-child(2)')});});
Either removing it or applying the fix I mentioned would've resolved the error.
avatar
Luffy

Title :
Crazy Tanker
Gender : Male
Age : 23
Posts : 291
Points : 1637
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Fri 28 Oct 2016, 13:51

That solved the issue. Thanks!

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 29 Oct 2016, 10:31

No problem. Hope you have a good weekend. ^^

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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