The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I want to produce a page that just shows the collapsed event calendar at the bottom of the home page - no headers or footers on the page.
I then wanted to use this page in an iframe so that I can show the collapsed event calendar section on an html page. Is this possible and how do I go about doing this. I've identified the code that displays the collapsed event calendar but don't know what to do from here. (I do have ftp access) Thanks |
|
#2
|
||||
|
||||
|
You need to remove the $header and $footer variables from the main calendar template.
For your purposes, create a child forum of you current style, go into that template and then delete those variables. In your IFRAME - call it like calendar.php&styleid=21 (where 21 is the # of the new style you created) |
|
#3
|
|||
|
|||
|
It's easy when you know how - thank you!
|
|
#4
|
||||
|
||||
|
np
|
|
#5
|
|||
|
|||
|
Still having some problems with this. I got everything to work just as I wanted it to, but, when I refresh the page, the style that shows up in the iFrame reverts to my default style id (ie id=1) rather than remaining on my new style id.
My coding in the iFrame is as suggested with calendar.php?styleid=2 Confused? Can anybody help me out - or just let me know that what I'm trying to do is impossible so that I don't waste anymore time! Thanks |
|
#6
|
|||
|
|||
|
Using that styleid solution wont work as expected.
You could add a plugin to an appropriate hook before the styleid code and if THIS_SCRIPT == 'calendar' change the styleid by defining STYLEID to be what id you want it to be. |
|
#7
|
|||
|
|||
|
That sounds ok, but you've gone a bit over my head in terms of coding. Is there somewhere that I can go to get a bit more info about plugins, etc, or get some more detailed assistance on your advice there.
|
|
#8
|
|||
|
|||
|
Try linking to calendar.php in the iframe as "calendar.php?insideframe=1"
And a plugin in style_fetch PHP Code:
|
|
#9
|
|||
|
|||
|
Thank you! That worked a treat. I doesn't carry the styleid on when you click on the event - it displays the event details back in styleid=1, rather than the new styleid. But I can live with that!
Thanks for your help - much appreciated |
|
#10
|
|||
|
|||
|
Do you use the calendar normally as well or purely in this frame?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|