Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
Please check now, i have updated your site to the latest dev version of core and locations manager.
Thanks,
Stiofan
You need to write a function to replace each element in certian circumstances.
add_filter('sd_detail_author_name', '_my_change_author_name',10,1); function _my_change_author_name($author_name){ if(1==1){ $author_name = 'new author name'; } return $author_name; }We can give you examples like above but we don’t do custom work, you would need to do it yourself or hire someone.
Thanks,
Stiofan
Great! 🙂
You are welcome!
2. You need to know the package ID, on the preview page this can be in two different ways, before its added and after its added
if(geodir_is_page('detail')){ $package_id = isset($post->package_id) ? $post->package_id : ''; }elseif(geodir_is_page('preview')){ $package_id = isset($_POST['package_id']) ? $_POST['package_id'] : ''; if(!$package_id && isset($_POST['pid']) ){ $package_id = geodir_get_post_meta($_POST['pid'], 'package_id', true); } } if($package_id==1 || $package_id==2){ // do something }else{ //do something else }Please check now, we actually already made a change for this and it will be in the next version of GD, i have applied it to your site.
Thanks,
Stiofan
Hello,
Please provide wp-admin details and a link to the affected page and we will have a look.
Thanks,
Stiofan
1. you can do OR ( || ) like
if ( $post->package_id == 64 || $post->package_id == 65 || $post->package_id == 66) {}2. If it does not work by default you might need to look at the $_POST or $_SESSION values.
Stiofan
If you are and admin and u added it then you should not need to claim it, but you could then just delete it from the backend, if u added it and said you were not the owner then yes, you can’t edit or delete it.
Stiofan
The ftp info now does not seem to be working either, please check.
Stiofan
Please check now, i added the following code snippet as your theme was adding an old ver of chosen.js
function _geowp_dequeue_maps_api() { wp_dequeue_script( 'google-maps' ); wp_deregister_script( 'chosen' ); if(defined('GEODIRECTORY_VERSION')){ wp_register_script('chosen', geodir_plugin_url() . '/geodirectory-assets/js/chosen.jquery.min.js', array(), GEODIRECTORY_VERSION); } } add_action( 'wp_print_scripts', '_geowp_dequeue_maps_api', 100 );Thanks,
Stiofan
I know there are a few using it but i don’t remember the url’s, hopefully one of them will reply.
Stiofan
Please make sure u have events selected under:
GD>design>Navigation>Show listing link in user dashboardThanks,
Stiofan
That is the hood slug, you need to match it against the table wp_geodir_post_neighbourhood to get all the info.
Stiofan
Please provide wp-admin and ftp details and we will take a look.
Thanks,
Stiofan
the css should be:
.widget .gd-cptcats-widget ul li:before { display: none; }Thanks,
Stiofan
-
AuthorPosts