|
Page 2 of 3
|
Zuker
Joined: August 2006
Posts: 2134
Location: BA
|
Re: 058-014 - KB Injection And Minor Fixes
thanks
____________ ? Zuker - EDDB - LPM - Sharefields
|
#16 Wed 15 Nov, 2006 14:22 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
andrea75
Joined: August 2006
Posts: 379
Location: Perugia
|
Re: 058-014 - KB Injection And Minor Fixes
Regarding the calendar block, can you try this block and please let me know if the block is working fine?
Another error with your files
Quote: Warning: imp_calendar_block_func(./includes/mini_cal/mini_cal.php): failed to open stream: No such file or directory in c:hostingwebhost4lifememberumbriaforumxsblocksblocks_imp_calendar.php on line 119
Warning: imp_calendar_block_func(./includes/mini_cal/mini_cal.php): failed to open stream: No such file or directory in c:hostingwebhost4lifememberumbriaforumxsblocksblocks_imp_calendar.php on line 119
Warning: imp_calendar_block_func(): Failed opening './includes/mini_cal/mini_cal.php' for inclusion (include_path='.;c:php4pear') in c:hostingwebhost4lifememberumbriaforumxsblocksblocks_imp_calendar.php on line 119
____________ My Icy forum: www.lineameteo.it
Staff Member @ IcyPhoenix.com & IcyPhoenix.it
|
#17 Wed 15 Nov, 2006 19:04 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7191
Location: Borgo San Michele
|
Re: 058-014 - KB Injection And Minor Fixes
If you read the error, you will notice the reason why it is not working...
Change the path to mini_cal.php...
Anyway, I've upgraded the attachment with a new one which should work fine...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#18 Fri 17 Nov, 2006 02:38 |
|
palomo2
Joined: September 2006
Posts: 1
|
Re: 058-014 - KB Injection And Minor Fixes
thanks, finally all resolved...
|
#19 Fri 17 Nov, 2006 15:03 |
|
babbman
Joined: October 2006
Posts: 31
|
Re: 058-014 - KB Injection And Minor Fixes
Does anyone have a solution yet on the calendar showing past events? I've tried the latest bit of code from Mighty Gorgon but that just resulted in an empty calendar block.
|
#20 Sat 18 Nov, 2006 14:48 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location: Classified
|
Re: 058-014 - KB Injection And Minor Fixes
Hmmm... babbman, where are you displaying the calendar block? On the left side or the right side?
If on the left, a long time ago I posted a fix on neclectic's site for minical to be displayed on the left side of portal page. As necletic's site is no longer open to non-registered users, I'll post it again here. (Original post is here).Do not bother with the snaillite section at the bottom!
moreteavicar's minical anywhere fix wrote:
Ok, have come up with my fixes, as can be seen in my posts on snailsnource. I shall include them all here for completeness. Perhaps this should be included with minical / snailcal / importal install files!
This fix is based on using callite 1.4.7, which includes the latest version of mini_cal_SNAILLITE.
Open root/blocks/blocks_imp_calendar.php
look for
- function imp_calendar_block_func()
- {
- global $phpbb_root_path, $phpEx,
-
in line, after global, add:
next find:
- include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);
-
It could also be
- include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal2.'.$phpEx);
-
Which ever it is, comment it out or delete it.
Other posts suggest putting that line in portal.php, but that will mean you only get mini_cal working on the portal page, and depending on where you put it, you don't get the dates being parsed with the events. There is only one file that needs the include line, and that file is pageheader.php file itself.
So, trundle on through your directories and open:
includes/pageheader.php
Look for the IM portal section near the end of the file, starting with
- 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')
- );
-
Straight after this, add the line:
- /* ************************************************************ */
- include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);
- /* ************************************************************* */
-
What you should have is a section like this:
- 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'));
- }
-
And that will guarantee all date variables get parsed before the block is made... so you can stick minical where you want - even in the header!
Then there is one fix required to get the links to work with snaillite. Open mods/ netclectic/mini_cal/mini_cal_SNAILLITE.php
Look for:
- $url = append_sid("cal_lite.$phpEx?$day_ref=$s_dd&?$mon_ref=$s_mm&$year_ref=$s_yy&mode=display");
-
Replace with:
- $url = append_sid("cal_lite.$phpEx?&mode=display&cl_d=$s_dd&cl_m=$s_mm&cl_y=$s_yy");
-
And thats it!
*EDIT* I just noticed MG's equivalent fix which was to put the include line in the blocks_imp_calebdar.php. If that didn't work, then try putting it in page_header as above...
Last edited by moreteavicar on Tue 12 Dec, 2006 19:21; edited 1 time in total |
#22 Sat 18 Nov, 2006 17:26 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7191
Location: Borgo San Michele
|
Re: 058-014 - KB Injection And Minor Fixes
The new block should work fine...
moreteavicar, are you sure that the new one is working only in the right section?
Anyway I wouldn't add that code to page_header.php... I would add it to index.php instead... but it is the original way we did it, and it is not the best way to go. Too many unuseful SQL for those who are not showing the calendar.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#23 Sun 19 Nov, 2006 21:07 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location: Classified
|
Re: 058-014 - KB Injection And Minor Fixes
The new block should work fine...
moreteavicar, are you sure that the new one is working only in the right section?
Anyway I wouldn't add that code to page_header.php... I would add it to index.php instead... but it is the original way we did it, and it is not the best way to go. Too many unuseful SQL for those who are not showing the calendar.
Well, I've not tried your latest fix, but everyone using importal used to have problems with minical in the past - the problem being the order of data being parsed to the block, and the block generation. With the include in index.php (or portal.php), you could only get minical to display correctly on centre and right blocks! This fix ensured it went at the moment of block creation - the assumption is, you will only put this in page_header.php if you intend to use minical!
For a general fix, you could enclose it in an if statement, however, I see no reason why your fix it shouldn't work properly - putting the inclusion in the blockfile... But I do remember on netclectic's site that there was a problem doing it this way... I'll check it out...
|
#24 Mon 20 Nov, 2006 23:20 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location: Classified
|
Re: 058-014 - KB Injection And Minor Fixes
OK, your fix in the calendar blockfile is exactly the same as the default IMPortal calendar block, but nobody could get the links to work properly this way...
Jaz wrote: I've found the solution to the missing links !
In blocks_imp_calendar.php
FIND
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal2.'.$phpEx);
DELETE THIS LINE
In portal.php
FIND
$template->set_filenames( array( 'body' => 'layout/' . $layout_template ) );
BELOW ADD
// MOD MINI CAL BEGIN
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal2.'.$phpEx);
// MOD MINI CAL END
et voila ! The links and event dates appear on the portal front page.
Original is posted here: http://www.netclectic.com/forums/vi...r=asc&start=560
Jaz's fix, however, didn't work for showing minical on the left side of the page, hence my minor contribution...
|
#25 Mon 20 Nov, 2006 23:32 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7191
Location: Borgo San Michele
|
Re: 058-014 - KB Injection And Minor Fixes
He he he moreteavicar... it seems you don't trust me...
It isn't the "stardard" IM Portal block, you haven't checked accurately what I did.
It tooks me 3 hours to solve this, and I'm quite sure that now the block is working fine under any condition.
Can someone confirm that this block with the new index.php is working fine both on left, right and on any other position please?
I need this to be tested on a forum with many events...
When I have the confirmation that this block is working fine, I'll tell you what the secret is!
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#26 Tue 21 Nov, 2006 02:44 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location: Classified
|
Re: 058-014 - KB Injection And Minor Fixes
ok, my fault, what I actually meant is the default INTEGRAMOD version calendar block (not the IMPortal one), which has this line:
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.' . $phpEx);
Which is what I guess you think is the secret solution. Its not that I don't trust you, its just that, as I said above, this include in blocks_imp_calendar.php didn't work properly, and many people (including myself) had tried this in the past, on Necletic's site and Snail Source's site (the problem being nothing to do with Snail's calendar integration with minical). Its strange, it looks like it should work, but the block template gets parsed before the SQL queries are completed in minical, so it needs to be included earlier...
Unless... you have also modified minical.php... but you've not released a newer file for that, so I think I am right in my revelation of your secret
At the moment I do not use the calendar - I keep meaning to unistall topic calendar and install Snail's callite, as IMHO topic calendar is rubbish (having to post a new topic in order to add an event, whereas callite is a self-contained calendar with a more common sense approach to adding events). This discussion is prompting me to hurry up and make the change
|
#27 Tue 21 Nov, 2006 17:07 |
|
mr-joel-comm
Joined: November 2006
Posts: 1
|
Finding A Good College
I was looking at this article
'Best
Adsense Affiliate Earners: Do They Really Buy Valuable Adsense Keyword
Lists?'. and was
hoping someone could help me make the right choice.
Your thoughts pleasea
|
#28 Wed 22 Nov, 2006 21:40 |
|
moreteavicar
Joined: August 2006
Posts: 608
Location: Classified
|
Re: 058-014 - KB Injection And Minor Fixes
Well we are a generally a friendly website mr-joel-comm, so we would like to do our best to help you with your thoughts. Is your life but a keyword? How much do you wish to understand? Have you ever wondered who you really are? Do you ever find that the more you think you know, the more you realise you don't know? If I say I'm lying, am I telling the truth?
I hope these few thoughts are of some help to you. God bless you.
|
#30 Fri 24 Nov, 2006 01:00 |
|
|
Page 2 of 3
|
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
|
|
|
|