https://www.icyphoenix.com/viewtopic.php?f=27&t=555
-----------------------------------
Mighty Gorgon
Mon 06 Nov, 2006 02:27

058-014 - KB Injection And Minor Fixes
-----------------------------------
Hi all,
Knowledge Base hits again...

http://secunia.com/advisories/22177/

http://www.securityfocus.com/bid/20277/references

The BBCode issue was already solved in 058a.


You will find a cumulative patch with all old patched files here:

http://www.icyphoenix.com/dload.php?action=file&file_id=6

Included there is also another version of the portal page, which should be faster than the older.


-----------------------------------
andrea75
Tue 07 Nov, 2006 19:48

Re: 058 - 014 - KB Injection And Minor Fixes
-----------------------------------
Just a question.... now the portal is faster than older, but the calendar block now is not visible. It's an your choice or there is other way to insert it on portal? :0032:


-----------------------------------
Mighty Gorgon
Wed 08 Nov, 2006 22:47

Re: 058 - 014 - KB Injection And Minor Fixes
-----------------------------------
[b]andrea75[/b], can you try this?

OPEN [b]blocks_imp_calendar.php[/b]

INSERT THIS CODE INSTEAD OF THE DEFAULT ONE
[codeblock]if(!function_exists(imp_calendar_block_func))
{
	function imp_calendar_block_func()
	{
		global $phpbb_root_path, $phpEx, $template, $images, $lang, $board_config, $userdata, $_GET, $_POST, $db;
		global $birthday_week_list, $birthday_today_list;
		include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.' . $phpEx);
	}
}

imp_calendar_block_func();[/codeblock]


-----------------------------------
AvrilBoi
Thu 09 Nov, 2006 14:38

Re: 058 - 014 - KB Injection And Minor Fixes
-----------------------------------
Don't you have just the 014 patch? Because I've some modified files, and it would take so long to compare all the files included in the comulative patch with mines...it would be better to have just the patch number 14... if it is possible... thanx


-----------------------------------
TheSteffen
Thu 09 Nov, 2006 14:55

Re: 058 - 014 - KB Injection And Minor Fixes
-----------------------------------
You can use winmerge http://sourceforge.net/projects/winmerge/ ...

It's really a good thing to compare files.  :wink:


-----------------------------------
Mighty Gorgon
Fri 10 Nov, 2006 00:40

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Added an attachment with only new files.


-----------------------------------
andrea75
Fri 10 Nov, 2006 09:33

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="4593"][b]andrea75[/b], can you try this?

OPEN [b]blocks_imp_calendar.php[/b]

INSERT THIS CODE INSTEAD OF THE DEFAULT ONE
[codeblock]if(!function_exists(imp_calendar_block_func))
{
	function imp_calendar_block_func()
	{
		global $phpbb_root_path, $phpEx, $template, $images, $lang, $board_config, $userdata, $_GET, $_POST, $db;
		global $birthday_week_list, $birthday_today_list;
		include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.' . $phpEx);
	}
}

imp_calendar_block_func();[/codeblock][/quote]

The calendar is come back, but has wrong events (now shows all events, past and future) and don't shown the birthdays information

[url=http://upload4.postimage.org/1612215/photo_hosting.html][img]http://upload4.postimage.org/1612215/cal.jpg[/img]

But it's not true that no users has a birthday ;)


-----------------------------------
pepi
Sat 11 Nov, 2006 15:10

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Hi

Have the same problem with calendar  8)


-----------------------------------
AvrilBoi
Sun 12 Nov, 2006 22:56

Re: 058 - 014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="TheSteffen" post="4622"]You can use winmerge http://sourceforge.net/projects/winmerge/ ...

It's really a good thing to compare files.  :wink:[/quote]
I know, infact i was gonna use it to compare files, but if they're too many to compare, it takes long time :wink: 
[quote user="Mighty Gorgon" post="4661"]Added an attachment with only new files.[/quote]
Thank you.


-----------------------------------
Master Sulu
Mon 13 Nov, 2006 19:23

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="pepi" post="4704"]Hi

Have the same problem with calendar  8)[/quote]

I think that the problem is in the new [b]index.php[/b]: some parts relating to calendar and birthday are missing.

Check out with winmerge, comparing it with the original index.php.

By the way, after this huge update I have a problem with the album. When i click the medium thumb in order to show off an image in its original size, the image is not entirely loaded, but I can see only a little strip at the top. Any way to fix it??


-----------------------------------
Mighty Gorgon
Tue 14 Nov, 2006 01:05

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
The Album problem is not related to this patch.

Try having a look here:
http://www.mightygorgon.com/viewtopic.php?t=3556&highlight=memory+limit

But the same problem has been discussed even on this site.

Regarding the calendar block, can you try this block and please let me know if the block is working fine? :roll:


-----------------------------------
pepi
Tue 14 Nov, 2006 14:37

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Hi Mighty 
does not show the calender box ......... 
but i have no upload the index.php and bbcode.php from the KB, BBCodes and Portal Fixes 
then i habe installed any mods

pepi


-----------------------------------
jocampo8
Wed 15 Nov, 2006 10:06

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Thnx for the Update


-----------------------------------
Zuker
Wed 15 Nov, 2006 13:22

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
And the old patch? (de 14 released before)

We have to aplied only this patch? (i've got a test forum where i didn't put any patch)


-----------------------------------
Master Sulu
Wed 15 Nov, 2006 14:00

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="4502"]
You will find a cumulative patch with all old patched files here:

http://www.icyphoenix.com/dload.php?action=file&file_id=6[/quote]

All patches, from #001 to #014


-----------------------------------
Zuker
Wed 15 Nov, 2006 14:22

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
:mrgreen:  thanks


-----------------------------------
andrea75
Wed 15 Nov, 2006 19:04

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="4734"]

Regarding the calendar block, can you try this block and please let me know if the block is working fine? :roll:[/quote]

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[/quote]


-----------------------------------
Mighty Gorgon
Fri 17 Nov, 2006 02:38

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
If you read the error, you will notice the reason why it is not working... :wink:

Change the path to mini_cal.php... :wink:

Anyway, I've upgraded the attachment with a new one which should work fine...


-----------------------------------
palomo2
Fri 17 Nov, 2006 15:03

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
thanks, finally all resolved...


-----------------------------------
babbman
Sat 18 Nov, 2006 14:48

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.


-----------------------------------
andrea75
Sat 18 Nov, 2006 17:09

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
For me now works fine again. Thanks MG! ;)


-----------------------------------
moreteavicar
Sat 18 Nov, 2006 17:26

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Hmmm... [b]babbman[/b], 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 [url=http://www.netclectic.com/forums/viewtopic.php?p=23178#23178]here).Do not bother with the snaillite section at the bottom!


[quote="moreteavicar's minical anywhere fix"]
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.

[b]Open root/blocks/blocks_imp_calendar.php[/b]

look for

[code]
function imp_calendar_block_func()
   {
      global $phpbb_root_path, $phpEx,
[/code]
in line, after global, add:
[code]
$table_prefix,
[/code]

next find:
[code]
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);
[/code]
It could also be
[code]
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal2.'.$phpEx);
[/code]
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 [b]open[/b]:

[b]includes/pageheader.php[/b]

Look for the IM portal section near the end of the file, starting with
[code]
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')
      );
[/code]

Straight after this, add the line:
[code]
/* ************************************************************ */
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);
/* ************************************************************* */
[/code]
What you should have is a section like this:
[code]
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'));
   }
[/code]
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. [b]Open mods/ netclectic/mini_cal/mini_cal_SNAILLITE.php [/b]

Look for:
[code]
$url = append_sid("cal_lite.$phpEx?$day_ref=$s_dd&?$mon_ref=$s_mm&$year_ref=$s_yy&mode=display");
[/code]
Replace with:
[code]
$url = append_sid("cal_lite.$phpEx?&mode=display&cl_d=$s_dd&cl_m=$s_mm&cl_y=$s_yy");
[/code]
And thats it!
[/quote]

*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...


-----------------------------------
Mighty Gorgon
Sun 19 Nov, 2006 21:07

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
The new block should work fine...

[b]moreteavicar[/b], 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. :wink:


-----------------------------------
moreteavicar
Mon 20 Nov, 2006 23:20

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="4957"]The new block should work fine...

[b]moreteavicar[/b], 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. :wink:[/quote]

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...


-----------------------------------
moreteavicar
Mon 20 Nov, 2006 23:32

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... 

[quote user="Jaz"]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.[/quote]
Original is posted here: http://www.netclectic.com/forums/viewtopic.php?t=243&postdays=0&postorder=asc&start=560

Jaz's fix, however, didn't work for showing minical on the left side of the page, hence my minor contribution...


-----------------------------------
Mighty Gorgon
Tue 21 Nov, 2006 02:44

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
He he he [b]moreteavicar[/b]... it seems you don't trust me... :wink:

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 [b]index.php[/b] is working fine both on left, right and on any other position please? :roll:

I need this to be tested on a forum with many events... :roll:


When I have the confirmation that this block is working fine, I'll tell you what the secret is! :wink:


-----------------------------------
moreteavicar
Tue 21 Nov, 2006 17:07

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 ;)


-----------------------------------
mr-joel-comm
Wed 22 Nov, 2006 21:40

Finding A Good College
-----------------------------------
I was looking at this article 
       [url=http://www.swiftcollege.com/articles/164-1-best-adsense-affiliate-earners-do-they-really-buy-valuable-adsense-keyword-lists.html]'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


-----------------------------------
Hakkinen
Thu 23 Nov, 2006 05:23

Respuesta: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="mr-joel-comm" post="5075"]I was looking at this article 
       [url=http://www.swiftcollege.com/articles/164-1-best-adsense-affiliate-earners-do-they-really-buy-valuable-adsense-keyword-lists.html]'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[/quote] The attack of the Bots? :roll:


-----------------------------------
moreteavicar
Fri 24 Nov, 2006 01:00

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Well we are a generally a friendly website [b]mr-joel-comm[/b], 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.


-----------------------------------
Mighty Gorgon
Tue 28 Nov, 2006 23:22

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="moreteavicar" post="5063"]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 ;)[/quote]
That is not my "secret" modification... but it seems no one here is reporting back that my block is working fine... I think it is, otherwise someone would have posted that it isn't working... :lol:

I'll give you a hint... when you include external files with or within functions you should take care of the GLOBALS assignments... :wink:

I won't say more! :lol:


-----------------------------------
danicom
Wed 29 Nov, 2006 19:11

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
I have applied the patch but it does not work correctly.
You can see my Mini Calendar here http://zm.nu/foro2
I dont have links over the days numbers.
In addition,   day 29 is Wednesday, but my calendar show Tuesday.

Thnks
Daniel


-----------------------------------
Mighty Gorgon
Fri 08 Dec, 2006 12:21

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="danicom" post="5324"]I have applied the patch but it does not work correctly.
You can see my Mini Calendar here http://zm.nu/foro2
I dont have links over the days numbers.
In addition,   day 29 is Wednesday, but my calendar show Tuesday.

Thnks
Daniel[/quote]
It is strange... the day mismatch I mean... :roll:

I'll try to check.

The links over the days are due to a setting I have changed... you can change it too in calendar config file.


-----------------------------------
danicom
Wed 13 Dec, 2006 18:52

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="5631"]
It is strange... the day mismatch I mean... :roll:
I'll try to check.
The links over the days are due to a setting I have changed... you can change it too in calendar config file.[/quote]

Where this the calendar  config file? And which it's the option to modify?
Thnks
Daniel


-----------------------------------
Mighty Gorgon
Sun 24 Dec, 2006 20:45

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Try to take a look at this file: [b]mini_cal_config.php[/b]


-----------------------------------
danicom
Tue 26 Dec, 2006 15:01

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="6045"]Try to take a look at this file: [b]mini_cal_config.php[/b][/quote]

I have the file, but, which it's the option to modify? 
Thnks & happy new year
Daniel


-----------------------------------
Mighty Gorgon
Fri 29 Dec, 2006 11:09

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
Check the commented lines... everything is explained.

[code]// Defines what type of search happens when a user clicks on a date in the calendar
// possible values:
//      POSTS   - will return all posts posted on that date
//      EVENTS  - will return all events happening on that date (ONLY SUITABLE FOR EVENTS CALENDAR USERS).
define('MINI_CAL_DATE_SEARCH', 'POSTS');[/code]


-----------------------------------
danicom
Fri 29 Dec, 2006 11:56

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
OK Thnks


