|
You last visited: Today at 23:36
Advertisement
iMt2 Homepage Script [ALPHA]
Discussion on iMt2 Homepage Script [ALPHA] within the Metin2 PServer Designs, Websites & Scripts forum part of the Metin2 Private Server category.
04/19/2012, 17:17
|
#1
|
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
|
iMt2 Homepage Script [ALPHA]
I won't be updating to beta anytime soon - got too much stuff to do and not enough free time to work on this atm
Die Beta Version wird höchstwahrscheinlich NICHT kompatibel mit der Alpha werden.
Das heißt, ihr müsst alles neu Konfigurieren!
Dafür werden aber das Admin/Teamler Panel, automatische Updates etc kommen
English version:
The beta version of this script is most likely NOT going to be compatible with the alpha one!
That means all configs are going to be lost due to internal changes.
Don't be sad, your going to get an admin/staff panel, automatic updates and more instead!
I'm glad to be able to present you the..
This is my homepage script i am working on.
It is still in Alpha so please don't look directly at the bugs and missing features!
- everything is based on plugins
- easyly editable configuration
- easyly editable language file
- It includes default plugin like:
- WBB 3 News
- UserCP
- Statistics
- Online Status
- Ranking
- Itemshop
- Paysafecard Donation-System
- Ajax usage where appropriate
- Nice default design
- and thats just the alpha (there is more to come!)
The design is a modified version of the iMetin design (which i own! not imetin pl).
It has a nice xhtml structure and you should be able to modify it by just modifying the images and style sheets. You don't have to go through millions of files to look for the last bit of things you want to change.

(its pretty - isnt it?)
Step 1:
 the newest master branch as zip or tar.gz.
You could clone the whole branch too, if you have git on your server:
Code:
git clone git://github.com/imermcmaps/iMt2-HP-Script.git
Step 2:
Look through the example.config.inc.php:
Code:
<?php
/*
* This belongs to iMers iMt2-HP-Script
* https://github.com/imermcmaps/iMt2-HP-Script
* iMer.cc 2012
*/
// Config array
$config = array(
"db" => array(
"game" => array( //Yes you can add multiple database connection, it's not pretty though..
"host" => "localhost", // IP/Host of the MySQL Server
"user" => "root", // Username
"pass" => "", // Password
"db" => array(
"homepage" => "homepage",
"account" => "account",
"common" => "common",
"player" => "player",
"log" => "log",
"board" => "board",
)
/*
* Just on a sidenote:
* all the default plugins which use the "homepage" database support external connections
* Just call the connection "hp" and it will prefer this over the game one
**/
)
),
"settings" => array(
"title" => "ExampleMt2",
"name" => "ExampleMt2",
"baseurl" => "http://examplemt2.com",
"coin" => "cash", // Coin column in account table
"email_header" => 'From: Noreply < >' . "\r\n", // Mail headers for sending mails
),
"path" => array(
"includes" => "inc/", // General Path for includes
"classes" => "classes/", // Path for classes (include path.classes path)
"plugins" => "plugins/", // Path for plugins (include path.plugins path)
),
);
// Navi
$navilinks = array(
"header" =>array(
array(
"url" => "?p=home",
"text" => "Home",
"page" => "home",
),
array( // Yay for variable header MESS! :(
"url" => ((isset($_SESSION["user"]) && !empty($_SESSION["user"]))?"?p=settings":"?p=register"),
"text" => ((isset($_SESSION["user"]) && !empty($_SESSION["user"]))?"Settings":"Register"),
"page" => ((isset($_SESSION["user"]) && !empty($_SESSION["user"]))?"settings":"register"),
),
array(
"url" => "?p=download",
"text" => "Download",
"page" => "download",
),
array(
"url" => "?p=ranking",
"text" => "Ranking",
"page" => "ranking",
),
array(
"url" => "http://board.examplemt2.org",
"text" => "Forum",
"page" => "",
),
array(
"url" => "?p=itemshop",
"text" => "Itemshop",
"page" => "itemshop",
),
array(
"url" => "ts3server://energymt2.org",
"text" => "Teamspeak",
"page" => "",
),
),
"footer" => array(
)
);
// Pages
$pages = array(
// v this is $_GET["p"]
"home" => array(
"title" => false, // Overwrite title
"plugins" => array("statistics","online_status","userpanel","sbranking","wbb_news") // List all plugins you want to load
),
"register" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","register")
),
"ranking" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","ranking")
),
"download" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","text")
),
"settings" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","settings")
),
"itemshop" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","itemshop")
),
"donate" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","donate_psc")
)
);
// Ajax
$ajax = array(
"dologin" => "userpanel/dologin.ajax.php",
"logout" => "userpanel/logout.php",
"regcheck" => "register/regcheck.ajax.php",
"ranking" => "ranking/ranking.ajax.php",
"settings" => "settings/settings.ajax.php",
"buy" => "itemshop/buy.ajax.php",
);
/* URL Map
* Please use relative links if possible
* I'm only needing relative links for the donate link in the ingame itemshop at the moment - but that could change in the future
* ../DONATELINK is what i'm doing. :)
*/
$urlmap = array(
"forgot_password" => "?p=forgot", // URLs for Stuff - you dont have to search in every config to change them ..
"donate" => "?p=donate",
"support" => "http://support.examplemt2.org",
"settings" => "?p=settings",
"itemshop" => "?p=itemshop",
"char" => "?p=char",
"register" => "?p=register",
"logout" => "ajax.php?p=logout",
"ranking" => "?p=ranking",
);
?>
This config is just an example and it will be out of date pretty soon.
Change the settings in there so you like it.
The last step in the main folder would be to rename the lang_en.inc.php or lang_de.inc.php to lang.inc.php and to modify it.
Step 3:
Look through the sub dirs under inc/plugins/.
In each folder should be a config.inc.php.
These are plugin configs and you are required to change specific settings to use certain features.
Step 4:
Get all sql's from 
and execute them in the homepage database (you have to create that one).
Step 5:
If you have a lot of users (large player database) you probably need to turn of on-the-fly cache building for the ranking.
It takes a long time to complete and just annoys the user (long loading times).
Open the files inc/plugins/ranking/config.inc.php and inc/plugins/sbranking/config.inc.php and change
"buildcache" => true,
to
"buildcache" => false,
You have to set up a cronjob that executes the cache building script
(If you dont know how to set up a cron job use google -- crontab)
the cronjob should execute the following command every 4 hours (or whenever you want your ranking cache rebuilt)
cd /path/to/website/inc/plugins/ranking/ && php buildcache.cl.php
where "/path/to/website/" is the path to the main website dir (duh.)
Step6:
You have 3 different url formats to choose from:


The last one requires mod_rewrite
The example config is using the last method - if you don't have access to mod_rewrite you have to change the urls in the $navi and $urlmap array.
Everything else is done automatically
Everything should work now!
If you like what i do and you want to support me please consider to  Comming soon:- Proper error catching/reporting
- GM/AdminCP
- Automatic updates
- Player Map (Who is Where Online)
- Statistic Graphs
- and even more
- Wishes and suggestion are always welcome
Credits:
 - design script
If you need a high quallity design - he is the man you are looking for!
Sirius - design images and modification of the design script
Myself - all the PHP Code and other stuff thats left
iMer
PS: You should read the LICENSE file - you dont want any problems 
Hallo, Hallo, Hallo
Ich habe mich dazu entschieden auch hier mal wieder aufzutauchen und meine 3k Posts wieder zu holen.
Und was wäre besser als als Tarnung den Release der Alpha meines Homepagescriptes zu verwenden?
Genau! Kekse & Kuchen
Aber die sind leider aus und deswegen gibt es jetzt mein Hompage Script:
Ich präsentiere euch das...
Ja ihr lest richtig:
ein Homepage Script!
Und nun wird sich jeder fragen: wieso, was kann das?
Und das werde ich euch sofort vortragen. Und zwar in den...
- Pluginsystem
- Einfach anzupassende Konfiguration
- Einfach anzupassende Sprachdateien
- Standard Plugins, unter anderem:
- WBB 3 News
- UserCP
- Statistiken
- Online Status
- Ranking
- Itemshop
- Spenden-System
- Benutzung von Ajax
- Gutes Standarddesign
- Leicht anpassbar
- und dies ist nur die Alpha.. (Tipp: es kommt mehr)
Das Design ist ein angepasstes iMetin Design.
Es hat eine gute Grundstruktur und man sollte so ziemlich alle Wünsche durch das andern der Stylesheets und Bilddateien befriedigen können.
Man muss sich nicht durch die zich Millionen Dateien kämpfen um irgendwas zu finden.
Ich will euch nun nicht weiter auf die Folter spannen und zeige euch nun das Design selbst.

(es ist schön - nicht?)
Schritt 1:
 euch den neusten master-Branch wahlweise als zip oder tar.gz oder klont ihn, falls ihr git auf eurem Server/PC installiert habt per:
Code:
git clone git://github.com/imermcmaps/iMt2-HP-Script.git
Schritt 2:
Guckt euch die example.config.inc.php an:
Code:
<?php
/*
* This belongs to iMers iMt2-HP-Script
* https://github.com/imermcmaps/iMt2-HP-Script
* iMer.cc 2012
*/
// Config array
$config = array(
"db" => array(
"game" => array( //Yes you can add multiple database connection, it's not pretty though..
"host" => "localhost", // IP/Host of the MySQL Server
"user" => "root", // Username
"pass" => "", // Password
"db" => array(
"homepage" => "homepage",
"account" => "account",
"common" => "common",
"player" => "player",
"log" => "log",
"board" => "board",
)
/*
* Just on a sidenote:
* all the default plugins which use the "homepage" database support external connections
* Just call the connection "hp" and it will prefer this over the game one
**/
)
),
"settings" => array(
"title" => "ExampleMt2",
"name" => "ExampleMt2",
"baseurl" => "http://examplemt2.com",
"coin" => "cash", // Coin column in account table
"email_header" => 'From: Noreply < >' . "\r\n", // Mail headers for sending mails
),
"path" => array(
"includes" => "inc/", // General Path for includes
"classes" => "classes/", // Path for classes (include path.classes path)
"plugins" => "plugins/", // Path for plugins (include path.plugins path)
),
);
// Navi
$navilinks = array(
"header" =>array(
array(
"url" => "?p=home",
"text" => "Home",
"page" => "home",
),
array( // Yay for variable header MESS! :(
"url" => ((isset($_SESSION["user"]) && !empty($_SESSION["user"]))?"?p=settings":"?p=register"),
"text" => ((isset($_SESSION["user"]) && !empty($_SESSION["user"]))?"Settings":"Register"),
"page" => ((isset($_SESSION["user"]) && !empty($_SESSION["user"]))?"settings":"register"),
),
array(
"url" => "?p=download",
"text" => "Download",
"page" => "download",
),
array(
"url" => "?p=ranking",
"text" => "Ranking",
"page" => "ranking",
),
array(
"url" => "http://board.examplemt2.org",
"text" => "Forum",
"page" => "",
),
array(
"url" => "?p=itemshop",
"text" => "Itemshop",
"page" => "itemshop",
),
array(
"url" => "ts3server://energymt2.org",
"text" => "Teamspeak",
"page" => "",
),
),
"footer" => array(
)
);
// Pages
$pages = array(
// v this is $_GET["p"]
"home" => array(
"title" => false, // Overwrite title
"plugins" => array("statistics","online_status","userpanel","sbranking","wbb_news") // List all plugins you want to load
),
"register" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","register")
),
"ranking" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","ranking")
),
"download" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","text")
),
"settings" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","settings")
),
"itemshop" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","itemshop")
),
"donate" => array(
"title" => false,
"plugins" => array("statistics","online_status","userpanel","sbranking","donate_psc")
)
);
// Ajax
$ajax = array(
"dologin" => "userpanel/dologin.ajax.php",
"logout" => "userpanel/logout.php",
"regcheck" => "register/regcheck.ajax.php",
"ranking" => "ranking/ranking.ajax.php",
"settings" => "settings/settings.ajax.php",
"buy" => "itemshop/buy.ajax.php",
);
/* URL Map
* Please use relative links if possible
* I'm only needing relative links for the donate link in the ingame itemshop at the moment - but that could change in the future
* ../DONATELINK is what i'm doing. :)
*/
$urlmap = array(
"forgot_password" => "?p=forgot", // URLs for Stuff - you dont have to search in every config to change them ..
"donate" => "?p=donate",
"support" => "http://support.examplemt2.org",
"settings" => "?p=settings",
"itemshop" => "?p=itemshop",
"char" => "?p=char",
"register" => "?p=register",
"logout" => "ajax.php?p=logout",
"ranking" => "?p=ranking",
);
?>
Das ganze ist nur ein Beispiel wie die aussehen sollte - sie wird höchstwahrscheinlich schnell out-of-date sein.
Passt dort die Einstellungen an (sie sind in Englisch kommentiert) und ändert evtl die einzelnen Plugins der Seiten falls nötig.
Benennt sie noch zu "config.inc.php" um.
Der letzte Schritt ist hier eine Sprachdatei auszuwählen (aktuelle Auswahl: lang_de.inc.php, lang_en.inc.php).
Einfach in lang.inc.php umbenennen.
Schritt 3:
Geht in den inc/plugins Ordner und guckt euch die "config.inc.php"-Dateien in den Unterordnern an - auch dort sind englische Kommentare vorhanden.
Dort könnt ihr die Einstellungen der einzelnen Plugins anpassen (müsst ihr auch falls ihr bestimmte Features nutzen wollt)
Schritt 4:
Nun schnappt ihr euch alle sqls von 
Und batcht diese in eure Homepage Datenbank (müsst ihr noch erstellen) ein.
Schritt 5:
Falls ihr viele Spieler habt (Sprich eine große player Datenbank) würde ich euch raten das on-the-fly Cache erstellen auszustellen.
Es kann nämlich zu sehr langen Ladezeiten führen!
Das ganze tut ihr indem ihr in den Dateien:
inc/plugins/ranking/config.inc.php und inc/plugins/sbranking/config.inc.php
"buildcache" => true,
zu
"buildcache" => false,
ändert.
Zusätzlich dazu müsst ihr noch einen cronjob einrichten, der den Cache erstellt.
(Wie man einen Cronjob erstellt findet man via Google -- Crontab)
Dieser sollte alle 4 Stunden (oder halt so oft wie das Ranking aktualisiert werden soll) folgenden Befehl ausführen:
cd /path/to/website/inc/plugins/ranking/ && php buildcache.cl.php
"/path/to/website/" solltet ihr in den absoloten Pfad zur Website ändern.
Schritt 6:
Du kannst zwischen 3 verschiedenen URL Formaten wählen:


Die letzte setzt mod_rewrite vorraus, die anderen sollten ohne irgendetwas funktionieren.
In der Beispielkonfiguration wird die letzte Methode benutzt.
Falls du keinen Zugriff auf mod_rewrite hast, dann musst du in der Konfiguration das $navi und $urlmap array anpassen.
Dort wählst du einfach eine Form und trägst sie ein.
Der Rest passiert automatisch.
Nun sollte alles funktionieren und ihr könnt schonmal ein bischen rumprobieren
Falls euch das ganze gefällt, denkt doch mal darüber nach zu  Geplante Features:- Vernünftiges Error Catching/Reporting
- GM/AdminCP
- Automatische Updates
- Player Map (Wer, Wo Online)
- Statistik Graphen (Wann waren wie viele Spieler online etc.)
- und mehr...
- Wünsche und Anregungen sind gerne gesehen solang sie konstruktiv sind.
Credits:
 - das Design Script
Wenn du ein hochquallitatives Design braucht, dann ist er der richtige Mann!
Sirius - Design Grafiken und Anpassung des Scripts
Ich - PHP Code & alles was ansonsten anfällt
iMer
PS: Ihr solltet euch auch die LICENSE Datei angucken - ihr wollt ja keine Probleme kriegen
|
|
|
04/19/2012, 17:20
|
#2
|
elite*gold: LOCKED
Join Date: Mar 2012
Posts: 7,874
Received Thanks: 801
|
Nice Nice 
Find ich schick^^
|
|
|
04/19/2012, 17:21
|
#3
|
elite*gold: 0
Join Date: Jan 2011
Posts: 1,297
Received Thanks: 1,295
|
Nich schlecht
|
|
|
04/19/2012, 17:21
|
#4
|
elite*gold: 0
Join Date: Apr 2012
Posts: 225
Received Thanks: 43
|
Sieht gut aus
|
|
|
04/19/2012, 17:24
|
#5
|
elite*gold: 0
Join Date: Feb 2012
Posts: 454
Received Thanks: 220
|
Schick Schick :P besonders das Plug-In System gefällt mir ^^
|
|
|
04/19/2012, 17:29
|
#6
|
elite*gold: 87
Join Date: Mar 2012
Posts: 1,545
Received Thanks: 600
|
Sehr Nice, werde sie vllt. mal umdesign.
|
|
|
04/19/2012, 17:33
|
#7
|
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
|
Hadu gut gemacht. Ist noch unvollständig aber haut hin.
|
|
|
04/19/2012, 17:57
|
#8
|
elite*gold: 0
Join Date: Jan 2012
Posts: 7,868
Received Thanks: 7,711
|
Einfach nur genial
Danke
|
|
|
04/19/2012, 18:01
|
#9
|
elite*gold: 2
Join Date: Mar 2011
Posts: 445
Received Thanks: 94
|
Das besste was ich hier seit langem mal wieder gesehen habe gute arbeit wie immer !!!!
|
|
|
04/19/2012, 18:12
|
#10
|
elite*gold: 31
Join Date: Oct 2011
Posts: 2,276
Received Thanks: 2,029
|
Super! Weiß garnicht , was ich sagen soll.. einfach nur Danke..
|
|
|
04/19/2012, 18:26
|
#11
|
elite*gold: 0
Join Date: May 2011
Posts: 600
Received Thanks: 765
|
very nicee...thx bro,finaly english hompage
|
|
|
04/19/2012, 19:04
|
#12
|
elite*gold: 1700
Join Date: Jul 2008
Posts: 2,939
Received Thanks: 1,114
|
Gut, jetzt bräuchtest du nur ein gutes Design
|
|
|
04/19/2012, 19:07
|
#13
|
elite*gold: 0
Join Date: Dec 2011
Posts: 44
Received Thanks: 22
|
Seeehr schööön :>
|
|
|
04/19/2012, 19:50
|
#14
|
elite*gold: 0
Join Date: Oct 2011
Posts: 3,360
Received Thanks: 826
|
Sieht nice aus Danke, freue mich auf updates.
|
|
|
04/19/2012, 20:06
|
#15
|
elite*gold: 7
Join Date: Apr 2012
Posts: 1,935
Received Thanks: 621
|
Nicht ganz mein Ding aber gut gemacht, Danke
|
|
|
Similar Threads
|
Suche Homepage mit hen script Zahle für gute Homepage!
03/09/2011 - Metin2 Private Server - 6 Replies
Wie in der überschrift zu lesen suche ich eine Homepage für einen Metin2 P-Server!
Ich würde sogar etwas für die Homepage Zahlen!
Und ich kann euch jetzt schon sagen Geld ist genug da!
Wer eine gute Homepage hat und die Verkaufen möchte pn me!
|
Problem 5 imt2
11/18/2008 - Metin2 Private Server - 1 Replies
Hi ich habe ein Problem mit dem Server 5it2 und zwar ich komm nicht mehr mit meinem sura ins spiel ich komm bis zur charauswahl und wenn das dann fertig geladen hat bekomm ich immer kick was kann ich dagegen tun?
|
All times are GMT +1. The time now is 23:36.
|
|