New on WordPress – a few Questions about News V6 and WordPress

Posted in: Newspaper
Post count: 37

Hi,
I´m new to WordPress. Switched for my new News site from Joomla to WordPress cause I think this fits beeter my needs for this Project. And I decided to buy a professional Template for this Project. And found it within this genial Newspaper V6 Template. Concratulations for these really amazing Template and it´s inbuilt Functions.

So maybe a stupid rookie questions by myself and for you just a smile 😉
Maybe my questions are just WordPress related or/and Template related.

Here are my questions:

I disvocered that WordPress works differently in some situations.
The first thing is the Login (when in Backend sttings only registered User allowed to posting Comment). If a User wants to comment on he has to Login. But instead to be able to Login at the sites he stays he is redirected for Example to: http://www.altenburg-net.at/wp-login.php?redirect_to=http%3A%2F%2Fwww.altenburg-net.at%2Findex.php%2F2015%2F06%2F18%2Fmelbourne-calling-three-reasons-why-you-should-visit-it%2F

This Link is a redirection to wp-login.php

Is there a trick to open the Login Form in a modal Window like in the TOP Header of Newspaper?
Or to direct him to a Login/Register Page? – If Yes, how can this be done? Are there Plugin available for this? And if Yes, which one would do this job?

Or in some kinds if a User types a wrong Username and/or Password he is redirected to the wp-login.php Page too. So, asking for a solution for this too.

Maybe a Plugin by the Developers of this amazing Newspager Template could programmed to prevent the redirection to the wp-login.php Page 😉

As I told you I´m a absolut rookie with WordPress and English isn´t my native Language so please don´t beat me. I searched endless Forums and Search Page to find a Solution but without results.

And further Questions about security Plugins to prevent spamming and User Registration. Which Plugin are useful and works with Newspaper V6 without problems?

Thank´s for your replies
With best regards from Austria
Karl

Post count: 3343

Hi,
Welcome to WordPress 🙂 and thanks for joining to our community!

There is a check-box in Settings -> Discussion where you can set to allow users to post comment, no matter they are registered or not.

Also if you want to people login/register from there, (we will fix this in the next theme update) add this code http://pastebin.com/hZ3FuRtB like here: http://screencast.com/t/qG9mji17a5

About spamming/fake users registered this is not managed by the theme, is an WordPress issue, and the spam is from that wp-login.php probably. There are some plugins that prevent this, you can search on google about that or here:

http://w3guy.com/wordpress-plugin-combat-stop-spam-bot-registration/
http://www.cozmoslabs.com/18858-how-to-fight-user-registration-spam-on-your-wordpress-membership-site/

Hope this help!

Thanks for the message!
Marius from tagDiv

Post count: 37

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

Post count: 1291

Hi,

1. It’s a syntax error, try to replace the whole code with this one – http://pastebin.com/9EGWatAr

2. Set it like this – http://screencast.com/t/Uk7E4WVLodM
The errors appear on the modal(popup login). – http://screencast.com/t/sfGPIX13BpyQ

Thank you!

  • This reply was modified 11 years by Emil G.
Post count: 37

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

Greets, Karl

Post count: 3343

Hi,
We include this in the next update. Will be available in the following days!

Post count: 37

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

Greets, Karl

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.