Customizing SMF > Modifications and Packages
nCode Image Resizer [Now Supporting SMF 2.0 RC3 & 1.1.11]
TigerTails:
--- Quote from: ruckstande on May 19, 2008, 01:39:44 PM ---Yes I am using 1.1.15 also and this isn't working for me either. I am using the Alienation theme and when I add the line to the index template.php file I get a syntax error.
--- End quote ---
Although I still havn't got it to work for my forum, make sure you copy the .js file over to your themes directory too, as that could cause an error I imagine.
sorosh1:
Thanks, it works perfectly! You just have to edit index.template and i copyd the .js file also to the theme i use now. But thanks for this great mod! Really needed it!
Violat3r:
--- Quote from: IsraelSKA on May 19, 2008, 01:02:33 AM ---I installed this nCode, but dont work..
i have this image in my forum, but dont show bar above the image and no resize... :(
im using smf 1.1.5
--- End quote ---
Well im using 1.1.5 to and it seems to work ok for me, you must make sure that for all custom templates that you extract the "ncode_imageresizer.js" file from the mod zip and place it inside your custom themes directory (i.e. where all your themes template files are such as index.template.php and the others). I tested it without having the .js file in the directory and no error occurred for me, its just that the resize never happened and the bar never appeared.
--- Quote from: ruckstande on May 19, 2008, 01:39:44 PM ---Yes I am using 1.1.15 also and this isn't working for me either. I am using the Alienation theme and when I add the line to the index template.php file I get a syntax error.
--- End quote ---
The syntax error sounds to me like maybe either something in the code didnt get copied or something else like that. Make sure that you place the code JUST BEFORE the closing </head> tag in your index.template.php and that its not maybe inside another code, which i have done sometimes on accident. Also, if you just copy/pasted the code from SMF's manual install instructions....dont. Its a nice tool to have but at least for ME when i paste it all the code is mashed together. So if thats the case for you then just go into the mod zip and open the "install.mod" and copy/paste the index.template.php code from there.
m3talc0re:
You may also need to echo the added code on it's own. The code on its own searches for </head> and that's it. If you have something like echo ' </head>'; then you will need to either put the code like this: echo ' *code here* </head>'; or just echo ' *the code for the mod* '; Either way should work.
TigerTails:
Ahah! I've got it working on my forum now.
It turns out I had double </head>s.
I had included the </head> from the default code, but didn't notice the original </head> was still there.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version