AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Html & Show_motd (https://forums.alliedmods.net/showthread.php?t=294776)

Natsheh 03-07-2017 12:48

Html & Show_motd
 
1 Attachment(s)
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 -

klippy 03-07-2017 13:56

Re: Html & Show_motd
 
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.

Lawnmoverman 03-07-2017 16:10

Re: Html & Show_motd
 
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.

Natsheh 03-07-2017 18:45

Re: Html & Show_motd
 
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

fysiks 03-07-2017 19:05

Re: Html & Show_motd
 
Quote:

Originally Posted by Natsheh (Post 2501656)
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 (Post 2501656)
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.

Natsheh 03-07-2017 19:28

Re: Html & Show_motd
 
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

fysiks 03-07-2017 19:54

Re: Html & Show_motd
 
Quote:

Originally Posted by Natsheh (Post 2501666)
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 (Post 2501666)
Yh ik = yeah iknow xd

Look, was it really that hard to type 5 more letters?

Lawnmoverman 03-08-2017 07:37

Re: Html & Show_motd
 
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.

Natsheh 03-08-2017 15:31

Re: Html & Show_motd
 
I solved it by choosing the page in the menu, btw i dont have a host.. That why i was asking.4 that

CryWolf 04-06-2017 13:26

Re: Html & Show_motd
 
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.


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

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