vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - Advent Calendar 2008 (https://vborg.vbsupport.ru/showthread.php?t=195245)

Brady1505 11-10-2008 09:43 PM

My problem is, when I only set the radiobutton "user can see calendar" it is not shown in the navbar.
The link in the navbar appears only when I set the radiobutton "user can test calendar" too.
But in this case the user can open all doors ...

I corrected the source code as shown in the questions above.
Can you help me please?

Thank you

Brady

dmknights 11-11-2008 02:03 AM

Need some simple help here.
I know i need to upload everything thats in the upload folder, but there are other files too!
language_english.xml
&
product-adventcalendar (english MASTER).xml

Which 1 does what?
what do i have to do?

Coroner 11-11-2008 03:18 AM

Quote:

Originally Posted by Brady1505 (Post 1663175)
My problem is, when I only set the radiobutton "user can see calendar" it is not shown in the navbar.
The link in the navbar appears only when I set the radiobutton "user can test calendar" too.
But in this case the user can open all doors ...

I corrected the source code as shown in the questions above.
Can you help me please?

Thank you

Brady

When you set this radio button, you can see it in december - only

Coroner 11-11-2008 03:19 AM

Quote:

Originally Posted by dmknights (Post 1663275)
Need some simple help here.
I know i need to upload everything thats in the upload folder, but there are other files too!
language_english.xml
&
product-adventcalendar (english MASTER).xml

Which 1 does what?
what do i have to do?

simply install the product (english or german). If you have more than one language you can use the language xml for the second one (if it's german or english)

cykelmyggen 11-11-2008 04:16 AM

Quote:

Originally Posted by cykelmyggen (Post 1661631)
I've searched in Phrasemanager and in Templates in order to translate the word "Advent" in navbar - so far without luck?

Anyone?

Coroner 11-11-2008 07:51 AM

Sorry ....
Take a look in the product an locate this line.

Quote:

if ($do_adv_nav) $template_hook[navbar_buttons_left] .= '<td class="vbmenu_control"><a href="adventcalendar.php">Advent</a></td>';

cykelmyggen 11-11-2008 04:49 PM

Quote:

Originally Posted by Coroner (Post 1663396)
Sorry ....
Take a look in the product an locate this line.

Fixed, thanks:up:

cirdok2 11-11-2008 05:08 PM

is it easy to add also December 25th?
Thanks :)

darr3n 11-11-2008 08:39 PM

small problem using opera browser, dates are all at the top of the screen

https://vborg.vbsupport.ru/

Coroner 11-12-2008 04:16 AM

Quote:

Originally Posted by cirdok2 (Post 1663650)
is it easy to add also December 25th?
Thanks :)

Yes. There're too many changes to do it.

Coroner 11-12-2008 04:21 AM

Quote:

Originally Posted by darr3n (Post 1663785)
small problem using opera browser, dates are all at the top of the screen

http://img514.imageshack.us/img514/6...board01jx3.jpg

Hmm, I'll have it too .... will take a look to fix it

Nadavy 11-12-2008 04:21 AM

Would be cool if it was more compatible with other holidays such as Hannukah and Kwanza, regardless of whether they have advent calendars or not.

Coroner 11-12-2008 04:40 AM

The Problem is Opera. It ignores the style vars

<div style="position: absolute; top: 20%; left: 5% ...

If you change it into fixed pixel (top: 50px; left 20px) it will works correctly

bjkinzluvr 11-12-2008 02:10 PM

1) I can't find where to set permissions??

2) I have no link on the nav bar. I've read all the other posts about this, but cannot find the solution. I am familiar with how to add links to the nav bar, but cannot figure this one out. Sorry. Would appreciate any help. Thanks.

From post #8:
Quote:

Set the userrights (enable: can test calendar). If so, check your template (navbar), maybe there's the template_hook missing.
Where do I find "Set the userrights" ?

What is the template_hook code? And does it go in advent_calendar template or navbar? I would assume navbar, but lost on this. Thanks.

Also: these two files are found in the "images" folder so that is where they now reside on my server "images/advent": advent.htm and adventsnow.jg. But those are not image files. Should they really be in the images folder?

Sory for so many questions, but I need help. :) Thanks.

bjkinzluvr 11-12-2008 02:33 PM

Quote:

Originally Posted by Coroner (Post 1663396)
Sorry ....
Take a look in the product an locate this line.

When you say "in the product" which template is that?

cykelmyggen 11-12-2008 03:59 PM

Quote:

Originally Posted by bjkinzluvr (Post 1664241)
When you say "in the product" which template is that?

It's the product you use when you install the mod.

Coroner 11-12-2008 04:22 PM

Quote:

Originally Posted by bjkinzluvr (Post 1664223)
1) I can't find where to set permissions??

2) I have no link on the nav bar. I've read all the other posts about this, but cannot find the solution. I am familiar with how to add links to the nav bar, but cannot figure this one out. Sorry. Would appreciate any help. Thanks.

From post #8:

Where do I find "Set the userrights" ?

What is the template_hook code? And does it go in advent_calendar template or navbar? I would assume navbar, but lost on this. Thanks.

Also: these two files are found in the "images" folder so that is where they now reside on my server "images/advent": advent.htm and adventsnow.jg. But those are not image files. Should they really be in the images folder?

Sory for so many questions, but I need help. :) Thanks.

1.) Usergroups
2.) The link only appears (in the Navbar) if one of those permissions is set to YES
The "test advent calendar" is for testing (the link will shown in the navbar directly)
"use the advent calendar": the Link is only avaible in december

template_hook: It's a hook inside a template (you can use it to insert html inside a template without modification)

Yes, you really need to upload both files (see my strucure)

regards

bjkinzluvr 11-12-2008 06:07 PM

Quote:

Originally Posted by Coroner (Post 1664295)
1.) Usergroups
2.) The link only appears (in the Navbar) if one of those permissions is set to YES
The "test advent calendar" is for testing (the link will shown in the navbar directly)
"use the advent calendar": the Link is only avaible in december

template_hook: It's a hook inside a template (you can use it to insert html inside a template without modification)

Yes, you really need to upload both files (see my strucure)

regards


Thanks very much the answers and support. I've got a link after giving test permission. Calendar opens, but when I click on the numbers, I get an error message and no pop up window. It just says, "Error on page" I corrected my line 38 in Dreamweaver like in post #22, but it still has error. Any ideas? Thanks.

EDIT: It's working now. I had to clear my cache. Thanks so much!! This looks like it will be fun!!!

gazzak 11-13-2008 02:26 PM

Installed and testing great. This is going to be very very popular.

What I'd like to know is how this works for the users? Do they only have access on the 1st of december to day 1, or must we add the code daily?

Coroner 11-13-2008 05:13 PM

Normaly it's viewing on december.
you can test this (I haven't !)

adventcalendar.php
search for:
Quote:

if (!$is_online OR date('n', TIMENOW) != 12 OR !$can_use_adv) print_no_permission ();
and change into:
Quote:

if (!$is_online OR !$can_use_adv) print_no_permission ();

donald200 11-16-2008 05:51 AM

hi
calender works fine with firefox, ie explorer dont, fehler auf seite, if you want to open a window??

edit: jumped to german support...

Christinichka 11-16-2008 08:29 PM

I have a similiar problem. Mine will open the numbers in firefox but not ie

a marked man 70 11-18-2008 07:34 AM

Quote:

Originally Posted by Coroner (Post 1664026)
The Problem is Opera. It ignores the style vars

<div style="position: absolute; top: 20%; left: 5% ...

If you change it into fixed pixel (top: 50px; left 20px) it will works correctly

where do you change that???

snow2000 11-18-2008 09:13 AM

Quote:

Originally Posted by Christinichka (Post 1667051)
I have a similiar problem. Mine will open the numbers in firefox but not ie

I?ve got the same problem...:confused:

cykelmyggen 11-18-2008 09:28 AM

Quote:

Originally Posted by snow2000 (Post 1667988)
I?ve got the same problem...:confused:

Read this thread for a solution. Worked for me and for others, and it probably will for you as well;-)

Coroner 11-18-2008 10:05 AM

adventcalendar.htm
You need to find the correct sizes for each calendar day

Lottis 11-23-2008 01:20 PM

Thank you fore this great mod. It seem to me that i have a problem, but i am not quite shure how to fix this.

Do you have any tips?


Line: 38
Sign: 4
Code: 0
../../../../advent.htm

Coroner 11-23-2008 01:59 PM

Try this
https://vborg.vbsupport.ru/showpost....6&postcount=21

Lottis 11-23-2008 05:31 PM

Quote:

Originally Posted by Coroner (Post 1671320)

Thank you so mutch, that did the trick. :)

Keesa 11-27-2008 09:14 PM

Heehee, here is ours. Coroner, please don't scream if you hate Tokio Hotel.

https://vborg.vbsupport.ru/external/2008/11/7.png

Virtualshiner 11-29-2008 08:53 AM

Hi,

I want to make it so that each link loads a webpage. What code do I need to use to be able to do this?

Also, I saw you have to edit the product to change the link in the navbar, how do I do this as I cant find it.

Help is greatly appreciated,

VS

TimberFloorAu 11-29-2008 07:07 PM

1. good mod.
2. have set permissions for admin to test and use in usergroups
3. still have a blank page when we click settings.

Not sure why...

Any suggestions, presumably we can change page size in settings, as 1024 is too big for our forum style.

ArgylePhoto 12-01-2008 04:29 AM

I installed this and it seems backwards to me, you can open every door on day one. Is it meant to be like that? If so is it possible to change it so you can't open, say, day 3 until day 3, day 15 until day 15 etc?

Coroner 12-01-2008 07:25 AM

On Day1 you can open day 1, on day 2 you can open day1 & 2. And so on ...
Will take a lot at this later when I'm at home.

Coroner 12-01-2008 01:22 PM

Can't found any Bug. Works great

buddyheiko 12-01-2008 08:12 PM

Hello,

I installed everything. But I can?t find the calendar on my forum http://www.forum-spielmannszug.de .

What is going wrong ?

What do you mean with "Simply upload all files and import the product." ?

I have no idea.

Heiko
:down:

TimberFloorAu 12-02-2008 12:00 AM

Quote:

Originally Posted by buddyheiko (Post 1676651)
Hello,

I installed everything. But I can?t find the calendar on my forum http://www.forum-spielmannszug.de .

What is going wrong ?

What do you mean with "Simply upload all files and import the product." ?

I have no idea.

Heiko
:down:


goto http://www.forum-spielmannszug.de/Fo...ntcalendar.php

:)

bjkinzluvr 12-02-2008 02:00 AM

Quote:

Originally Posted by cirdok2 (Post 1663650)
is it easy to add also December 25th?
Thanks :)

You can add Dec. 25 yourself. I did. Just add another day in the advent.htm and then define it in the product xml file. Create a .png image for the 25th and insert it into the place where you want it in the advent.htm file. BUT - it won't show up unless you uninstall the product and then install it again. Here's mine:

http://kinzcommunity.com/images/advent/AdventPic2.jpg

bjkinzluvr 12-02-2008 02:06 AM

Quote:

Originally Posted by Virtualshiner (Post 1675038)
Hi,

I want to make it so that each link loads a webpage. What code do I need to use to be able to do this?

Also, I saw you have to edit the product to change the link in the navbar, how do I do this as I cant find it.

Help is greatly appreciated,

VS

This is a GREAT question. I want to do the same. I've seen it asked a couple of times, but no answer yet. I'm hoping for one. I want it to open a webpage. How?

Coroner 12-02-2008 03:17 AM

You have to change the database: adventcalendar_days

each day has an entry (swf, ...)

an example is day 2 - it will open a webpage


All times are GMT. The time now is 01:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01577 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete