Support Forums - Classified Ads Script Osclass
Osclass plugin support => Business Profile Plugin => Topic started by: MB Themes on August 27, 2018, 09:44:52 PM
-
Hey all,
We will add in next update these functions that helps with further integration of themes:
bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
bpr_is_business($user_id) - return true if user has valid business profile, otherwise return false
bpr_show_companies() - show list of companies anywhere
-
very good
need add here this http://prntscr.com/knksnt
-
Please create new thread.
-
did you finished it yet. we need this helper
-
bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
bpr_is_business($user_id) - return true if user has valid business profile, otherwise return false
bpr_show_companies() - show list of companies anywhere
-
why you not add it in plugin option? this helper work well.
thank you
-
i want to show this business profile (bpr_show_companies() ) in slideshow like this website. can you inter grade it? which file locate this function bpr_show_companies() ?
-
this function bpr_get_type($user_id) not show user type in item.php
-
$user_id is variable.
https://www.w3schools.com/php/php_variables.asp
-
it show only number 1 or 2 only not show Basic or Pro
-
bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
It is faster to ready carefully then to ask.
-
it show only number 1 or 2 only not show Basic or Pro
i don't understand this function. how visitor know user basic or pro if it show 1,2
-
@Locan
https://www.w3schools.com/php/php_switch.asp
https://www.w3schools.com/php/showphp.asp?filename=demo_switch
-
it's hard to know for basic php coder like me. i can't do it, so sad
-
@Locan
Basic coder would do it :P
You have user ID instead of type id in case.
-
:'( :'( :'( :'(
-
@Locan
if(bpr_get_type($user_id) == 1) { echo 'Basic' ; }
if(bpr_get_type($user_id) == 2) { echo 'Pro' ; }
if(bpr_get_type($user_id) == 3) { echo 'VIP' ; }
Next time rather look for developer.
-
<div class="item-bpr-type item-bpr-type-<?php echo bpr_get_type($user_id = osc_item_user_id()); ?>">
<?php
$user_id = osc_item_user_id();
if(bpr_get_type($user_id) == 1) { echo 'Basic' ; }
if(bpr_get_type($user_id) == 2) { echo 'Pro' ; }
if(bpr_get_type($user_id) == 3) { echo 'VIP' ; }
?>
</div>
thank you for your help
-
It is my recommendation
You plugin need this like orginal plugin
http://user-shop_plugin.osclassdemo.com/business (DEMO)
http://prntscr.com/l48y4y (screens)
http://user-shop_plugin.osclassdemo.com/shop-all-categories (DEMO CATEGORY)
http://user-shop_plugin.osclassdemo.com/shop-directory/ (DEMO SEARCH)
-
It is my recommendation
You plugin need this like orginal plugin
http://user-shop_plugin.osclassdemo.com/business (DEMO)
http://prntscr.com/l48y4y (screens)
http://user-shop_plugin.osclassdemo.com/shop-all-categories (DEMO CATEGORY)
http://user-shop_plugin.osclassdemo.com/shop-directory/ (DEMO SEARCH)
i think MB Themes plugin is better then original osclass
-
yes
-
i want to show this business profile (bpr_show_companies() ) in slideshow like this website. can you inter grade it? which file locate this function bpr_show_companies() ?
How could you put the profiles on a carousel on the main.php cover?
someone has the code?
-
Hey all,
We will add in next update these functions that helps with further integration of themes:
bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
bpr_is_business($user_id) - return true if user has valid business profile, otherwise return false
bpr_show_companies() - show list of companies anywhere
Hi, you can explain better what they are for and where you have to enter these codes
-
Hey all,
We will add in next update these functions that helps with further integration of themes:
bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
bpr_is_business($user_id) - return true if user has valid business profile, otherwise return false
bpr_show_companies() - show list of companies anywhere
Hi, you can explain better what they are for and where you have to enter these codes
I saw this code on a post where I have to enter it:
<div class = "item-bpr-type item-bpr-type - <? php echo bpr_get_type ($ user_id = osc_item_user_id ());?>">
<? php
$ user_id = osc_item_user_id ();
if (bpr_get_type ($ user_id) == 1) {echo 'Basic'; }
if (bpr_get_type ($ user_id) == 2) {echo 'Pro'; }
if (bpr_get_type ($ user_id) == 3) {echo 'VIP'; }
?>
</div>
and what it is for ?????