![]() |
Don't write anything from the php files.
Use the vbulletin template system. Put the html you want in 'forumhome_loggedinusers' template. |
Mister,
What is the purpose of this code: Code:
if ($caltitlelength != 0 and isset($caltitlelength)!=0) Also, Im close to finishing my mod to this hack. I have successfully combined member's birthdays to upcoming events using a SQL UNION query. I am going to add the following options to the User CP: "Display Today's Events on Home Page: (Checkbox: Yes/No)", "Display Upcoming Events: (no, one week, two weeks, one month)". These settings will be used to determine if/what to display on the main page. Still trying to make the substr function work. Anyone have any ideas why it is NOT removing the trailing commas? Is it working for anyone else? Thanks, Kyrnel |
ROFL
I just figured out why the substr function wasn't removing the trailing commas. I had the "Add template name in comments" option set to Yes. So the substr function was trimming the last two characters of the HTML comment showing the template name. This is potentially dangerous becasue the close comment tag was altered expanding how much HTML was commented out. If you tried this hack with Template names enabled and a section of your page disappeared, now you know why. heh |
Quote:
Can you show a screen shot or url of your events hack? I really want to implement this on my site. Thanks! |
Nice job!
Very useful hack! |
Quote:
The rest of it works fine though. Here are a couple of screenshots and instructions for my modified version of the hack: This is what happen when there are no upcoming events: https://vborg.vbsupport.ru/ This is what happens when there are, notice that I can only show todays birthdays and it is separate from the events. I want to combine them: https://vborg.vbsupport.ru/ I don't want to post instructions until I have finished this hack. I am still planning on incorporating Birthdays into the upcoming events and putting two options in the user control panel: One to select yes/no whether to display upcoming events at all, another to select how far into the future they want events displayed (1week, 2 weeks, 1 month). Once I have those things finished I will post instructions.. |
Progress?
|
none.. I have tried every combination of syntax I can think of to form a UNION query to combine the Events with the Birthdays. No Luck.. and I have been unsuccessful in getting anyone to help.
Im not a php mysql programmer but I do program in SQL so I figured it shouldnt be too difficult... I was wrong I guess.. PLEASE HELP, SOMEONE.... I need to figure out how to combine events from calendar_events with birthdays from the users table. and sort them all by date... thx |
I wouldn't mind seeing this either.
Anybody? |
What about showing a weeks worth of "Upcoming Events" ?
|
Quote:
|
Ok, cool. I don't allow birthdays to display publicly anyway so this will work for me! :)
After looking at it, what is the code that pulls the "upcoming events" in? |
Anyone have a version of this that works with 2.2.1?
Some of the calendaring code, it seems, was recently changed. Parts of forumhome_loggedinusers have been moved to forumhome_birthdaybit, and the hack no longer works... |
what i posted was on 2.2.1 but my templates are highly modified so you are on your own there..
|
[QUOTE]Originally posted by tripps
Anyone have a version of this that works with 2.2.1? Some of the calendaring code, it seems, was recently changed. Parts of forumhome_loggedinusers have been moved to forumhome_birthdaybit, and the hack no longer works... |
I have everything installed on this hack with one minor problem. I did not have this code in my forumhome_loggedinusers template,
$birthdaybits</smallfont></td> so I put this, $birthdaybits $todaysevents</smallfont></td> under, $activeusers</smallfont> I must have done something wrong because it works ok for events but when there is a birthday and event both together, events goes to the top of my page in a black background. Can anyone tell me where I'm messing up? Looks Great!! Thanks :) |
yes, when that happens it is usally becasue you opened a new <tr> flag (table row) without closing it. I modified all my templates to be much more modular. The problem is that some of the templates in vB are designed to be inside a <tr> flag and some have the <tr> flag inside them so when you rearrange the templates you have to make sure the HTML tags are nested properly. I always turn on my Template names in the Admin COntrol Panel/Options and debug my HTML source. That is the only way I can think of to make it work. I cant really post my templates because Im certain they would cause the same problem taken out of context.
|
Thank you.. I managed to get it fixed with your advice.. :up: They are both showing together and seperate now.. This is really great.. Thanks again
|
Quote:
PHP Code:
|
I am no expert, I am just a newbie but this is what I did because when I just inserted in I had an error
In the forumhome_loggedinusers I created another table at the bottom and put the code in it like this <tr id="cat"> <td bgcolor="{categorybackcolor}" colspan="6"><a href="online.php?s=$session[sessionhash]"><normalfont color="{categoryfontcolor}"><b>Currently Active Users</b></normalfont></a><normalfont color="{categoryfontcolor}"><b>: $totalonline</b></normalfont></td> </tr> <tr> <td bgcolor="{firstaltcolor}" colspan="6"><smallfont> <nobr>There are currently $numberregistered members and $numberguest guests on the boards.</nobr> | <nobr>Most users ever online was $recordusers on $recorddate at $recordtime.</nobr><br> $activeusers</smallfont></td> </tr> </tr> <tr> <td bgcolor="{firstaltcolor}" colspan="6"><smallfont> $birthdaybits $todaysevents</smallfont></td> </tr> then I went into forumhome_birthdaybits and removed it from tables like this.. <bgcolor="{firstaltcolor}" colspan="6"><smallfont> Today's Birthdays: $birthdays</smallfont> Mine works fine and looks right.. |
what do you put in the todaysevent.phpfile?
|
Quote:
And where is that If/Then statement to change for "None" ? |
In your instructions you say: Edit template forumhome_loggedinusers from $birthdaybits to $birthdaybits then $todaysevents then the smallfont and end tag for the cell.
This is how my 'vB 2.2.2' ORIGINAL template looks like: Code:
<tr id="cat"> I fixed this by going to that template and just add $todaysevents right below $activeusers and then edited the todaysevents.php file by replacing the original line with: Code:
$todaysevents = "<tr><td bgcolor='{firstaltcolor} colspan='6'><smallfont>Today's Events: "; If either a birthday isn't there, or no event, an empty table screwup will appear with a single line that looks like an empty cell. |
Is there a way to put this on a non VB page, where it actually lists the events? Say on the index page of a website ( in our case we use an index.php page etc )?
|
reat hack just installed, thanks.
|
This is wonderful, and your instructions were great. Thank you!
:) Jennie |
If anyone else is having the problem where birthdays and events on the same day conflict and cause events to move to the top, what worked for me was to move $todaysevents before $birthdaybits (I have these in my forumhome).
http://www.after-darkness.com |
Is it possible to have the events show up on NON VB pages ?
I want the upcoming events to show up on my web sites main page. Thanks, this it really a great hack ! |
Anyone having problems with 2.2.4? I ca not get mine to show up and everything is correct. I get this error,
Fatal error: Call to undefined function: vbdate() in /home/sites/20ishparents.com/web/boards/todaysevents.php on line 19 |
I've used this successfully on every version from 2.0.3 to 2.2.5. Never had a problem.
|
You are not the only one smachol :) no probs here too, and integrated with vB very nice :)
|
Is it possible to show an image, underneath the event (relating to the event, of course ;)) on the main page? That'd be cool.
Thanx |
There's something in this hack who will not work with latest version of Vbulletin because $birthdaybits is now independant of 'forumhome_loggedinusers'. It's now on template "forumhome_birthdaybit "
So... here what I do for correct the situation (mod of the original instal instruction) a) In step 2 you must search for Quote:
Quote:
In step 3 Instead of template 'forumhome_loggedinusers', you must use 'forumhome_birthdaybit '. So, in forumhome_birthdaybit templates, change this: Quote:
Quote:
You can look at the results at my 2.2.6 vBulletin board here |
Is it possible to make it so a Calender event will popup when a user goes to the forum??
|
Ok mine only shows up when I have a birthday on the same day as the event ...
|
hhmm. My $birthdaybits is in the formhome template what do i do about that? Because mine is not showing up neither. Please help me out. Thanks.
|
Ok it works now but i see the comma at the end. Why is that and how do i fix it?
|
I put mine in the forumhome_pmloggedin and put $pminfo at the top of forumhome.
|
? How did you fix it BigJohnson?
|
How do i make this to work on non-VB page? This would be great.
|
All times are GMT. The time now is 07:08 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:
|