Raised This Month: $ Target: $400
 0% 

Solved Html & Show_motd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-07-2017 , 12:48   Html & Show_motd
Reply With Quote #1

im trying to make a list but to show in motd

trying to display 10 tables each page how to do next button and previous button in html and check how much the pages 4 example :- like a current players list but in motd.

i would be grateful if some1 would atttach a code

here the list -
Attached Thumbnails
Click image for larger version

Name:	Screenshot (11).png
Views:	295
Size:	44.4 KB
ID:	161370  
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-08-2017 at 05:10.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-07-2017 , 13:56   Re: Html & Show_motd
Reply With Quote #2

It would only be possible if you had your page hosted on a web hosting. You can't construct such site with pagination in your plugin.
klippy is offline
Lawnmoverman
Member
Join Date: Jan 2017
Old 03-07-2017 , 16:10   Re: Html & Show_motd
Reply With Quote #3

Motd does not support long code you will need to host your motd online and use redirect in motd.txt. If you want to get for example 20 results per page this all is done by php and sql. Else you can write everything one by one in html but to update something will take you mad. Ex: http://www.nozgaming.eu/motd/motd.html this is hosted motd.
__________________


www.nozgaming.eu | cs.nozgaming.eu

Last edited by Lawnmoverman; 03-07-2017 at 16:12.
Lawnmoverman is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-07-2017 , 18:45   Re: Html & Show_motd
Reply With Quote #4

Actually its possible

Yh ik motd dosent support more than 1000 chars or smthing thats why i want to show just 10 tables

But i want to get how previous and next page will work if u could attach a clue
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-07-2017 at 18:50.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2017 , 19:05   Re: Html & Show_motd
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Yh ik motd dosent support more than 1000 chars or smthing thats why i want to show just 10 tables
1536 is the character limit. "Just 10 tables" is likely way more than that.

"Yh ik" wtf?

Quote:
Originally Posted by Natsheh View Post
But i want to get how previous and next page will work if u could attach a clue
There is no way to make a click in the MOTD create an action in the server without a web server to link them together (the MOTD is a basic web browser, it's separate from the game itself). If you think it's possible then you'll have to show us.
__________________

Last edited by fysiks; 03-07-2017 at 19:06.
fysiks is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-07-2017 , 19:28   Re: Html & Show_motd
Reply With Quote #6

I found a way but ineed to use the menu to choose the page and then to show motd

Any way can u show me how its done by sql

Yh ik = yeah iknow xd
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-07-2017 at 19:32.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2017 , 19:54   Re: Html & Show_motd
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
I found a way but ineed to use the menu to choose the page and then to show motd

Any way can u show me how its done by sql
Why would you use SQL? SQL is for storing data.

I would use a link to call a PHP script (with GET parameters) which would then use PHPRcon to send the command to the server with the data required to do what you need to do.

However, I'm not sure if showing a new MOTD will overwrite the current MOTD being shown. You might want to test that first.


Quote:
Originally Posted by Natsheh View Post
Yh ik = yeah iknow xd
Look, was it really that hard to type 5 more letters?
__________________

Last edited by fysiks; 03-07-2017 at 20:05.
fysiks is offline
Lawnmoverman
Member
Join Date: Jan 2017
Old 03-08-2017 , 07:37   Re: Html & Show_motd
Reply With Quote #8

Instead of rcon use some sqlx script in amx to write everything you need to db. Then query it with php. If hosted motd you will be able to put next and previous button. But you can also make some dropdown content or smth similar. Just google everything you need there are tons of tutorials. It is better that you do it yourself, so you will understand better. And I think no one will do it for you because it requires lot work. And adding next and previous button is last thing to do as you gonna make max results per page when displaying data from db. IF YOU ARE HOSTING CHEAP NO WAY TO MAKE WORK RCON.
__________________


www.nozgaming.eu | cs.nozgaming.eu

Last edited by Lawnmoverman; 03-08-2017 at 07:38.
Lawnmoverman is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-08-2017 , 15:31   Re: Html & Show_motd
Reply With Quote #9

I solved it by choosing the page in the menu, btw i dont have a host.. That why i was asking.4 that
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 04-06-2017 , 13:26   Re: Html & Show_motd
Reply With Quote #10

You should never get support here
Code:
     This server uses Metamod, AMX Mod X, DProto, [Ptb], [Hpk], and some custom plugins. Head admin of this server is Lawnmoverman, and this server is powered by OLO and Netsons.com.
Seems like AM staff it's crossing over your posts.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode