|
Page 1 of 1
|
Leon
Joined: November 2006
Posts: 46
|
 Calendar Block On Portal
the calendar block on my forum portal doesnt generate the link to point to current date, it is just plain text number of dates so if you look on the calendar you wouldnt know what is the current date, i have try the patch blocks.imp. calendar MG posted in another topic but it still doesnt show the link of current date
How do i fix it ?
Here is the link you can take a look:
http://tinhthienthu.ath.cx
Thanks
|
#1 Sat 02 Dec, 2006 20:04 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Calendar Block On Portal
I got this problem too...
|
#2 Mon 04 Dec, 2006 18:38 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: Calendar Block On Portal
the calendar block on my forum portal doesnt generate the link to point to current date, it is just plain text number of dates so if you look on the calendar you wouldnt know what is the current date, i have try the patch blocks.imp. calendar MG posted in another topic but it still doesnt show the link of current date
How do i fix it ?
Here is the link you can take a look:
http://tinhthienthu.ath.cx
Thanks
I'm thinking it is normal.it is xs not A69
|
#4 Tue 05 Dec, 2006 18:59 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Calendar Block On Portal
Have you tried this?
http://www.phpBBXS.eu/viewtopic.php?p=4867#p4867
Nobody has reported whether MGs approach works or not until now... I know mine worked in the past.
I got a Quote: Parse error: syntax error, unexpected $end in /mounted-storage/home28a/sub001/sc20402-TGHZ/www/includes/page_header.php on line 2078
Line 2078 is:
Quote: </body>
</html>
<?php
}
?>
2078 is the "?>"
Also, in mods/ netclectic/mini_cal/mini_cal_SNAILLITE.php
I couldn't find string
$url = append_sid("cal_lite.$phpEx?$day_ref=$s_dd&?$mon_ref=$s_mm&$year_ref=$s_yy&mode=display");
|
#5 Wed 06 Dec, 2006 09:19 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location:  Classified
|
 Re: Calendar Block On Portal
No, you need to read that post properly
Ignore the last line about mini_cal_SNAILLITE - I transferred that post to this site because neclectic has closed his forum down. There were integration problems between minical and snaillite, as well as with IMPortal.
With regards to your error, the problem is actually } not ?>. This suggests a missing { somewhere.
Check the if statement where you inserted include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx); , make sure the if statement before it is followed by { (in case you pasted over it by mistake)... assuming that was the only change you made to the file...
failing that, upload it here and I'll have a look at it for you...
|
#6 Wed 06 Dec, 2006 18:21 |
|
Leon
Joined: November 2006
Posts: 46
|
 Re: Calendar Block On Portal
i dont have this mini_cal2.php in mods/netclectic/mini_cal/ dirextory
|
#7 Wed 06 Dec, 2006 18:33 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Calendar Block On Portal
No, you need to read that post properly
Ignore the last line about mini_cal_SNAILLITE - I transferred that post to this site because neclectic has closed his forum down. There were integration problems between minical and snaillite, as well as with IMPortal.
With regards to your error, the problem is actually } not ?>. This suggests a missing { somewhere.
Check the if statement where you inserted include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx); , make sure the if statement before it is followed by { (in case you pasted over it by mistake)... assuming that was the only change you made to the file...
failing that, upload it here and I'll have a look at it for you...
Thanks, I'll try as soon as I will be able to make my board work again... -.-'
|
#8 Wed 06 Dec, 2006 18:55 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Calendar Block On Portal
No, you need to read that post properly
Ignore the last line about mini_cal_SNAILLITE - I transferred that post to this site because neclectic has closed his forum down. There were integration problems between minical and snaillite, as well as with IMPortal.
With regards to your error, the problem is actually } not ?>. This suggests a missing { somewhere.
Check the if statement where you inserted include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx); , make sure the if statement before it is followed by { (in case you pasted over it by mistake)... assuming that was the only change you made to the file...
failing that, upload it here and I'll have a look at it for you...
Thanks, I'll try as soon as I will be able to make my board work again... -.-'
Here I am
This is my section of pageheader.php
- if(empty($gen_simple_header))
- {
- if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))
- {
- $template->set_filenames(array(
- 'portal_header' => 'portal_page_header.tpl')
- );
- portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');
- $template->assign_var('HEADER_WIDTH', $portal_config['header_width']);
- $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));
- }
- }
-
Modified as you suggest
-
- if(empty($gen_simple_header))
- {
- if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))
- {
- $template->set_filenames(array(
- 'portal_header' => 'portal_page_header.tpl')
- );
- /* ************************************************************ */
- include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);
- /* *************************************************************
- portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');
- $template->assign_var('HEADER_WIDTH', $portal_config['header_width']);
- $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));
- }
- }
-
I got:
Parse error: syntax error, unexpected $end in /mounted-storage/home28a/sub001/sc20402-TGHZ/www/includes/page_header.php on line 1488
line 1488 is the }, but I have no idea what that means
Where am I mistaking?
|
#9 Tue 12 Dec, 2006 14:32 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location:  Classified
|
 Re: Calendar Block On Portal
Argggh! Its missing a " */ " at the end of the second row of:
/* *************************************************************
 Ooops... my fault... the only reason for having all that was to make it easier to spot the instertion at a later date!
|
#10 Tue 12 Dec, 2006 19:21 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Calendar Block On Portal
Argggh! Its missing a " */ " at the end of the second row of:
/* *************************************************************
 Ooops... my fault... the only reason for having all that was to make it easier to spot the instertion at a later date!
LOL I understood that it was just to highlight that part of code, but I would never thought that could create problems...
Well, I got no errors now, but nothing changed... my calendar is still a table with numbers, with no links in them (even if there are events for those days)
|
#11 Tue 12 Dec, 2006 19:41 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location:  Classified
|
 Re: Calendar Block On Portal
Hmmm... and you don't get any SQL errors...
Did you also insert $table_prefix in one of the global lines in blocks_imp_calendar.php? This used to cause problems in IMPortal when minical accessed SQL... although the error usually gives a message, which you do not have...
Maybe when I get time I will set up minical on my XS test site and see whats happening... it could be related to mini_cal_TOPIC.php although that never had problems in the past (at least with non-XS installations).
|
#12 Tue 12 Dec, 2006 22:57 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Calendar Block On Portal
Hmmm... and you don't get any SQL errors...
Did you also insert $table_prefix in one of the global lines in blocks_imp_calendar.php? This used to cause problems in IMPortal when minical accessed SQL... although the error usually gives a message, which you do not have...
I checked and all seems right to me... check yourself:
-
-
- define('IN_PHPBB', true);
-
- if(!function_exists(imp_calendar_block_func))
- {
- function imp_calendar_block_func()
- {
- global $table_prefix, $phpbb_root_path, $phpEx, $template, $images, $board_config, $userdata, $_GET, $_POST, $db;
- }
- }
-
- imp_calendar_block_func();
- ?>
-
-
|
#13 Wed 13 Dec, 2006 02:05 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|