nCode Image Resizer

Started by vbgamer45, May 18, 2008, 01:43:55 PM

Previous topic - Next topic

Dark Proxy

Can you please update your SMF MOD to SMF Version 1.1.11

Thank you very much.

gbsothere

Quote from: Dark Proxy on December 03, 2009, 08:55:50 PM
Can you please update your SMF MOD to SMF Version 1.1.11

Thank you very much.



It works fine for me in 1.1.11, after finding, in Subs.php

            'content' => '<img src="$1" alt="" border="0" onload="NcodeImageResizer.createOn(this);" />',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),


.....and replacing it with

            'content' => '<img src="$1" alt="" border="0" onload="NcodeImageResizer.createOn(this);" />',
            'validate' => create_function('&$tag, &$data, $disabled', '
               $data = strtr($data, array(\'<br />\' => \'\'));
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),



The upgrade to 1.1.11 did overwrite the "Find" (first) code above and I had to manually keep the nCode Image Resizer code in place when manually upgrading.  It would be the section just after:

'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',



that you would replace with the second code.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

nassatellite


genusis

could you please Redo the package for SMF 2.0 RC2 thank you =].
hello I am Genusis
this is my site
http://spirean.com

ih8pavement


nassatellite

2.0.RC2 Paketini dört gözle bekliyoruz.

Carlos Faria

Quote from: gbsothere on December 04, 2009, 08:01:37 AM
It works fine for me in 1.1.11, after finding, in Subs.php

            'content' => '<img src="$1" alt="" border="0" onload="NcodeImageResizer.createOn(this);" />',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),


.....and replacing it with

            'content' => '<img src="$1" alt="" border="0" onload="NcodeImageResizer.createOn(this);" />',
            'validate' => create_function('&$tag, &$data, $disabled', '
               $data = strtr($data, array(\'<br />\' => \'\'));
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),



The upgrade to 1.1.11 did overwrite the "Find" (first) code above and I had to manually keep the nCode Image Resizer code in place when manually upgrading.  It would be the section just after:

'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',



that you would replace with the second code.

Does not work for me.

The code (Subs.php):

array(
'tag' => 'img',
'type' => 'unparsed_content',
        'content' => '<img src="$1" alt="" border="0" onload="NcodeImageResizer.createOn(this);" />',
                'validate' => create_function('&$tag, &$data, $disabled', '
               $data = strtr($data, array(\'<br />\' => \'\'));
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),
'disabled_content' => '($1)',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disabled_content' => '($1)',
),


Already thank you.

gbsothere

Quote from: [T]uGa [M]aSter on December 06, 2009, 05:44:28 PM
Does not work for me.

The code (Subs.php):

array(
'tag' => 'img',
'type' => 'unparsed_content',
        'content' => '<img src="$1" alt="" border="0" onload="NcodeImageResizer.createOn(this);" />',
                'validate' => create_function('&$tag, &$data, $disabled', '
               $data = strtr($data, array(\'<br />\' => \'\'));
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),
'disabled_content' => '($1)',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disabled_content' => '($1)',
),


Already thank you.





Can you attach your entire Subs.php?

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Carlos Faria


gbsothere

 [T]uGa [M]aSter, your Subs.php has a lot of duplicate code in it and also a lot of the code that should have been replaced by the upgrade is still there.  (You did upgrade to 1.1.11, didn't you?)

If you did upgrade, then can you give me a list of all your mods?  The file will have to be parsed from scratch.


My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Carlos Faria

Quote from: gbsothere on December 06, 2009, 06:09:51 PM
[T]uGa [M]aSter, your Subs.php has a lot of duplicate code in it and also a lot of the code that should have been replaced by the upgrade is still there.  (You did upgrade to 1.1.11, didn't you?)

If you did upgrade, then can you give me a list of all your mods?  The file will have to be parsed from scratch.

O.o

I did the update and everything went well.

MODs:

Member Color Link 3.0.7
Advanced XFire Field 2.0a
Aeva ~ Auto-Embed Video & Audio 7.0
Ad Management 2.3.1
Hide SMF Version 1.0.5
The Rules 1.2
nCode Image Resizer 1.2
1.3.3 Related Topics
Shared Forum Mod 0.2.5.4
SMF 1.0.19 / 1.1.11 Update 1.0


The other files have the same error?

gbsothere

Quote from: [T]uGa [M]aSter on December 06, 2009, 06:15:01 PM
O.o

I did the update and everything went well.

MODs:

Member Color Link 3.0.7
Advanced XFire Field 2.0a
Aeva ~ Auto-Embed Video & Audio 7.0
Ad Management 2.3.1
Hide SMF Version 1.0.5
The Rules 1.2
nCode Image Resizer 1.2
1.3.3 Related Topics
Shared Forum Mod 0.2.5.4
SMF 1.0.19 / 1.1.11 Update 1.0


The other files have the same error?


Let me just check all the mods from this list that edit Subs.php and see if I can clean it up.  It'll take me a few minutes.   

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

gbsothere

[T]uGa [M]aSter, try the attached Subs.php.

I need to tell you, though, that I can't find where you found Shared Forum Mod 0.2.5.4 for 1.1.x here, so I can't check to see if it parses Subs.php.  If it does and you have the parsing instructions, you'll need to add it to this file.

You may need to clear your cache and refresh after uploading this file.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Carlos Faria

Quote from: gbsothere on December 06, 2009, 06:40:55 PM
[T]uGa [M]aSter, try the attached Subs.php.

I need to tell you, though, that I can't find where you found Shared Forum Mod 0.2.5.4 for 1.1.x here, so I can't check to see if it parses Subs.php.  If it does and you have the parsing instructions, you'll need to add it to this file.

You may need to clear your cache and refresh after uploading this file.

Works!

Here is the Shared Forum Mod 0.2.5.4 for 1.1.x

Thank You Very Much!  :D

gbsothere

Quote from: [T]uGa [M]aSter on December 06, 2009, 07:03:59 PM
Works!

Here is the Shared Forum Mod 0.2.5.4 for 1.1.x

Thank You Very Much!  :D


I have to register on Sarge's site to download the zip and I'm waiting on a confirmation email.  When it comes, I'll download it and check the parsing.  If it edits Subs.php, I'll post again with a new attachment and PM you a "heads up" to look for it.

:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Carlos Faria

Quote from: gbsothere on December 06, 2009, 07:13:42 PM
Quote from: [T]uGa [M]aSter on December 06, 2009, 07:03:59 PM
Works!

Here is the Shared Forum Mod 0.2.5.4 for 1.1.x

Thank You Very Much!  :D


I have to register on Sarge's site to download the zip and I'm waiting on a confirmation email.  When it comes, I'll download it and check the parsing.  If it edits Subs.php, I'll post again with a new attachment and PM you a "heads up" to look for it.

:)

Thanks  :D

gbsothere

Quote from: [T]uGa [M]aSter on December 07, 2009, 03:47:54 AM
Thanks  :D



I still don't have the confirmation email to register, [T]uGa [M]aSter, but if you have a zip of that mod, open it and find the install.xml file.  All the files the mod edits will be in there and if Subs.php is listed, then its edits will be there. If it's not listed, then you don't have anything to worry about.

If you have difficulty finding it, let me know and I'll PM you an email address to send the zip to.

:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Carlos Faria

Quote from: gbsothere on December 07, 2009, 08:02:54 AM
I still don't have the confirmation email to register, [T]uGa [M]aSter, but if you have a zip of that mod, open it and find the install.xml file.  All the files the mod edits will be in there and if Subs.php is listed, then its edits will be there. If it's not listed, then you don't have anything to worry about.

If you have difficulty finding it, let me know and I'll PM you an email address to send the zip to.

:)

I found nothing related to the Subs.php.


Thank you very much!

gbsothere

Quote from: [T]uGa [M]aSter on December 07, 2009, 08:33:01 AM

I found nothing related to the Subs.php.


Thank you very much!



That's good news.

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

infyquest

#239
this is for 2.0 RC2
the attachment...

update
---------
removing the zip (a request from NIBOGO)

Advertisement: