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

[PHP] Spacing?

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Solutions
2
Reaction score
115
Hey OtLand, I have been coding PHP very slowly but surely because I have been unable to find help.

Is there another way to do this? ---> Method Now: Copy/Paste/Edit
24pyzqu.jpg


Time is killing me at the moment. It takes me one, maybe two hours to make 1 php file depending on the length of the text. <_<
 
Last edited:
Uh, there's something called clips/snippets. A clip/snippet is a text template where as you can either click a button to insert them, or by typing a word and then pressing e.g. the tab button on your keyboard to execute the template content. In some cases, you may even add placeholders within your templates so you can easily tab your way through your templates (e.g. one placeholder for the title, another for the content and one for the author).

If that's what you meant, that is...
 
I didn't know if there was just a way to tab a whole PHP file's content instead of using &nbsp; every single time. It gets frustrating for me because I am already bad at coding PHP, but then I always have that problem with the text never aligning up properly and it doubles my time spent trying to make one file.

Thanks for the post though Chris, maybe I can find something or someone on the web to help me.
 
You can tab the content within the editor by pressing the tab key. If you wish to tab the content at the website you would have to use HTML/CSS.
HTML:
<div style="float: left; width: 80px;"></div>
<div style="float: left;">Your content here</div>
<div style="clear: both;"></div>
Change the value of width: 80px; from 80px to the amount of empty pixels you wish to have in front of all your text.
Change the value of 'Your content here' to your content.

You do not have to use several of these, you might just as well use just one and separate your lines by hitting <br /> in between them.
 
on a side note, ctrl+d will duplicate your current line. but i don't think that'll be needed anymore.
 
What I want is space as in the following picture:

a40x9v.jpg


I want what's on the left, currently I have what is on the right.

The spacing between all of the text is ALSO completely wrong...
 
Last edited:
Tibia - Free Multiplayer Online Role Playing Game - Game Guides
$main_content would be:
HTML:
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR>

<TD><IMG SRC="http://static.tibia.com/images/global/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD>
<TD>

Please follow the security hints carefully to avoid losing access to your Tibia account and to protect it from hacking attempts. This page also offers help if you have already lost your account to a hacker.<BR><BR><BR>


<H3>Security Hints</H3>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Do not give your account data to anybody!</B><BR>
People pretending to be members of the CipSoft Team might contact you and ask for your password, your account name or your recovery key. They might tell you that they have to fix an error, or that they want to give you free items or premium time. This is nonsense. Please always keep in mind that members of the CipSoft Team will never ask you for your account name or your password. Never give away your account name, your password or your recovery key to other people, not even to the CipSoft Team. Be also very careful about what you are saying in chats, emails or messaging services such as MSN or ICQ!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>

<B>Do not enter your account data on any website except for www.tibia.com!</B><BR>
There are websites which claim to do surveys, promise you free items or offer cheat tools etc. You are usually asked to enter your password there, but the only goal of the website is to steal your account. Also, watch out for websites that fake the official Tibia website. Only the address www.tibia.com will bring you to the official website of Tibia!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Memorise your password and account name well!</B><BR>
Never store your account data on your computer. Also, delete any emails containing account data. If somebody gets access to your computer or email account, he must not find your password, account name or recovery key there. If you have problems to memorise your account data, note them on a piece of paper and keep it at a safe place. Make sure that nobody can find it, not even your friends!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Use secure passwords!</B><BR>
Your password should contain a mix of upper and lower case letters, numbers and special characters. Never choose your account name as your password and do not use common words because hackers can guess them easily. The same is true for passwords that refer to your person, e.g. the name of your pet, or your date of birth. A good strategy to find a secure password for example is to think of a sentence and pick the first letters of every word. The sentence will help you to remember your password at all times, and nobody will be able to guess it. Finally, make sure that you do not use the same password for different services. It is important that you use different passwords for your Tibia account and your email service!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Use secure account names!</B><BR>
Your account name should contain a mix of letters and numbers. Never choose your password or character name as your account name. Also do not use common words because hackers can guess them easily. The same is true for account names that refer to your person, e.g. your real name or the name of your pet.<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Watch out for suspicious files that can be used to hack your computer!</B><BR>
Some people are distributing files that contain spy software such as trojan horses or keyloggers. Dangerous software like that is frequently spread through websites, emails or messaging services such as MSN or ICQ. Carefully examine any link before clicking on it. Any email attachments and downloads should be handled with caution. Most of all, cheat tools and clients that have not been released by CipSoft are often designed to hack your Tibia account!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Be aware of phishing emails!</B><BR>
As it is possible to fake the sender of an email, it can happen that you receive an email that has Tibia or CipSoft as sender which was not sent by us. Such emails usually contain links or attachments and are designed in a way to look like an official email from us. Do not simply click on links in such emails. To make sure that you are entering the official website, we strongly recommend you manually type www.tibia.com. Also, please note that we will never send you emails with attachments, so do never open them!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Update the software of your computer regularly!</B><BR>
Old versions of your operating system or other software frequently contains security holes that have been removed in newer versions. For example, a hacker can already spy out data from your computer if you visit a website with an old browser. Ideally, all programs on your computer should be updated to the latest available version. Most importantly, update your browser and your operating system regularly to ensure the best possible protection of your computer. Remember many programs will automatically notify you if there are available updates.<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Protect your computer using up-to-date security programs!</B><BR>
We recommend you use anti-virus programs as well as a firewall to prevent unwanted intrusions into your computer system. Make sure that you update your firewall regularly and your anti-virus program at least once a week.<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Do not play Tibia in public networks!</B><BR>
If you play Tibia on a computer to which many people have access, you can never be sure if this computer or the network it is connected to are safe. There may already be trojan horses or keyloggers installed on the computer by other people. Also, the data you send through public networks such as those found in schools, libraries or internet cafes can easily be recorded by hackers. Keep in mind to close your character list after you have logged out of the game and want to leave the computer. Otherwise, it is possible that another user logs in. Therefore avoid playing in public networks!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Assign your Tibia account to your own correct email address!</B><BR>
The assigned email address is the key to your Tibia account. Make sure you always have access to this email account. Use your email account regularly because many email providers delete inactive email accounts. Do not create an extra email account for your Tibia account. You might forget to use it regularly after some time. Adjust the assigned email address in time if your current email account is about to change. Also, handle your email account with the same caution as your Tibia account. A person with access to your email account might be able to hack your Tibia account!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Do not share or trade accounts!</B><BR>
There is a reason why account sharing and trading is forbidden under the Tibia Rules. Remember you are running a great risk if you give your account data to any other person. We know from experience that even close friends have stolen or ruined each other's accounts. Also, people who trade their accounts are tricked frequently by the original owner and lose their accounts. Please note that CipSoft will not provide support in case an account is lost due to account trading or sharing!<BR><BR>

<IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0 ALIGN=top>
<B>Register your account and enter correct registration data!</B><BR>

When registering your account you will receive your very own recovery key, which allows you to reassign your account to a new email address immediately. What's more, as a registered user you can request a new recovery key via postal mail for a small fee. Make sure to enter your correct and complete address and remember to keep your registration data up to date, as our letter may not reach you if you have not given your correct postal address.
Only registered players can use the full range of account recovery options, so make sure to register your account today if you have not done so yet. Keep in mind that you may lose your account if another person gets access to your account and registers it!<BR><BR><BR>

<H3>What to Do If Your Account Has Been Hacked</H3>

<B>Step 1: Remove the Security Problem!</B><BR>
The very first thing that you have to do is to find out how somebody got your account data. Remember that if you have not removed the security problem, the hacker can again get access to your account. Below you will find a list of questions that might help you to find the security problem and to remove it.<BR>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100%><TR><TD><IMG SRC="http://static.tibia.com/images/global/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><TABLE BORDER=0 CELLPADDING=1 CELLSPACING=2 WIDTH=100%>
<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Did you download or open any files that possibly contained spy software such as trojan horses or keyloggers? Remember there is a risk that your computer gets infected by spy software whenever you get emails containing attachments, visit websites or receive any kind of files, even if they have been sent by close friends. Therefore you should run one or two up-to-date anti-virus programs on your computer and remove any infected files. From our experience the majority of hacking cases are caused by spy software. For this reason you should be extremely careful whenever you receive any files no matter how trustworthy the source may be.</TD></TR>
<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Did you play Tibia on a computer other than your own? Always remember that you can never be sure that computers owned by other persons are not infected by viruses or keyloggers. Inform the owner of the other computer that there might be a security problem that should be removed. Avoid playing on other computers otherwise you risk losing your account again.</TD></TR>

<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Did you give your account data to somebody else or did you share your account with a friend? Is it possible that somebody found a piece of paper with your account data on it? Always remember not to give your account data to anybody, not even to people who claim to be members of the CipSoft Team. Often friends trick each other if the characters are quite valuable or they ruin characters carelessly. For this reason do not entrust your hard-earned characters to your friends. Make sure to store your account data in a safe place.</TD></TR>
<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Is it possible that your email account has been hacked and that somebody found an email containing your account name, password or recovery key? In this case secure your email account immediately with a new password or contact your email provider for assistance. You might also consider changing the email address your Tibia account is assigned to. Also, make yourself familiar with the security guidelines of your email provider to avoid further problems.</TD></TR>
<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Did you buy the account from somebody or did you trade it? Often the original holder of a Tibia account has registered it to himself and received the recovery key. By using this recovery key the holder can get his account back anytime by reassigning the account to a different email address. For this reason account trading is forbidden under the Tibia Rules, and CipSoft will not provide support for accounts that have been traded.</TD></TR>
<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Did you enter your account name, password or recovery key at any other website than www.tibia.com? Perhaps you have entered your account data on a website which you thought was www.tibia.com, but you did not get the expected result? Always remember to check the address carefully before you enter your account data on a website. Only if you see www.tibia.com in it, it is safe to enter your account data.</TD></TR>
<TR><TD VALIGN=top><IMG SRC="http://static.tibia.com/images/global/content/bullet.gif" WIDTH=12 HEIGHT=15 BORDER=0></TD><TD>
Are you sure your password was secure, and that it was not possible to guess? Always make sure to use a secure password for your Tibia account. Your password should contain a mix of upper and lower case letters, numbers and special characters.</TD></TR>
</TABLE></TD><TD><IMG SRC="http://static.tibia.com/images/global/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>
If none of these questions helps you to find the security problem, do not simply ignore it. There must be a security problem, otherwise you would not have been hacked. Remember you must remove the security problem before trying to get your account back. If you can exclude all other possible explanations, it is still possible that there is a keylogger on your computer that cannot be found by your anti-virus program. To be absolutely sure to get rid of all viruses and keyloggers, you need to format all hard disks and to re-install your computer system. Remember that not only your Tibia account is at stake if your computer is infected by spy software, but possibly also other confidential data such as bank account information.<BR><BR>

<B>Step 2: Get Your Account Back!</B><BR>
Once you have removed the security problem you can get back access to your account by using the <A HREF="https://secure.tibia.com/account/?subtopic=lostaccount">Lost Account Interface</A>. Of course, you need to prove that your claim to the account is justified. Enter the requested data and follow the instructions carefully. Please understand there is no way to get access to your lost account if the interface cannot help you.<BR><BR>

<B>Step 3: Follow the Security Hints!</B><BR>
Losing your account is the hard way to learn that you should be careful with your account data. Please make sure to follow the security hints that are stated above from now on. Otherwise you might make another mistake that a hacker could take advantage of.

</TD>
<TD><IMG SRC="http://static.tibia.com/images/global/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD>
</TR>
</TABLE>
Protip: they use blank.gif for spacing
 
you can use program like Microsoft Expression Web
it will help alot with html stuff :p
you can even import the whole tibia layout with it ;)
 
coding (if writing HTML code can be called that) in anything other than a standard text editor is unprofessional, but who cares?
 
Thanks Cykotitan. I could use more help with other sub menu's as well...can you get on MSN?
 
You can tab the content within the editor by pressing the tab key. If you wish to tab the content at the website you would have to use HTML/CSS.
HTML:
<div style="float: left; width: 80px;"></div>
<div style="float: left;">Your content here</div>
<div style="clear: both;"></div>
Change the value of width: 80px; from 80px to the amount of empty pixels you wish to have in front of all your text.
Change the value of 'Your content here' to your content.

You do not have to use several of these, you might just as well use just one and separate your lines by hitting <br /> in between them.

Why so complicated?
HTML:
<span style="margin-left:80px"> SOME TEXT</span>
 
Why so complicated?
HTML:
<span style="margin-left:80px"> SOME TEXT</span>
I posted that 7 AM in the morning, that's way to early for me to think straight hehe ;-) But yeah, your way is way more efficient and noticeably smaller.
 
Back
Top