Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 10:34 am EST

Geeklog Forums

Database Custom pages integration


Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
I would like to use a database solution I have created in dreamweaver I will be using the username and password of the userthemselves from geeklog, but I would like to call the top frame to sit on top of any database page what would i do to call the top frame ? that way it appears to be more part of the site.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sounds like you're looking for COM_siteHeader().

bye, Dirk
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Also I would like to usse the session variables that are username & Password used to login to the site to verify the users identity in the pages I am making. So what are the session variables ?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You're looking for the $_USER array. And, no, you can't get a user's password (and I don't think you need it).

Alan McKay wrote a nice introduction to Geeklog programming that you may want to read.

bye, Dirk
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Thanks, but how do I wrap an ordinary PHP page in this ? it does not seem to work, I see I can just program in geeklog but I already have pages of PHP and just want to call the header and footer and left side, I am probably missing something here but I would just like to wrap my database pages not do the whole transfere to geeklog, possibly I could use static pages but that would be a bit messy.
I would like to put

<?php

require_once( '../lib-common.php' );

$display = COM_siteHeader();

MY CODE HERE

$display .= COM_siteFooter();

echo $display;

 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Thanks again I think I can get away with what I want by calling the site header only in the top frame of a page, then have my own code in the larger bottom frame.
I will learn Geeklog but for now just want to call the header and insert my code below.
 Quote

All times are EST. The time is now 10:34 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