[SOLVED] Onepager Theme

wiz
Admin
Posts: 511
Joined: Sat Oct 30, 2010 12:23 am

Re: Onepager Theme

Post 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!
nion
Posts: 16
Joined: Thu Nov 02, 2017 10:32 am

Re: [SOLVED] Onepager Theme

Post by nion »

Thank you
I share it on GitHub :https://github.com/niondevelop/oner
If you need some Help for validate contact me.
User avatar
turboblack
Support/Developer
Posts: 173
Joined: Fri Sep 19, 2014 1:53 pm

Re: [SOLVED] Onepager Theme

Post 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
http://t0rba.tk/ my Russian-language research WonderCMS engine 8-) & also http://woua.pp.ua/ in Ukrainian
nion
Posts: 16
Joined: Thu Nov 02, 2017 10:32 am

Re: [SOLVED] Onepager Theme

Post 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!
User avatar
turboblack
Support/Developer
Posts: 173
Joined: Fri Sep 19, 2014 1:53 pm

Re: [SOLVED] Onepager Theme

Post 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
http://t0rba.tk/ my Russian-language research WonderCMS engine 8-) & also http://woua.pp.ua/ in Ukrainian
wiz
Admin
Posts: 511
Joined: Sat Oct 30, 2010 12:23 am

Re: [SOLVED] Onepager Theme

Post 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.
User avatar
turboblack
Support/Developer
Posts: 173
Joined: Fri Sep 19, 2014 1:53 pm

Re: [SOLVED] Onepager Theme

Post 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
http://t0rba.tk/ my Russian-language research WonderCMS engine 8-) & also http://woua.pp.ua/ in Ukrainian
nion
Posts: 16
Joined: Thu Nov 02, 2017 10:32 am

Re: [SOLVED] Onepager Theme

Post 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') ? ' &bull; <a href="' . wCMS::url('loginURL') . '">Login</a>' : '') : '');
		return wCMS::_hook('footer', $output)[0];
	?>
wiz
Admin
Posts: 511
Joined: Sat Oct 30, 2010 12:23 am

Re: [SOLVED] Onepager Theme

Post by wiz »

You can simply use

Code: Select all

<?=wCMS::footer()?>
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.
nion
Posts: 16
Joined: Thu Nov 02, 2017 10:32 am

Re: [SOLVED] Onepager Theme

Post by nion »

I've already the

Code: Select all

<?=wCMS::footer()?>
in the footer.
But without the

Code: Select all

<?=wCMS::page('content')?>
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') ? ' &bull; <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"
Post Reply