Advertisement:

Author Topic: [Tutorial] for Cars Attributes Plugin  (Read 7493 times)

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
[Tutorial] for Cars Attributes Plugin
« 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

 


« Last Edit: April 29, 2013, 10:49:05 pm by mmcsus »

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [Tutorial] for Cars Attributes Plugin
« Reply #1 on: May 02, 2013, 08:06:45 pm »
Hi David,

This is a very nice tutorial.

Jay

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: [Tutorial] for Cars Attributes Plugin
« Reply #2 on: May 02, 2013, 11:26:57 pm »
Thanks Jay

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: [Tutorial] for Cars Attributes Plugin
« Reply #3 on: May 03, 2013, 01:05:10 pm »
my english not good can we delete makes from cars plugin by this plugin ?

thank you sir

comnfo

  • Newbie
  • *
  • Posts: 3
Re: [Tutorial] for Cars Attributes Plugin
« Reply #4 on: May 09, 2013, 11:58:24 am »
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.

potoco

  • Full Member
  • ***
  • Posts: 191
  • OSClass 3.5.3
Re: [Tutorial] for Cars Attributes Plugin
« Reply #5 on: May 21, 2013, 12:03:29 am »
Error importSQL::ModelCars
cars_attributes/basic_data.sql

Help please, how can we fix this?

Thanks...


mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: [Tutorial] for Cars Attributes Plugin
« Reply #6 on: May 21, 2013, 01:49:58 am »
@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.



Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: [Tutorial] for Cars Attributes Plugin
« Reply #7 on: May 21, 2013, 01:54:06 am »
Dear
mmcsus

kindly reply

potoco

  • Full Member
  • ***
  • Posts: 191
  • OSClass 3.5.3
Re: [Tutorial] for Cars Attributes Plugin
« Reply #8 on: May 21, 2013, 03:28:14 am »
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.

ixson996

  • Newbie
  • *
  • Posts: 20
Re: [Tutorial] for Cars Attributes Plugin
« Reply #9 on: May 27, 2013, 12:25:58 pm »
How do I set the car brand, I can not find my way.

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: [Tutorial] for Cars Attributes Plugin
« Reply #10 on: May 27, 2013, 04:22:04 pm »

@ixson996,

See attachment.


ixson996

  • Newbie
  • *
  • Posts: 20
Re: [Tutorial] for Cars Attributes Plugin
« Reply #11 on: May 27, 2013, 10:20:51 pm »
I try that, but will not, but my blank page.

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: [Tutorial] for Cars Attributes Plugin
« Reply #12 on: May 28, 2013, 02:54:52 pm »
Hi  ixson996,

Can you turn on php debug and paste the results here?

http://doc.osclass.org/Debug_PHP_errors

ixson996

  • Newbie
  • *
  • Posts: 20
Re: [Tutorial] for Cars Attributes Plugin
« Reply #13 on: May 28, 2013, 09:29:44 pm »
I did everything as written, but it does not appear debug.log file?

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: [Tutorial] for Cars Attributes Plugin
« Reply #14 on: May 29, 2013, 05:36:56 am »
Hi  ixson996,

Sorry for the late reply.

Could you try changing permissions to 0666?

I think that may be your problem.