I want to change admin login path and I did change the word admin in admin/config.php to new name and I did change the admin folder to new name but I have install Vqmod to my site so I just wondering do I need to change any file in Vqmod and any other file?
Thank You
You will need to open each xml file in the vqmod/xml folder and check for the word "admin" and replace all the file paths containing it to your new name. eg: admin/controller/module/account.php becomes NEWNAME/controller/module/account.php
Check carefully - if you miss any then use the vQmod logs (or vQmod manager which has an easy error log) to see which ones didn't fire up - the error will say something aboutnot finding admin/whatever and you can see which xml to edit from the log.
From now on you will need to edit them before you upload them - the same with any modules which have an "admin" folder to upload - rename it BEFORE you upload it or it will not work.
Good luck
Stokey
Stokey
What do you mean by that? like what file or thing that I need to edit them befor I can upload to my site? Can you tell me more and give me an example because I new to opencart and don't know much about these stuff.From now on you will need to edit them before you upload them - the same with any modules which have an "admin" folder to upload - rename it BEFORE you upload it or it will not work.
THank You
When you want to use a vQmod that does this you should open it in notepad++ (free download here) and check for the word admin - use ctrl+f to find any instances.
Where the word is part of a file path like in my earlier post you need to change it:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Admin Category Filter</id>
<version>2.0</version>
<vqmver>2.1.5</vqmver>
<author>wetutorial.com</author>
<file name="admin/view/template/catalog/product_list.tpl" error="log">
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Admin Category Filter</id>
<version>2.0</version>
<vqmver>2.1.5</vqmver>
<author>wetutorial.com</author>
<file name="YOURNEWADMINNAMEview/template/catalog/product_list.tpl" error="log">
Is that clear now?
There is another method which saves you having to do it manually each time but I have never done that way - if you go to your vqmod folder there is a file called pathReplaces.php
If you open that there are instructions for setting an automatic path replace for your admin folder.
Good luck
Stokey
Stokey
M
Inviato dal mio HTC Desire HD utilizzando Tapatalk
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------

@klee2010 - probably the easiest is to password protect your admin folder using cPanel or equivalent - search the net for how to do it or have a look in your server panel and you should find it - in Plesk you have to click on the down arrow which is kind of hidden at the bottom of the main Web Domains screen like in this picture:
Then you should see something like this:
Then this:
Then you set the path to your admin folder and choose a password - hey presto another layer of security before even getting to the Opencart admin panel

Stokey
2) Everytime I adding a new module or theme to my site, do I have to rename the admin folder in the module or theme to the new name before I upload to my site?
3) Do I need to rename any other file that in the module or theme befroe I can upload?
M
Inviato dal mio HTC Desire HD utilizzando Tapatalk
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
@madimar, can you please show me step by step how to do it?madimar wrote:Klee, maybe my post was not clear... You can easily avoid to change all the scripts for ever. Don't rename anything in the scripts leaving "admin", just set a proper path replace in vqmod settings!
M
Inviato dal mio HTC Desire HD utilizzando Tapatalk
Thank You
Code: Select all
<?php
/**
* File for path replacements in xml paths. Examples:
*
* $replaces[] = array('~^admin\b~', 'admin123'); // This replaces the admin folder name for use when admin folder's renamed
* $replaces[] = array('~\btheme/default\b~', 'theme/my-theme-name'); // Theme name replace to apply mods to your theme
*
* Place your replaces between the START and END lines below
**/
// START REPLACES //
$replaces[] = array('~^admin\b~', 'YOURNEWADMINNAME');
// END REPLACES //
Wish I had known about this 3 months ago....

Stokey
This mean I only need edit /vqmod/pathReplaces.php and don't need to rename admin folder to new name and don't need to change admin/config?stokeyblokey wrote:klee2010 I think you simply find the file /vqmod/pathReplaces.php and edit it to show this:
Replace YOURNEWADMINNAME with the renamed admin folder name and upload it back to the server in the same place and you should be good to go.Code: Select all
<?php /** * File for path replacements in xml paths. Examples: * * $replaces[] = array('~^admin\b~', 'admin123'); // This replaces the admin folder name for use when admin folder's renamed * $replaces[] = array('~\btheme/default\b~', 'theme/my-theme-name'); // Theme name replace to apply mods to your theme * * Place your replaces between the START and END lines below **/ // START REPLACES // $replaces[] = array('~^admin\b~', 'YOURNEWADMINNAME'); // END REPLACES //
Wish I had known about this 3 months ago....
Is that clear now?
Stokey
M
Inviato dal mio HTC Desire HD utilizzando Tapatalk
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Users browsing this forum: Amazon [Bot] and 28 guests