The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#42
|
||||
|
||||
i would love this on a non-vb php page in my forums directory... but im getting the same errors as everyone else
|
#43
|
|||
|
|||
I've been trying to set this up on a non VB .shtml page for a few days now and think I've found the reason why some people are getting gibberish whenever they try to load this on a .shtml page.
I use the following call from my home page to load the calendar: <!--#include virtual="forum/cal.php" --> What I've discovered is that if certain settings are enabled in the browser (both IE and Netscape), I get gibberish when I view the page. On all systems I've tried (4 - windows nt, 2000 and XP running IE 6 and Netscape 4.75), the call above produces garbage if the "Use HTTP1.1 through proxy connections" option in IE is enabled. On some systems, the include call above works (but not on WinXP) if only "Use HTTP 1.1" is enabled. Result: Disabling "Use HTTP1.1 through proxy connections" allows viewing the mini calendar through the call on some machines. On XP, both options need to be disabled before the calendar is displayed properly. Note: Just loading the "cal.php" page by itself without using the SSI call above works without disabling either of the options above. To disable the options in IE: Go to the Tools menu > Internet Options > Advanced. The HTTP options should be about halfway down. Can anyone else confirm these findings? |
#44
|
||||
|
||||
Hello Guys!!
Can someone please tell me what exactly is to do, to run this calendar on my Vbindex page (home.php)?? I read the current posts but thats not really helpfull to me. Thanks very much! |
#45
|
|||
|
|||
I guess I will throw in here. I was able to get this working on one of my sites. This is a page I created so I could keep up with what is going on using active desktop.
http://www.northwestdiver.com/test/activedesktest.php I used the code pretty much just like wajones posted it. I did add a $templatesused variable for the template it uses (which I have no idea if it needs it or not. I also change include global to require global. I put the code in a cal.php page in the forums directory. I then used an include with the full url <?php include('http://www.domain.com/forum/cal.php');?> It seems to work just fine. I don't know if that helps anyone or not. Just my experience ... |
#46
|
|||
|
|||
Minifreunde...
In testing, I was able to get this working with Vbindex. Basically here is a method that worked in my test (much of which is contained within this thread)...[list=1][*]Create a new template called "small_calendar"[*]Cut and paste the included template from the cal.php.txt file script into the new "small_calendar" template that you created. Save the cal.php.txt file with all of the template text removed (all that should be left is what is between the<?php and ?> on the first and last lines of the text file).[*]Rename the cal.php.txt to cal.php and copy it to your forums directory.[*]Run the cal.php file (from your forums directory) in your browser. Make sure that the file works - and displays a calendar. If the calendar does not display here, you'll need to figure out the problem before proceeding (if it doesn't work here, it won't work when you go to display it on your Vbindex home page.[*]Replace the following text in the cal.php file: eval("dooutput(\"".gettemplate(small_calendar)."\" );"); with eval("\$smallcalendar .= \"".gettemplate("small_calendar")."\";");[*]Remove the following line from cal.php file (for it to work properly): include global.php.[*]Perform the following edits, based on Jakeman's suggestions, so that the Big VB Calendar will continue to work (this essentially removes the phpinclude template from the calendar pages): Copy the global.php to a new file called calglobal.php. Edit the calglobal.php file and remove (or comment out) the line that is just under the Parse PHP include statement. Edit the calendar.php file (provided by Vbulletin) and change the require statement (on line 7) from global.php to calglobal.php.[*]Edit the "phpinclude" template (this template comes with VBulletin) - and add the text include 'cal.php'; to it - and be sure to save the template. This will allow the calendar to be used in any of the Vbindex templates.[/list=1] Now, you need to decide where to display the calendar. I tested it in the "home_right" template that you create as part of the Vbindex installation - but you could easily put it in the "home_left" template as well. You'll need to edit the template and set up the code (you'll need to know a little HTML) to display the calendar. Just put in $smallcalendar wherever you want the calendar to display. Important Note: I found that I had to shrink the default calendar down to fit into the right column. To do this, I had to edit the "small_calendar" template (where I added the font face and size specifications, as well as changed the width). If you need some more specific info on how I edited the "home_right" and "small_calendar" templates to fit it all in, let me know (note that I'd encourage you to play with the settings in these templates to make it look the way that you'd like it - as you could use a variety of choices here). Hope this helps you to try it out on your Vbindex home page. |
#47
|
||||
|
||||
wicked... ill try this 2nite
|
#48
|
||||
|
||||
I?ve tried and the calendar worked separatly on cal.php.
But i?ve include it in to my vbindex - no chance. @ Megabit, can i send you my home.php (vbindex-site) and my cal.php to you? Please help me?? |
#49
|
|||
|
|||
Minifreunde... You can send them to me, but unless you have some major changes in one or both of those files, then I suspect that the problem may not be with those files.
Are you sure that your Vbindex templates are coded correctly? For example, if you accidentally do not code the template correctly, the calendar will not display. If you like, I can send you a sample text file that you could just copy and paste into the Vbindex template to see if that works for you. |
#50
|
||||
|
||||
Hello Megabit.
I used vbindex with some changes but all workes perfect for me. When you "PM" me your Email-Adress i will send ?ou my codes. This would be a big help for me. I mean if i run cal.php it works and when i include cal.php in the phpinclude template i get a parse error with this ()..in Line 110 if i run the cal.php. Is there also a way to place the hole cal.php code in the vbindex file?? I am a very relaxed worker and think about every step i make. This is not my first modi and here i get some major problems... |
#51
|
||||
|
||||
Hello Guys!
It works!!! Ive put the code in the vbindex.php and now it works!!! Thanx for you´re help. One Question: how can i change the dateformat? Curently it looks like: July 26, but i want it look like 26 Juli (because Germany). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|