|
Joined: Mar 2007
Posts: 20
stranger
|
stranger
Joined: Mar 2007
Posts: 20 |
Is there an easy way to diasable the calendar?
Thanks, P
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
I don't think so. Look in your Admin Control Panel and you can change who can create an event though.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
remove the calendar link in the header.tpl file and dont' enable the calendar islands in the portal; whammo, no calendar
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Well yes you can edit the underlying code to do just about anything, but he did say EASY, in which case most people mean by clicking a button, not editing a file.
But glad you gave him an alternative choice if he wants.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Well, currently, it's the only way to disable the calendar; and isn't too big of an edit (meerely removing the line from the file)
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Better to comment out the line than to remove it.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Yes, but I don't want to type out a huge post on what various ways of commenting out a line are, and where it's applicable to do so... You can feel more than free however...
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
lol giz, it's a one liner to comment it out in header.tpl {* calendar linky poo *} (around line 180) *phew* i'm tired from typing FOUR characters "{*" + "*}" {*<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> *}
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Well, I have several other reasons to not have to type it, but since you're all so adamant to force me to roll over out of bed to do so when I'm still coming down from an allergic reaction so bad I spent 5 hours going "I really, should, go to the hospetal"... In templates/default/header.tpl, on about line 152, replace this: <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a>
With: {*<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> *}
You also should be able to achieve the same thing escaping smarty and going soley with PHP by doing: {php} // <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> {/php}
or {php} /* <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> */{/php}
I feel it also worthy to note that by modifying any core code, through the means of deleting items or "commenting them" you violate the terms of your licensing agreement with Groupee and forefit all terms for support through their helpdesk; though that's what this forum is for... Also, instead of commenting out code, I generally recommend users to backup their stock files; in any of my installs (even for clients) you'll see a load of ".bak" files; such as header.php.bak as I edit files live and often tweak how just about anything comes out </end rant> <start lay back down and try to sleep cycle>[/spoiler]
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
hrm.. someone didn't have their wheaties this morning ? giz (note the intended humor in my former post)... now go back to bed!!! (* This was already answered before too ) oh and on a lighter note... Linky Poo -- don't get them in a bunch
|
|
|
|
Joined: Mar 2007
Posts: 20
stranger
|
stranger
Joined: Mar 2007
Posts: 20 |
Thanks yall. I do know how to comment out code. And, it does seem like the calendar should be something that can be disabled through the control panel.
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Agreed. I think most of agree that many of these things would be nice to control from the CP rather then jumping into the code with an editor.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
815
guests, and
186
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|