Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by wajones wajones is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

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.

Comments
  #2  
Old 11-03-2001, 07:27 PM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any install instructions?
Thanks!
Reply With Quote
  #3  
Old 11-04-2001, 01:42 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

truly excellect. thank you very much wajones.

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.
Reply With Quote
  #4  
Old 11-04-2001, 02:06 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

test works

http://www.mac-gamer.com/dev/cal.php
Reply With Quote
  #5  
Old 11-04-2001, 02:51 AM
wajones wajones is offline
 
Join Date: Oct 2001
Location: San Diego, California, US
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-04-2001, 04:34 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

once again, your help is greatly appreciated.
Reply With Quote
  #7  
Old 11-04-2001, 05:00 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops

linkage4u http://www.mac-gamer.com/dev/

the broken calendar can be seen by clicking on the calendar button on the top.
Reply With Quote
  #8  
Old 11-04-2001, 11:18 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey,

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.

Thanks!
Reply With Quote
  #9  
Old 11-04-2001, 02:19 PM
Bane's Avatar
Bane Bane is offline
 
Join Date: Oct 2001
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should run fine on a non vb page I would think. I'm running it in a pop-up window now and its dandy.
Reply With Quote
  #10  
Old 11-05-2001, 02:43 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

problem solved... more or less.

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).

cheers!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08258 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete