Advertisement:

Author Topic: New Plugin - Seller Post - (Show all items that a seller have for sale)  (Read 21639 times)

keny

  • Full Member
  • ***
  • Posts: 137
Hi everyone,

Second day here and here is my first contribution. I have make a plugin based on the breadcrumb one that will display a link so you can see in the search page all the seller items for sale.

Plugin is very easy to use you only have to edit the item.php file in the theme directory
then you add this line on line #93

Code: [Select]
<strong class="share"><?php seller_post(); ?></strong>
and voilà !

This will show a button like the share and contact one, but you can install anywhere you want.

I have also include the french transaltion file but admin should check because i cannot make it work maybe ist a bug or i have make a mistake.

Another thing when we delete a plugin the plugin stay in the list is it possible to remove it from the list ?

Comment will be appreciate.

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Hi

Welcome and thank you the plugin works great.

Thanks

Jay

irishrage

  • Full Member
  • ***
  • Posts: 132
I have not yet tryed but it looks like a nice feature ;D

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Wow

It's amazing, I'm impressed. Great job!!

Btw, you're not "removing" plugins, you're uninstalling them, that's way they still appear on the list. You need to delete it's files.

keny

  • Full Member
  • ***
  • Posts: 137
Wow

It's amazing, I'm impressed. Great job!!

Btw, you're not "removing" plugins, you're uninstalling them, that's way they still appear on the list. You need to delete it's files.

Thanks yeah i have figured out now.

I am working on a new one now and have idea for 5 or 6 other pluggins.

kingsult

  • Premium
  • Full Member
  • *****
  • Posts: 204
Hi Keny,

Great job. Can you help me with an improvement of the google maps plugin ? I have the code but don't know how to implement it in a plugin...

Please check: http://forums.osclass.org/index.php/topic,1111.0.html



Thanks,


Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
@keny: do you know how to use github? I've uploaded your plugin to our osclass-plugins repository :) https://github.com/osclass/osclass-plugins/tree/list_seller_items

Furthermore, I've uploaded to sourceforge with some minor changes. For example, I'm not showing the text if there isn't a registered user. It's available to download here: https://sourceforge.net/projects/osclass/files/Plugins/list-seller-items/?

keny

  • Full Member
  • ***
  • Posts: 137
@keny: do you know how to use github? I've uploaded your plugin to our osclass-plugins repository :) https://github.com/osclass/osclass-plugins/tree/list_seller_items

Furthermore, I've uploaded to sourceforge with some minor changes. For example, I'm not showing the text if there isn't a registered user. It's available to download here: https://sourceforge.net/projects/osclass/files/Plugins/list-seller-items/?

Not realy as far has i understand is a place to share code in a read only format right ? I have create a account under user name keny10 did you prefer that we share pluggin under github ?

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
@keny: do you know how to use github? I've uploaded your plugin to our osclass-plugins repository :) https://github.com/osclass/osclass-plugins/tree/list_seller_items

Furthermore, I've uploaded to sourceforge with some minor changes. For example, I'm not showing the text if there isn't a registered user. It's available to download here: https://sourceforge.net/projects/osclass/files/Plugins/list-seller-items/?

Not realy as far has i understand is a place to share code in a read only format right ? I have create a account under user name keny10 did you prefer that we share pluggin under github ?

It's not only under a read only format. You should fork the repo: http://help.github.com/fork-a-repo/ Then, you code in your repository and send a pull request with your changes. So everyone can work with an updated version of the plugin. I think that it's better than uploading .zip files.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Hi Kenny,

Github is a website around "git", git is a "control version system" which is a software to keep track of changes made to files. Other similar softwares are CVS or SVN (subversion).

Why is all that cool? It keep track of every line changed, store every one of that changes separately, so if you mess up with some development, you just rollback and use a previous version. Also, it allows the developer to work on the same file at the same time without problems* (only if they don't modify the same line).

What are your ideas for plugins? Could we help you in any way?

Thanks

keny

  • Full Member
  • ***
  • Posts: 137
Hi,

I think i just use correctly GitHub for the first time ! I have pull a new version of google_maps.

For pluggin i will start a new topic soon and i will include all pluggin i have in head, sure you can help if you time i love the concept of open source and if i can contribute to something i use i am more that happy !

Luca

  • Hero Member
  • *****
  • Posts: 584
  • CentOs 6.4 - Virtualmin - OSC 3.0 - Custom Theme
@keny:
So many thanks for the great idea for this plugin!

@Juan Ramón + @keny:

I've downloaded the two versions (from repository and sourceforge) but still can't get it to display if user unregistered...   ???

(yes, deleted plugin' folder before switch versions, which are carrying the same 1.0.1 though...)

[ADD]
Oh, i've forgotten to mention:
I've added translation for it in its lang folder under it_IT and ro_RO but still showing english...  ??? -- Actually it is displaying the correct phrase because I've edited the index.php

[ADD2]
Maybe can be inserted a conditional in order to show the button only if the item is belonging to a registered user... Can't this be an idea? no?
« Last Edit: July 20, 2011, 05:36:54 pm by rafl »

keny

  • Full Member
  • ***
  • Posts: 137
For me i can see button even if the user is not logged.

For translation be sure that the languages folder is "languages" and the messages po files is "messages.po and messages.mo"

In my first release i have not set them correctly

Luca

  • Hero Member
  • *****
  • Posts: 584
  • CentOs 6.4 - Virtualmin - OSC 3.0 - Custom Theme
Thank you @keny for your promptly reply.

Logged.. ..or.. registered... ?

Anyway, you can just observe in my sites (both are using your plugin): no registered user= empty orange button container.  ???

About languages, I created an ro_RO and a it_IT folders and put in them the relevant .po and .mo files edited in POEDIT, is it ok?

Be aware: you mention "messages.po and messages.mo" when in your languages folder there are "message.po and message.mo"

Which of the two?

Thanks

« Last Edit: July 21, 2011, 03:20:05 am by rafl »

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Be aware: you mention "messages.po and messages.mo" when in your languages folder there are "message.po and message.mo"

Which of the two?

Thanks



Hi rafl

The files should be messages.po and messages.mo

I think you have the first version where keny mentioned that he did not have the file names correct also check the spelling of the languages folder make sure there is a "s" at the end of languages.

Jay