ReIMG Image Resizer

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17069
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ » Wed Apr 07, 2010 9:58 pm

Check the Highslide JS website. I don't know the answer to that hence the reason I haven't posted anything about it ;)

It would likely require the use of an onhover listener to be added to the page.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

irascible
Registered User
Posts: 9
Joined: Mon Mar 01, 2010 9:02 pm

Re: ReIMG Image Resizer

Post by irascible » Wed Apr 07, 2010 10:40 pm

DavidIQ wrote:That's likely a result of your cat walking all over your keyboard or child banging on the keyboard while you were trying to edit imageset.cfg and as a result deleted "img_icon_back_top = icon_back_top.gif*11*11" ;)
I wish it was that simple.. but I did finally found what was missing!

Within acp_styles.php... I somehow removed 'icon_back_top', from the below code.

Code: Select all

			'buttons'	=> array(
				'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
Thanks for your quick response, and awesome mod... it's really helped.

Verbal
Registered User
Posts: 27
Joined: Sat Oct 11, 2008 4:43 am

Re: ReIMG Image Resizer

Post by Verbal » Fri Apr 09, 2010 7:00 am

This may be the best mod I've ever installed on any forum. Works flawlessly out of the box.

Thank you so much for this incredibly useful and well-written mod.

reefphilippines
Registered User
Posts: 11
Joined: Sun Apr 04, 2010 5:37 am

Re: ReIMG Image Resizer

Post by reefphilippines » Sat Apr 10, 2010 11:02 am

apologies if this has been posted already...

ive succesfully added the MOD to my forum and works great however when i was viewing
General>
Board configuration>

i had the error
"Parse error: syntax error, unexpected T_SL, expecting T_FUNCTION in /home/nbeltran/public_html/forumv2/includes/acp/acp_board.php on line 885"
on the following board

Board settings
Board features
Avatar settings
Private message settings
Post settings
Signature settings
Feed settings
User registration settings

ive already reviewed acp_board and everything looks great can anyone point me out to the error?

User avatar
Mickroz
Registered User
Posts: 656
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: ReIMG Image Resizer

Post by Mickroz » Sat Apr 10, 2010 11:26 am

T_SL = <<
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.

reefphilippines
Registered User
Posts: 11
Joined: Sun Apr 04, 2010 5:37 am

Re: ReIMG Image Resizer

Post by reefphilippines » Sat Apr 10, 2010 11:51 am

sorry but where do i edit this?

User avatar
Mickroz
Registered User
Posts: 656
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: ReIMG Image Resizer

Post by Mickroz » Sat Apr 10, 2010 12:02 pm

see if you can find that around line 885 in /home/nbeltran/public_html/forumv2/includes/acp/acp_board.php
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.

reefphilippines
Registered User
Posts: 11
Joined: Sun Apr 04, 2010 5:37 am

Re: ReIMG Image Resizer

Post by reefphilippines » Sat Apr 10, 2010 12:10 pm

lione 885 onwards:
/**
* Select bump interval
*/

function bump_interval($value, $key)
{
global $user;

$s_bump_type = '';
$types = array('m' => 'MINUTES', 'h' => 'HOURS', 'd' => 'DAYS');
foreach ($types as $type => $lang)
{
$selected = ($this->new_config['bump_type'] == $type) ? ' selected="selected"' : '';
$s_bump_type .= '<option value="' . $type . '"' . $selected . '>' . $user->lang[$lang] . '</option>';
}

return '<input id="' . $key . '" type="text" size="3" maxlength="4" name="config[bump_interval]" value="' . $value . '" />&nbsp;<select name="config[bump_type]">' . $s_bump_type . '</select>';
}

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17069
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ » Sat Apr 10, 2010 11:25 pm

Your issue is elsewhere in the file. Probably left out a semi-colon or removed it. Use the code tags to post the entire contents of acp_board.php.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

myju
Registered User
Posts: 105
Joined: Wed Feb 03, 2010 1:54 am
Location: Dublin, Ireland.
Contact:

Re: ReIMG Image Resizer

Post by myju » Mon Apr 12, 2010 11:22 pm

DavidIQ wrote:Check the Highslide JS website. I don't know the answer to that hence the reason I haven't posted anything about it ;)

It would likely require the use of an onhover listener to be added to the page.
Thanks David, that's a good pointer. I managed to get the image to enlarge onmouseover using the code within the Highslide JS website reference, by putting the onmouseover code in the attachment.html file.

The Highslide JS website reference states to put the following code between the header tags...

Code: Select all

<script type="text/javascript">
// close on mouse out
hs.Expander.prototype.onMouseOut = function (sender) {
   sender.close();
};
// close if mouse is not over on expand (using the internal mouseIsOver property)
hs.Expander.prototype.onAfterExpand = function (sender) {
   if (!sender.mouseIsOver) sender.close();
};
</script>
Do you know where i can put this code in the reimg_content.html file as no-matter where i've tried inserting the code the image still won't shrink on mouseout?

Or maybe would i need to also remove some onclick code that over-rides the mouseout code?

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17069
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ » Tue Apr 13, 2010 12:17 am

Here's what I did to get it working like that here:
Open up your includes/functions.php file and replace this:

Code: Select all

function reimg_properties()
{
	return 'class="reimg" onload="reimg(this);" onerror="reimg(this);" ';
}
with this:

Code: Select all

function reimg_properties()
{
	global $config;
	return 'class="reimg" onload="reimg(this);" onerror="reimg(this);" ' . (($config['reimg_zoom'] == '_highslide') ? 'onmouseover="return hs.expand(this);" ' : '');
}
Then open styles/prosilver/template/reimg_content.html and find this:

Code: Select all

			hs.lang.restoreTitle = "{LA_RESTORE_TITLE}";
And add this AFTER that line:

Code: Select all

			hs.Expander.prototype.onMouseOut = function (sender) {
			   sender.close();
			};
Save all files, upload, refresh template, done. You may need to undo the edit you did to attachments.html. I'll jot this down for future enhancement.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17069
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ » Tue Apr 13, 2010 1:30 am

FYI that's only going to work with IE. FF and Chrome will complain and actually not do anything on the mouse over. I've got an alternative to the above but would require replacing the reimg.js file.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

saule
Registered User
Posts: 5
Joined: Wed Mar 24, 2010 9:32 am

Re: ReIMG Image Resizer

Post by saule » Tue Apr 13, 2010 12:38 pm

DavidIQ wrote:
saule wrote:
DavidIQ wrote:
saule wrote:I'm having a fatal error with this MOD when trying to run the installer or use the forum, could you please help?

Code: Select all

Fatal error: Call to undefined function reimg_properties() in ./phpBB3/includes/functions.php  on line 4268
At first the error was on line 3313, but it jumped to line 4268 when I removed the onload and onerror attributes.
...

That is the call to the function...not the actual function:

Code: Select all

/**
* Get the applicable image properties
*/
function reimg_properties()
{
	return 'class="reimg" onload="reimg(this);" onerror="reimg(this);" ';
}
Thank you! :)

myju
Registered User
Posts: 105
Joined: Wed Feb 03, 2010 1:54 am
Location: Dublin, Ireland.
Contact:

Re: ReIMG Image Resizer

Post by myju » Tue Apr 13, 2010 2:40 pm

DavidIQ wrote:Here's what I did to get it working like that here:
Open up your includes/functions.php file and replace this:

Code: Select all

function reimg_properties()
{
	return 'class="reimg" onload="reimg(this);" onerror="reimg(this);" ';
}
with this:

Code: Select all

function reimg_properties()
{
	global $config;
	return 'class="reimg" onload="reimg(this);" onerror="reimg(this);" ' . (($config['reimg_zoom'] == '_highslide') ? 'onmouseover="return hs.expand(this);" ' : '');
}
Then open styles/prosilver/template/reimg_content.html and find this:

Code: Select all

			hs.lang.restoreTitle = "{LA_RESTORE_TITLE}";
And add this AFTER that line:

Code: Select all

			hs.Expander.prototype.onMouseOut = function (sender) {
			   sender.close();
			};
Save all files, upload, refresh template, done. You may need to undo the edit you did to attachments.html. I'll jot this down for future enhancement.
Wow! Thanks very much! I was hours trying to figure it out yet never went near the function.php file.

myju
Registered User
Posts: 105
Joined: Wed Feb 03, 2010 1:54 am
Location: Dublin, Ireland.
Contact:

Re: ReIMG Image Resizer

Post by myju » Tue Apr 13, 2010 2:44 pm

DavidIQ wrote:FYI that's only going to work with IE. FF and Chrome will complain and actually not do anything on the mouse over. I've got an alternative to the above but would require replacing the reimg.js file.
Oh, would it be possible to get a copy of that alternative reimg.js and would it affect any other part of the mod or would it just require running the install_reimg.php file again.

Thanks!

Locked

Return to “[3.0.x] MOD Database Releases”