The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Customization of wp...
 
Notifications
Clear all

Customization of wpdiscuz-comment-plugin

4 Posts
3 Users
0 Reactions
1,993 Views
(@dmendiratta)
Posts: 2
New Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#345]

Hi Team,

We already have your wpdiscuz plugin integrated in our website. Now we are exploring it more to implement it on another places.So we have these 2 questions which we required your assistance.They are as following:

1) Can we integrate the plugin with a custom table?
2) Can we load comments with ajax if we do it with shortcode?
If Yes please provide a sample code.

Thanks,

Deepak


 
Posted : 12/06/2020 5:19 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
Posted by: @dmendiratta

1) Can we integrate the plugin with a custom table?

I'm really sorry, but there is no way to do this. 

2) Can we load comments with ajax if we do it with shortcode?

You can use the code provided by Taron in this post: 

https://wpdiscuz.com/community/postid/598/


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 12/06/2020 5:57 pm
(@developingsteps)
Posts: 1
New Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I have same problem as Mr. @dmendiratta 
Will this code work? Please confirm! 

<?php
/**
* WPDISCUZ Plugin shortcode
*/
function my_wpdiscuz_shortcode() {
$html = "";
if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
ob_start();
include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
$html = ob_get_clean();
}
return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

/**
* Call single post by AJAX
*/
add_action('wp_ajax_playback_submit_callback','playback_submit_callback');
add_action('wp_ajax_nopriv_playback_submit_callback','playback_submit_callback');

function playback_submit_callback() {

$args = array(
'post_type' => 'playbook',
'p' => 104
);

$query = new WP_Query($args);
while ( $query->have_posts() ) {
$query->the_post();
$html = do_shortcode('[wpdiscuz_comments]');
}
wp_reset_postdata();
echo $html;
exit;
}
?>


 
Posted : 13/06/2020 11:25 pm
(@dmendiratta)
Posts: 2
New Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I did the same thing but not working for me. Please look into this as soon as possible


 
Posted : 15/06/2020 3:59 pm