Advertisement:

Author Topic: Osclasswizard highlighting items  (Read 3084 times)

pim

  • Newbie
  • *
  • Posts: 3
Osclasswizard highlighting items
« on: January 22, 2016, 10:22:20 am »
Hello Dear Users!
I use osclasswizard theme with osclass pro payment model.I tried what they offered to change in the theme but not show the highlighted items.
Anybody would be can help me please?
Setting up your theme

In order to use the highlighted listing feature, you need to make a minimal modification to your theme.:
In the search page template, you need to add the following in the class attribute of the div of the listing
                    class="<?php osc_run_hook("highlight_class"); ?>"
               
(Note: you probably already have a class attribute, in that case, just add the osc_run_hook part)
Examples

In bender theme, you need to modify the file loop-single.php. Look for line 24, change it from .
                    <li class="listing-card <?php echo $class; if(osc_item_is_premium()){ echo ' premium'; } ?>">
               
to.
                    <li class="<?php osc_run_hook("highlight_class"); ?> listing-card <?php echo $class; if(osc_item_is_premium()){ echo ' premium'; } ?>">
               
i tried these but not working.
Thanku

admin20

  • Newbie
  • *
  • Posts: 3
Re: Osclasswizard highlighting items
« Reply #1 on: March 10, 2016, 04:23:46 pm »
in the subject <OSClass Tatiana Premium Theme 3.4.1> how I want to thank you place the codes

pim

  • Newbie
  • *
  • Posts: 3
Re: Osclasswizard highlighting items
« Reply #2 on: March 14, 2016, 03:34:38 pm »
what is your answer?
i not understand

fuligjimmy

  • Newbie
  • *
  • Posts: 9
  • All questions are hard if you don't kno the answer
Re: Osclasswizard highlighting items
« Reply #3 on: August 20, 2016, 12:50:07 pm »
Hello Dear Users!
I use osclasswizard theme with osclass pro payment model.I tried what they offered to change in the theme but not show the highlighted items.
Anybody would be can help me please?
Setting up your theme

In order to use the highlighted listing feature, you need to make a minimal modification to your theme.:
In the search page template, you need to add the following in the class attribute of the div of the listing
                    class="<?php osc_run_hook("highlight_class"); ?>"
               
(Note: you probably already have a class attribute, in that case, just add the osc_run_hook part)
Examples

In bender theme, you need to modify the file loop-single.php. Look for line 24, change it from .
                    <li class="listing-card <?php echo $class; if(osc_item_is_premium()){ echo ' premium'; } ?>">
               
to.
                    <li class="<?php osc_run_hook("highlight_class"); ?> listing-card <?php echo $class; if(osc_item_is_premium()){ echo ' premium'; } ?>">
               
i tried these but not working.
Thanku

Yes, can somebody please explain how to implement these codes into osclasswizards/wizestate theme to make the Payment Pro plugin highlight feature work properly?
Thanks

Ashmas

  • Newbie
  • *
  • Posts: 1
Re: Osclasswizard highlighting items
« Reply #4 on: May 05, 2018, 03:32:51 pm »
Hi everyone,

I solved it, in loop-search-list.php in line 40:

<li class="listing-card <?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

replace with:

<li class="<?php osc_run_hook("highlight_class"); ?> listing-card <?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

and in the same php file in line 160:

<li class="listings_list listing-card<?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

replace with:

<li class="<?php osc_run_hook("highlight_class"); ?> listings_list listing-card<?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

Then you need to add some codes in theme css, which you can find it in: your OC-ADMIN>Appearance>Osclasswizard>Theme Style
In Custom CSS box paste this:

.payment-pro-highlighted .list_space {
    background-color: rgb(0, 215, 115);   
}

You could change highlight color in this css code.

Bests,
Ashkan

onlineadspost

  • Newbie
  • *
  • Posts: 11
Re: Osclasswizard highlighting items
« Reply #5 on: May 18, 2018, 11:33:26 pm »
Hi everyone,

I solved it, in loop-search-list.php in line 40:

<li class="listing-card <?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

replace with:

<li class="<?php osc_run_hook("highlight_class"); ?> listing-card <?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

and in the same php file in line 160:

<li class="listings_list listing-card<?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

replace with:

<li class="<?php osc_run_hook("highlight_class"); ?> listings_list listing-card<?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

Then you need to add some codes in theme css, which you can find it in: your OC-ADMIN>Appearance>Osclasswizard>Theme Style
In Custom CSS box paste this:

.payment-pro-highlighted .list_space {
    background-color: rgb(0, 215, 115);   
}

You could change highlight color in this css code.

Bests,
Ashkan

Ok it worked for me just took little time to search exact location of code. but this is working only for normal ads which were marked as highlighted. if listing is also marked as premium it will not work for that particular listing.

can you help with that too ?

also let us know if you can help like on unlimited plugin reply they have different colors for all types of listings.

Thanks for the help!
 

onlineadspost

  • Newbie
  • *
  • Posts: 11
Re: Osclasswizard highlighting items [Solved]
« Reply #6 on: May 18, 2018, 11:35:27 pm »
Hello friends,  Osclasswizard highlighting items    long waiting issue

now solved  this solution for listview  you can same modify for gridview - https://www.bestclassifiedsusa.com   check here

 my theme is Osclasswizard  and i am use ultimate payment plugin now i am configure pricing premium / highlights / move to top etc.

 now many people facing color issues for premium & highlights ads. both want different colors long time no any solutions available in forum or internet.

 i am customize my theme as per plugin developer said & added some my code 

Ultimate Payment - Plugin suggestion

Setting highlighting

Need small modifictions of theme files. Need add two HTML "id" tag with PHP code in search files.
First "id" for premium items id="<?php if(function_exists('upayments_premium_get_class_color')){echo upayments_premium_get_class_color(osc_premium_id());}?>" .
Second "id" for items id="<?php if(function_exists('upayments_get_class_color')){echo upayments_get_class_color(osc_item_id());}?>"
In Highlighted ads will be shown - id = "colorized", normal - id = "normal". Items with id = "colorized" will have a Highlighted color background
Example, for the Bender theme:
File loop-single.php - 2-line :
<li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo'premium';}?>" id="<?php if(function_exists('upayments_get_class_color')){echo upayments_get_class_color(osc_item_id());}?>">
File loop-single-premium.php :
<li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo'premium';}?>" id="<?php if(function_exists('upayments_premium_get_class_color')){echo upayments_premium_get_class_color(osc_premium_id());}?>">
Modified files for Modern and Bender(for examples) in /oc-content/plugins/ultimatePayments/examples.
Important information!!! Show   

  ok   now simply follow this steps:

1) open -  oc-content/themes/osclasswizards/loop-search-list.php
   near 40 number line code -

  <?php $size = explode('x', osc_thumbnail_dimensions()); ?>
  <li class="listing-card <?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

Replace ---->

   <li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo'premium';}?>" id="<?php if(function_exists('upayments_premium_get_class_color')){echo upayments_premium_get_class_color(osc_premium_id());}?>">

2) open -  oc-content/themes/osclasswizards/loop-search-list.php

   near 160 number line code -

<?php $size = explode('x', osc_thumbnail_dimensions()); ?>
  <li class="listings_list listing-card<?php if(osc_item_is_premium()){ echo ' premium'; } ?>">

Replace ---->

<li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo'premium';}?>" id="<?php if(function_exists('upayments_get_class_color')){echo upayments_get_class_color(osc_item_id());}?>">


3)  OC-ADMIN  panel --->  Appearance --> Osclasswizard  ---> Theme Style   --> Custom CSS

add this code  & save --

.premium .list_space {
    background-color: rgb(255, 215, 0);   
}
#colorized .list_space {
    background: #98FB98!important;
}

you can change color code here for premium ads & highlighted ads


Now check premium &  highlighted ads now different color showing in Osclasswizard theme

 For more info or help call us - +91 9762105756

Can you advice in simple terms how to make it working on payment-pro plugin ?

also is there any way to just show highlighted ads on particular page

brian4274

  • Newbie
  • *
  • Posts: 6
Re: Osclasswizard highlighting items
« Reply #7 on: June 05, 2018, 08:45:35 am »
i can not get the highlight to work on my site...i am using osclasswizard theme with Osclass Pay Plugin
« Last Edit: June 10, 2018, 02:53:12 am by brian4274 »