Fernando
Forum Replies Created
-
AuthorPosts
-
Yes I am aware of it.
But needs to control it by the Network Administrator, not by the site administrator. Don’t want the site administrator to change it.Thanks.
Hi,
Using GD V2.
Thanks.
Does it work the same way for the OSM (city boundaries)?
Thanks.
February 28, 2019 at 2:35 pm in reply to: Listings NOT FOUND after activating Location Manager #471690Hi,
When the switcher for GD V2 “Change Location” is clicked, a drop down menu is shown on a popup.
Is it possible to get the V1 style dropdown menu when the “Change Location” is hovered (similar to what you get in https://wpgeo.directory/supreme-directory/)?
Thanks.
February 28, 2019 at 9:44 am in reply to: Listings NOT FOUND after activating Location Manager #471612Thanks.
All sorted now.Kind Regards
February 27, 2019 at 8:15 am in reply to: Listings NOT FOUND after activating Location Manager #471377Mange to get the listing “NOT FOUND” issue sorted after changing the GeoDirectory permalinks.
But still unable to get the “location tab switcher” appear in the top menu.
Any suggestion please?Thanks.
Hi,
The working demo site with user customizable & iCal sync calendars is here at https://demo.rental.agency
Planning to install it on all subsites of our sub domain multisite rental advertising SaaS.
Rgds.
My requirement was wee bit complicated than I mentioned in the post.
However, your examples on the GitHub and guidance on this post helped me to arrive at the final solution and it works fine for me now.I shall later post a link of the working demo later.
Thank you very much once again.
Kind regards.
I think I am getting there very slowly.
Can you please tell me how would I use a function similar to the following inside a Custom Field (for GD Sidebar).
QUOTE:
public function insert_shortcode_function(){
ob_start();
?>
function sd_insert_shortcode(){
$shortcode = jQuery(‘#sd-shortcode-output’).val();
if($shortcode){
jQuery(‘.gd-tab-settings-open textarea’).val($shortcode);
tb_remove();
}
}
<?php
return ob_get_clean();}
UNQUOTE:Then, I might be able to modify the function furthermore to get only number inserted, instead of the
[mycal id=”1″] as explained in my last post.– Thank you.
Thanks for the reply.
Yes, I flowed the your instruction on GitHub as well.
I can make the custom field work.
I created a gd_calendar.But the calendar is unique for a gd_place.
I need to add a Shortcode something similar to “[mycal id=”1″] if I use the calendar id1.
Then, if I use calendar id-2 to a different post the shortcode would be [mycal id=”2”] etc.So, all I need the user to insert is the ID number only.
Not the whole Shortcode.How would I create a filter to achieve this.
So that I could allow user to inser ID numbers of different different calendars.Front end user will not see the shortcode.
Only inserting the number.– Thanks
Also, please note that my add filter will be..
add_filter(‘geodir_custom_fields’,’custom_myobject’,10,2);– Thanks
Thanks.
Pls note that I do not want to do the customization of $default_value in Line 1523 of class-geodir-settings-cpt-cf.php. But wish to achieve it by an external snippet function so that the custom function will not get affected by any future updates.
Rgds
Okay.
I can create the following.
function custom_myobject($custom_fields,$post_type){
$custom_fields[‘myobject’] = array(
‘field_type’ => ‘text’,
‘class’ => ‘gd-myobject’,
‘icon’ => ‘fa fa-cog’,
‘name’ => __(‘myobject’, ‘geodirectory’),
‘description’ => __(‘Adds a input for myobject username.’, ‘geodirectory’),
‘defaults’ => array(
‘data_type’ => ‘VARCHAR’,
‘admin_title’ => ‘myobject’,
‘site_title’ => ‘myobject’,
‘admin_desc’ => ‘Enter myobject username’,
‘htmlvar_name’ => ‘myobjectusername’,
‘is_active’ => true,
‘for_admin_use’ => false,
‘default_value’ => ”,
‘show_in’ => ‘[detail]’,
‘is_required’ => false,
‘validation_pattern’ => ‘{1,3}’,
‘validation_msg’ => ‘Please enter number only.’,
‘required_msg’ => ”,
‘field_icon’ => ‘fa fa-myobject’,
‘css_class’ => ”,
‘cat_sort’ => false
));
return $custom_fields;
}
add_filter(‘geodir_custom_fields_custom’,’custom_myobject’,10,2);I need to insert a number ($number) as value.
After that I need to save it as a short code as [myobject obj_number=””]., the object number being the $number. This means I want the front end user to add just a number. But actually to be saved as a shortcode.
How would I write function (snippet) to achieve this.Thanks.
Thank for the reply.
My question is not related to post_meta.
The “id” in the shortcode can be anything.i.e.
[myinfo tax_id=1], [myinfo anynumber=8] etc.
All what I want to achieve is to allow the front end user to type only a number (a figure) instead of writing the whole short code.
For [myinfo tax_id=1], I want the user to enter only “1” (Not “[myinfo tax_id=1]”).
For [myinfo anynumber=8], I want the user to enter only “8” (Not “[myinfo anynumber=8]”).I know this can be achieved by a filter.
Unfortunately, I cannot write one for the gd shortcode.Thanks
Hi,
I can use the shortcode (Places->Tabs->Custom Fields) on the tabs and make them accessible from the listing page and also from the side bar. The shortcode is something like [myinfo id=1]. Here the “myinfo” remains same but obviously the “id” (variable) changes. What I want to achieve here is allow the users to insert only the number (i.e. 1, 3, 7 etc) from the front end.
How would I make a filter to achieve this?Thanks.
-
AuthorPosts