magnaromagna

Forum Replies Created

Viewing 15 posts - 181 through 195 (of 205 total)
  • Author
    Posts
  • in reply to: Translate of location switcher? #23387

    magnaromagna
    Expired Member
    Post count: 227

    Ok, done and works fine.

    in reply to: How to change default tab (from profile to review)? #22937

    magnaromagna
    Expired Member
    Post count: 227

    Up.
    Need to change some css?
    Thanks!

    in reply to: Conflict Region Location and issue on switcher #22880

    magnaromagna
    Expired Member
    Post count: 227

    Thanks I understand. But since I have to change tons of cities, I’d like to know if instead using the merging tool I can massively change the
    post_locations
    and
    post_region
    fields, as described above. Be patient, I have to change more than 8,000 cities. Thanks again

    in reply to: Conflict Region Location and issue on switcher #22845

    magnaromagna
    Expired Member
    Post count: 227

    Ok. That the strange issue: by public “Add new place” (add-listing/?listing_type=gd_place)
    if I click on Country, then the Region shown also Rome, and then the city also permits Rome as city. As stated in Multilocation list of cities. Good.
    But if, in the same add-listing/?listing_type=gd_place , if I put the address, it locate differently, it shows Italy –>Lazio –>Rome (as like when I edit a listing through wp-admin)

    So, what is the next? Is possible to fix it? Or is better use what it suggests? In 2nd choice, I will have to change about 8,000 cities. I can do if I know is the best choice thinking about the growth of the project. Thank again for tip.

    Edit: if (as I presume) the best is the 2nd choice, is faster change all directly in phpmyadmin. It’s enough to change in geodir_gd_place_detail the fields

    post_locations
    from [rome],[rome],[italy]
    to [bologna],[emilia-romagna],[italy]
    AND
    post_region
    from [Rome] to [Lazio]

    Or merging cities as suggested in docs will also change other tables/fields?

    in reply to: Conflict Region Location and issue on switcher #22820

    magnaromagna
    Expired Member
    Post count: 227
    This reply has been marked as private.
    in reply to: Upper/Lower cases in region/cities urls/slug #22815

    magnaromagna
    Expired Member
    Post count: 227

    Hi,
    I changed all post_locations to lowercase* and the listing now are fine
    country/region/city/name-of-listing
    instead of
    Country/Region/City/name-of-listing

    but the breadcrumbs are still with Uppercase (Country/Region/City)
    Maybe need to change other fields? For example country_slug and region_slug ?

    Thanks

    p.s. If someone needs it, that the sql query I run to force every field to lowercase:

    UPDATE

    geodir_gd_place_detail

    SET post_locations = lcase( post_locations ) ;
    in reply to: Upper/Lower cases in region/cities urls/slug #22679

    magnaromagna
    Expired Member
    Post count: 227

    Ok, thanks, I will update them into database. A quick question:
    Need only to modify
    post_locations
    from [City],[Region],[Italy]
    to [city],[region],[italy]

    or also:

    post_city
    from City to city

    post_region
    from Region to region

    ?

    Maybe this is extra support question:
    – a global sql query to make all in lowercase, like

    UPDATE mytable SET name = LOWER(name);

    is it correct?

    UPDATE geodir_gd_place_detail SET post_locations = LOWER(post_locations);

    Thank you as usual

    in reply to: Edit bulk of listing location? #22558

    magnaromagna
    Expired Member
    Post count: 227

    It’s seems working: also have to add the ID of the city. So my steps are:
    – edit one listing through wp-admin
    – search in phpmyadmin / table geodir_gd_place_detail
    that city
    – inline I edit post_location_id , post_locations ([name-of-city],[name-of-region],[contry]), post_city and post_region
    so maps for that city are populated
    – re-start for other cities

    Not a very beautiful procedure, but at least it works 😉
    Any further tip is appreciated, thanks

    in reply to: Location not shown in title tag #22532

    magnaromagna
    Expired Member
    Post count: 227

    Restored the virtual page and now seems works fine, thanks.
    Now I learned that virtual pages are not to be touched!

    in reply to: Location not shown in title tag #22485

    magnaromagna
    Expired Member
    Post count: 227
    This reply has been marked as private.
    in reply to: How to change default tab (from profile to review)? #22451

    magnaromagna
    Expired Member
    Post count: 227

    Thanks. I followed instructions, and inserted the code mentionned by adding at first place the review tab instead the profile tab. But opening a detail page is still show the Profile as default (even in 2nd tabs instead of 1st). My question is how can I force open the review tab instead the profile tab. Maybe through CSS? Thanks again

    
    
    // begin change order tabs //
    
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
    
    function geodir_detail_page_tab_list_extend($tab_array)
    {
     // here u can modify this array, u can create a completely new one too.
         if(isset($tab_array['reviews'])){
             $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array
    		 unset($tab_array['reviews']);//unset in old one
    	 }
         if(isset($tab_array['post_profile'])){
             $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array
    		 unset($tab_array['post_profile']);//unset in old one
    	 }
    
         if(isset($tab_array['post_map'])){
             $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array
    		 unset($tab_array['post_map']);//unset in old one
    	 }
    
        if(isset($tab_array['special_offers'])){
             $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array
    		 unset($tab_array['special_offers']);//unset in old one
    	}
    
         if(isset($tab_array['post_info'])){
             $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array
    		 unset($tab_array['post_info']);//unset in old one
    	 }
    
        if(isset($tab_array['post_images'])){
             $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array
    		 unset($tab_array['post_images']);//unset in old one
    	}
    
        if(isset($tab_array['post_video'])){
             $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array
    		 unset($tab_array['post_video']);//unset in old one
    	}
    
         if(isset($tab_array['special_offers'])){
             $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array
    		 unset($tab_array['special_offers']);//unset in old one
    	 }
    
         
    
    	// now we set any remaining tabs that have not been assigned an order
    	foreach($tab_array as $key=>$tab){
    	$new_tab_array[$key]=$tab;
    	}
    
        return $new_tab_array ;
    }
    
    // end change order tabs //
    
    in reply to: Switcher locator add wrong place in the url #22411

    magnaromagna
    Expired Member
    Post count: 227

    I noticed the issue is also withing the breadcrumb: if I digit the url
    http://baltazar.it/geodirectory/locali/genova/ancioe-belle-donne-genova/
    that is in the region “Genova”, the breadcrumbs show the url
    http://baltazar.it/geodirectory/locali/imola/
    of the city of “Imola”, previous visited..

    in reply to: Switcher locator add wrong place in the url #22407

    magnaromagna
    Expired Member
    Post count: 227
    This reply has been marked as private.
    in reply to: Move breadcrumbs under the map, what the file? #22286

    magnaromagna
    Expired Member
    Post count: 227

    Works perfect, thanks
    (Added in Overwrite css)

    in reply to: Move breadcrumbs under the map, what the file? #22283

    magnaromagna
    Expired Member
    Post count: 227
    This reply has been marked as private.
Viewing 15 posts - 181 through 195 (of 205 total)