jahusdtc
Forum Replies Created
-
AuthorPosts
-
Are you suggesting — in above example — that I create TWO identical Roofing Painter categories, one with Parent of Painters, one with Parent of Roofing?
It worked splendidly…thank you!
Now, a side-effect of that working is the (very proper!) removal of the Profile tab in Detail Page.
However, I was using the below action to echo out a little message on the freebie packages who did NOT get descriptions input. Can I FORCE a profile tab for these people in some way?
Your suggestion WAS a success. Guess I’m being a little unorthodox here.
I’ll do without the little message if I have to…the input part was more critical.
On the Geo>Prices and Payments>Prices>Free page, I see “Hide related listing tab” — can you tell me where I might check that out and see how it’s implemented, so I could do the OPPOSITE for the Profile tab for this usage?
Or…any other suggestion?
add_action ('geodir_before_description_on_listing_detail', 'geodir_show_custom_text_constant_for_free_price_package' ); function geodir_show_custom_text_constant_for_free_price_package() {..}
This reply has been marked as private.Hey, Kor.
Shall included images of :
the Geo>Business Settings (Place Settings renamed)
custom field in Add Listing
Coupon tab within detail page
Popup-type effect (not sure what you call this in GeoDirectory) within detail page.Am just playing with this for now and borrowed coupons from a site where MULTIPLE coupons are in one image.
Ultimate idea would be to print ONE coupon image.
Am presuming the customer either has the coupons already on image — or we would need to do that for them.
Basically, when click on image in the tab, you go into popup-type effect. When in that popup type effect, am trying to figure out a way to print the image shown.
Any ideas?
Or, can you tell me where the popup type box is shown in the codebase?
Thanks!
Thank you, Kiran, that did indeed add stuff beneath the top Featured Image Hero.
Couldn’t seem to make it work to put a link around that featured image, though.
This was my fix (done in localhost, eoh stuff is so I could search for changes.)
Realized I actually needed to be in Supreme Directory’s geodirectory-compatibility.php to effect this change.
From there, realized my “target” html/code was in sup_add_feat_img_head.
Instead of doing this the very proper way, I (my bad) played with editing the geodirectory-compatibility.php, since I’m playing on localhost.
I COULD have included this HUGE chunk of code in my functions.php, but that seemed like overkill to me. Either way, the same alterations would be made to the code.
First, I erred and tried to put an href link around the featured-img div. Not right.
Then, I realized that the link needed to be around the featured-area, instead.
To implement, I did the following — just in case someone else is trying to do this.
Above the <div class=”featured-area”> is a PHP code area.
Into that I inserted the following to check if there IS a website stored for the detail listing place.
If there’s a listing, we can do a link.Here’s the mini-code:
if(isset($post->geodir_website) && $post->geodir_website){ // echo 'There is a website - EOH'; // echo 'Website value is ' . $post->geodir_website; $add_a_link_to_featured_image_hero = TRUE; } else{ // echo 'There is NOT a website - EOH'; $add_a_link_to_featured_image_hero = FALSE; } //Whoopee, a website URL exists! if ($add_a_link_to_featured_image_hero) { echo '<a href="' . esc_url($post->geodir_website) . '" target="_blank" class="eoh">'; }
Then, you also have to search for the string “sd-detail-details end” — that’s where you put the END of the href — presuming a website was stored.
You check if you ADDED the start of the href with the $add_a_link_to_featured_image_hero variable.
That section now looks like this:
<!-- container end --> <?php do_action('sd-detail-details-container-after'); ?> </div> <?php if ($add_a_link_to_featured_image_hero){echo '</a>';}?> <!-- sd-detail-details end --> <?php do_action('sd-detail-details-after'); ?>
Hope this helps somebody!
Kiran, you got me in the right area to start looking. Thank you!
Is there an easier way than the above, do you think?
Sorry…one more note…feel free to deactivate any plugins you’d like…it’s a test site.
This reply has been marked as private.This reply has been marked as private.Any ideas on way ‘remove’ the description field completely for free packages?
Am I using the DropDown values improperly? What is their purpose?
This reply has been marked as private.1. Limit to what shows on Listing page (before Read More) — or what shows on Detail Page (in Profile tab)?
Logically, would think you’d be chopping what is saved in database?
2. I would love to wait until V2 comes online, but know you’re keeping that under wraps until fully debugged and tested. Since we don’t know when that will be, I think it would be better for now to know how to hide the_content (assume that’s Description) in some sort of hook.
3. I just tried to put a div and class around my little geodir_show_custom_text_constant_for_free_price_package function — idea was I could then delete everything on the tab EXCEPT for that little string, but :not wasn’t working properly (or I was USING improperly!)
Thanks for sticking with me on this query!
This reply has been marked as private.This reply has been marked as private.Sorry, here are more pertinent details and two images.
Picture USED in attached is: 1,170px × 348px
The Details picture and Listing picture are attached, so it makes clearer what I’m talking about in earlier message…I hope.
This reply has been marked as private. -
AuthorPosts