magnaromagna
Forum Replies Created
-
AuthorPosts
-
Ok, done and works fine.
November 28, 2014 at 2:36 pm in reply to: How to change default tab (from profile to review)? #22937Up.
Need to change some css?
Thanks!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 againOk. 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?
This reply has been marked as private.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-listingbut 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 ) ;
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 citypost_region
from Region to region?
Maybe this is extra support question:
– a global sql query to make all in lowercase, likeUPDATE mytable SET name = LOWER(name);
is it correct?
UPDATE geodir_gd_place_detail SET post_locations = LOWER(post_locations);
Thank you as usual
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 citiesNot a very beautiful procedure, but at least it works 😉
Any further tip is appreciated, thanksRestored the virtual page and now seems works fine, thanks.
Now I learned that virtual pages are not to be touched!This reply has been marked as private.November 24, 2014 at 1:47 pm in reply to: How to change default tab (from profile to review)? #22451Thanks. 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 //
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..This reply has been marked as private.Works perfect, thanks
(Added in Overwrite css)This reply has been marked as private. -
AuthorPosts