• 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!

Real Tibia Letters for Gesior ACC News

ragal

Member
Joined
Nov 29, 2007
Messages
735
Reaction score
19
Location
Germany - Berlin
Hello Otlanders!


I have new present for you :D
The Rl Tibia Letters!!

I have All (26) Alphabetics letters from Tibia.com ,
And i show you how to make it on your website news!.

bvbeb.jpg


Step 1 Download: Letters.rar

Unpack letters folder in : "Layouts/yourlayout/images/" -It Should be like This: "Layouts/yourlayout/images/letters"

Than u can make Set it in Your News like Gesior or whatever , you must do theese things:

For the Letter "A" :

Code:
<a<img src="http://serverip/layouts/tibiacom/letters/a.gif"</a> [b]Blablabla[/b]

With this way u can add all letters! ( A-Z )

u can also upload it on Imageshack.us or something and add in the news, HOW:

Code:
<a<img src="http://img518.imageshack.us/img518/3056/lettermarteli.gif"</a>[b]Blablabla[/b]

I Hope it helped you!

Credits 100% by me!!!

Rep++ ME!

 

Attachments

Why don't you make it automatic?

PHP:
$content = 'Hey this is my example content!';
$content = '<img src="http://otland.net/images/letters/'.$content[0].'.gif" />'.substr($content, 1);
 
Here is the automatic working one :)

PHP:
<?
$content = strtoupper('Hi my name is Paxton');
for ($i = 0; $i < strlen($content); ++$i)
{
	if($content[$i] == " ")
	echo "&nbsp;&nbsp;&nbsp;&nbsp;";
	else
	echo "<img src='http://static.tibia.com/images/global/letters/letter_martel_$content[$i].gif' />";
}
?>

In:
PHP:
$content = strtoupper('Hi my name is Paxton');

Write your sentence. :thumbup:
 
Here is the automatic working one :)

PHP:
<?
$content = strtoupper('Hi my name is Paxton');
for ($i = 0; $i < strlen($content); ++$i)
{
	if($content[$i] == " ")
	echo "&nbsp;&nbsp;&nbsp;&nbsp;";
	else
	echo "<img src='http://static.tibia.com/images/global/letters/letter_martel_$content[$i].gif' />";
}
?>

In:
PHP:
$content = strtoupper('Hi my name is Paxton');

Write your sentence. :thumbup:

Thanks for THIS!! :))
 
Oh, ehm, while using an automatic system for making the letters I would strongly advise you not to use any none alphabetical characters as the first letter to prevent any issues with it.
 
Here is the automatic working one :)

PHP:
<?
$content = strtoupper('Hi my name is Paxton');
for ($i = 0; $i < strlen($content); ++$i)
{
	if($content[$i] == " ")
	echo "&nbsp;&nbsp;&nbsp;&nbsp;";
	else
	echo "<img src='http://static.tibia.com/images/global/letters/letter_martel_$content[$i].gif' />";
}
?>

In:
PHP:
$content = strtoupper('Hi my name is Paxton');

Write your sentence. :thumbup:

How to add it to site 'News'?? Sorry i'm newbie :S
 
I think most Gesior's do it by itself. I know mine does it by itself when I type something up.
 
Here is the automatic working one :)

PHP:
<?
$content = strtoupper('Hi my name is Paxton');
for ($i = 0; $i < strlen($content); ++$i)
{
	if($content[$i] == " ")
	echo "&nbsp;&nbsp;&nbsp;&nbsp;";
	else
	echo "<img src='http://static.tibia.com/images/global/letters/letter_martel_$content[$i].gif' />";
}
?>

In:
PHP:
$content = strtoupper('Hi my name is Paxton');

Write your sentence. :thumbup:

Your code sucks a bit... try this:
PHP:
<?php
function tibiaLetter( $string )
{
	return '<img src="http://static.tibia.com/images/global/letters/letter_martel_' . strtoupper( $string[0] ) . '.gif" />' . substr( $string, 1 );
}
echo tibiaLetter( 'hello world!' );
?>
 
Your code sucks a bit... try this:
PHP:
<?php
function tibiaLetter( $string )
{
	return '<img src="http://static.tibia.com/images/global/letters/letter_martel_' . strtoupper( $string[0] ) . '.gif" />' . substr( $string, 1 );
}
echo tibiaLetter( 'hello world!' );
?>

Lol man, my code does different thing, try first then say it suck. <_<
 
Back
Top