So I created a page toplist.php it works fine on there.
Here is the code
Code: Select all
<!-- INCLUDEPHP ./toplist.php -->Any ideas, suggestions or outright code would be much appreciated.
WHEN YOU LOGIN IN CHECK YOUR PRIVATE MESSAGES

Code: Select all
<!-- INCLUDEPHP ./toplist.php -->
Code: Select all
<?php include './toplist.php';?>
That won't show up, I messed around called the full path to the toplist.php and that did not work either, I am stumped.tacnet wrote: ↑October 18th, 2023, 3:53 pmnot sure how the phpBB templates work but normally its just
Code: Select all
<?php include './toplist.php';?>

Code: Select all
<?php include 'toplist.php';?>
tacnet wrote: ↑October 18th, 2023, 5:07 pmThinking about it, toplist.php is already in the root foder so have you triedCode: Select all
<?php include 'toplist.php';?>


Yes I see it wonder why the thing does not work on the board, hmmm.tacnet wrote: ↑October 18th, 2023, 5:47 pmok im a bit stumped here
I just uploaded your index.php and toplist.php to here https://www.tacamateurs.com/sponsorchat/ and its working fine ?
Will think more on it. It might be something for phpBB support

I asked back in 2019 and got it to work, when I tried the same code this time round not getting very far

Code: Select all
<center id="toplist"></center>Code: Select all
$('#toplist').load('toplist.php');
tacnet wrote: ↑October 18th, 2023, 6:07 pmok whatever you did just kicked me out of the forum because it wasnt forwarding the https so undo whatever that was and I'll show you a much easier way to do it
So where you want your toplist to appear, take out the include statement and just have
Then at the bottom of the page, just before your </script> tag add :-Code: Select all
<center id="toplist"></center>
And that should work fine. Ive done the same here https://www.tacamateurs.com/sponsorchat/index2.phpCode: Select all
$('#toplist').load('toplist.php');
Code: Select all
<center id="toplist"></center>
Code: Select all
<script>
(function($) { // Avoid conflicts with other libraries
'use strict';
$(function() {
var settings = {
min: 200,
scrollSpeed: 400
},
toTop = $('.scroll-btn'),
toTopHidden = true;
$(window).scroll(function() {
var pos = $(this).scrollTop();
if (pos > settings.min && toTopHidden) {
toTop.stop(true, true).fadeIn();
toTopHidden = false;
} else if(pos <= settings.min && !toTopHidden) {
toTop.stop(true, true).fadeOut();
toTopHidden = true;
}
});
toTop.bind('click touchstart', function() {
$('html, body').animate({
scrollTop: 0
}, settings.scrollSpeed);
});
});
})(jQuery);
$('#toplist').load('toplist.php');
</script>
Code: Select all
<!-- INCLUDEJS ajax.js -->
<!-- IF S_ALLOW_CDN -->
<script type="text/javascript">
(function($){
var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
$span = $('<span class="fa" style="display:none"></span>').appendTo('body');
if ($span.css('fontFamily') !== 'FontAwesome' ) {
$fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
$fa_cdn.remove();
}
$span.remove();
})(jQuery);
$('#toplist').load('toplist.php');
</script>
<!-- ENDIF -->
<!-- IF S_COOKIE_NOTICE -->
Code: Select all
<script>
$('#toplist').load('toplist.php');
</script>

Code: Select all
<center id="toplist"></center>Code: Select all
<script>
$('#toplist').load('toplist.php');
</script>