Previous Thread
Next Thread
Print Thread
Hop To
#194024 08/07/2007 2:36 PM
Joined: Mar 2007
Posts: 20
P
stranger
stranger
P Offline
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.

ntdoc #194068 08/08/2007 12:17 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #194084 08/08/2007 3:30 AM
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.

ntdoc #194088 08/08/2007 3:53 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #194091 08/08/2007 4:15 AM
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.

ntdoc #194102 08/08/2007 5:00 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #194120 08/08/2007 7:36 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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 [Linked Image from sirdude.com]

{* calendar linky poo *} (around line 180) wink

*phew* i'm tired from typing FOUR characters "{*" + "*}" wink

PHP Code
{*<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> &nbsp; &nbsp; &nbsp;*} 

SD #194122 08/08/2007 7:46 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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:
Code
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> &nbsp; &nbsp; &nbsp; 

With:
Code
{*<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> &nbsp; &nbsp; &nbsp; *}

You also should be able to achieve the same thing escaping smarty and going soley with PHP by doing:
Code
{php} // <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> &nbsp; &nbsp; &nbsp; {/php}

or
Code
{php} /* <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}calendar">{$lang.CALENDAR}</a> &nbsp; &nbsp; &nbsp; */{/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]


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #194125 08/08/2007 7:54 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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 wink )

oh and on a lighter note... Linky Poo -- don't get them in a bunch laugh

SD #194305 08/11/2007 3:39 PM
Joined: Mar 2007
Posts: 20
P
stranger
stranger
P Offline
Joined: Mar 2007
Posts: 20
Thanks yall. I do know how to comment out code. wink

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.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 815 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)