Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:20 pm EST
Geeklog Forums
Link don't display && how to get the users username with PHP?
Hi,
first of all, I just started using Geeklog and I was suprised as it seamed to work after the first attempt Anyway, I did it 3 or 4 times, just to check I tried everything and am sure that it works
But then, I started putting some content onto it. First, I had a problem with the TOPICS. I put a topic "webdev" onto it. But it did not always display in the topic-box. Ater some trying, I decided to make myself a html-block and put a small menu into it.
Then I put some Links into the "web resources" and I added one link-group. Then 4 Links into it. then I checked the links and it just displayed one only!!! So that worried me. i put a new group into it, but still the same thing. So, someone has a solution???
The other thing: how do I get the users username??? I made a small email-form onto a static page using php and I would like to auto-fill in the username into the input field. So I checked some of the php files in the geeklog system but did not find anything that worked.
-polysign
first of all, I just started using Geeklog and I was suprised as it seamed to work after the first attempt Anyway, I did it 3 or 4 times, just to check I tried everything and am sure that it works
But then, I started putting some content onto it. First, I had a problem with the TOPICS. I put a topic "webdev" onto it. But it did not always display in the topic-box. Ater some trying, I decided to make myself a html-block and put a small menu into it.
Then I put some Links into the "web resources" and I added one link-group. Then 4 Links into it. then I checked the links and it just displayed one only!!! So that worried me. i put a new group into it, but still the same thing. So, someone has a solution???
The other thing: how do I get the users username??? I made a small email-form onto a static page using php and I would like to auto-fill in the username into the input field. So I checked some of the php files in the geeklog system but did not find anything that worked.
-polysign
10
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Are those topics and links not showing up when you're not logged in? Then you should check the permissions you gave them.
The username is available through the global variable $_USER['username'] - only if you're using PHP in that static page, of course.
bye, Dirk
The username is available through the global variable $_USER['username'] - only if you're using PHP in that static page, of course.
bye, Dirk
7
11
Quote
Status: offline
polysign
Forum User
Newbie
Registered: 07/18/05
Posts: 3
Hi Dirk,
my Blog only displays 1 Link per Category butI have 3-4 in each. Permissions are set like these:
Owner: R/E - Group: R - Anonymous/Member: R
I tried it as anonymous, as admin and asa normal user...
Thanks for the global var. That helped a lot.
my Blog only displays 1 Link per Category butI have 3-4 in each. Permissions are set like these:
Owner: R/E - Group: R - Anonymous/Member: R
I tried it as anonymous, as admin and asa normal user...
Thanks for the global var. That helped a lot.
10
9
Quote
All times are EST. The time is now 10:20 pm.
- 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