Welcome to Geeklog, Anonymous Friday, June 14 2024 @ 11:31 am EDT

Geeklog Forums

Can't post new article, and login form suggestion?


Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
I'm working on a redesign right now. You can see the work in progress at http://www.antisource.info, log in with guest/guest.

My primary issue is that while testing out the new install, if I create a new block, I get an error message that I don't have permission (even if I'm logged in as admin).

The second issue is more of a design dilemma - I have a logon bar in my header, and what I would like to do is have this bar change with the user's account menu when they are logged in. What's a good way to accomplish this?

I'm rewriting this whole template from scratch, boy is that a lot of work!
www.antisource.com
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by RickW:
The second issue is more of a design dilemma - I have a logon bar in my header, and what I would like to do is have this bar change with the user's account menu when they are logged in. What's a good way to accomplish this?
if your logon bar is in your header.thtml, you could put in some PHP to handle the display of that bar. a simple if / else checking $_USER['uid'].

I don't have an answer for your 1st question though.. sorry
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Quote by machinari:
Quote by RickW:
The second issue is more of a design dilemma - I have a logon bar in my header, and what I would like to do is have this bar change with the user's account menu when they are logged in. What's a good way to accomplish this?
if your logon bar is in your header.thtml, you could put in some PHP to handle the display of that bar. a simple if / else checking $_USER['uid'].

I don't have an answer for your 1st question though.. sorry


Where's the routine for the default user's logon block? Could I just call that function and change the formatting in a template file?
www.antisource.com
 Quote

Status: offline

drshakagee

Forum User
Full Member
Registered: 10/01/03
Posts: 231
Where's the routine for the default user's logon block? Could I just call that function and change the formatting in a template file?


Yes, just call COM_showBlock( user_block, $help='', $title='User Functions' ); from your header.thtml file then change the template file like you said.
Yes I am mental.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512

nifty Exclamation
 Quote

RickW

Anonymous
I tried that and it didn't work. I just put in:

Text Formatted Code
<?php COM_showBlock( user_block, $help='', $title='User Functions' ); ?>
 


Is that wrong?
 Quote

Status: offline

drshakagee

Forum User
Full Member
Registered: 10/01/03
Posts: 231
Try this:
Text Formatted Code
<?php echo COM_showBlock( user_block, $help='', $title='User Functions' ); ?>
 

Yes I am mental.
 Quote

RickW

Anonymous
Hmm... I just tried to post a test article, and it worked this time. I wonder if I was having an issue with IE caching or cookies at work...
 Quote

All times are EDT. The time is now 11:31 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