Posted on: 03/31/04 07:27am
By: inspiremin
How do I remove the "Last Updated (date)" from the bottom of a static page. I have searched all over the Static Page files and can't seem to find it.
Blessings!
inSPIREmin
Removing "Last Updated" line in Static Pages
Posted on: 03/31/04 12:45pm
By: Dirk
In public_html/staticpages/index.php, it's the
if
block beginning with
if ($A['sp_format'] <> 'blankpage') {
$curtime = COM_getUserDateTimeFormat ($A['sp_date']);
$retval .= '<p align="center"><br>' . $LANG_STATIC['lastupdated']
. ' ' . $curtime[0];
bye, Dirk
Removing "Last Updated" line in Static Pages
Posted on: 04/05/04 08:15am
By: inspiremin
Thanks, Dirk!
I commented out the retval statement and it worked perfectly. It may not have been the most elegant solution, but I'm still a PHP novice!
Blessings!
inSPIREmin
Removing "Last Updated" line in Static Pages
Posted on: 09/08/04 12:07pm
By: magomarcelo
it would be really nice if it was possible to specify it as an option when defining the static page content, especially for pages containing PHP code
Re: Removing "Last Updated" line in Static Pages
Posted on: 12/05/06 09:54pm
By: Anonymous (Trace Magus)
Thanks,
I tried this and it worked. Of course I tried to leave the edit button and leave it centered, but no luck. t was either left side of the center block or the page was not coming up. I tried to follow the format from that above, but I couldn't get it to go. No biggy though, since I am the only one who can see the word edit on the site :banghead: :shock:
Although any input into this would be greatly appreciated, as I like things to look Fantastic, even for me
Trace
Re: Removing "Last Updated" line in Static Pages
Posted on: 12/05/06 11:07pm
By: jmucchiello
Quote by: magomarceloit would be really nice if it was possible to specify it as an option when defining the static page content, especially for pages containing PHP code
You could change the if so that it says
Text Formatted Code
if ($A['sp_format'] <> 'blankpage' && $A['sp_php'] == 0)
to remove it from all php pages.
Re: Removing "Last Updated" line in Static Pages
Posted on: 12/28/07 09:47pm
By: orepa
This method does not work with the Chemeleon sites. Whenever I comment out, I receive an error.
Parse error: syntax error, unexpected '}' in /home/nelson12/public_html/staticpages/index.php on line 111
Re: Removing "Last Updated" line in Static Pages
Posted on: 12/28/07 10:26pm
By: HughJohnson
Quote by: orepaThis method does not work with the Chemeleon sites. Whenever I comment out, I receive an error.
Parse error: syntax error, unexpected '}' in /home/nelson12/public_html/staticpages/index.php on line 111
No but if you look in the staticpages config.php file (in the path/to/geeklog/plugins/staticpages directory) and find the part that says:
Text Formatted Code
// Do you want to show the last update date/time on static pages?
// the default for that option (1 = show date, 0 = don't).
$_SP_CONF['show_date'] = 0;
Change the 1 to a 0 and your set.