Loading


Advertisement:

Author Topic: [PLUGIN] Seller Verification - To make user become Verified Seller  (Read 11532 times)

achmadzackyr

  • Newbie
  • *
  • Posts: 13
Hello everyone,

I will introducing the seller verification plugin.
This plugin is my first osclass plugin. Maybe in the installation it will be rather hard than any other plugin.
If you find a bug, you can report here. I will try to solve it & try to make this plugin better.
Thanks to Web-Media for such a good tutorial about how to make a plugin.

I have tried this plugin into my os class site, version 3.2.2 with twitter themes. It's work fine.

I hope this plugin will be useful for us.

Regards,

Zacky


Readme.txt
Quote
This plugin makes the admin can verified user.


How to use
1. Login to admin site
2. Select edit user

There is 2 input admin should write.
1. Seller Verification - Input type checkbox. Check if you want to show the user verified image.
2. Seller Description - Input type string. That description will show as title of user verified image. It mean this input will showed if you hover cursor to user verified image.

If you want to chage the image of user verified. Just change the image in images folder.



How to install
1. Put this hook code <?php osc_run_hook('seller_verification',$user['pk_i_id']); ?> on oc-admin\themes\modern\users\frm.php line above this code <?php if(!$aux['edit']) { osc_run_hook('user_register_form'); }; ?>

2. Put this hook code <?php osc_run_hook('seller_verification_show',osc_item_user_id()); ?> on wherever you want to show the verified seller images. Recommended place is to put it on main.php, search_list.php, item.php.

3. If you want to show it on main.php and search_list.php, you must put this code first
<?php View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var = User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1536
  • osclass.work
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #1 on: December 29, 2013, 04:32:37 pm »
Hi achmadzackyr,
sounds like a great plugin! Will give it a try and report back in couple of days.

Regards,
dev101

Legion

  • Hero Member
  • *****
  • Posts: 625
  • I am founder of top20remedies.com buyeradvise.com
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #2 on: December 29, 2013, 06:57:04 pm »
a great plugin thanks a ton

MB Themes

  • Hero Member
  • *****
  • Posts: 4061
  • Frosticek here :)
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #3 on: December 29, 2013, 08:19:41 pm »
@achmadzackyr
I very like idea to give specified users stamp Verified Seller so other users that are interested in buying stuffs can be sure they will not be stolen by someone using your classified.

s51

  • Sr. Member
  • ****
  • Posts: 309
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #4 on: December 29, 2013, 09:48:33 pm »

.
Hi achmadzackyr . . .

1.)
As @.frosticek say = I also ..really.. like your idea behind this plugin  8)
but unfortunately, - it does not work in version 3.3.2
(as said, a good idea, so keep up the pace OKAY)
- -

2.)
* Install progressing smoothly (apparent no errors)
* But no way it have impact on existing users, - OR new users (after  install seller_verification)
* By a direct click on: | Plugins Site from plugin ID info:
* 1 = Off.Line one only get the: The requested URL /*****/ was not found on this server.
* 2 = On.Line one are just redirected to the front pages of the ads
* Deaktivate  the plugin is apparently ok (but hard to estimate when it does not work)
* But uninstall is not working, one must manually remove all seller_verification files
- -


Best Regards.:/ s51   :)
.

achmadzackyr

  • Newbie
  • *
  • Posts: 13
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #5 on: December 30, 2013, 12:19:58 am »

.
Hi achmadzackyr . . .

1.)
As @.frosticek say = I also ..really.. like your idea behind this plugin  8)
but unfortunately, - it does not work in version 3.3.2
(as said, a good idea, so keep up the pace OKAY)
- -

2.)
* Install progressing smoothly (apparent no errors)
* But no way it have impact on existing users, - OR new users (after  install seller_verification)
* By a direct click on: | Plugins Site from plugin ID info:
* 1 = Off.Line one only get the: The requested URL /*****/ was not found on this server.
* 2 = On.Line one are just redirected to the front pages of the ads
* Deaktivate  the plugin is apparently ok (but hard to estimate when it does not work)
* But uninstall is not working, one must manually remove all seller_verification files
- -


Best Regards.:/ s51   :)
.

Thanks for the review.
I have try to osclass version 3.3.2 with bender themes and it's working.
In bender themes has different file structure with twitter themes, so if you want to show it on front page, put the run hook code on loop file, I have add run code on loop-single.php. You can see the screen shot below.
What themes are you using? Try to put the hook code below this code
Code: [Select]
while ( osc_has_latest_items() ) { Don't forget to read the readme  :D
It will take effect after you write the hook code.
And if you want to show it on main.php or search_list.php you must put this code first
Code: [Select]
<?php View::newInstance()->_exportVariableToView('user'User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>

Quote
* By a direct click on: | Plugins Site from plugin ID info:
* 1 = Off.Line one only get the: The requested URL /*****/ was not found on this server.
* 2 = On.Line one are just redirected to the front pages of the ads
Sorry about plugin site, I don't have website yet to talk about this plugin, so I write it with "-". It is will not go anywhere if you click it. On the next version I will change it to this plugin post url.

Quote
* But uninstall is not working, one must manually remove all seller_verification files
- -
Uninstalling is just to remove the table, not remove plugin file.
One must manually remove is the hook code that you put to show the verification image.
« Last Edit: December 30, 2013, 07:26:29 am by achmadzackyr »

s51

  • Sr. Member
  • ****
  • Posts: 309
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #6 on: December 30, 2013, 02:31:02 pm »

.
Hi achmadzackyr ...

1.)
>>I have try to osclass version 3.3.2 with bender themes and it's working.
In my test sandbox I,m also on _latest_ ver. 3.3.2 with newest Bender
BUT NO WAY - I can get it working - urghhh...
- -

2.)
The malfunction (or miss) come every time your code is set in to the: frm.php
because what I did not see yesterday was:
* When inserting your code as you described above, the original.....
* In backend you lose the ability to edit existing (and new) users - because:
* The entire update user (in page bottom) section disappear with an error message.
- -

3.)
Please open the attached file with description of the error, - and see for yourself.
You can get temporary FTP and PRG access to my Sandbox, and try fix it On.Line
- -


Best Regards.:/ s51
.

creat15

  • Full Member
  • ***
  • Posts: 202
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #7 on: December 30, 2013, 03:35:56 pm »
hi :)

thanks for your plugin

i try its works on osclass v3.0.2  ;D

===============================

i want to ask, how to show this plugin on search list?

i try your tutorial

Quote
3. If you want to show it on main.php and search_list.php, you must put this code first
<?php View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var = User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>

but not show status verification user/seller on search list?
« Last Edit: December 30, 2013, 05:04:42 pm by creat15 »

achmadzackyr

  • Newbie
  • *
  • Posts: 13
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #8 on: December 30, 2013, 06:30:22 pm »
hi :)

thanks for your plugin

i try its works on osclass v3.0.2  ;D

===============================

i want to ask, how to show this plugin on search list?

i try your tutorial

Quote
3. If you want to show it on main.php and search_list.php, you must put this code first
<?php View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var = User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>

but not show status verification user/seller on search list?

What theme are you using?
In twitter theme or maybe other theme too if its has the same code structure.
You can try to put this code
Code: [Select]
<?php View::newInstance()->_exportVariableToView('user'User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>
after <?php while ( osc_has_items() ) { ?> and <?php while ( osc_has_premiums() ) { ?>


Not just that code, same like in item.php you must put this hook code
Code: [Select]
<?php osc_run_hook('seller_verification_show',osc_item_user_id()); ?>on where you want to show the image, maybe you can try put the hook code before this code
Code: [Select]
<?php echo osc_highlightstrip_tagsosc_item_description() ) ) ; ?>

design

  • Hero Member
  • *****
  • Posts: 2632
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #9 on: December 30, 2013, 07:11:01 pm »
this is a good idea!, thanks for following through with it- I look forward to using it on another site!

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2228
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #10 on: December 30, 2013, 07:14:15 pm »
Hi Zacky,

Thanks for your contribution man!  8)

Very interesting plugin and definately added value for all users of osClass!!
Hope to hear more from your work in the future, seems like osClass can use people like yourself using their talents helping the community.

Many many MANY thanks!  :)


Regards,
Eric

Ricky

  • Newbie
  • *
  • Posts: 9
  • http://www.Oferece.pt
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #11 on: December 30, 2013, 07:22:51 pm »
TKS!!

Works great.

;)

s51

  • Sr. Member
  • ****
  • Posts: 309
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #12 on: December 30, 2013, 10:14:52 pm »

.
Hi  achmadzackyr - and all who you real subdomains . . .

1.)
* IMPORTANT NOTE:
Now I,m 100% sure when I write:
that in certain situations, - there ..is.. something wrong with your script.
- -

2.)
If OSClass is running in normal server root = (testet On.Line and Off.Line)
e.g. like.: http://www.domainroot.com/
-
then YES = your internal scrip code works as it should..
* Apparently due to the only one level of core referral paths
- -

3.)
BUT.....
If OSClass is running a level under root as a ..real.. subdomain = (testet On.Line and Off.Line)
e.g. like.: http://www.01subdomain.domainroot.com/
-
then NO = your internal scrip code DONT works as it should..
* apparently due to the one level more ,down, of core referral paths
* Because when we set OSClass as a ..real.. subdomain
* your referral paths have no idea where artificial root is.
- -

Best Regards.:/ s51


PS:
Just polite info to clear out - for those who can not tell the difference on:
1 - http://www.domainroot.com/somename/ = This ,set-up, is just a normal sub.dir - NOT a subdomain
2 - http://www.somename.domainroot.com/ = This ,set-up, is a REAL working subdomain
- -
So achmadzackyr - you must organize your code to work with ..real.. subdomain,s
* http://www.01subdomain.domainroot.com/  (e.g. car site 1)
* http://www.02subdomain.domainroot.com/  (e.g. car site 2)
* http://www.03subdomain.domainroot.com/  (e.g. car site 3)
* etc...etc...etc.
Thus this, - all subdomain,s on same rootdomain, - can work on the same DB - thats the beauty by ..real.. subdomains.
- -



SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2228
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #13 on: December 31, 2013, 12:56:00 am »
I can imagine that the plugin documentation might need to stress that part of sub-domains out.... since this really does mean having to take things into account which otherwise could easily be overlooked and ARE being overlooked probably by more people than Zacky alone who are creating new plugins for osClass.

I did a quick peek at the 'how to' plugin documentation but nothing special regarding a possible subdomain pitfall....   :-X

Nice finding s51

creat15

  • Full Member
  • ***
  • Posts: 202
Re: [PLUGIN] Seller Verification - To make user become Verified Seller
« Reply #14 on: December 31, 2013, 07:50:01 am »
hi :)

thanks for your plugin

i try its works on osclass v3.0.2  ;D

===============================

i want to ask, how to show this plugin on search list?

i try your tutorial

Quote
3. If you want to show it on main.php and search_list.php, you must put this code first
<?php View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var = User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>

but not show status verification user/seller on search list?

What theme are you using?
In twitter theme or maybe other theme too if its has the same code structure.
You can try to put this code
Code: [Select]
<?php View::newInstance()->_exportVariableToView('user'User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>
<?php $user_var User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>
after <?php while ( osc_has_items() ) { ?> and <?php while ( osc_has_premiums() ) { ?>


Not just that code, same like in item.php you must put this hook code
Code: [Select]
<?php osc_run_hook('seller_verification_show',osc_item_user_id()); ?>on where you want to show the image, maybe you can try put the hook code before this code
Code: [Select]
<?php echo osc_highlightstrip_tagsosc_item_description() ) ) ; ?>

hi :) thanks for reply

i try your tutorial

put this code after <?php while ( osc_has_items() ) { ?> and <?php while ( osc_has_premiums() ) { ?>

Code: [Select]
<?php $user_var User::newInstance()->findByPrimaryKey(osc_item_user_id()); ?>
<?php View::newInstance()->_exportVariableToView('user'User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?>

and i put this code

Code: [Select]
<?php osc_run_hook('seller_verification_show',osc_item_user_id()); ?>
before code

Code: [Select]
<?php echo osc_highlightstrip_tagsosc_item_description() ) ) ; ?>
but user verification status 'unverified' all there is no status of 'verified'

i use themes classic

The item.php his status verfication already verified, but the look in his search_list.php verification be unverified status, like the screenshot I gave this

thanks before
« Last Edit: December 31, 2013, 07:52:05 am by creat15 »