Latest topics
» Auto-suggest @mentions as You Type
by skouliki Today at 04:57

» Hello everyone this is Adam from France
by SLGray Today at 01:09

» FM Themes
by SLGray Today at 01:08

» User - Made Creations
by SLGray Today at 01:07

» Search box only visible on hover
by SLGray Today at 00:58

» Browsers & Updates
by SLGray Today at 00:56

» Change newposts/no new posts/ locked icons
by T.C. Yesterday at 19:52

» [HELP] About Profile Cover Code
by MaHwOs Sun 19 Nov 2017, 18:54

» bloquer un membre
by berlingo Fri 17 Nov 2017, 18:19

» IconSkouliki Graphics
by skouliki Fri 17 Nov 2017, 03:54

» [IN PROGRESS] Can this code work on pun version
by skouliki Thu 16 Nov 2017, 03:50

» [TUTORIAL] [ALL VERSIONS] Warning before posting
by demon99 Wed 15 Nov 2017, 08:12

» About Add Reply & New Topic button (popup form)
by omarpop23 Mon 13 Nov 2017, 20:31

» Add a login popup for the toolbar
by Ape Sun 12 Nov 2017, 18:41

» Post a message automatically when locking a topic
by ThunderTB Sun 12 Nov 2017, 13:51

Recent Tutorials
Who is online?
In total there are 8 users online :: 0 Registered, 0 Hidden and 8 Guests :: 2 Bots

None

[ 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 :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1699
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://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 : 22
Posts : 4712
Points : 9587
Reputation : 2341
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 :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1699
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://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 : 22
Posts : 4712
Points : 9587
Reputation : 2341
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 :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1699
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://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 : 22
Posts : 4712
Points : 9587
Reputation : 2341
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