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-03-2008 05:27 PM

Ok, see your post:
Code:

&day=" + id, "AdventDay: " + id,"width=" + p
change into:
Code:

&day=" + id, "AdventDay","width=" + p
Maybe this will help. I think the "spacer" in the title is the mistake.

You can get german Support at your-vb.com if you like.

Rottimom 11-03-2008 05:43 PM

It is working thank you now.

The correct line 38:

Code:

  window.open("./../../adventcalendar.php?do=open&securitytoken=" + parent.SECURITYTOKEN + "&day=" + id, "AdventDay","width=" + pw + ",height=" + ph + ",left=5,top=5,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");

petchat 11-03-2008 06:59 PM

Coroner, your fix on Page One does work.

My line in complete now reads:

Code:

window.open("./../../adventcalendar.php?do=open&securitytoken=" + parent.SECURITYTOKEN + "&day=" + id, "AdventDay", + id,"width=" + pw + ",height=" + ph + ",left=5,top=5,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
It is line 75 on my advent.htm - It's probably around 38 on everyone elses though, Dreamweaver seems to have added an immense load of empty lines in my file. Grrr

Thanks very much :)

Keesa 11-04-2008 05:41 AM

Auf Deutsch? Unsere Tokio Hotel vB wird so glücklich! Heehee.

Coroner 11-04-2008 07:21 AM

You can't get german support here.
See the post of @rottimom.

Change the line in advent.htm (I will change the download in the afternoon)

carphead 11-05-2008 06:17 AM

With everything set up including the usergroup set to test and use when I call adventcalender.php I just get this displayed

options['advcsettings_online'] ? 1 : 0); $can_use_adv = (($permissions['adventpermissions'] & $vbulletin->bf_ugp_adventpermissions['canuseadvent']) ? 1 : 0); $can_test_adv = (($permissions['adventpermissions'] & $vbulletin->bf_ugp_adventpermissions['cantestadvent']) ? 1 : 0); if (!$can_test_adv) { if (!$is_online OR date('n', TIMENOW) != 12 OR !$can_use_adv) print_no_permission (); } $snowflakes = $vbulletin->options['advcsettings_snowflakes']; $have_snow = $vbulletin->options['advcsettings_snow']; $vbulletin->input->clean_array_gpc ('r', array ( 'do' => TYPE_NOHTML, 'day' => TYPE_INT, )); if ($vbulletin->GPC['do'] == 'open' AND $vbulletin->GPC['day']) { $data = $db->query_first ("SELECT * FROM " . TABLE_PREFIX . "adventcalendar_days WHERE adventcalendar_daysid=" . $vbulletin->GPC['day']); echo '
'; if ($data['bitfield'] == 1) { $size = ''; if ($data['pwidth'] AND $data['pheight']) $size = 'width="' . $data['pwidth'] . '" height="' . $data['pheight'] . '" '; echo ''; } else if ($data['bitfield'] == 2) { echo $data['data']; } echo '
'; exit (); } $navbits[''] = 'Advent Calendar'; $navbits = construct_navbits ($navbits); eval ('$navbar = "' . fetch_template ('navbar') . '";'); $pwidth = $pheight = $pcontent = array (0); $datas = $db->query ("SELECT * FROM " . TABLE_PREFIX . "adventcalendar_days ORDER BY adventcalendar_daysid ASC"); while ($data = $db->fetch_array ($datas)) { $pwidth[] = $data['pwidth']; $pheight[] = $data['pheight']; if ($data['image'] != '' OR $data['data'] != '') { if (($data['bitfield'] == 1 AND $data['image'] != '') OR ($data['bitfield'] == 2 AND $data['data'] != '')) $pcontent[] = 1; else $pcontent[] = 0; } else $pcontent[] = 0; } $tpl_pw = implode (',', $pwidth); $tpl_ph = implode (',', $pheight); $tpl_pc = implode (',', $pcontent); eval ("print_output (\"" . fetch_template ("adventcalendar") . "\");"); exit (); ?>

Any ideas? I've double checked that all the files are uploaded correctly.

Coroner 11-05-2008 06:45 AM

Try to upload the php in binary mode.

cykelmyggen 11-05-2008 10:59 AM

I don't see the link in my navbar and I think maybe it's the template_hook missing.
I'm not aware of how to fix this problem. Could need a tiny piece of advice on this one, as I would love to have this running from 1.12.;)
PS Userrights has been assigned

Coroner 11-05-2008 03:55 PM

A little bit of code of the template navbar:

Code:

                <if condition="$show['registerbutton']">
                        <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
                </if>
                $template_hook[navbar_buttons_left]
                <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>


cykelmyggen 11-06-2008 09:45 AM

OK It's showing now, but with - at least I think - Java-related error. It breaks my fixed forum and keeps popping up and down in size - putting scrollbars on and off very fast?


All times are GMT. The time now is 09:36 PM.

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.01129 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_code_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