Advertisement:

Author Topic: [ New Plugin ] Buy&Sell options  (Read 16782 times)

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
[ New Plugin ] Buy&Sell options
« on: June 27, 2011, 06:14:52 pm »
Hi

Some of you were asking for it, so I just create a small plugin to add buy/sell option to your ads. Note: This will only shows if the item is for sale or the user is looking for something, it will not allow payment nor transactions.

Installation
Download it and install as any other plugin (unzip and upload to your server via FTP or directly choose the zip via the admin panel)

Usage
As any other attributes plugin, under "configuration" you have to select to which categories you want it to apply.

Translating it to other languages
Currently the plugin is written in English (Buy, Sell, All,...) but it has support for language files, anyway it should be easy to modify the texts to your custom language.

Adding new options
The default options are "buy" and "sell" (a third option, "all", appear only at the search form). To add or edit those options, modify the index.php file.

Code: [Select]
// ADD your own ads' types, VALUE should be a ONE WORD UPPERCASE used as a key
//$buysell_types['VALUE'] = __('Text to show', 'buysell');
$buysell_types['SELL'] = __('Sell', 'buysell');
$buysell_types['BUY'] = __('Buy', 'buysell');


Download the plugin
Download it from Sourceforge : https://sourceforge.net/projects/osclass/files/Plugins/buy-sell-options/?
« Last Edit: June 27, 2011, 06:23:08 pm by _CONEJO »

cms2008

  • Newbie
  • *
  • Posts: 46
Re: [ New Plugin ] Buy&Sell options
« Reply #1 on: June 27, 2011, 06:24:32 pm »
Thanks a lot. I am realy appreciated.

keny

  • Full Member
  • ***
  • Posts: 137
Re: [ New Plugin ] Buy&Sell options
« Reply #2 on: June 27, 2011, 06:44:54 pm »
Thanks

I have included French translation but can you tell me how i can make it working ? Maybe my folder are wrong anyway when i set my osclass to french i do not see my translation.

Please check my files and tell me what i am doing wrong.

PS. can we post our pluggin directly to sourceforge like you do ?

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [ New Plugin ] Buy&Sell options
« Reply #3 on: June 27, 2011, 06:46:19 pm »
Thanks

I have included French translation but can you tell me how i can make it working ? Maybe my folder are wrong anyway when i set my osclass to french i do not see my translation.

Please check my files and tell me what i am doing wrong.

PS. can we post our pluggin directly to sourceforge like you do ?

Let me try out. I'll upload to sourceforge in a few hours :)

cms2008

  • Newbie
  • *
  • Posts: 46
Re: [ New Plugin ] Buy&Sell options
« Reply #4 on: June 27, 2011, 06:58:24 pm »
can this plugin work well in the future version(2.2)?
if it will upgrade along with future version?

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [ New Plugin ] Buy&Sell options
« Reply #5 on: June 27, 2011, 07:00:04 pm »
can this plugin work well in the future version(2.2)?
if it will upgrade along with future version?


It'll still working well in 2.2

keny

  • Full Member
  • ***
  • Posts: 137
Re: [ New Plugin ] Buy&Sell options
« Reply #6 on: June 27, 2011, 10:57:30 pm »

Quote
Let me try out. I'll upload to sourceforge in a few hours :)

Did you find what i am doing wrong ?

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [ New Plugin ] Buy&Sell options
« Reply #7 on: June 28, 2011, 02:53:11 am »

Quote
Let me try out. I'll upload to sourceforge in a few hours :)

Did you find what i am doing wrong ?
Yep. The folder is languages and not language. Plus, the file is messages and no message. Try the attached file so I'll upload to sourceforge with french support.

keny

  • Full Member
  • ***
  • Posts: 137
Re: [ New Plugin ] Buy&Sell options
« Reply #8 on: June 28, 2011, 04:10:12 am »
OMG was so stupid as error !! Next time i will double check  ;)

Thanks i will translate pluggin when i have time.

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [ New Plugin ] Buy&Sell options
« Reply #9 on: June 28, 2011, 01:51:06 pm »
OMG was so stupid as error !! Next time i will double check  ;)

Thanks i will translate pluggin when i have time.

I've uploaded a new version with french language: https://sourceforge.net/projects/osclass/files/Plugins/buy-sell-options/

ANDREPEREIRA

  • Newbie
  • *
  • Posts: 36
Re: [ New Plugin ] Buy&Sell options
« Reply #10 on: June 28, 2011, 11:47:58 pm »
Which file I alter to translate to portuguese ? changing every line to portuguese I still have english labels !

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [ New Plugin ] Buy&Sell options
« Reply #11 on: June 29, 2011, 02:14:37 pm »
You have to copy inside languages folder the en_US folder and rename it to pt_BR. Then, you should use poedit to translate the messages.po file.

Mackz

  • Newbie
  • *
  • Posts: 7
Re: [ New Plugin ] Buy&Sell options
« Reply #12 on: July 03, 2011, 05:11:15 pm »
Wow thats great! Many thanks for providing the plugin!

akapar

  • Premium
  • Full Member
  • *****
  • Posts: 152
Re: [ New Plugin ] Buy&Sell options
« Reply #13 on: November 22, 2011, 05:18:55 pm »
The plugin gives "Notice: Undefined index: in /home/akapar/public_html/oc-content/plugins/buysell/item_detail.php on line 22" at my site with Internet Explorer 9. It works fine with Chrome. How can I solve this issue?

Thanks...

05suq.com

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [ New Plugin ] Buy&Sell options
« Reply #14 on: November 22, 2011, 07:36:08 pm »
Can you try to replace your line 22 for this one:


<strong><?php echo isset($detail['s_type']) ? $buysell_types[$detail['s_type']] : __('Not specified''buysell') ; ?></strong>