Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Disabling links from the Administration section.
I may have missed it in my search, but is there a way to temporarily disable links from the admin section?
A friend’s site is temporarily down (he hosts it himself) and I’d like to disable his link, but not delete it. Is this possible?
The world is full of tough guys. It does not need me to be one, too.
Offline
#2 2005-11-25 19:24:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Disabling links from the Administration section.
Comment out line 170 of txplib_head.php (note the starting slashes):
//'<td class="tabdown"><a href="'.hu.'" class="plain" target="blank">'.gTxt('tab_view_site').'</a></td>',
Offline
Re: Disabling links from the Administration section.
Thanks for the tip, Mary, but that didn’t seem to change anything. Maybe I wasn’t looking in the right place.
However, I did manage to solve this one. I created a new link category called “Hidden.” It’s never referenced in any of my forms or pages, so the link never gets displayed, which is exactly what I was looking for.
Ah, the benefits of a good night’s sleep.
The world is full of tough guys. It does not need me to be one, too.
Offline
#4 2005-11-25 19:48:36
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Disabling links from the Administration section.
Okay, we were talking about two different things. Glad you got it working alone. :)
Offline
Re: Disabling links from the Administration section.
Ok. My curiousity’s now piqued. What was the above hack supposed to do?
The world is full of tough guys. It does not need me to be one, too.
Offline
#6 2005-11-25 22:17:29
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Disabling links from the Administration section.
I thought you meant temporarily hiding “view site”.
Offline
Re: Disabling links from the Administration section.
Ah…ok. That would explain why I didn’t see it. I generally keep my site in another tab or page, so I rarely even notice the “view site” tab.
The world is full of tough guys. It does not need me to be one, too.
Offline