Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

DOWNLOAD Sports listings Php

Andy

Well-known member
Joined
Aug 29, 2021
Messages
147
Offline
Hi lads here's a sports listings scrolling text php file where you can add your own background logo and listings daily been working on this if someone can add it to a panel for easy access and changes

 
Last edited by a moderator:
Looks good bud scrolling is very fast but u done good job
 
No likes - no cookies

I put your php behind thanks and reaction
 
Last edited:
Good work and good share, and great idea. Since the tvsport widget no longer works
 
Good work and good share, and great idea. Since the tvsport widget no longer works
What would be good if someone more experienced can add it to a panel and be able to change text through pannel one reasons why I posted to Community to let someone more experience see if they can improve it or implement it into use
 
Looks great, having a hard time making it auto scroll.
you may have to add a bit of additional code for the auto scroll to work , it has been posted on here before how to get it to work
this is an example :-

<script>
let scrollSpeed = 0.4; // Adjust this value to control the scrolling speed
let scrollTop = 0;
let isManualScroll = false;
let autoScrollTimeout;

function scroll() {
if (!isManualScroll) {
scrollTop += scrollSpeed;
if (scrollTop >= document.body.scrollHeight - window.innerHeight) {
scrollTop = 0;
}
window.scrollTo(0, scrollTop);
}
requestAnimationFrame(scroll);
}

function resetAutoScroll() {
isManualScroll = false;
clearTimeout(autoScrollTimeout);
autoScrollTimeout = setTimeout(() => {
isManualScroll = false;
}, 2000);
}

window.addEventListener('load', () => {
setTimeout(scroll, 1000);
});

window.addEventListener('scroll', () => {
isManualScroll = true;
scrollTop = window.scrollY;
resetAutoScroll();
});

window.addEventListener('keydown', (event) => {
if (event.key === 'ArrowUp') {
isManualScroll = true;
scrollTop = Math.max(0, scrollTop - 50); // Adjust this value to control manual scroll speed
window.scrollTo(0, scrollTop);
resetAutoScroll();
} else if (event.key === 'ArrowDown') {
isManualScroll = true;
scrollTop = Math.min(document.body.scrollHeight - window.innerHeight, scrollTop + 50); // Adjust this value to control manual scroll speed
window.scrollTo(0, scrollTop);
resetAutoScroll();
}
});

</script
this bit of code would sit in the same sport.php that is generated from the site but at the bottom


or this one :-

echo "<script>
const scrollSpeed = 0.4; // Adjust this value to control the scrolling speed
let scrollTop = 0;

function scroll() {
scrollTop += scrollSpeed;

if (scrollTop >= document.body.scrollHeight - window.innerHeight) {
scrollTop = 0;
}

window.scrollTo(0, scrollTop);
requestAnimationFrame(scroll);
}

// Start scrolling after a 5-second delay
window.addEventListener('load', () => {
setTimeout(scroll, 5000);
});

</script>";
 
Yeh bud you seem to not get the concept I was doing was mainly for creating your own scrolling events list that you have full control over your and not reliant on websites to update you
 
Yeh bud you seem to not get the concept I was doing was mainly for creating your own scrolling events list that you have full control over your and not reliant on websites to update you
I downloaded the scripts nice work must say :)
but average joe just needs a sport.php replacment thats why I added it to this thread.
 
Hello I bring today a small update on sports guides I made

To use this file simply edit the guides inside with your guide1000077116.png links i left some links in

Add this file to your hosting and make link

Copy your link and go to your sports api folder

Where the scrolling Tom's guide link is replace with your hosted link for guides php

 
Last edited:
Hello I bring today a small update on sports guides I made

To use this file simply edit the guides inside with your guideView attachment 12595 links i left some links in

Add this file to your hosting and make link

Copy your link and go to your sports api folder

Where the scrolling Tom's guide link is replace with your hosted link for guides phpGUIDES PHP*** Hidden text: cannot be quoted. ***
*** Hidden text: cannot be quoted. ***
[/URL]
Edit and change to suit your needs
 
IF done correctly your sports button will open up 3 sports guides
This is amazing, But i cant get it working. Not sure what i did wrong but i only have the three Boxes guide 1 2 3 showing i click on any and it doesn't open anything?
I uploaded your file GUIDES.php to my hosting then in in API/sports.php i changed the Url to my hosed link mywebsite.org/GUIDES.php is that correct?

EDIT: fixed I repaired it by Replacing double quotes inside the onclick attribute with single quotes around the URLs to avoid syntax errors.
 
Last edited:
Yes bud as I said if do everything correctly it will work just case changing links in guide to whatever links you need
 
Back
Top