try to include .css and .js into own custom page (wanna try to install datatables)

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 3:38 am

Code: Select all

yamm.css
already removed (extension disabled) and not in the source anymore (see "minimal" example)
nothing changes here - doesnt work ;(

Selective
Registered User
Posts: 213
Joined: Sat Apr 19, 2014 10:30 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by Selective » Sun Jan 28, 2018 3:43 am

Try removing one CSS page, refresh browser and forum cache, and see what it does. Then put it back and do another CSS file. Do that until you go through all CSS files connected to that datatable, and that will help narrow down where the problem is, or if it is somewhere else completely.

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 3:44 am

i always refresh both (browser + server)
i also use two different browsers (firefox + chrome)

Selective
Registered User
Posts: 213
Joined: Sat Apr 19, 2014 10:30 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by Selective » Sun Jan 28, 2018 3:46 am

These are the only CSS files I saw attached to the main script.

Did you check all of these?

datatables.min.css
bootstrap3.3.7.css
yamm.css

Actually, I just thought of something. If the phpbb CSS is overriding any of those CSS scripts, then removing those might not show a change.

Are you seeing any changes at all when you remove each one?
Last edited by Selective on Sun Jan 28, 2018 3:48 am, edited 1 time in total.

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 3:48 am

yes (see minimal example)
i even removed them locally (+ updating cache)

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 3:51 am

Code: Select all

Are you seeing any changes at all when you remove each one?
they are not used anymore
no changes

Selective
Registered User
Posts: 213
Joined: Sat Apr 19, 2014 10:30 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by Selective » Sun Jan 28, 2018 3:57 am

Did you already test the datatable without trying to place it in phpBB?

That way, we can rule out it being the datatable itself or the install of it.

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 4:01 am

dont know exactly what you mean

Selective
Registered User
Posts: 213
Joined: Sat Apr 19, 2014 10:30 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by Selective » Sun Jan 28, 2018 4:07 am

Selective wrote:
Sun Jan 28, 2018 3:57 am
Did you already test the datatable without trying to place it in phpBB?

That way, we can rule out it being the datatable itself or the install of it.
The datatable is very simple. It's just one page of script that points to a js file and some css files.

Create a new page just for the database table, no phpbb at all and not in your forum folder. Upload the js and css files in that same location. Run the page, and see if it is better or the same as the one you tried placing inside of your phpbb forum.

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 4:12 am

ok i will do that

... after some hrs sleep - tnx so far for your help
... maybe i am not so blind after some hrs sleep ;) cya in few hrs ;)

Selective
Registered User
Posts: 213
Joined: Sat Apr 19, 2014 10:30 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by Selective » Sun Jan 28, 2018 4:22 am

RobiX wrote:
Sun Jan 28, 2018 4:12 am
ok i will do that

... after some hrs sleep - tnx so far for your help
... maybe i am not so blind after some hrs sleep ;) cya in few hrs ;)
OK, get some sleep. I'll check back later.

Once you rule out the CSS and the datatable itself or install of it. Then I would check out the js files. If you can't open the js files to look at them, then you can always rename js to txt, and that will allow you to look at them. If you do that though, just remember to change txt back to js.

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Sun Jan 28, 2018 2:54 pm

i gave up with datatables and tried tablesorters now
same problem
i investigated and the problem is

https://teamtreehouse.com/community/why ... r-the-body

therefore i removed
<script type="text/javascript" src="{T_JQUERY_LINK}"></script>
in overall_footer

and it works now

User avatar
AmigoJack
Registered User
Posts: 5214
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by AmigoJack » Mon Jan 29, 2018 8:06 am

RobiX wrote:
Sun Jan 28, 2018 3:20 am
i dont think that this is wrong because the are named all "datatables" so no clash here
The C in CSS is for "cascading": mostly a DIV or H4 is defined to affect all of them, not only per ID. It's not called "identifier style sheets".
The worst thing about censorship is ███████████

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: try to include .css and .js into own custom page (wanna try to install datatables)

Post by RobiX » Mon Jan 29, 2018 10:15 am

css - yes you are right, but it seems that the problem was another one (see link)

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 7 guests