elmalak

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 35 total)
  • Author
    Posts
  • in reply to: Comments disappearing on single event pages #97769
    elmalak
    Participant

    Thank you for clarifying, I will check those and see what’s causing this problem.

    Regards,

    in reply to: Comments disappearing on single event pages #97616
    elmalak
    Participant

    Hi,
    Thank you for your tips.
    I just noticed that when I use the Default events template under Display settings, comments show up but when I used the Full width template( which I need) they disappear.
    What does that mean?

    Regards,

    in reply to: Comments disappearing on single event pages #97475
    elmalak
    Participant

    Hi,
    Thank you for getting back to me, but this issue appeared recently after one of the plugin updates, comments used to show up normally before as this is not a new site.
    So, can you please, help me figure this out.

    Regards,

    in reply to: Front-end event editing breaks my map shortcode #94333
    elmalak
    Participant

    Well,
    I see what you mean and I understand your point.
    Just to add this code works when I add a new event as it prevents the shortcode from breaking but when I got back to edit that event using the Front-end editor of the community events, it breaks into the code I’ve shared above.
    Not sure if that makes a difference to the code needed for the fix or not, but I just thought I would make it clearer.
    Regards,
    Elmalak

    in reply to: Front-end event editing breaks my map shortcode #94054
    elmalak
    Participant

    Hi Casey,
    Thank you for getting back to me with this solution, however, when I Tried it I am still getting the same result, the shortcode is broken as it used to.
    When I type in this shortcode:
    [map style=”width: auto; height:400px; margin:20px 0px 20px 0px; border: 1px solid black;” gpx=”http://www.trailsleuth.com/wp-content/uploads/user_uploads/ventoux/NEW%20VICO.gpx”%5D
    And I Try to edit it, I get this broken code

    <p>
    <div class="gm_gpx_body" id="holder_map_0" style=""width:;">
    <div class="google_map_holder" id="map_0" style="width:;"></div></div>
    <script type="text/javascript">

    var fszIndex = 1;
    var distanceUnit = "";
    var gmapv3_disableDefaultUI = false;
    var gmapv3_zoomControl = false;

    var scrollToEle = "html";
    var mapSizeButton = true;
    var mapobj = {
    name: "OSM",
    wms: "osm",
    minzoom: 18,
    maxzoom: 0,
    url: "http://tile.openstreetmap.org/",
    copy:"Open Street Map",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "OSM Cycle",
    wms: "osm",
    minzoom: 18,
    maxzoom: 0,
    url: "http://b.tile.opencyclemap.org/cycle/",
    copy:"Cycle OSM",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "Relief",
    wms: "",
    minzoom: 18,
    maxzoom: 0,
    url: "",
    copy:"maps-for-free",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "Demis",
    wms: "wms",
    minzoom: 13,
    maxzoom: 1,
    url: "http://www2.demis.nl/wms/wms.ashx?Service=WMS&WMS=BlueMarble&Version=1.1.0&Request=GetMap&Layers=Earth Image,Borders,Coastlines&Format=image/jpeg",
    copy:"WMS demo by Demis",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "ROADMAP",
    wms: "",
    minzoom: 13,
    maxzoom: 10,
    url: "",
    copy:"",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "SATELLITE",
    wms: "",
    minzoom: 13,
    maxzoom: 10,
    url: "",
    copy:"",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "HYBRID",
    wms: "",
    minzoom: 13,
    maxzoom: 10,
    url: "",
    copy:"",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var mapobj = {
    name: "TERRAIN",
    wms: "",
    minzoom: 13,
    maxzoom: 10,
    url: "",
    copy:"",
    visible:true
    };
    mapTypesArr.push(mapobj);
    var msg_00 = "click to full size";
    var msg_01 = "IE 8 or higher is needed / switch of compatibility mode";
    var msg_03 = "Distance";
    var msg_04 = "Height";
    var msg_05 = "Download";
    var pluri = "http://www.trailsleuth.com/wp-content/plugins/google-maps-gpx-viewer/";
    var ieX = false;
    if (window.navigator.appName == "Microsoft Internet Explorer") {
    var err = ieX = true;
    if (document.documentMode > 7) err = false;
    if(err){
    //alert(msg_01);
    }
    }

    var map_0;
    google.setOnLoadCallback(function() {
    map_0 = init_map("TERRAIN", "map_0", 1);
    load_map(map_0, "", "", "");

    map_0["elevation"] = true;
    map_0["download"] = true;
    map_0.g_seCookie = false; // no cookie
    map_0.g_showCnt++;
    showGPX(map_0, ""http://www.trailsleuth.com/wp-content/uploads/user_uploads/ventoux/NEW%20VICO.gpx"");

    map_0.gmap_poi_db = false;

    post_init(map_0);

    });

    </script>
    </p>

    Regards,

    in reply to: Front-end event editing breaks my map shortcode #92096
    elmalak
    Participant

    Thanks Casey,
    I greatly appreciate that and I look forward to hearing back from you with the solution for this issue.
    Regards,

    in reply to: Front-end event editing breaks my map shortcode #92011
    elmalak
    Participant

    Hi Casey,
    Here is the username we used to purchase the Community events license.
    thinkwebie

    Regards,
    elmalak

    in reply to: Front-end event editing breaks my map shortcode #90259
    elmalak
    Participant

    Hi Rob,
    Thank you for offering to help me out here.
    Actually the button thing was the beginning of this and when all attempts to load the button in the visual editor of your Community events form failed, we thought we could just used shortcodes to display the map instead of using the button.
    And as we did so things went on nicely, however, while trying to Edit an event using the front-end Edit screen I noticed that the shortcodes gets messed up when opened in this screen.

    I used to have this same problem when editing from the backend but I managed to get this sorted out by adding the line,
    remove_filter(‘the_content’, ‘wptexturize’);
    to my functions.php file.

    All I was asking for is a similar code that would do the same thing to the Visual editor that is loaded in the community events front-end edit screen so it would act in the same way and not break the shortcode of the map.

    Hope this makes things clearer for you and I really look forward to your help here.
    Here is the map plugin website, in case that would help.
    http://wordpress.org/plugins/google-maps-gpx-viewer/

    Regards,

    in reply to: Front-end event editing breaks my map shortcode #90249
    elmalak
    Participant

    Hi Casey,
    Thank for your responses.

    I managed to fix this for the normal WordPress Edit screen but the same function that worked there isn’t working with the community events add-ons that’s why I thought I would ask you as you’re the developers behind this plugin.

    I am not really asking for anything complicated, I believe it’s a simple thing that a developer would know about his plugin, am I wrong?

    Regards,

    in reply to: Front-end event editing breaks my map shortcode #90075
    elmalak
    Participant

    Hi Casey,
    Thank you, but I am afraid that didn’t help me much as things are still vague for me.

    Do you mean I need to copy this whole code to my theme’s functions.php file, and just replace that part with ?
    ‘wpautop’ => false,
    like so?

    2100 /**
    2101 * Form event content.
    2102 *
    2103 * @param object $event The event to display the tile for.
    2104 * @return void
    2105 * @author Nick Ciske
    2106 * @since 1.0
    2107 */
    2108 public function formContentEditor( $event = null ) {
    2109 if ( $event == null ) {
    2110 $event = get_post();
    2111 }
    2112 if ( $event ) {
    2113 $post_content = $event->post_content;
    2114 } elseif ( !empty($_POST[‘post_content’]) ) {
    2115 $post_content = stripslashes($_POST[‘post_content’]);
    2116 } else {
    2117 $post_content = ”;
    2118 }
    2119
    2120 // if the admin wants the rich editor, and they are using WP 3.3, show the WYSIWYG, otherwise default to just a text box
    2121 if ( $this->useVisualEditor && function_exists( ‘wp_editor’ ) ) {
    2122 $settings = array(
    2123 ‘wpautop’ => false,
    2124 ‘media_buttons’ => false,
    2125 ‘editor_class’ => ‘frontend’,
    2126 ‘textarea_rows’ => 5,
    2127 );
    2128
    2129 wp_editor( $post_content, ‘tcepostcontent’, $settings );
    2130 } else {
    2131 ?><textarea name=”tcepostcontent”><?php
    2132 echo esc_textarea($post_content);
    2133 ?></textarea><?php
    2134 }
    2135 }

    in reply to: Front-end event editing breaks my map shortcode #88538
    elmalak
    Participant

    I see what you mean.
    It seems to me that this line is exactly what I need to disable but I don’t know how,
    ‘wpautop’ => true,

    Can you let me know how to disable this or where to do so as I tried adding the following to my functions.php file but it isn’t working.

    remove_filter(‘the_content’, ‘wpautop’);

    Regards,

    in reply to: Event List customization and Search filters #71891
    elmalak
    Participant

    Thanks Chris.
    I understand and appreciate your follow up.

    in reply to: Event List customization and Search filters #71027
    elmalak
    Participant

    Hi Chris,
    Thank you for your prompt response.
    I fully understand that and I appreciate it of course, however, I am not really looking for getting you to build it for me, I was just looking for a starter, just a sample code that I can build on, that’s all.
    So, if that sounds reasonable to you, I would love it if you would be willing to help me with it.

    If not, I’ll understand.

    Regards,
    elmalak

    in reply to: Event List customization and Search filters #70832
    elmalak
    Participant

    Hi Chris,
    Thank you for your follow up with my question here.

    I will read the WP documentation for further info about the comments, however, I am not sure I understand the other part about the Search filters.

    Any chance of giving me a sample code to use for that part?
    I tried the links you’ve posted but I am not sure how to use them!

    Much appreciated.

    in reply to: Loading Visual editor in Add Event screen #69364
    elmalak
    Participant

    Hi Chris.
    Thank you for your detailed and informative reply to my issue.
    That definitely makes more sense and I can see now what you mean.

    I will go ahead and contact the plugin author and hope he responds positively.

    Much appreciated.
    Elmalak

Viewing 15 posts - 1 through 15 (of 35 total)