Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 2 of 3
Goto page Previous  1, 2, 3  Next
 
Reply with quote Download Post 
Post Re: 058-014 - KB Injection And Minor Fixes 
 
  thanks
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: 058-014 - KB Injection And Minor Fixes 
 
Mighty Gorgon wrote: [View Post]


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
 
andrea75Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: 058-014 - KB Injection And Minor Fixes 
 
thanks, finally all resolved...
 



 
palomo2Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
babbmanSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: 058-014 - KB Injection And Minor Fixes 
 
For me now works fine again. Thanks MG!
 




____________
My Icy forum: www.lineameteo.it
Staff Member @ IcyPhoenix.com & IcyPhoenix.it
 
andrea75Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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

Code: [Download] [Hide]
  1. function imp_calendar_block_func()  
  2.    {  
  3.       global $phpbb_root_path, $phpEx,  
  4.  

in line, after global, add:
Code: [Download] [Hide]
  1. $table_prefix,  
  2.  


next find:
Code: [Download] [Hide]
  1. include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);  
  2.  

It could also be
Code: [Download] [Hide]
  1. include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal2.'.$phpEx);  
  2.  

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
Code: [Download] [Hide]
  1. if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))  
  2.    {  
  3.       $template->set_filenames(array(  
  4.          'portal_header'         => 'portal_page_header.tpl')  
  5.       );  
  6.  


Straight after this, add the line:
Code: [Download] [Hide]
  1. /* ************************************************************ */  
  2. include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);  
  3. /* ************************************************************* */  
  4.  

What you should have is a section like this:
Code: [Download] [Hide]
  1. if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))  
  2.    {  
  3.       $template->set_filenames(array(  
  4.          'portal_header'         => 'portal_page_header.tpl')  
  5.       );  
  6. /* *************************************************************** */  
  7. include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);  
  8. /* *************************************************************** */  
  9.       portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');  
  10.       $template->assign_var('HEADER_WIDTH', $portal_config['header_width']);  
  11.       $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));  
  12.    }  
  13.  

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:
Code: [Download] [Hide]
  1. $url = append_sid("cal_lite.$phpEx?$day_ref=$s_dd&?$mon_ref=$s_mm&$year_ref=$s_yy&mode=display");  
  2.  

Replace with:
Code: [Download] [Hide]
  1. $url = append_sid("cal_lite.$phpEx?&mode=display&cl_d=$s_dd&cl_m=$s_mm&cl_y=$s_yy");  
  2.  

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 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: 058-014 - KB Injection And Minor Fixes 
 
Mighty Gorgon wrote: [View Post]
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...
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
mr-joel-commSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Respuesta: 058-014 - KB Injection And Minor Fixes 
 
mr-joel-comm wrote: [View Post]
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
The attack of the Bots?
 



 
HakkinenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
moreteavicarSend private message  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 2 of 3
Goto page Previous  1, 2, 3  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron