• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to create a new page?

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
Hello, this can look like a silly question, and you might think I'm lazy and at the first difficulty I'm creating an topic here.

But that's not true, I've been trying hard to set up a download page to my otserver, and I had no success until now...

I can't, for examlpe, put an image on the page, I've tried inumerals paths, but none seems to work, here's one example:

<img src="/index.php/templates/worgen/images/doom/doom_dia.jpg/" alt="Doom PIC Dia" width="613" height="486" /><br />
</p>

And I would like to put also, some downloads, as my client etc...

What code should I use to, for example, set an image, or link a file?

Thanks a lot, the website is awesome.
 
Check out WEBSITE const, and url function.

Also, why do you put index.php as well?

Hello Paxton, I've put this because I've been studying the code os other pages, as like Frags page, who has this code:

<a href="'.WEBSITE.'/index.php/character/view/'.$player['name'].'">

So I thought it might work if I but something like this for the image, but didn't work ^^

About the website const and url function, where can I find this informations?

Thanks, REP ++

-- Edit --

I have found url_helper.php and constatns.php

but.. that's not exactly what I was looking for, I just want the code to link a image or a file, you know?
 
Last edited:
If your looking for an HTML tag to display an image:
PHP:
<a href="WebLinkToGoToWhenImageIsClicked" target="_blank"><img src="DirectLinkToImage" border="0" alt="Image description here witch will be seen when cursor stops on image"></a>

If you want to create a page,
Enter admin panel (See how here: http://otland.net/f479/website-installing-modern-aac-uniform-server-91951/#post934914 )
Click on pages
Click on create page
Use HTML tags and insert PHP codes as you wish.

Useful html codes:
Image (Mentioned at the start of this post)
<b> Bold </b>
<br> (means next line)

So

My<br>name<br>is<br>Stefan.

The outcome would be this:
My
name
is
Stefan.
 
While linking to an image, do not use index.php. If the path is correct and you still see no image, try adding the '.WEBSITE.' part at the very beginning of src="".
Code:
<img src="/path/to/your/image" alt="If you see this text, your image path is not correct" />
 
@Znote XHTML is way cooler (and way more modern, HTML 4 is so 1999...)!
Also note that singel elements should be terminated with "/>" etc <img src="" />, <br />
 
Back
Top Bottom