• Welcome to Simple Machines Community Forum. Please login or sign up.
November 28, 2021, 04:02:55 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


nCode Image Resizer

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

Previous topic - Next topic

b33z


index.template.php:

Code (find) Select
background-color: #fefee1; /* the bgcolor behind the text and image */


Code (replace with) Select
background-image:url(', $settings['images_url'], '/imageresizeback.gif); background-repeat:repeat-x; /* the bgcolor behind the text and image */


thanks for this! perfect!

Dante_Arg

June 29, 2008, 09:17:44 PM #41 Last Edit: June 29, 2008, 09:56:34 PM by Dante_Arg
Hi, i ve one problem with this mod:

I already install the mod manually but i cant see the text over the pop-up window.... im using Black_red theme. When iam using default theme the text is ok but when i m using my theme it disappears.

Also i modified index.template.php from my folder theme and default too.

What can be happening?





hahaah i am n00b, nevermind, the colour of font and background is the same XD

b33z

Quote from: Dante_Arg on June 29, 2008, 09:17:44 PM
Hi, i ve one problem with this mod:

I already install the mod manually but i cant see the text over the pop-up window.... im using Black_red theme. When iam using default theme the text is ok but when i m using my theme it disappears.

Also i modified index.template.php from my folder theme and default too.

What can be happening?





hahaah i am n00b, nevermind, the colour of font and background is the same XD

dont feel bad.. i did that same thing with a different mod, took me like two days to figure it out! but we just keep on learnin! hehe..

Dr. Beast

I installed this mod but don't have any new options under Layout and Options?  ::)

mymktp1

Hi... I'm having the same problem everyone else had... except I couldn't solve it... I can't get the tab that opens orignal size to appear can some please take a look at my index.template.php and see what the problem might be thank you :P oh... bye the way I am also using the orange template

hhy89

for manuel setup
phpmyadmin; setup table code 's   :-\
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

MoreBloodWine

Does anyone have a site with this mod installed that I can look at ?
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


locau

Is there any chance of getting a new option to show the image ? I'm looking for Lightbox !

Anyone able to do this ?

MissyNL

Quote from: locau on August 12, 2008, 10:11:27 AM
Is there any chance of getting a new option to show the image ? I'm looking for Lightbox !

Anyone able to do this ?

Hi.. this should be a good mod for you.. however.. know that once you have installed the lightbox.. when you click on that image.. it is going to open in de mode of this mod and it's opening in the lightbox...

So.. my question is... can the link to open it in it's original size be disabled in this mod, so that it only can open in the lightbox??
Sorry for my poor English, but i think it's probably better then your Dutch :)

kizer

Own a Jeep? Links4Jeeps.com

knaphih

wow...it sure works on the link u gave kizer...... im using the theme Classic-FS which i downloaded from the SMF theme site..... It doesnt have the language folder..im not able to see the image wen i installed it.....sure i did the theme index modification alright....any ideas?

Axodious

I'm using the DarkWoW theme on SMF 1.1.5, the mod installed fine. However when I go to the Layout and Options at the bottom it shows a drop box and 2 edit boxes that are both blank with no text beside them. Also the mod doesn't work at all no changes to any images, for editting the index.template.php are you suppose to just copy the ncode part from the default index.template.php ? That is what I did and it still didnt work.

Attatched is a screenshot of the layout and options page.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

knaphih

nevermind..ive got it working on my forum now...superb mod btw

Axodious

Quote from: axodious on August 15, 2008, 06:36:08 PM
I'm using the DarkWoW theme on SMF 1.1.5, the mod installed fine. However when I go to the Layout and Options at the bottom it shows a drop box and 2 edit boxes that are both blank with no text beside them. Also the mod doesn't work at all no changes to any images, for editting the index.template.php are you suppose to just copy the ncode part from the default index.template.php ? That is what I did and it still didnt work.

Attatched is a screenshot of the layout and options page.

Anyone got a fix for this issue yet?
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

triantis7

Hello i tried to translate to Greek, but my site doesnt recognise the language..
my site is in Greek, i have installed the greek package!
I open with dreamweaver the install.mod and change in greek,but as you see at the photo my site doesnt recognise Greek!
Do you know why?

n00dle

I got this to work but I cant see any text in the bar above the image.. it just has the little icon and the tan bar without any words...
[nofollow]
[nofollow]

linette97

Thanks for this Mod! it's great! I modified it in my custom theme index.template.php.

1st I had problems because I was copying & pasting from SMF Manual install instructions & a error would occur. So I read this topic and found out that sometimes copying from SMF would mess up the code.. So I did what was said, take the code from install.mod file. My issue was that file was a AVI file!!! so when I tried to open it, it would open in windows media player (nothing played of course).. So I decided to Open With notepad and the codes were hard to read!!! They didn't look like the normal codes... SOOOO after maybe an hour of trying to figure it out! I said let me try and copy & paste it to MS Word and don't you know the code came out clear as day and after pasting into index.template, IT FINALLY WORKED!! phew!! this manual install is a killer! But I'm loving my theme so I gotta do it!
Just letting you guys know in case someone has the same issues as I did!!

Thanks again for this great mod!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

gaodogo

September 01, 2008, 01:09:19 AM #57 Last Edit: September 01, 2008, 01:33:10 AM by gaodogo
This is a great mod. Thank you for sharing this with us.

I have translated this mode into to Simple Chinese.

Find Edit (if you are using a custom theme, you should change :Modifications.chinese-simplified-utf8.php" in the  "languages" folder of that theme.)
./$languagesdir/Modifications.chinese-simplified-utf8.php


Find
?>

Add Before:

<add before>
// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = '点击这里看原图';
$txt['ncode_imageresizer_warning_filesize'] = '此图片大小已经自动更改,点击这里看原图. 图片原始大小为 %1$sx%2$s x %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = '此图片大小已经自动更改,点击这里看原图. 图片原始大小为%1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = '点击这里看小图';
$txt['ncode_imageresizer_mode'] = '图片大小自动更改模式';
$txt['ncode_imageresizer_original'] = '保持原本大小';
$txt['ncode_imageresizer_enlarge_same'] = '在同一文件中变大';
$txt['ncode_imageresizer_open_same'] = '用同一窗口显示';
$txt['ncode_imageresizer_open_new'] = '用新窗口显示';
$txt['ncode_imageresizer_max_width'] = '最大宽度';
$txt['ncode_imageresizer_max_height'] = '最大高度<br />
<span class="smalltext">不填入数字则不会设定最大高度</span>';
// --- End added code ---
</add before>


Sabre™

September 20, 2008, 05:17:30 PM #59 Last Edit: September 20, 2008, 05:22:14 PM by Sabre™
Everyone having issues with not seeing the writing on the bar, and or Admin panel for this mod, go to your       Themes/default/languages/Modifications.english.php  template, and make sure this code is installed

// --- Begin added code - Advanced Visual Verification ---
$txt['ncode_imageresizer_warning_small'] = 'Click this bar to view the full image.';
$txt['ncode_imageresizer_warning_filesize'] = 'This image has been resized. Click this bar to view the full image. The original image is sized %1$sx%2$s and weighs %3$sKB.';
$txt['ncode_imageresizer_warning_no_filesize'] = 'This image has been resized. Click this bar to view the full image. The original image is sized %1$sx%2$s.';
$txt['ncode_imageresizer_warning_fullsize'] = 'Click this bar to view the small image.';
$txt['ncode_imageresizer_mode'] = 'Resize Mode'; $txt['ncode_imageresizer_original'] = 'Keep original size';
$txt['ncode_imageresizer_enlarge_same'] = 'Enlarge in same document';
$txt['ncode_imageresizer_open_same'] = 'Open in same window';
$txt['ncode_imageresizer_open_new'] = 'Open in new window';
$txt['ncode_imageresizer_max_width'] = 'Maximum width';
$txt['ncode_imageresizer_max_height'] = 'Maximum height<br /><span class="smalltext">Leave blank for no max height.</span>';
// --- End added code ---



If youre using UTF8, then you will have to do the manual installation to that language file.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Advertisement: