Welcome to Geeklog, Anonymous Tuesday, July 15 2025 @ 02:29 am EDT
Geeklog Forums
Workaround for Common Images in Stories
I'm setting up a Geeklog site that has access controls, and I want the readers who are logged in with privileges (dealers) to know if they are looking at an access controlled page or not. I don't want them to tell the general public (customers) any of the details from the access controlled stories. I want the logged in user to know that they are seeing a story that is considered private vs a public one. I didn't see any easy way to do this with built-in tools, so I want to add a lock icon at the beginning of the story. I know I could use separate topics, but I don't want to have the logged in users to have to look in two places. And, I could add the word Private, but an icon is more appealing.
So, here is my solution: If you have a set of images, like icons, that you want to use in stories, you can create a static page with just the image in it <img src="lock_icon.png"> and then when you want to insert the image in a story, just use [ staticpage_content: ID Private ] in the story with ID set to the ID of the static page that contains the image.
So, here is my solution: If you have a set of images, like icons, that you want to use in stories, you can create a static page with just the image in it <img src="lock_icon.png"> and then when you want to insert the image in a story, just use [ staticpage_content: ID Private ] in the story with ID set to the ID of the static page that contains the image.
25
19
Quote
The Access Denied missing link was because I put in Geeklog format codes [ and ]. The text was:
Left_Square_Bracket staticpage_contents: ID Private Right_Square_Bracket
Left_Square_Bracket staticpage_contents: ID Private Right_Square_Bracket
28
20
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Thanks for the tip. I've edited your original post to make the "access denied" message go away.
bye, Dirk
bye, Dirk
21
14
Quote
Status: offline
Forum User
Newbie
Registered: 12/16/11
Posts: 1
Cool, thanks. I am now a member too BTW.
22
20
Quote
All times are EDT. The time is now 02:29 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