Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 128
member
member
Joined: Oct 2006
Posts: 128
I exported the mini calendar to my home page. In IE7 I'm getting an error saying that todayis not defined. I'm not using css because I'm not too familiar with what to do. But I noticed that in the html today is not in quotes and also the current date isn't hightlighted or a different text color in the mini calendar

http://www.toledobend.com/home6.php

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Well, today is populated by a javascript include (IIRC), so if these pages are PHP you should insert this into your header on any pages which have the mini calendar:
Code
<script language="javascript" type="text/javascript">
var baseurl = "/forums";
var fullurl = "https://www.ubbcentral.com/forums";
var today = '<?php echo(date("d")); ?>';
</script>

Be sure to replace lines 2 and 3 with your board specific information.


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!
Joined: Oct 2006
Posts: 128
member
member
Joined: Oct 2006
Posts: 128
Looks like I've got the script up and running now and hopefully shouldn't have any more issues for a while. I inserted the above code though into my header on my front page but I still get an error of something like 'object expected" on line such and such. The minicalendar seems to be working well enough except the current date isn't highlighted I haven't launched the site publicly yet but here is a link to the front page:

http://www.toledobend.com/home9.php

Joined: Oct 2006
Posts: 128
member
member
Joined: Oct 2006
Posts: 128
Can someone verify this error for me on ie? I tried Gizmo's code but still getting error of 'object expected'.

Joined: Jun 2006
Posts: 196
I
enthusiast
enthusiast
I Offline
Joined: Jun 2006
Posts: 196
You probably just need to add
Code
<script type="text/javascript" src="/forums/ubb_js/ubb_jslib.js"></script>
to your header

Joined: Oct 2006
Posts: 128
member
member
Joined: Oct 2006
Posts: 128
Thanks, I tried that too but I'm getting an error on line 556, 'today is not defined'.

www.toledobend.com


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
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 1,009 guests, and 174 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 20230217)