Welcome to Geeklog, Anonymous Thursday, November 21 2024 @ 10:03 am EST
Geeklog Forums
Workaround for Common Images in Stories
Tom Glebas
Anonymous
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.
15
13
Quote
Tom Glebas
Anonymous
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
18
13
Quote
Status: offline
tom_glebas
Forum User
Newbie
Registered: 12/16/11
Posts: 1
Cool, thanks. I am now a member too BTW.
14
11
Quote
All times are EST. The time is now 10:03 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