[SOLVED] Onepager Theme
Re: Onepager Theme
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!
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
Thank you
I share it on GitHub :https://github.com/niondevelop/oner
If you need some Help for validate contact me.
I share it on GitHub :https://github.com/niondevelop/oner
If you need some Help for validate contact me.
- turboblack
- Posts: 201
- Joined: Fri Sep 19, 2014 1:53 pm
Re: [SOLVED] Onepager Theme
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
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
http://old.net.eu.org/ Get ready to hamsterization! code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Re: [SOLVED] Onepager Theme
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!
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!
- turboblack
- Posts: 201
- Joined: Fri Sep 19, 2014 1:53 pm
Re: [SOLVED] Onepager Theme
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
http://old.net.eu.org/ Get ready to hamsterization! code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Re: [SOLVED] Onepager Theme
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.
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.
- turboblack
- Posts: 201
- Joined: Fri Sep 19, 2014 1:53 pm
Re: [SOLVED] Onepager Theme
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
http://old.net.eu.org/ Get ready to hamsterization! code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Re: [SOLVED] Onepager Theme
Can you give me a advice, how to add it to the footer?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.
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
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.
Code: Select all
<?=wCMS::footer()?>
Let me know if you need any assistance.
Re: [SOLVED] Onepager Theme
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:
I think it will return the login. But it don't find the "content"
Code: Select all
<?=wCMS::footer()?>
But without the
Code: Select all
<?=wCMS::page('content')?>
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];
?>