Dan Minimal
Forum Replies Created
-
AuthorPosts
-
Ho Stiofan,
Thanks for the heads up. I have backups of the affected files as well as a spreadsheet notating the reason for the modification and altered files. If an update happens to overwrite the files I can easily merge my changes into the new files.I did notice that you do offer a wide array of addons. I don’t need any of them at the moment, but if I ever do and find a conflict I will work through it and arise victorious on the other side.
Best, Danny
Thanks Alex. I’ve been coding since 2007. I’m good. Just need a kick into the right direction from time to time. Just modified the search to not include “near”. Which caused jquery error. Went about it another way by removing the wrapper div and then changing the snear input type from text to hidden so that the js could still fire on it. It’s really coming along nicely. Thanks for the great platform!
Dan.
ehhh, guess I didn’t realize the full scope of what you’re all doing here. Give the main plugin with places for free, but sell many more add-ons. So, my apologies for posting an address solution (for those who can follow along). I’ll be sure to keep my customizations to myself from now on. lol. Sorry about that.
Danny
Thanks for the tip, but it looks like I just saved $40 by doing it myself.
Ok. Got it. in file wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php
Comment out lines 718 through 726 and replace with
if (isset($post->post_address) && $post->post_address) {
$sd_address .= stripslashes($post->post_address);
}Done!
Danny
Ok. So on the details page on the frontend in the div with class “geodir_more_info post_address” I have resolved the double state and city showing. It was my fault that it was showing, but I still needed to be able to add a listing for a business other than just those local to the default location. In the file wp-content/plugins/geodirectory/geodirectory-functions/custom_fields_output_functions.php on lines 1752 add //$show_city_in_address = true; and 1764 add // $show_region_in_address = true;. Now the entire address ( 111 Fake St, Sometown, Ohio, 44009 ) must be added in the admin on the address line. This is doing the trick, but I still need to take care of the div with class “sd-address” which shows the default location city and state just below the “sd-entry-title”.
Where can I get the location icons? I did the dummy data with just 10 records so now I have just 5 or so location icons. I figure they were programatically downloaded from somewhere, but I’ve yet to figure out where from. Looking over server logs and file system code now…
Thank You,
Dannysure. no problem. I certainly appreciate your jumping in here to help me out I just don’t care much for band-aids. The reason I wanted to remove the author name is because it discloses to the world what the user name is. If it’s just display:none; then only honest people aren’t going to see it. Anyone with nefarious intentions will still find it. I don’t plan to have bunch of people registering as I will be doing all the business listings. I have no problem working inside of php I just don’t do a whole lot with WP.
Thanks again,
DannyI just went ahead and removed
<div class="sd-detail-author"> <?php $is_owned = false; if (!$preview && function_exists('geodir_load_translation_geodirclaim')) { $geodir_post_type = get_option('geodir_post_types_claim_listing', array()); if (in_array($post_type, $geodir_post_type)) { $is_owned = !$duplicate_of ? (int)geodir_get_post_meta($post_id, 'claimed', true) : (int)geodir_get_post_meta($duplicate_of, 'claimed', true); if ($is_owned) { ?> <span class="fa fa-stack sd-verified-badge" title="<?php _e('Verified Owner', 'supreme-directory'); ?>"> <i class="fa fa-circle fa-inverse"></i> <i class="fa fa-check-circle"></i> </span> <?php } else { $author_link = '#'; $author_name = __('Claim Me', 'supreme-directory'); $entry_author = '<img src="'.get_stylesheet_directory_uri() . "/images/gravatar2.png".'" height="100" width="100">'; } } } $author_name = apply_filters('sd_detail_author_name', $author_name); $entry_author = apply_filters('sd_detail_entry_author', $entry_author); $author_link = apply_filters('sd_detail_author_link', $author_link); printf('<div class="author-avatar"><a href="%s">%s</a></div>', esc_url($author_link), $entry_author); if (!defined('GEODIRCLAIM_VERSION') || $is_owned == '1') { printf('<div class="author-link"><span class="vcard author author_name"><span class="fn"><a href="%s">%s</a></span></span></div>', esc_url($author_link), esc_attr($author_name)); do_action('sd_detail_author_extra', $post, $author_link, $author_name); } else { do_action('sd_detail_default_author', $post, $author_link, $author_name); } if (is_user_logged_in() && geodir_listing_belong_to_current_user()) { global $preview; if( $preview ){ $editlink = '#'; } ?> <a href="<?php echo esc_url($editlink); ?>" class="supreme-btn supreme-btn-small supreme-edit-btn"><i class="fa fa-edit"></i> <?php echo __('Edit', 'supreme-directory'); ?></a> <?php } if (function_exists('geodir_load_translation_geodirclaim')) { $geodir_post_type = array(); if (get_option('geodir_post_types_claim_listing')) { $geodir_post_type = get_option('geodir_post_types_claim_listing'); } $posttype = (isset($post->post_type)) ? $post->post_type : ''; if (in_array($posttype, $geodir_post_type) && !$preview) { $is_owned = !$duplicate_of ? (int)geodir_get_post_meta($post_id, 'claimed', true) : (int)geodir_get_post_meta($duplicate_of, 'claimed', true); if (get_option('geodir_claim_enable') == 'yes' && !$is_owned ) { if ($duplicate_of) { $current_url = get_permalink($duplicate_of); $current_url = add_query_arg(array('gd_go' => 'claim'), $current_url); if (!is_user_logged_in()) { $current_url = geodir_login_url(array('redirect_to' => urlencode_deep($current_url))); $current_url = apply_filters('geodir_claim_login_to_claim_url', $current_url, $duplicate_of); } echo '<a href="' . esc_url($current_url) . '" class="supreme-btn supreme-btn-small supreme-edit-btn"><i class="fa fa-question-circle"></i> ' . __('Claim', 'supreme-directory') . '</a>'; } else { if (is_user_logged_in()) { echo '<div class="geodir-company_info">'; echo '<div class="geodir_display_claim_popup_forms"></div>'; echo '<a href="javascript:void(0);" class="supreme-btn supreme-btn-small supreme-edit-btn geodir_claim_enable"><i class="fa fa-question-circle"></i> ' . __('Claim', 'supreme-directory') . '</a>'; echo '</div>'; echo '<input type="hidden" name="geodir_claim_popup_post_id" value="' . $post->ID . '" />'; if (!empty($_REQUEST['gd_go']) && $_REQUEST['gd_go'] == 'claim' && !isset($_REQUEST['geodir_claim_request'])) { echo '<script type="text/javascript">jQuery(function(){jQuery(".supreme-btn.geodir_claim_enable").trigger("click");});</script>'; } } else { $current_url = remove_query_arg(array('gd_go'), geodir_curPageURL()); $current_url = add_query_arg(array('gd_go' => 'claim'), $current_url); $login_to_claim_url = geodir_login_url(array('redirect_to' => urlencode_deep($current_url))); $login_to_claim_url = apply_filters('geodir_claim_login_to_claim_url', $login_to_claim_url, $post->ID); echo '<a href="' . esc_url($login_to_claim_url) . '" class="supreme-btn supreme-btn-small supreme-edit-btn"><i class="fa fa-question-circle"></i> ' . __('Claim', 'supreme-directory') . '</a>'; } } } } } ?> </div> <!-- sd-detail-suthor end -->
ehhh. I don’t want to hide it. I want to remove it. I find it on line 708 to line 801 in geodirectory-compatibility.php in the wp-content/themes/supreme-directory/inc directory, but I know there’s one of them function/hook ways of doing it without removing a chunk of code.
Thank You,
DanHow can I remove the section that mentions which user added the place listing? On the front end once the place listing is clicked, you see the listing name, reviews, phone etc…, but to the left of it you can see who added the listing. That’s what I want to remove.
Please and Thank You, Danny
Ahhhh I feel like a jackass. I got it now. Set home page!
I’m sure I’ll run into other issues. Thank you.
-
AuthorPosts