torter
04-11-2008, 03:11 PM
custom pages mod for phpld2 by avukatlar.gen.tr with tiny_mce editor
you can test and download from **w.avukatlar.gen.tr/phpld2-new-custompages-mod
"sorry i havent enough rights to make links in this forum.so i ve shorted the link"
needs changes in
mysql database
.htaccess
tables.php
also we will create new files called sayfa.tpl and sayfa.php
we need to admin pages to create our custom pages,
i havent had enough time to modify phpld admin pages so i used another script to achive easyly.
Notice: my directory structure uses letters as parent directory. i modified htaccess to when is A,b,c.... redirect index.php else sayfa.php
1- TABLES.PHP
now lets edit tables.php in the includes dir and add the lines below, before "?>" in the tables.php
u can see my table.php in the zip.
Content visible to registered users only.2-MYSQL CHANGES:
Create table :
we will create a table structure called PHPLD_SAYFALAR.
for this you can use "phpld-sayfalar-mysql-dump" file in the zip file.
or try this:
Content visible to registered users only.
3- .HTACCESS
in this file insert the code below at the end of it
Content visible to registered users only.---------------------------------------------------------------------------
note:i use for directory "RewriteRule ^A/ index.php [NC]"
RewriteRule ^B/ index.php [NC]"
....
.....
RewriteRule ^Z/ index.php [NC]
4- SAYFA.PHP AND SAYFA.TPL
upload sayfa.php in root directory and sayfa.tpl into templates directory.
5- YONET DIRECTORY
this directory contains files to admin our custompages. i ve modified admin pages of another
php script called CMSTURK.
it contains TINYMICE advanced editor to edit your custom page content.
i havent modified login pages so u ve to upload it into a password protected directory in your webserver
to prevent unwanted logins.
before you upload it change the "db.php" according to your mysql settings...
This mod project is a result of ametur working and no warranty.
If anyone upgrades this mod i will be very happy.
i hope it will be useful for you.
you can test and download from **w.avukatlar.gen.tr/phpld2-new-custompages-mod
"sorry i havent enough rights to make links in this forum.so i ve shorted the link"
needs changes in
mysql database
.htaccess
tables.php
also we will create new files called sayfa.tpl and sayfa.php
we need to admin pages to create our custom pages,
i havent had enough time to modify phpld admin pages so i used another script to achive easyly.
Notice: my directory structure uses letters as parent directory. i modified htaccess to when is A,b,c.... redirect index.php else sayfa.php
1- TABLES.PHP
now lets edit tables.php in the includes dir and add the lines below, before "?>" in the tables.php
u can see my table.php in the zip.
Content visible to registered users only.2-MYSQL CHANGES:
Create table :
we will create a table structure called PHPLD_SAYFALAR.
for this you can use "phpld-sayfalar-mysql-dump" file in the zip file.
or try this:
Content visible to registered users only.
3- .HTACCESS
in this file insert the code below at the end of it
Content visible to registered users only.---------------------------------------------------------------------------
note:i use for directory "RewriteRule ^A/ index.php [NC]"
RewriteRule ^B/ index.php [NC]"
....
.....
RewriteRule ^Z/ index.php [NC]
4- SAYFA.PHP AND SAYFA.TPL
upload sayfa.php in root directory and sayfa.tpl into templates directory.
5- YONET DIRECTORY
this directory contains files to admin our custompages. i ve modified admin pages of another
php script called CMSTURK.
it contains TINYMICE advanced editor to edit your custom page content.
i havent modified login pages so u ve to upload it into a password protected directory in your webserver
to prevent unwanted logins.
before you upload it change the "db.php" according to your mysql settings...
This mod project is a result of ametur working and no warranty.
If anyone upgrades this mod i will be very happy.
i hope it will be useful for you.