Paolo
Forum Replies Created
-
AuthorPosts
-
Hi,
one (renamed but with correct slug) was in the trash, the other one was rename business directory.
There still one missing : All Listings, but that’s a useless page (which we should remove completely)
FInding pages with the same slug was preventing him to restore them.
Now you can remove the function.
Thx
No, I don’t think so. It will strip any code you try to add. Only text can be added there.
Sorry about it.
Hi,
It could be done via sql probably with few queries, but it would probably take few hours of trial and errors to make sure to get it right.
Or exporting db table, find/replace and reimport.
Or doing it manually via user interface.
Tables where regions are saved are:
geodir_post_locations (The location)
geodir_gd_place_detail (Inside each listing)
geodir_gd_”cpt”_detail (The above must be repeted for each CPT if any)
geodir_location_seo (only if you edited the defaults)Thx
Glad with was that easy… 🙂
Yes it has.
http://wpgeo.directory/attractions/united-states/new-york/new-york/museum/museum-of-modern-art/
in the event tab you can see the Event linked to the place.
In the Event’s sidebar there is a link “Go to Attraction” taking the visitor to the place linked to the event.
To enable the Link to business feature, you must have the Prices and Payments addon installed and In Events prices, down at the bottom where it says : Event Features Only
Link business : select Yes.
At that point you will see a new Link business search autocompleter in the event listing form.
Example: http://wpgeo.directory/add-listing/?listing_type=gd_event
Thx
Hi,
no a hook there hasn’t been added yet. However is very simple to duplicate that widget from your themes functions.php file and add the social connect action.
Just add this to your functions.php file of your active theme/child theme:
// Login box with Social Connect class my_geodir_loginwidget extends WP_Widget { function my_geodir_loginwidget() { //Constructor $widget_ops = array( 'classname' => 'my_geodir_loginbox', 'description' => __( 'MY Geodirectory Loginbox Widget', GEODIRECTORY_TEXTDOMAIN ) ); $this->WP_Widget( 'my_geodir_loginbox', __( 'GD > My Loginbox',GEODIRECTORY_TEXTDOMAIN ), $widget_ops ); } function widget( $args, $instance ) { // prints the widget extract( $args, EXTR_SKIP ); $title = empty( $instance['title'] ) ? __( 'My Dashboard', GEODIRECTORY_TEXTDOMAIN ) : apply_filters( 'widget_title', __( $instance['title'],GEODIRECTORY_TEXTDOMAIN ) ); echo $before_widget; echo $before_title.$title.$after_title; if( is_user_logged_in() ) { global $current_user; $login_url = geodir_getlink( home_url(), array( 'geodir_signup' => 'true' ), false ); $add_listurl = get_permalink( get_option( 'geodir_add_listing_page' ) ); $add_listurl = geodir_getlink( $add_listurl, array( 'listing_type' => 'gd_place' ) ); $author_link = get_author_posts_url( $current_user->data->ID ); $author_link = geodir_getlink( $author_link, array( 'geodir_dashbord' => 'true' ), false ); echo '<ul class="geodir-loginbox-list">'; ob_start(); ?> <li><a class="signin" href="<?php echo wp_logout_url( home_url() );?>"><?php _e( 'Logout', GEODIRECTORY_TEXTDOMAIN );?></a></li> <?php $post_types = geodir_get_posttypes( 'object' ); $show_add_listing_post_types_main_nav = get_option( 'geodir_add_listing_link_user_dashboard' ); $geodir_allow_posttype_frontend = get_option( 'geodir_allow_posttype_frontend' ); if( !empty( $show_add_listing_post_types_main_nav ) ) { $addlisting_links = ''; foreach($post_types as $key => $postobj){ if(in_array($key, $show_add_listing_post_types_main_nav)){ if($add_link = geodir_get_addlisting_link( $key )){ $name = $postobj->labels->name; $selected = ''; if(geodir_get_current_posttype() == $key && geodir_is_page('add-listing')) $selected = 'selected="selected"'; $addlisting_links .= '<option '.$selected.' value="'.$add_link.'">'.__( ucfirst( $name ), GEODIRECTORY_TEXTDOMAIN ).'</option>'; } } } if($addlisting_links != ''){ ?> <li><select id="geodir_add_listing" class="chosen_select" onchange="window.location.href=this.value" option-autoredirect="1" name="geodir_add_listing" option-ajaxchosen="false" > <option value="<?php echo home_url();?>"><?php _e('Add Listing',GEODIRECTORY_TEXTDOMAIN);?></option> <?php echo $addlisting_links;?> </select></li> <?php } } // My Favourites in Dashboard $show_favorite_link_user_dashboard = get_option( 'geodir_favorite_link_user_dashboard' ); $user_favourite = geodir_user_favourite_listing_count(); if ( !empty( $show_favorite_link_user_dashboard ) && !empty( $user_favourite ) ) { $favourite_links = ''; foreach ( $post_types as $key => $postobj ) { if( in_array( $key, $show_favorite_link_user_dashboard ) && array_key_exists( $key, $user_favourite ) ) { $name = $postobj->labels->name; $post_type_link = geodir_getlink( $author_link, array( 'stype' => $key, 'list' => 'favourite' ), false ); $selected = ''; if( isset( $_REQUEST['list'] ) && $_REQUEST['list'] == 'favourite' && isset( $_REQUEST['stype'] ) && $_REQUEST['stype'] == $key && isset( $_REQUEST['geodir_dashbord'] ) ) { $selected = 'selected="selected"'; } $favourite_links .= '<option ' . $selected . ' value="' . $post_type_link . '">' . __( ucfirst( $name ), GEODIRECTORY_TEXTDOMAIN ) . '</option>'; } } if( $favourite_links != '' ) { ?> <li> <select id="geodir_my_favourites" class="chosen_select" onchange="window.location.href=this.value" option-autoredirect="1" name="geodir_my_favourites" option-ajaxchosen="false"> <option value="<?php echo home_url();?>"><?php _e('My Favorites',GEODIRECTORY_TEXTDOMAIN);?></option> <?php echo $favourite_links;?> </select> </li> <?php } } $show_listing_link_user_dashboard = get_option('geodir_listing_link_user_dashboard'); $user_listing = geodir_user_post_listing_count(); if ( !empty( $show_listing_link_user_dashboard ) && !empty( $user_listing ) ) { $listing_links = ''; foreach ( $post_types as $key => $postobj ) { if( in_array( $key, $show_listing_link_user_dashboard ) && array_key_exists( $key, $user_listing ) ) { $name = $postobj->labels->name; $listing_link = geodir_getlink( $author_link, array( 'stype' => $key ), false ); $selected = ''; if ( !isset( $_REQUEST['list'] ) && isset( $_REQUEST['geodir_dashbord'] ) && isset( $_REQUEST['stype'] ) && $_REQUEST['stype'] == $key ) { $selected = 'selected="selected"'; } $listing_links .= '<option ' . $selected . ' value="' . $listing_link.'">' . __( ucfirst( $name ), GEODIRECTORY_TEXTDOMAIN ) . '</option>'; } } if( $listing_links != '' ) { ?> <li> <select id="geodir_my_listings" class="chosen_select" onchange="window.location.href=this.value" option-autoredirect="1" name="geodir_my_listings" option-ajaxchosen="false"> <option value="<?php echo home_url();?>"><?php _e('My Listings',GEODIRECTORY_TEXTDOMAIN);?></option> <?php echo $listing_links;?> </select> </li> <?php } } $dashboard_link = ob_get_clean(); echo apply_filters( 'geodir_dashboard_links', $dashboard_link ); echo '</ul>'; } else { ?> <form name="loginform" class="loginform1" action="<?php echo get_option('home').'/index.php?geodir_signup=true'; ?>" method="post" > <div class="geodir_form_row"><input placeholder="<?php _e('Email', GEODIRECTORY_TEXTDOMAIN);?>" name="log" type="text" class="textfield user_login1" /> <span class="user_loginInfo"></span> </div> <div class="geodir_form_row"><input placeholder="<?php _e('Password', GEODIRECTORY_TEXTDOMAIN);?>" name="pwd" type="password" class="textfield user_pass1" /><span class="user_passInfo"></span> </div> <input type="hidden" name="redirect_to" value="<?php echo geodir_curPageURL(); ?>" /> <input type="hidden" name="testcookie" value="1" /> <div class="geodir_form_row clearfix"><input type="submit" name="submit" value="<?php echo SIGN_IN_BUTTON;?>" class="b_signin"/><p class="geodir-new-forgot-link"> <a href="<?php echo home_url(); ?>/?geodir_signup=true&page1=sign_up" class="goedir-newuser-link"><?php echo NEW_USER_TEXT;?></a> <a href="<?php echo home_url(); ?>/?geodir_signup=true&page1=sign_in"class="goedir-forgot-link"><?php echo FORGOT_PW_TEXT;?></a> </p> </div> <?php do_action( 'social_connect_form' ); ?> </form> <?php } echo $after_widget; } function update($new_instance, $old_instance) { //save the widget $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { //widgetform in backend $instance = wp_parse_args( (array) $instance, array( 'title' => '', 't1' => '', 't2' => '', 't3' => '', 'img1' => '', 'desc1' => '' ) ); $title = strip_tags($instance['title']); ?> <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Widget Title',GEODIRECTORY_TEXTDOMAIN);?>: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p> <?php } } function my_loginbox_register_widget() { register_widget('my_geodir_loginwidget'); } add_action( 'widgets_init', 'my_loginbox_register_widget' );Now you will find a second loginbox widget called GD > My Loginbox. Use that instead of the original.
I’m asking you to duplicate the widget, because otherwise you would lose the customization after every update.
Thx
This is what I see at that URL.
Are you sure that your session is set to everywhere right now?
Make sure to reset sessions, by changing location and changing back.
Let us know,
Thx
This reply has been marked as private.Guust is right, at the moment, there isn’t a widget that will do exactly what you want.
Thx
Hi,
too many parts of both the core plugin and the addons would have to be rewritten to achieve something similar.
In the future we may be interested in extending other map providers (possibly one that includes china).
For what you are considering, it would have to be considering a customization (a major one) and not something we can provide support for.
Thanks
nope sorry, only name.
thxHi,
as I told you on November 12, 2014 at 9:27 pm, wp admin credentials are wrong.
If we can’t check your website’s settings, we can’t really help you and we both waste precious time.
In any case, your location page http://www.yogahealthbeauty.com/location/ is blank.
Either you don’t have the location virtual page in place (I doubt, because it would return a 404 page), or you don’t have widgets in place in the home top section, content section and right section widgets areas.
If the widgets areas are blank, location pages will be blank too.
You are still confusing the Places page (which is an archive of the custom post type place) and the Location page which is the directory home page.
In fact you are using the places page as a link in your navigation as the main directory link (when it should really be /location/)
If with the location switcher you move to a different location, you set a session and if you go back to this page: http://www.yogahealthbeauty.com/places/
it will show you places only for the location for which a session has been saved. To save back to everywhere, you need to use the location switcher again. In fact if you look at it, you will notice that the location switcher will now display the name of the city previously selected.
Hope it’s clearer now.
Thx
Hi Pawon,
I’ve re-flagged this for Stiofan’s attention. Unfortunately, this is something I’d need his help to do too.
Thanks
Hi,
we just looked into it in details and currently there is no way to import categories with commas in their name via csv file, because we use explode to separate the categories delimited by commas and explode does not recognise escape characters.
Slugs will not work either, it only work by category name.
The only quick solution would be to avoid using commas in categories (if are to be imported via csv).
Or modify the category name removing all commas before importing and than add them back after import is done.
Thx
I sent you the link yesterday that shows the error message that it displayed, but have not heard back.
Where did you send it?
This is the only place where we offer support and there are not other topics from you.
Let us know,
Thx
-
AuthorPosts