TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 25, 2024, 07:54:52 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 191
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

SMF Calendar Block

Started by Lesmond, September 03, 2005, 11:30:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pcw

can u give ma a link to u'r TP ?


pcw

^^empty your browser cache and try again  ;)

looks like u have cached an old css-file. i can see the white background.

Moocat

#23
wow... thats odd. thanks :)

edit: that was wierd, my entire site went down for a minute or two :X my forum still isn't loading... :\

ontap

Quote from: pcw on September 07, 2005, 11:16:01 AM
I've done a little change in this block.
It doesn't shows info from the smf calendar but now it links month and days to it

great the way its links to the calendar but its leaves and error in the error log,

8: Undefined variable: scripturl
File: Themes\default\TPortalBlocks.template.php (eval?)
Line: 58

im guessing its this part of the code thas causing the error??...


href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>

href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a>


anyway to fix it up?.

pcw

$scripturl is defined in ./Sources/QueryString.php
$scripturl = $boardurl . '/index.php';
that is included on top of ./index.php
require_once($sourcedir . '/QueryString.php');

try to use $boardurl.'/index.php' instead but $scripturl should be defined everytime u call ur forums index.php

Moocat

pcw still having that problem, only with IE though. i'm not sure why, and it causes multiple other errors, including screwing up that box that says PM: 1 and the ones below it. http://www.tinyportal.net/smf/index.php?topic=733.msg5679;topicseen#msg5679

tried emptying offline content, cookies, history, no luck.

pcw

does the "PM Box Problem" also exists when u turn off the calendar-php-box ?

ontap

#28
Quote from: pcw on September 07, 2005, 08:18:15 PM
$scripturl is defined in ./Sources/QueryString.php

try to use $boardurl.'/index.php' instead but $scripturl should be defined everytime u call ur forums index.php

changed it to "$boardurl" and the errors still appear but changed to

smf/index.php?action=tpadmin;sub=blocks
8: Undefined variable: boardurl
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 58

smf/index.php
8: Undefined variable: boardurl
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 5

smf/index.php
8: Undefined variable: scripturl
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 8

is the error in TPortalBlocks.template.php or does something need changin on it?..

Moocat

yeah it has always been like it is in the screenshots. its not a forum issue, its my IE, i believe. it works fine on firefox, and you see it fine on IE, so i dunno...