Posts: 535
Threads: 31
Joined: Jul 2010
I could make it toggle-able in the admin panel if you want.
I'm giving you three guesses...
Posts: 2,895
Threads: 59
Joined: Jun 2010
Yeah I agree this would make a good setting for the admin panel.
I'll add it for the next version after v1.1.
Have
you completed
the interview?
Posts: 2
Threads: 1
Joined: Aug 2010
This was very quick thank you for that !
Posts: 535
Threads: 31
Joined: Jul 2010
I'm giving you three guesses...
Posts: 99
Threads: 30
Joined: May 2011
This is sure great stuff for PHP wizards, but for uneducated PHP ignorants like me? ... I have no idea on where to place this code into the commentics.php ... !
But. I still would like to have the "add a comment" form appearing before the comments, too.
It appears to me that Steven and Static are quite savvy with the script! Would be a good idea if you Pros could be hired for some customization work and/or consultancy. (just an idea)
Thanks a lot
Posts: 2,895
Threads: 59
Joined: Jun 2010
Hi,
This is the section in commentics.php (v1.5) which displays the main parts:
PHP Code:
<?php
require $path_to_comments_folder . "includes/template/comments.php"; //display comments
if ($settings->enabled_social) {
require $path_to_comments_folder . "includes/template/divider1.txt"; //display divider
require $path_to_comments_folder . "includes/template/social.php"; //display social
}
require $path_to_comments_folder . "includes/template/divider2.txt"; //display divider
if (cmtx_is_form_enabled(true)) { //if form is enabled
require $path_to_comments_folder . "includes/template/form.php"; //display form
}
If you want to display the form first then it would be:
PHP Code:
<?php
if (cmtx_is_form_enabled(true)) { //if form is enabled
require $path_to_comments_folder . "includes/template/form.php"; //display form
}
if ($settings->enabled_social) {
require $path_to_comments_folder . "includes/template/divider1.txt"; //display divider
require $path_to_comments_folder . "includes/template/social.php"; //display social
}
require $path_to_comments_folder . "includes/template/divider2.txt"; //display divider
require $path_to_comments_folder . "includes/template/comments.php"; //display comments
Then change the text in the admin panel in Layout -> Top and Layout -> Divider.
I plan to re-add the setting to position everything. There were bugs so that's why it was temporarily removed.
Posts: 99
Threads: 30
Joined: May 2011
That was easy. Even I understood
Thanks, Steven