Osclass forums
Support forums => Tips, tricks, and tutorials => Topic started by: mmcsus on April 29, 2013, 10:07:10 pm
-
This is a tutorial for the Cars Attributes plugin so members can add their own custom fields.
Find attached Tutorial_cars_attributes plugin ( You must rename to cars_attributes before install )
In this plugin I have added "CD Player" check box for an example.
Open the plugin in your editor and read Tutorial.txt
-
Hi David,
This is a very nice tutorial.
Jay
-
Thanks Jay
-
my english not good can we delete makes from cars plugin by this plugin ?
thank you sir
-
i could not install because i get this error:
Plugin couldn't be installed because of: Error importSQL::ModelCars
cars_attributes/struct.sql
i checked the forum and tried to resolve this by:
export tables as sql files
delete the tables,
install the plugin again,
import the sql files.
unable to install the plugin again because i keep getting this error:
Plugin couldn't be installed because of: Error importSQL::ModelCars
cars_attributes/struct.sql
i also tried to import struct.sql via phpmyadmin but get this error:
Error
SQL query:
CREATE TABLE /*TABLE_PREFIX*/t_item_car_vehicle_type_attr(
pk_i_id INT( 2 ) UNSIGNED NOT NULL ,
fk_c_locale_codeCHAR( 5 ) NOT NULL ,
s_name VARCHAR( 255 ) ,
PRIMARY KEY ( pk_i_id, fk_c_locale_code ) ,
FOREIGN KEY ( fk_c_locale_code ) REFERENCES /*TABLE_PREFIX*/t_locale(
pk_c_code
)
) ENGINE = INNODB DEFAULT CHARACTER SET 'UTF8' COLLATE 'UTF8_GENERAL_CI';
MySQL said:
#1005 - Can't create table 'database.t_item_car_vehicle_type_attr' (errno: 150) (Details…)
also note the other realestate,date,jobs attrib works except this one. hope you can assist me. thank you.
-
Error importSQL::ModelCars
cars_attributes/basic_data.sql
Help please, how can we fix this?
Thanks...
-
@comnfo & potoco,
I have downloaded the same file that you are downloading.
I've installed on Osclass 3.1.1 and 3.1.2 and I cannot reproduce the problem.
I see the file has been downloaded 82 times, you would think someone else has had the same problems.
I would like to know if either one of you can download and install the regular cars attributes plugin?
The only thing that has changed is adding cd player and some notes.
-
Dear
mmcsus
kindly reply
-
mmcsus,
The problem is just with the car attribute plugin, std or yours, both. If I remember, we can to install this plugin in a first time, but reinstallation is not posible even after delete the car table into database. No problem with any other plugin.
Thank you for your interest.
-
How do I set the car brand, I can not find my way.
-
@ixson996,
See attachment.
-
I try that, but will not, but my blank page.
-
Hi ixson996,
Can you turn on php debug and paste the results here?
http://doc.osclass.org/Debug_PHP_errors (http://doc.osclass.org/Debug_PHP_errors)
-
I did everything as written, but it does not appear debug.log file?
-
Hi ixson996,
Sorry for the late reply.
Could you try changing permissions to 0666?
I think that may be your problem.
-
ok, i found the problem with install (after uninstall) fails.
If you DISABLE the plugin and THEN uninstall, some tables are left and you can't install it again.
If you UNINSTALL the plugin while ENABLED everything is cleared.
Not sure why this happens. With Cars also.
-
Behold I will send you pictures ...
When I go to "manage Makes" I do not appear (see photo).
(http://www.dodaj.rs/t/2G/M2/4NYtdPtN/plugins1.jpg) (http://www.dodaj.rs/?2G/M2/4NYtdPtN/plugins1.jpg)
When I go "Configure plugins" at the top we appear this error:
Warning: file_get_contents(/www/toplickioglasi.site50.net/oc-content/plugins/cars_attributes/index.php) [function.file-get-contents]: failed to open stream: No such file or directory in /home/a2875439/public_html/oc-includes/osclass/classes/Plugins.php on line 346