Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 09:47 am EST

Geeklog Forums

Removing "Last Updated" line in Static Pages


Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
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
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In public_html/staticpages/index.php, it's the if block beginning with
Text Formatted Code
    if ($A['sp_format'] <> 'blankpage') {
        $curtime = COM_getUserDateTimeFormat ($A['sp_date']);
        $retval .= '<p align="center"><br>' . $LANG_STATIC['lastupdated']
                . ' ' . $curtime[0];
 
bye, Dirk
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
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
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

magomarcelo

Forum User
Junior
Registered: 05/21/04
Posts: 16
Location:Milano, Italy
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
--m
http://magomarcelo.blogspot.com
 Quote

Trace Magus

Anonymous
determined
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 Mr. Green

Trace
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote 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

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.
 Quote

Status: offline

orepa

Forum User
Chatty
Registered: 11/07/07
Posts: 35
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
 Quote

Status: offline

HughJohnson

Forum User
Newbie
Registered: 12/28/07
Posts: 4
Quote 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



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.
 Quote

All times are EST. The time is now 09:47 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content