Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
kstockl
tagDiv Member

Hi Andrei… I understand your reasons and your firm politics. I´m sure there are hundreds of Suggestions. This is in fact cause of the professional Work you do. Thousands of Buyers can not be wrong 😉
And my suggestions have no priority. I think you know best which Things can be integrated for this Theme in Future Updates.

I have One more Suggestion:
To have the ability to select in the different Categories the Color of the Article Title like it is possible for the Category Name itself or the Color Page Background.

With best Regards from Austria,
Karl

  • This reply was modified 10 years by kstockl.
kstockl
tagDiv Member

Hi Andrei,
Sorry, for confusing you with my bad English. I meant the Comments Section.
But with your Reply I found a very simple Solution which does exact what I Need. And without the Need of replacing CodeSnippets in the Theme 🙂

By just deactivating the “Show SignIn/Join” in Newspaper Theme TopBar I got it like I want it to work.
I discovered that the “Show SignIn/Join” Modal Open Window Function handles also the Comments Section with the Modal Opening Function in the Template.

Maybe the Modal open Window for Login/Join could be seperated in future Updates of the Theme like:

a.) Enable/Disable – Show SignIn/Join – for TopBar
b.) Enable/disable – Show SignIn/Join – for Comments Section (if disabled here, the Original WordPress Code is working (in same way as for now when disabling the SignIn/Join Function in TopBar) and other Plugins like UserPro can do the Job with Registration/Login by Redirection Function to the Register/Login Page)

So the Owner of the Website has more variations without the Need of manipulating the NewsPAper Theme Code. Just my two Cents 😉

For me personally this Modal Open function is not neccesery cause I´m not a really Fan of it. Because of the fact that Mobile Handys showing the Modal Windows differently and sometimes if a User zoom in a Page the Modal Window are going invisible in some Scenarios.

With best Regards,
Karl
http://www.altenburg-net.at

  • This reply was modified 10 years by kstockl.
kstockl
tagDiv Member

Hi,
thanks for the quick answer.
Will still waiting for the update.

Greets, Karl

kstockl
tagDiv Member

Hi Emil,
tried it but failed with the same Error after changing the whole Code.

Greets, Karl

kstockl
tagDiv Member

Hi Marius,
thank´s a lot helping finding a solution for my questions.

By this way I updated first the Newspaper theme from 6.0 to 6.1.

After this, I tried first to modify the comments.php as you explained in the screenshots. For this I made a backup for the original comments.php and added the Code.

After this I got follwing Error at the Page:

Parse error: syntax error, unexpected ‘}’ in /home/.sites/50/site186/web/wp-content/themes/Newspaper/comments.php on line 1

Note:
I copied and paste the Code like you adviced:

$defaults['comment_field'] = '<div class="clearfix"></div><p class="comment-form-input-wrap"><textarea placeholder="' . __td('Comment:', TD_THEME_NAME) . '" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>';

$defaults['comment_notes_before'] = '';

$defaults['comment_notes_after'] = '';

$defaults['title_reply'] = __td('LEAVE A REPLY', TD_THEME_NAME);

$defaults['label_submit'] = __td('Post Comment', TD_THEME_NAME);

$defaults['cancel_reply_link'] = __td('Cancel reply', TD_THEME_NAME);

// login with our login modal when you want to write a comment
if (td_util::get_option('tds_login_sign_in_widget') == 'show') {
$defaults['must_log_in'] = '<p class="must-log-in">' . 'You must be logged in to post a comment.</p>';
}

comment_form($defaults);

//comment_form();

?>

<?php } ?>

</div> <!-- /.content -->

So, there seems to be a missmatch with the changed code in Theme or WordPress. I switched back now to the original comments.php.

2.) By this way I want to ask if this code (when it runds without an error) also prevents the redirecting to the Error site ( if a user forgot to input the Name, Emailadress, comment ) ?

Maybe here could be done a codesnippet into the comments.php (checking via script) if a User forgot to filling out the Form Fields. So that User dont get the Error message in an blank Page. Instead the user is info message at the same Page where he wants to write a comment. I hope you know what I mean.

Thanks for your reply

With best regards, Karl

Viewing 5 posts - 26 through 30 (of 30 total)