integrate with custom remote mysql database
-
Hi, Can Chronosly write data to and read data from a custom remote backend mysql database? Or is custom php code the only way to do this? Thanks,
https://www.ads-software.com/plugins/chronosly-events-calendar/
-
Hi,
I’have more or lesse the same question. I have already a single Event view from my theme but I want to use the Chronosly backend and the CHR grid view.
According to their FAQ I have to copy my (not CHR)theme view into their files and adjust sourcelinks and insert the <?php echo do_shortcode(“chronoslybase“); ?>.
Hey m3110w and adisabeba,
Our apologies for this delay, in special for m3110w that has been nearly 3 weeks. We didn’t received any WP forum email so we didn’t noticed.
Having said that, let us answer your questions:
m3110w
No, Chronosly is integrated within WordPress so it works following each WP client settingsadisabeba
We don’t understand what you mean, but if you want to create your own Chronosly style you should copy Chronosly files from:
chronosly/templates/
to your own theme folder and customize styles.Take into account that Chronosly elements would be executed by
<?php echo do_shortcode("chronoslybase"); ?>
Please let us know if we have solved all your doubts and don’t hesitate to contact Chronosly support for further questions.
Hi Heimsveld,
Thank you for your answer, and I know this is an customazition issue. actually i want the opposite, means. I have already an event detail and orgianzer detail view from my them (exernal not chronsly). The goal is I want to use the grid view from chronosly, and the event deatail should be the template from my theme. (frontend event deatail theme, backend chronosly). And the event detail is an php… could this work?
1. I have to adjust the the SQL fields (insert the from chronolsy)
2. Rename it into single.chronoslys.php
3. Replacing with the existing template
4. Forcing the upload via FTP
5. Configuration that the event detail should use the event detail php from my themeI know that is beyond your support, because it is an exernal template but it would be a pitty if I could not use it because I just want to make it conistent as possible… I have already premium license and a grid view.
Could this work?
The code from the existing view (theme) is as follows:
?php
/*
@name Single Event Template
@since 1.0.0
@author Pavel Richter <[email protected]>
@copyright Copyright (c) 2014, Grand Pixels*/
// Sidebar
if (gp_option(‘gp_event_sidebar’) == ‘left’) {
$sidebar = ‘left’;
} else {
$sidebar = ‘right’;
}// Content Class
if (is_active_sidebar(‘widget_area_event’)) {
$content_class = ‘content-sidebar content-sidebar-‘ . $sidebar;
} else {
$content_class = ‘one-entire’;
}get_header();
?><div class=”canvas” itemscope itemtype=”https://schema.org/MusicEvent”>
<?php get_template_part(‘title’); ?>
<div class=”grid”>
<?php
if ($sidebar == ‘left’) {
if (is_active_sidebar(‘widget_area_event’)) {
get_sidebar(‘event’);
}
}
?><div class=”content single-event <?php echo $content_class; ?>” role=”main”>
<?php
if (have_posts()) {
while (have_posts()) {
the_post();$event_time = __(gp_meta(‘gp_event_time’));
$event_venue = __(gp_meta(‘gp_event_venue’));
$event_venue_url = __(gp_meta(‘gp_event_venue_url’));
$event_location = __(gp_meta(‘gp_event_location’));
$event_contact = __(gp_meta(‘gp_event_contact’));
$event_price = __(gp_meta(‘gp_event_price’));
$event_custom_meta = gp_meta(‘gp_event_custom_meta’);
$event_status = __(gp_meta(‘gp_event_status’));
$event_buy_text_1 = __(gp_meta(‘gp_event_buy_text_1’));
$event_buy_url_1 = __(gp_meta(‘gp_event_buy_url_1’));
$event_buy_text_2 = __(gp_meta(‘gp_event_buy_text_2’));
$event_buy_url_2 = __(gp_meta(‘gp_event_buy_url_2’));
$event_facebook_text = __(gp_meta(‘gp_event_facebook_text’));
$event_facebook_url = __(gp_meta(‘gp_event_facebook_url’));
$event_vk_text = __(gp_meta(‘gp_event_vk_text’));
$event_vk_url = __(gp_meta(‘gp_event_vk_url’));
$event_google_map_embed = __(gp_meta(‘gp_event_googlemap_embed’));
$event_youtube_code = gp_get_youtube_video_id(__(gp_meta(‘gp_event_youtube_code’)));
$event_vimeo_code = gp_get_vimeo_video_id(__(gp_meta(‘gp_event_vimeo_code’)));$original_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), ‘full’);
$post_class = ‘post-‘ . get_the_ID() . ‘ post event type-event clearfix’;
?><article class=”<?php echo $post_class; ?>”>
<?php if (has_post_thumbnail() || !empty($event_youtube_code) || !empty($event_vimeo_code)) { ?>
<div class=”col-1 one-half float-right-important”>
<?php } else { ?>
<div class=”col-1 one-entire”>
<?php } ?><?php if (has_post_thumbnail()) { ?>
<div class=”post-image lightbox overlay”>
“>
<?php the_post_thumbnail(‘large’, array(‘itemprop’ => ‘image’)); ?>
<span class=”overlay-block”><span class=”overlay-icon”></span></span>
</div><!– END // post-image –><?php } ?>
etc…..
Hi adisabeba,
we received your answer we will give you feedback as soon as possible.Hi adisabeba,
here is an answer for your request:
1- Just create a new template and place php code into /chronosly/templates/single-chronosly.php and in your theme.
2- Just copy provided code below just after line 63
$Post_Type_Chronosly->template->print_template(get_the_ID(), "dad2", "", "", "front", $extra); per el seu php amb el seu template... per poder veure el que hi ha li dius que substitueixi la linia 63 per ob_start(); $Post_Type_Chronosly->template->print_template(get_the_ID(), "dad2", "", "", "front", $extra); ob_clean(); $dads = array("dad1","dad2","dad3","dad4","dad5","dad6","dad7","dad8","dad9","dad10","dad11","dad12"); foreach($dads as $d) $Post_Type_Chronosly->template->vars->metas[$d] =""; echo "<pre>"; print_r($Post_Type_Chronosly->template->vars); echo "<pre>";
We hope it will be useful to go on with your project.
Solved
.
- The topic ‘integrate with custom remote mysql database’ is closed to new replies.