![]() |
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" ?
|
All times are GMT. The time now is 10:50 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:
|