Giri
Forum Replies Created
-
AuthorPosts
-
Please post your site url too.
Thanks
Hi Tim, Thats a link wrapper with if check. If you are not seeing that link then it means you have not filled the Email field.
As for your question, you need to place the code where you want to display the link.
Let me know if I misunderstood your question.
Thanks
Hi there,
we recently moved ayi feature from a separate addon to buddypress. So its still using the geodir-ayi textdomain instead of the buddypress one. I just changed the textdomain to use buddypress one. Uploaded the plugin to your site via ftp.
Let me know if you still have problem. Thanks
Hi there,
The code I given earlier is for the categories you see in sidebar. For the top part use this code.
add_filter('geodir_details_taxonomies_output', 'geodir_details_taxonomies_output_commaless', 10, 4); function geodir_details_taxonomies_output_commaless($taxonomies, $post_type,$listing_label, $listing_label_uc) { if (!geodir_is_page('detail')) { return $taxonomies; } $post_taxonomy = $post_type . 'category'; if (isset($taxonomies[$post_taxonomy])) { $taxonomies[$post_taxonomy] = str_replace("</a> and <a", "</a><a", $taxonomies[$post_taxonomy]); $taxonomies[$post_taxonomy] = str_replace("</a>, and <a", "</a><a", $taxonomies[$post_taxonomy]); $taxonomies[$post_taxonomy] = str_replace("</a>, <a", "</a><a", $taxonomies[$post_taxonomy]); } return $taxonomies; }
function geodir_cf_taxonomy_modified($html,$location,$cf,$p=''){ // check we have the post value if(is_int($p)){$post = geodir_get_post_info($p);} else{ global $post;} if(!is_array($cf) && $cf!=''){ $cf = geodir_get_field_infoby('htmlvar_name', $cf, $post->post_type); if(!$cf){return NULL;} } $html_var = $cf['htmlvar_name']; // Check if there is a location specific filter. if(has_filter("geodir_custom_field_output_taxonomy_loc_{$location}")){ /** * Filter the taxonomy html by location. * * @param string $html The html to filter. * @param array $cf The custom field array. * @since 1.6.6 */ $html = apply_filters("geodir_custom_field_output_taxonomy_loc_{$location}",$html,$cf); } // Check if there is a custom field specific filter. if(has_filter("geodir_custom_field_output_taxonomy_var_{$html_var}")){ /** * Filter the taxonomy html by individual custom field. * * @param string $html The html to filter. * @param string $location The location to output the html. * @param array $cf The custom field array. * @since 1.6.6 */ $html = apply_filters("geodir_custom_field_output_taxonomy_var_{$html_var}",$html,$location,$cf); } // Check if there is a custom field key specific filter. if(has_filter("geodir_custom_field_output_taxonomy_key_{$cf['field_type_key']}")){ /** * Filter the taxonomy html by field type key. * * @param string $html The html to filter. * @param string $location The location to output the html. * @param array $cf The custom field array. * @since 1.6.6 */ $html = apply_filters("geodir_custom_field_output_taxonomy_key_{$cf['field_type_key']}",$html,$location,$cf); } // If not html then we run the standard output. if(empty($html)){ if ($html_var == $post->post_type . 'category' && !empty($post->{$html_var})) { $post_taxonomy = $post->post_type . 'category'; $field_value = $post->{$html_var}; $links = array(); $terms = array(); $termsOrdered = array(); if (!is_array($field_value)) { $field_value = explode(",", trim($field_value, ",")); } $field_value = array_unique($field_value); if (!empty($field_value)) { foreach ($field_value as $term) { $term = trim($term); if ($term != '') { $term = get_term_by('id', $term, $html_var); if (is_object($term)) { $links[] = "<a href='" . esc_attr(get_term_link($term, $post_taxonomy)) . "'>" . $term->name . "</a>"; $terms[] = $term; } } } if (!empty($links)) { // order alphabetically asort($links); foreach (array_keys($links) as $key) { $termsOrdered[$key] = $terms[$key]; } $terms = $termsOrdered; } } $html_value = !empty($links) && !empty($terms) ? $links : ''; if (is_array($html_value)) { $html_value = implode(' ', $html_value); } if ($html_value != '') { $field_icon = geodir_field_icon_proccess($cf); if (strpos($field_icon, 'http') !== false) { $field_icon_af = ''; } else if ($field_icon == '') { $field_icon_af = ''; } else { $field_icon_af = $field_icon; $field_icon = ''; } $html = '<div class="geodir_more_info ' . $cf['css_class'] . ' ' . $html_var . '" style="clear:both;"><span class="geodir-i-taxonomy geodir-i-category" style="' . $field_icon . '">' . $field_icon_af; $html .= (trim($cf['site_title'])) ? __($cf['site_title'], 'geodirectory') . ': ' : ''; $html .= '</span> ' . $html_value . '</div>'; } } } return $html; } remove_filter('geodir_custom_field_output_taxonomy','geodir_cf_taxonomy',10); add_filter('geodir_custom_field_output_taxonomy','geodir_cf_taxonomy_modified',10,3);
July 18, 2017 at 2:42 pm in reply to: move logo to middle of the featured image – Supreme theme #387533I’m glad you made it work.
I’ll mark this thread as resolved.
Thanks
July 18, 2017 at 2:34 pm in reply to: move logo to middle of the featured image – Supreme theme #387528Hi there,
You need to hire someone to customize the theme as per your needs. We don’t provide customization even for paid users. Sorry about that.
Hi George,
Can you make sure thats the correct url? Its not working
List manager used to support only whoop theme. But now it support all themes.
These are the path you should know.
/add-list/ -> to add new list
/lists/ -> view all listsHi don,
When you activate the plugin, it creates some pages. Register, login etc. But if the page already exists then the page creation will be skipped.
Just visit UsersWP -> UsersWP -> General and make sure all pages are assigned.
If yes then make sure your site uses non default permalink structure.
UsersWP is a standalone plugin and its not depends on GD. But with our GD integration addon you can display the tabs like Listings, Reviews, Favorites in the users profile.
I would advise you to go through all these docs.
https://userswp.io/docs/category/core-plugin/As for your questions
#1 UsersWP is a buddypress replacement. If you have already used buddypress integration addon for GD, then our uwp_geodirectory addon does the same thing for UsersWP.#2 What is the problem you have? Just make sure the pages are assigned correctly in UsesWP > General and also make sure buddypress registration page not interfering with UsersWP page.
I have explained all those in this doc. https://userswp.io/docs/userswp-pages/ So its very clear you have not gone through those docs.
Please go through them and then ask me if you have any questions. I’m happy to assist you.
Thanks
Hi james,
This code might help you to add the tabs at the bottom. But you need custom styles to change the styles bottom up and and js code to function properly. For that you need to hire a developer.
add_action('geodir_details_main_content', 'gd_tabs_at_detail_bottom', 70); function gd_tabs_at_detail_bottom() { $arr_detail_page_tabs = geodir_detail_page_tabs_list(); ?> <dl class="geodir-tab-head"> <?php $tab_list = ( get_option( 'geodir_disable_tabs', false ) ) ? true : false; foreach ( $arr_detail_page_tabs as $tab_index => $detail_page_tab ) { if ( $detail_page_tab['is_display'] ) { if ( ! $tab_list ) { ?> <dt></dt> <!-- added to comply with validation --> <dd <?php if ( $detail_page_tab['is_active_tab'] ){ ?>class="geodir-tab-active"<?php } ?> ><a data-tab="#<?php echo $tab_index; ?>" data-status="enable"><?php _e( $detail_page_tab['heading_text'], 'geodirectory' ); ?></a> </dd> <?php } } // end of if for is_display }// end of foreach ?> </dl> <?php }
Hi can you post your site url. I’ll give you custom css
ThanksUsersWP is a light weight replacement for BuddyPress. You don’t require buddypress in order to use UsersWP. So yes you can deactivate buddypress if you want.
Please post your login credentials in a private reply. I’ll take a look about those bugs.
Thanks
You are welcome.
Hi Richard you use to use if else loop for that.
global $post; $count = geodir_get_review_count_total($post->ID); if ($count) { echo $count; } else { echo "0 Reviews"; }
-
AuthorPosts