Admin Panel and Message Error,Adding Troops

Status
Not open for further replies.
Joined
Aug 11, 2011
Messages
4
Reaction score
2
Hi

I don't now anything about installing travian clone but finally i succeeded a few minutes ago

I created a new user and made it admin (by changing 2 to 9 in db)

But i can't use admin panel, i get this error

Code:
Parse error: syntax error, unexpected T_STRING in /data/multiserv/users/648566/projects/1581647/www/Admin/admin.php on line 2

And i clicked the message which game sent you first and i got this error

Code:
Parse error: syntax error, unexpected T_VARIABLE in /data/multiserv/users/648566/projects/1581647/www/GameEngine/BBCode.php on line 2

And finally can you tell me how can i add troops to a village

I'm new at forum and i did not want to open new threads for every problem if it is against the rules i will seperate next time
 
Seems like -> ; this is missing on both files. Copy me first 5 lines of both files.
 
GameEngine/BBcode.php line 1 and 2 should be:

<?php
#


if not, change it to that

Admin/admin.php - What's onn line 1 and 2?
 
In admin.php
Code:
<?php###################################################################################              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #### --------------------------------------------------------------------------- ####  Filename       admin.php                                                   ####  Developed by:  Dzoki                                                       ####  License:       TravianX Project                                            ####  Copyright:     TravianX (c) 2010-2011. All rights reserved.                ####                                                                             ###################################################################################
session_start();
include("../GameEngine/Database.php");
include("../GameEngine/Admin/database.php");  
?>                                             
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

In BBCode.php
Code:
<?php###################################################################################              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #### --------------------------------------------------------------------------- ####  Filename       BBCode.php                                                  ####  Developed by:  Dzoki                                                       ####  License:       TravianX Project                                            ####  Copyright:     TravianX (c) 2010-2011. All rights reserved.                ####                                                                             ###################################################################################
$pattern= array();
$pattern[0] = "/\[b\](.*?)\[\/b\]/is";
$pattern[1] = "/\[i\](.*?)\[\/i\]/is";
$pattern[2] = "/\[u\](.*?)\[\/u\]/is";
$pattern[3] = "/\[tid1\]/";
$pattern[4] = "/\[tid2\]/";
$pattern[5] = "/\[tid3\]/";

I can't decide how much i should copy sorry
 
In admin.php
Code:
<?php###################################################################################              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #### --------------------------------------------------------------------------- ####  Filename       admin.php                                                   ####  Developed by:  Dzoki                                                       ####  License:       TravianX Project                                            ####  Copyright:     TravianX (c) 2010-2011. All rights reserved.                ####                                                                             ###################################################################################
session_start();
include("../GameEngine/Database.php");
include("../GameEngine/Admin/database.php");  
?>                                             
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

In BBCode.php
Code:
<?php###################################################################################              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #### --------------------------------------------------------------------------- ####  Filename       BBCode.php                                                  ####  Developed by:  Dzoki                                                       ####  License:       TravianX Project                                            ####  Copyright:     TravianX (c) 2010-2011. All rights reserved.                ####                                                                             ###################################################################################
$pattern= array();
$pattern[0] = "/\[b\](.*?)\[\/b\]/is";
$pattern[1] = "/\[i\](.*?)\[\/i\]/is";
$pattern[2] = "/\[u\](.*?)\[\/u\]/is";
$pattern[3] = "/\[tid1\]/";
$pattern[4] = "/\[tid2\]/";
$pattern[5] = "/\[tid3\]/";

I can't decide how much i should copy sorry


After the <?php you must add a return, so that it looks like that:

<?php
######## and so on

in your case it's like that

<?php######## and so on.

change it and error will be gone ;)
 
thanks it fixed, in admin panel config.tpl has error but the same error so i can fix it tomorrow

How can i add troops or edit villages' buildings ??
 
thanks it fixed, in admin panel config.tpl has error but the same error so i can fix it tomorrow

How can i add troops or edit villages' buildings ??

You cant yet. I made mod for troops, resources etc. I'll make mod that you can edit building levels too;)
 
dzoki if u will do the mod for troops why you don't do the change nick for users in admin panel too? users lower then 250 pop can tell to MH/admin to change their nick
 
dzoki if u will do the mod for troops why you don't do the change nick for users in admin panel too? users lower then 250 pop can tell to MH/admin to change their nick

Will make it today:)
 
How do i get the admin panel? I'm sorry if it's a very stupid question, but i'm new to make servers.
I've heard something about change "2" to "9" but i dont know what it means. Can anyone help me? please
 
Hi

I don't now anything about installing travian clone but finally i succeeded a few minutes ago

I created a new user and made it admin (by changing 2 to 9 in db)

But i can't use admin panel, i get this error

Code:
Parse error: syntax error, unexpected T_STRING in /data/multiserv/users/648566/projects/1581647/www/Admin/admin.php on line 2

And i clicked the message which game sent you first and i got this error

Code:
Parse error: syntax error, unexpected T_VARIABLE in /data/multiserv/users/648566/projects/1581647/www/GameEngine/BBCode.php on line 2

And finally can you tell me how can i add troops to a village

I'm new at forum and i did not want to open new threads for every problem if it is against the rules i will seperate next time

Hello!

I just fix Admin files in GameEngine,Templates and Admin floder.

Just download here:


Replace all and doing in public host all.

By.
 
Hi

I don't now anything about installing travian clone but finally i succeeded a few minutes ago

I created a new user and made it admin (by changing 2 to 9 in db)

But i can't use admin panel, i get this error

Code:
Parse error: syntax error, unexpected T_STRING in /data/multiserv/users/648566/projects/1581647/www/Admin/admin.php on line 2

And i clicked the message which game sent you first and i got this error

Code:
Parse error: syntax error, unexpected T_VARIABLE in /data/multiserv/users/648566/projects/1581647/www/GameEngine/BBCode.php on line 2

And finally can you tell me how can i add troops to a village

I'm new at forum and i did not want to open new threads for every problem if it is against the rules i will seperate next time



Hey i had this error too but its problem of your script that you uploaded, In ver 4.8.6 when you upload files (I don't know its problem of host or script), Suddenly after upload scripts will be manipulate and they change their form (The spaces betwean codes will be remove and not for all files), E.g :

Main code of a file is this :
PHP:
<?php
###################

After upload it changes to :
PHP:
<?php###################

And it gave error on line 1

I don't know whats the problem ?
 
Status
Not open for further replies.
Back