This module is a clone of the information module and provides the vehicle to add unlimited custom pages to an independent menu which can be set into the left or right columns. You can set the sort order of the menu within the column of choice. Review the ReadMe.html doc. for installation. This module is for Opencart v1.2.9 default install and has not been tested to work with any other version. Be sure to backup your files before installation or modifications.
File is located in OpenCarts Module Contributions
Contribution Name - Directory Module 129
File is located in OpenCarts Module Contributions
Contribution Name - Directory Module 129
You got a few bugs in your directory structure and naming convention.
1. you named the "admin/model" folder as "admin/module". A mistake I've also made in the past....once
2. your sql file makes tables called "oc_directory" but in the model file its looking for just "directory"
Also why call it "directory" instead of just "static pages" or something. For a second I was thinking it was doing some kind of directory listing.
1. you named the "admin/model" folder as "admin/module". A mistake I've also made in the past....once
2. your sql file makes tables called "oc_directory" but in the model file its looking for just "directory"
Also why call it "directory" instead of just "static pages" or something. For a second I was thinking it was doing some kind of directory listing.
Must have done that while I was making up the folder set for the zip files.Qphoria wrote:You got a few bugs in your directory structure and naming convention.
1. you named the "admin/model" folder as "admin/module". A mistake I've also made in the past....once
2. your sql file makes tables called "oc_directory" but in the model file its looking for just "directory"
Also why call it "directory" instead of just "static pages" or something. For a second I was thinking it was doing some kind of directory listing.
I'll fix that straight away and re-upload.
v1.2.9 uses database prefix ego I have a blurb in the sql to replace the oc_ with your appropriate prefix if any.
"Table structure for table `oc_directory` replace oc_ with your database prefix"
But that being said, maybe I should be sure to add this notation to the ReadMe.html
That you for catching these errors and bring them to my attention.
Oh I don't know I guess that's just how my mind works... DIRECTORY - The name for a logical container of files.Qphoria wrote:Also why call it "directory" instead of just "static pages" or something. For a second I was thinking it was doing some kind of directory listing.
I suppose I could have called it "static pages"or a number of other names. I didn't really think of the pages as static since they're dynamic in nature.
Anyway new zip file is in place with corrections.
Thanks again
Well, when dealing with sql you can never guess what a person's prefix is going to be so you are better off leaving it with no prefix altogether and just telling them. At least then it will work straight away.
There should really be an admin based sql patcher that can handle that stuff for you. ZenCart has that nice sql patcher module.
There should really be an admin based sql patcher that can handle that stuff for you. ZenCart has that nice sql patcher module.
Good information to remember, thank you for the insight. sql is not my strong suit, nor is making modules, I'm a designer/coder... but I needed this for myself and have no fear of getting my hands into the code that makes it all work. I saw several post of members wanting this and wanted to offer it to the community as well. I'm sure I'll get better in the module building as I go along especially when getting feedback as you have offered me.Qphoria wrote:Well, when dealing with sql you can never guess what a person's prefix is going to be so you are better off leaving it with no prefix altogether and just telling them. At least then it will work straight away.
There should really be an admin based sql patcher that can handle that stuff for you. ZenCart has that nice sql patcher module.
Thanks again
I would like to say thank you to the contributor
I simply edited the directory.sql file, replacing oc_directory and oc_directory_description with just directory and directory_description, and everything worked like a charm. I really needed this one and I couldn't figure it out myself.
Thanks again!
I simply edited the directory.sql file, replacing oc_directory and oc_directory_description with just directory and directory_description, and everything worked like a charm. I really needed this one and I couldn't figure it out myself.
Thanks again!
hi which one did you download for 1.33?Rich wrote:Just try this wonderful module on OpenCart v 1.3 and works perfectly.
Thanks for the work
http://www.opencart.com/index.php?route ... ion_id=207
is there anyway to install this without going into sql?
will it be hard to upgrade eventually?
will it be hard to upgrade eventually?
Hi,
When using V 1.3.3 or 1.3.4 when clicking the edit link in the Admin > Modules section for this module, the following is reported back:
Looking in the code for this php file its refering to:
Which looks like a generic bail-out error
Anyone got any ideas on this?
Matt
When using V 1.3.3 or 1.3.4 when clicking the edit link in the Admin > Modules section for this module, the following is reported back:
Code: Select all
Notice: Undefined index: warning in /home/sites/<store_name>/admin/controller/module/directory.php on line 36
Code: Select all
$this->data['error_warning'] = @$this->error['warning'];
Anyone got any ideas on this?
Matt
Code: Select all
It was like that when I found it, honest!
Can anyone point me mint he right direction on attempting to solve this issue, so that it can be used with v1.3.4 ?moggiex wrote:Hi,
When using V 1.3.3 or 1.3.4 when clicking the edit link in the Admin > Modules section for this module, the following is reported back:
Looking in the code for this php file its refering to:Code: Select all
Notice: Undefined index: warning in /home/sites/<store_name>/admin/controller/module/directory.php on line 36
Which looks like a generic bail-out errorCode: Select all
$this->data['error_warning'] = @$this->error['warning'];
Anyone got any ideas on this?
Matt
Matt
Code: Select all
It was like that when I found it, honest!
Sorry for the delay in response, I've been a bit overwhelmed with issues here at home. My 28 year old daughter was stabbed and sliced over 20 times and has been in the ICU for a while. She's is stabilized as of yesterday.
This module isn't compatible with v133 or 134 as you now know, so I need to port it over to the new version. I'll try to have this mod done by this weekend. Best I can do right now.
Thanks for your understanding.
This module isn't compatible with v133 or 134 as you now know, so I need to port it over to the new version. I'll try to have this mod done by this weekend. Best I can do right now.
Thanks for your understanding.
This module is ready and tested in default installations of 133 and 134
Directory Module 133 and 134
Directory Module 133 and 134
Who is online
Users browsing this forum: No registered users and 151 guests