![]() |
Calander on non-VB pages
I'm looking for a hack or a PHP script that can put today's events from the calander on a non-vB page, namely my site's main page. Maybe something cute in a Calander square looking dealy.
Thanks |
Quote:
please use the following code to get the last 5 events in an array: PHP Code:
|
Yay, thanks. That's a good start.
|
Quote:
sorry but i just found one mistake. The dateline will never change in my previous code. Please use the following code: PHP Code:
|
what would be the code to get total threads and how many users online?
|
Quote:
PHP Code:
PHP Code:
|
didnt work :( got parse errors
|
Quote:
Cheers, |
Odd, with the new code, no events are showing.
|
Quote:
PHP Code:
|
echo $news; you mean? :p
Now, anyway I could make those link to the expanded info on the Calander pages? :) |
Quote:
Cheers, |
That was a wee bit vague...or very vague.
PHP Code:
So, exactly how should I link to the Calendarid? |
Try this one:
PHP Code:
|
Hey Pseudomizer..maybe you can help me!
I'm trying to add events from an external calendar. I've inserted rows with the start date in the dateline_from column & the end date in dateline_to column. I've converted my dates & times using the UNIX_TIMSTAMP I'm not sure what goes in the dateline or UTC columns I'm running into trouble with timezone offsets (!)...which may be something to do with the dateline & UTC columns... I am in BST timezone (British Summer Time). The event I inserted from my external calendar shows up in he vBulletin calendar but it says it was posted for GMT. What I want to do is to insert events which always show up correctly for my local time (GTM/BST) even if a) the event spans the point at which local time changes from BST to GMT and b) I insert now (BST) an event which will take place when daylight saving ends and we change to GMT. cheers |
Quote:
i have never done such a thing before but i can give you some guidance in which direction you should look to find the error. When you post something or you create a thread in all php files they are using the same function. Please have a closer look into this section: PHP Code:
Hope this helps. Cheers, |
Hmm, I fooled around with it to get it to work, or at least link correctly (for my site and my settings.)
PHP Code:
|
Quote:
Cheers, |
Yeah...but....looking is hard :'(
|
Quote:
Cheers, |
Well, I had to add a $news = " "; before the other two 'cause it kept counting and adding to the $news.
And it works dandy now. Thanks! |
Quote:
I am happy that i could help you. Cheers, |
Quote:
cheers |
OK I am a dolt when it comes to this stuff. Can someone post a php file that will show the next 5 events?
|
Read post 18 and 21 and you are set.
Cheers, |
1 Attachment(s)
Quote:
http://talkdisney.com/forums/test.php here is the file i did. |
Pseudomizer, you are the man!
|
Quote:
Cheers, |
any idea on how to get this working on a non-vB page?
|
Quote:
So please rephrase your question. Thanks. Cheers, |
Sorry My bad. Got so excited when I read the posts I didn't read the subject close enough. I'll give it a try and see if I can get it to work.
Sorry for that :nervous: |
k hopefully I haven't overlooked anything so please be patient with me as this is all new to me.
I tried your code and it works fine. How hard would it be to only show todays events and the next 3 or 4 days. Make sense? |
Quote:
Fatal error: Call to a member function on a non-object in /home/n4f/html/calendarexport.php on line 3 What am i doing wrong? Not very familiar with what to do... Shouldn't my databasename be somewhere? or... Any help appreciated. PHP Code:
|
Quote:
the DBsite command is using the SQL PHP class from VBulletin. If you have included the global.php you should not have the problems you have. Keep in mind that you have to change the directory to include the global.php if you are not in your forum home directory. Cheers, |
I used the information on this post and it worked like a charm for me!
THANKS A LOT. On showing users online code: Quote:
Which file must I include in order to work? And, how can I show the total numer of users online? Here another question: Maybe this is not the correct thread, but I think you can help me because it is a very similar problem. I would like to show TODAY BIRTHDAY's on a non-vb page. What I dontknow how to do is to compare today date DATE(now), with users.birthday_search and find thos users whose celebrate their birthday. Any help? Thanks in advance. Quote:
|
All times are GMT. The time now is 06:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|