![]() |
This is a nice little hack I've been meaning to release for quite some time, but for some reason I waited for v2.2.0. :)
For a demo of this just view an attached image on this forum (I'll attach an image in the next post). Anyway, this is very easy to install. Only one template to edit and two files to change, it doesn't get any easier! Just download the installer (attached to this post), upload to your admin folder, and run in your browser. Again thanks Bane for the installer, and thanks JamesUS for that little copyright notice. :) Have fun! :china: |
For a demo click below.
|
very nice firefly, it will be on priority on my intall list!
|
Cool Hack! I was hoping you would release this... :D
I'll install this tonight... :) Thanks! Its a great enhancement! |
I'd prefer that when I click on an attached image, that the image shows up in the same browser window that the board was in. To get back to the board, just backup. This is the way attached images have worked up until 2.2.0; now, for some reason, they open in a new window. Why? What's wrong with the window you're already in? Opening and closing browser windows quickly hurts many non-NT-kernel versions of Windows, too.
Can anyone tell me how to get 2.2.0 to open attached images (or other files that open in a browser at all) to open in the same window? |
opening attachments in new window was actually my suggestion :)
to open in same window find the attachment template and change the href target from _blank to _top or remove the target part |
it didn't create the attachmentview template for me automatically, so could someone please post the code thats in the template that is created during install....thanks
|
Very nice Hack guys! Install was a snap with no problems!
|
bug report in getinfo template
when you click on the Posted by username link on the attachment viewer page, it redirects you to the lost password page instead of users profile to fix change Code:
Posted by <a href="member.php?s=$session[sessionhash]&userid=$attachuserid">$attachusername</a> Code:
Posted by <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$attachuserid">$attachusername</a> |
Nice :pleased:
|
Where exactly do you make that code change?
|
Quote:
|
I've searched the getinfo template and cannot find that code anywhere. I even modified it to match my php3 vbulletin but still no luck finding it:(
|
Quote:
|
I installed using the instructions but it only said to modify the postbit_attachment template. I've looked both places but can't find the code?
|
I did a search for the string using the Admin CP, it shows in the attachmentview template.
|
Yup Yup, I made the changes in the attachmentview template and it works correctly now.:D:D:D:D
|
Quote:
|
FireFly always makes the coolest hacks :). Good work bro.
|
Thakns everyone! :pleased:
Thanks eva, I fixed the file now. :) |
no probs :D
|
could someone please post the attachmentview code for me....it didn't work for me for some reason...thanks
|
ok got it!!
thanks |
Quote:
|
|
it's a nice hack !!
thanks FireFly~~~ |
superb hack keeps my forum tables looking neat again for some of my users who cant comprehend resize the image first....another cracking hack firefly :)
|
I dont think it worked for me, when I tried to attach something to a post it told me to resize the image, but I did all the changes....is there something I am missing?
|
Swank :D
Installed :) |
thanx Firefly, this one works like a treat
|
Bug:
http://www.unrealtournament.org/foru...367&fullpage=1 User's name shows up as "Fatal_Exception<LSD>" when it should be "Fatal_Exception<LSD>" |
Ok, try this fix.
In attachment.php, replace this: Code:
$attachusername=$getuser[username]; Code:
$attachusername=unhtmlspecialchars($getuser[username]); |
Worked :)
|
You might want to update the zip with that fix.. ;)
|
Quote:
Quote:
|
Just installed it, great hack, no flaws :) I mofied the navbar so that is suited the customizing i have done with mine already and I changed the template around a bit to suit my needs, but other then that it was easier then Pie on a sunday night :)
Thanks Firefly for the hack and Bane for the installer portion :) |
Wow, what a cool hack, installed in minutes! :)
You guys make wicked hacks - bring them on! Bimma Boy |
Will this work with 2.0.3?
|
I think it was initially written for 2.0.3, but I waited until 2.2.0 was out. So I think it would work, yeah. :)
|
Hi
I cant not find PHP Code:
help please |
All times are GMT. The time now is 01:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|