Author Topic: how to change the ADMIN folder name?  (Read 7656 times)

0 Members and 1 Guest are viewing this topic.

Offline lordi

  • Newbie
  • *
  • Posts: 21
    • View Profile
how to change the ADMIN folder name?
« on: December 21, 2007, 05:55:35 AM »
hallo

i want to change the folder: admin   name

i want to make it for example : admin2

but i realized that i need to modify on some other files

please help

thanks

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #1 on: December 21, 2007, 02:34:41 PM »
In PHP files, find all ROOT_PATH."admin and change to: ROOT_PATH . ADMIN_PATH.'/'.

In includes/constants.php file,

add:

Code: [Select]
define('ADMIN_PATH', 'admin');

Change admin to name you want.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline lordi

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #2 on: December 21, 2007, 07:36:55 PM »
all php files ??????????????

ADMIN_PATH.'/'.  ====> (mean the new name of the admin folder??? i.e: admin444 ??? )

Where do i add the code u gave me ??? which line and after what ??


please be more specific

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: how to change the ADMIN folder name?
« Reply #3 on: December 21, 2007, 10:29:10 PM »
search (in all Files):
Code: [Select]
ROOT_PATH."admin
replace with:
Code: [Select]
ROOT_PATH.ADMIN_PATH."
add to includes/constants.php
Code: [Select]
define('ADMIN_PATH', '[color=red]your_new_admin_folder_name[/color]');

Offline lordi

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #4 on: December 22, 2007, 01:59:02 PM »
Acidod:: thanks for helping

- do u mean all of the php files?? i search in them???

- The replacing code...::
Code: [Select]
ROOT_PATH.ADMIN_PATH."
 do i put the upper code as it is or i modify it and put the new name of the folder Admin..like admin212 ???????

- add to includes/constants.php.............where do i add it??? before what and after what code?????????!!!!

guys can u plz be specific?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #5 on: December 22, 2007, 02:21:04 PM »
After edit all PHP files

Quote
- add to includes/constants.php.............where do i add it??? before what and after what code?????????!!!!

In includes/constants.php file,

find:

Code: [Select]
define('TEMPLATE_DIR', 'templates');

add after:

Code: [Select]
define('ADMIN_PATH', 'admin');

Edit admin for new admin folder name. After, rename folder name in FTP.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline lordi

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #6 on: December 23, 2007, 01:25:54 AM »
guys

i did what u said

it didn't work

it gave me errors in admin_global.php


pleaaaaaaaaaaaaaase HELP ADMINISTRATOR

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #7 on: December 23, 2007, 01:48:32 AM »
Quote
it didn't work

it gave me errors in admin_global.php

Please read step 6 of my signature. What is say for error ? What is line number of admin_global.php file of error ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: how to change the ADMIN folder name?
« Reply #8 on: December 23, 2007, 02:21:31 AM »
2 - If have problem with admin_global.php file, replace fresh file in FTP and edit admin path correct in file. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?