Customization help
Philarmon 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Customization help
Philarmon
OP
0
From: -
From: -
Customization help
Oh, thats right - power of the simplicity, it was just too late yesterday Thank you !
By the way, your CMS rocks, i am going to upgrade to the paid version when i am done with customizing.
Oh, thats right - power of the simplicity, it was just too late yesterday Thank you !
By the way, your CMS rocks, i am going to upgrade to the paid version when i am done with customizing.
1 Re: Customization help
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Customization help
You could do something like this in both login_header_anon and login_header_header_user templates:
You could do something like this in both login_header_anon and login_header_header_user templates:
<?php
global $insert;
if (preg_match("/index/i", $_SERVER[PHP_SELF]))
{
$EST_TEMPLATE = <<<TEMPLATE
<!-- Template login_header_anon -->
<table cellspacing="0" cellpadding="0" width="100%" align="center" bgcolor="#000000" border="0">
<tr>
<td>
<table cellspacing="1" cellpadding="3" width="100%" border="0">
<tr>
<td bgcolor="#313f59">
<font face="Verdana, Arial, sans-serif" size="1" color="#FFFFFF">
<b>Welcome to our website</b>
</font>
</td>
</tr>
<tr>
<td bgcolor="#9aa7c1">
<font face="Verdana, Arial, sans-serif" size="1">
To take full advantage of all features you need to <a href="https://www.contentteller.com/login.php">login</a> or <a href="https://www.contentteller.com/register.php">register</a>. Registration is completely free and takes only a few seconds.
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
TEMPLATE;
}
else
{
$EST_TEMPLATE = "";
}
?>
1 Re: Customization help
Philarmon
OP
0
From: -
From: -
Customization help
Hmm, can't edit my previous topic anymore ...
Ok, now i finally solved (almost) all of my problems - the login is stored in the $logcookie variable and the login_header block is added in the headerblock() function in core.php
Actually, i want to keep this login_header but only on the homepage - how do i do that ? I have tried to do it in the core.php but once i am adding something there, the system stops to work. Am i not allowed to change that file or something ?
Hmm, can't edit my previous topic anymore ...
Ok, now i finally solved (almost) all of my problems - the login is stored in the $logcookie variable and the login_header block is added in the headerblock() function in core.php
Actually, i want to keep this login_header but only on the homepage - how do i do that ? I have tried to do it in the core.php but once i am adding something there, the system stops to work. Am i not allowed to change that file or something ?
1 Re: Customization help
Philarmon
OP
0
From: -
From: -
Customization help
Philipp, thanks for the prompt reply
(Its aleays nice to meet other Philipp's BTW )
Well, actually i was looking for the code where this login_header is inserted into the template, because i want to move this part to another place. The site_header ends with a beginning of the right table cell and somewhere there must be a check if the user is logged in or not and depending on that output the "please login" or "welcome back" login_header.
Well, is there no way to determine if someone is logged in or not ?
Depending on that i want to show different navigation and i need to use it in my own PHP scripts as i want to provide more features to the users that are logged in.
Something like this would be cool:
if ($logged_in){
do this
} else {
do that
}
Philipp, thanks for the prompt reply
(Its aleays nice to meet other Philipp's BTW )
Well, actually i was looking for the code where this login_header is inserted into the template, because i want to move this part to another place. The site_header ends with a beginning of the right table cell and somewhere there must be a check if the user is logged in or not and depending on that output the "please login" or "welcome back" login_header.
Well, is there no way to determine if someone is logged in or not ?
Depending on that i want to show different navigation and i need to use it in my own PHP scripts as i want to provide more features to the users that are logged in.
Something like this would be cool:
if ($logged_in){
do this
} else {
do that
}
1 Re: Customization help
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Customization help
The easierst way to find the templates that you like to change is viewing the HTML source code of the page. Every template name is hardcoded in each template.
Originally posted by Philarmon:
The main layout is in the site_header and site_footer templates. The main page is mainly for news (News => Add in cadmin) or a simple announcement page (Other => Websites).
Originally posted by Philarmon:
The HTML code is located in the login_header_* templates.
Originally posted by Philarmon:
This could be done with a few modifications, but I need more details.
The easierst way to find the templates that you like to change is viewing the HTML source code of the page. Every template name is hardcoded in each template.
Originally posted by Philarmon:
How do i customize the home page ? I can't find any directions about which content should go there.
The main layout is in the site_header and site_footer templates. The main page is mainly for news (News => Add in cadmin) or a simple announcement page (Other => Websites).
Originally posted by Philarmon:
How do i remove the "login" box at the top of each page - can't find that code anywhere.
The HTML code is located in the login_header_* templates.
Originally posted by Philarmon:
How can i figure out if a user is logged in or not? My content should change depending on that.
This could be done with a few modifications, but I need more details.
Hi !
Just discovered this great system and installed it to test it out. It seems that it is exactly what i have looked for, but after 1 hour of search in the files i still don't get how the system works.
How do i customize the home page ? I can't find any directions about which content should go there.
How do i remove the "login" box at the top of each page - can't find that code anywhere.
How can i figure out if a user is logged in or not? My content should change depending on that.
There are way too many templates and i'm just lost in them anyways
Any general directions on how the pages are structured would be great !
Thanks for any help.