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)

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 ();


All times are GMT. The time now is 03:21 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.01180 seconds
  • Memory Usage 1,745KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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