TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 16, 2024, 06:27:07 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 103
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 40
  • Total: 40

Aion Status in webpage

Started by nitrotrike, September 30, 2009, 10:37:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nitrotrike

This may sound like a silly question... but is there ANY way I would be able to use this on a regular website template?

From what I have seen, it's the best looking status monitor out there!

I am pulling out what hair I have left trying to figure this out.

Please be as specific as you can!

Thanks!

Freddy

What do you mean by regular website template ?  Do you just mean a standalone web page ?

The code it is written in is PHP.  So as long as your host does PHP, which most do, you would be able to use it fine.  You would need to sort out where the images it uses are placed though and the whole code would need php tags around it

<?php

.....code here.....

?>

Let me know if you need further help.

nitrotrike

Thanks for the fast response. I will be the first to admit i know NOTHING about php, but did find many articles about how to do it, which was exactly what you instructed to do.

This is what the result is.. a garbled mess on the page... sorry about the dark color:




Gax

#3
Put the snippet in a PHP block, looks like you are using a script or html block. If you are trying to do something else, give us a link to your page to save us some time.

Freddy

Gax, this is outside of TP...

nitro, did you upload it to your server ?  You can't launch this kind of thing from a desktop machine.

Also did you put it inside the PHP tags like I said ?

nitrotrike

Freddy, yes, i did add the tags.

I added it to my page template code (i think that's what you meant?)

When you say 'upload it', I am unsure exactly what you mean. I also saved the code as 'status.php' in my root directory, and go to 'myurl.com/status.php', i see it, although not the proper size - why I don't know. I'm sure there is something REALLY simple I have overlooked:


Freddy

#6
Just put the output into a DIV container :

Just after the end of the style tag...

</style>
<div style="width:200px">
<table>';

and at the end after the final table tag:

echo '</table>
</div>';
?>

Adjust 'width' of the DIV until you are happy with it.

nitrotrike

The screenshot is taken from a direct url (myurl.com/status.php), not from my home page. The scrambled one (the previous screenshot displaying the code instead of the status window) is what I get my home page.

I want to display it just like the sample shown for the code.

Freddy

Is your home page an HTML file ?  Does it end with .html ?

nitrotrike

yes... let me guess, that's a bad thing...