vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBadvanced Homepage (https://vborg.vbsupport.ru/showthread.php?t=59803)

Tigga 01-07-2004 03:43 PM

Snowbot - Try uploading an un-hacked version of functions_calendar.php into your forum/includes folder and see if that makes a difference. That will add the arrows back and make the calendar slightly wider than the rest of the blocks, but you should try that to test and see if it's a problem with the file, or if you are somehow missing the calendar phrases.

The Quibbler - To add more custom blocks, just copy the content from one of the other custom blocks and then paste it into your index template where you would like it to appear. ;)

The Quibbler 01-07-2004 03:44 PM

I guess I do have one other problem with it that I just discovered. I made a new template called 'index_links', to try making a page for the site; when I go to adv_index.php?page=links, I get this error:

Quote:

Fatal error: Call to undefined function: parse_bbcode() in /home/quibbler/public_html/adv_index.php on line 553

Tigga 01-07-2004 04:09 PM

Ahh, good find... If you'll look in your adv_index.php file for this line of code:

include('./includes/functions_bbcodeparse.php');

Remove that and paste it right below this line instead:

require_once('./global.php');

That should fix the problem. :)

The Quibbler 01-07-2004 04:21 PM

Ah, that fixed it :)

One last question: if I was going to link to a page of content in a side block, what would I link to? Just "?page=links"? That's what I do for my current non-vbulletin home page; it's got a similar content system. But with vB, if someone came to adv_index.php?referrerid=1, wouldn't going to ?page=links and taking off the ?referrerid=1 cause the referrer to not get the credit if they register later?

Or is that not how it works?

SnowBot 01-07-2004 04:48 PM

Quote:

Originally Posted by Tigga
Snowbot - Try uploading an un-hacked version of functions_calendar.php into your forum/includes folder and see if that makes a difference. That will add the arrows back and make the calendar slightly wider than the rest of the blocks, but you should try that to test and see if it's a problem with the file, or if you are somehow missing the calendar phrases.

That fixed it :) but like you say its abit wide now, wonder what i did wrong ?

SnowBot 01-07-2004 05:11 PM

In the install file it says


Find:
function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '')
{
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar;

Replace it with:
function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '', $dontshowweek = '0')
{
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $vboptions;


But that code isnt there, its now changed to
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $show, $offset, $colspan, $days, $months, $show, $vboptions;

so what do i change the file to now? Can you update the install instructions also so other know? :)

SnowBot 01-07-2004 05:18 PM

Quote:

Originally Posted by Tigga
Forkman - Yes, that was the correct place to modify the functions_calendar.php file. Apparently they added some new global variables to that function... Thanks for pointing that out - I just updated the zip. ;)
.

nevermind :) THANKS

Tigga 01-07-2004 05:22 PM

Quibbler - I'm not quite sure what you mean by the content in side blocks... Could you maybe give me an example of what you're talking about?
I'm honestly not too familiar with the way the referrer system works since that's not something I use. I'm pretty sure though that as long as the visitor uses the link containing "referrerid=X" when they first visit your site that everything will still work. I know a visitor can visit the site, browse threads, and then sign up, so it shouldn't be a problem if they visit other parts as well. It may not hurt to test it out though. ;)

SnowBot - Ok, I figured that was it. I assume you saw that the zip file was updated earlier today, so if you download that and re-apply the file change to functions_calendar.php it should fix the problem.

Hotte 01-07-2004 05:28 PM

great hack,
but i?ve a problem with the calendar :/
as you can see on the attached screenshot, my calendar has 8 columns :(
I?ve set "Monday" as start of week in vb-options and profile

The Quibbler 01-07-2004 05:36 PM

Tigga - I was talking about using a sideblock to have links to the pages of content, but never mind. It works fine, so I'm not going to make things more complicated by bothering with the "correct" way to do it, as long as it works.


All times are GMT. The time now is 05:03 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.01724 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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