Page 2 of 4
Re: Onepager Theme
Posted: Thu Nov 16, 2017 12:00 pm
by wiz
This looks awesome, please share it on GitHub when you're ready.
If you'd like, we can later validate the theme and publish it on
https://wondercms.com/themes.
Thanks for sharing!
Re: [SOLVED] Onepager Theme
Posted: Thu Nov 16, 2017 5:20 pm
by nion
Thank you
I share it on GitHub :
https://github.com/niondevelop/oner
If you need some Help for validate contact me.
Re: [SOLVED] Onepager Theme
Posted: Fri Nov 17, 2017 2:10 pm
by turboblack
I tested your template, it is very attractive, but there is some problems.
how to make it look like a demo?
I installed the template, and my data was distorted, everything looks like porridge, but there is no feedback at all, how can I fix it? (((((
and the login button below transfers to your site when entering a password, without authorization
Re: [SOLVED] Onepager Theme
Posted: Fri Nov 17, 2017 6:24 pm
by nion
hi turboblack
i'm sorry about that! for the login problem, i edit the theme.php, please download it again from github and replace it on your server!
About the design: you need the sommernote plugin; change view to <>code; paste some bootstrap section!
you will find some bootstrap section here: bootply.com as example search for about section!
Re: [SOLVED] Onepager Theme
Posted: Sat Nov 18, 2017 9:43 am
by turboblack
neither of which has changed, it's how it moved to your site and moves it. I've already done this on my local machine, and on hosting. without change, there must be another address, the only question is which address
Re: [SOLVED] Onepager Theme
Posted: Sat Nov 18, 2017 11:47 pm
by wiz
nion, I see you've hard-coded "login" as the login URL.
WonderCMS offers custom login URLs for everyone, so hard codding it might not be the solution. What I suggest is, you simply remove the "login" URL, or use the footer function for displaying the login URL.
WonderCMS hides the login URL once the user changes it from default, this is to prevent brute force attacks. If someone doesn't know what your login URL is, it will make it harder for an attacker to use their brute attacking techniques.
Re: [SOLVED] Onepager Theme
Posted: Mon Nov 20, 2017 7:14 am
by turboblack
it's all good, but the question is how to log in, I can not work with this template without logging into the admin area, without this function the template is not suitable for work, although it's nice, and the right one
Re: [SOLVED] Onepager Theme
Posted: Mon Nov 20, 2017 11:22 am
by nion
wiz wrote: ↑Sat Nov 18, 2017 11:47 pm
nion, I see you've hard-coded "login" as the login URL.
WonderCMS offers custom login URLs for everyone, so hard codding it might not be the solution. What I suggest is, you simply remove the "login" URL, or use the footer function for displaying the login URL.
WonderCMS hides the login URL once the user changes it from default, this is to prevent brute force attacks. If someone doesn't know what your login URL is, it will make it harder for an attacker to use their brute attacking techniques.
Can you give me a advice, how to add it to the footer?
I try it with something like that:
Code: Select all
<?php
$output = wCMS::get('blocks','footer')->content . ( ! wCMS::$loggedIn ? ((wCMS::get('config','login') == 'loginURL') ? ' • <a href="' . wCMS::url('loginURL') . '">Login</a>' : '') : '');
return wCMS::_hook('footer', $output)[0];
?>
Re: [SOLVED] Onepager Theme
Posted: Tue Nov 21, 2017 11:32 pm
by wiz
You can simply use
in your HTML, where the footer should be. This will return the login link, if it's not the default. This is the correct behaviour.
Let me know if you need any assistance.
Re: [SOLVED] Onepager Theme
Posted: Wed Nov 22, 2017 7:17 am
by nion
I've already the
in the footer.
But without the
it doesn't work
If i look to the index.php
I see this two functions:
Code: Select all
public static function _loginView() {
return ['title' => 'Login', 'description' => '', 'keywords' => '', 'content' => '<form action="' . wCMS::url(wCMS::get('config','login')) . '" method="post"><div class="input-group"><input type="password" class="form-control" id="password" name="password"><span class="input-group-btn"><button type="submit" class="btn btn-info">Login</button></span></div></form>'];
}
Code: Select all
<?php
$output = wCMS::get('blocks','footer')->content . ( ! wCMS::$loggedIn ? ((wCMS::get('config','login') == 'loginURL') ? ' • <a href="' . wCMS::url('loginURL') . '">Login</a>' : '') : '');
return wCMS::_hook('footer', $output)[0];
?>
I think it will return the login. But it don't find the "content"