Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Czelly

    (@czelly)

    Found the problem and fixed it.
    If everyone else is looking for a solution, this is what helped:

    Open the ajax-event-calendar.php file in the plugin folder and search for the function convert_date.

    It looks like this:

    		function convert_date($date, $from, $to=false) {
    			// if date format is d/m/Y, modify token to 'd-m-Y' so strtotime parses date correctly
    			if (strpos($from, 'd') == 0) {
    				$date = str_replace("/", "-", $date);
    			}
    			if ($to) {
    				return date_i18n($to, strtotime($date));
    			}
    			return strtotime($date);
    		}

    Replace with:

    function convert_date($date, $from, $to=false) {
    			// if date format is d/m/Y, modify token to 'd-m-Y' so strtotime parses date correctly
    			if (strpos($from, 'd') == 0) {
    				$date = str_replace("/", "-", $date);
    			}
    			if ($to) {
    			    return date($to, strtotime($date));
    			}
    			return strtotime($date);
    		}

    Hope this helps someone.

    • This reply was modified 5 years ago by Czelly.
    Czelly

    (@czelly)

    Same problem here!
    Any ideas? Any help would be really appreciated.

    Same question as topic holder!
    Why is there a check-mark at the browser title? Am I able to remove it?

    Please let us know.

    Thanks,
    Chris

    Czelly

    (@czelly)

    Dear Plugin Author!

    Thanks for taking care about this issue.
    Well I do have the same problem. Totals views stops at 1 and the today′s views seems to count correct. I installed the latest version and I used the “Recreate Primary Key” button under tools. I also cleaned the cache and clicked the “Delete old settings” button. Also the “Merge duplicates across blog IDs” button got clicked.

    Problem is still the same…every news has total views 0 and the today′s views are correct. Any advice what the problem might be? The plugin was working fine for the last months. Problem appeared afte newest update.

    Would be great if you have an idea.

    @gunu

    No I haven′t gone through your link yet because I do not want to change from qTranslate to qTranslate-X only if this is the last option.

    I do not find the option Tried this: Settings – Languages – Integration – Compatibility Functions? because my admin panel is in German and I can′t find under “Integration” a point called Compatibility Functions. May you take a screenshot so that I can see what this should look like?

    Thanks,
    Chris

    I have the same problem!
    Already tried this solution here: https://www.webdevdoor.com/wordpress/fixing-qtranslate-problems-wordpress/ but did not work for me!

    Any suggestions on how to fix that? I really need my visual editor!

    Thread Starter Czelly

    (@czelly)

    Hello!

    Thanks for your answer. I get all these infos from my database. The problem is that the following code is working but was not coded by me. Here is the code which shows the events and where the name of the months are in English:

    <div class="row "><h1>Termine:</h1> </div>
      <?php
    		global $wpdb;
    
    		$sql = "SELECT * FROM wp_event_list where start_date >= CAST(CURRENT_TIMESTAMP AS DATE) order by end_date";
    		$rc = mysql_query($sql);
    		$num = mysql_num_rows($rc);
    		$cnt = 0;
    		while ( $cnt < $num ) {
    		$result = $wpdb->get_results($sql) or die(mysql_error());
    		$month_prev='';
    		foreach( $result as $results ) {
    
          ?>
             <div class="row ">
    
             <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11  ">
             <?php 
    
                $date=$results->start_date;	
    
    		$result = mysql_query("SELECT MONTHNAME('$date')");
    
    			$i=0;
    			$row=mysql_fetch_array($result);
    				$month_now = $row["MONTHNAME('$date')"]; ?>
                  <h2><?php if($month_now != $month_prev){
    
    			  echo $row["MONTHNAME('$date')"]; $month_prev = $month_now; } ?></h2>
    
                   <?php if($cnt % 2 == 0) { echo 
    
    '<h5>'; } else { echo '<h5 style="color:#428BCA">'; } ?><span class="dnt"><?php $date=$results->start_date; $source = $date;
    $date = new DateTime($source);
    echo $date->format('d.m.Y'); ?></span><span class="dnt"><?php echo $date=$results->time;?></span><span class="dnt"><?php echo $title=$results->title;?>, <?php echo $location=$results->location;?></span></h5>
    
    			   <?php $cnt++; ?>
             </div>      
    
             </div>
    
             <?php }?>
    		 <?php }?>
    
             <div class="row ">
             <br>
              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
              <span class="termine-div"><a href="termine/">Mehr Termine hier...</a></span>
    
              </div>

    Any idea how this could work so that the name of the months are in German?

Viewing 7 replies - 1 through 7 (of 7 total)