Version: , by wajones
Developer Last Online: Apr 2014
Version: 2.2.x
Rating:
Released: 11-02-2001
Last Update: Never
Installs: 50
No support by the author.
As requested, here is the small calendar from vbPortal.
I want to also give credit to one of my users "rabidmoogle" for help in optimizing my original hack.
It's a standalone file, with the template included for testing.
1. Create a new template called "small_calendar"
2. Cut and paste the included template from the script into the new template.
3. rename the cal.php.txt to cal.php and copy it to your forums directory and run to test.
4. Cut and paste the code between the <?php and ?> to the location of your choice to use in another script.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
ideally i would like to use a $variable in my header template which would call this calendar to display... having this functionality in my header would make integration with my new layout very easy for me. do you know what would be required to do this? ...as in, what php file(s) do i need to copy the calendar code to in order to get this functionality in my header (calendar functionality on all vb pages)? and what $variable do i use in my templates to call the calendar?
this is greatly appreciated wajones. this is exactly what i wanted... a stand alone hack for the vbportal mini calendar. your help with my above questions on implementation would also be greatly appreciated.
To include it in vBulletin, this is untested but should work.
Replace the eval("dooutput(\"".gettemplate(small_calendar)."\" );"); in the cal.php file with eval("\$smallcalendar .= \"".gettemplate("small_calendar")."\";");
Then put include 'cal.php'; in the phpinclude template, you should now be able to use $smallcalendar in what ever template you want.
it worked. i had to remove everything outside of the <?php ?> and also remove the include global.php in the cal.php file for it to work. however, it "breaks" my calendar while the phpinclude template is including cal.php . the symtoms are the same as what sysmom described in this thread for the today's events hack: https://vborg.vbsupport.ru/showthrea...5&pagenumber=5
it must be something in the cal.php file that is conflicting. if that file is included in the phpinclude it breaks my calendar regardless of whether i'm using the calendar variable on my pages or not... when i remove the include for cal.php everything works again. sysmom suggested it may be a variable getting tromped on.
For a couple of weeks now I've been requesting a non-vb page calendar hack in the requests forum that worked identical to the phpportal type but without having to use the portal script. When I saw this thread it looked like what I needed however when I looked at the instructions it doesn't seem to be? This doesn't seem to have the functionality that allows it to run on a non-vb page? Like calling it via SSI in a .shtml page?
Any help in doing this would be GREATLY appreciated, I want to replace my plain calender that has no integration with vb.
i duplicated the global.php file and named the duplicate to calglobal.php. in the calglobal i removed the statement that parses the phpinclude template. then i changed the require statement in the calendar.php file to require calglobal.php instead of global.php . so now i don't have the problem anymore at the small cost of not having the mini calendar on the big calendar page (which makes sense i guess).