![]() |
I'll work on this as soon as I get a chance. I haven't been using the WYSIWYG editor which is why I didn't see this.
|
allright, I'll await your word.
|
*bump*
|
Updated the first post with R1.2 which fixes the wysiwyg problem. In the wysiwyg editor the image will be shown full size without the resized image line below it. That was the best solution I could come up with at this time.
Please click install if you use this hack and let me know how this version works for you. |
That's the same solution I came up with. I think I may try to use a small image to replace the text so users will know they can click on it for a larger image.
|
Here is how it turned out.
http://www.modernengineuity.com/foru...hread.php?t=31 Edit: I just discovered it does the same thing with an image. |
ok, I tried installing the upgrade and got this error.
Parse error: parse error, unexpected $ in /home/hpisavag/public_html/forum/includes/functions_bbcodeparse.php on line 1734 So I tried it on the file that I got from the VB zip that didn't have v1.1 on it and still gettin the same error. |
which 1734 is my last line.
|
What do you have on line 1734 in that file? My functions_bbcodeparse.php ends at line 1729.
|
mine end at 1734 with ?> and no spaces after it.
|
I had an error in one of the edits that duplicated a few lines. I've fixed it in the file.
|
YOU MADE MY DAY :up: Thanks
This Hack should be a Stander hack on any coming VB vir and it would be nice if there an option on the Admin CP to control the size of the img. one more thing .. how can i make the img open in a new window? *INSTALL* |
Quote:
|
done, thanks
|
I just installed this as per the attachment and now I'm getting
Warning: Missing argument 2 for handle_bbcode_img_match() in /usr/home/ntwrkguy/public_html/motormanforum/includes/functions_bbcodeparse.php on line 1116 Line 1116 reads Code:
function handle_bbcode_img_match($link, $iswysiwyg) Code:
// Image size hack R1.2 |
You missed doing the part of the hack on lines 153-163 in the hack:
Quote:
|
Parse error: parse error, unexpected $ in /home/haloimp/public_html/includes/functions_bbcodeparse.php on line 1738
linke 1738 is ?> wtf? |
Check over the hack - you missed something. Specifically look at the lines that start with "function handle_bbcode_img" and "function handle_bbcode_img_match". If you look in the hack directions you are supposed to replace those lines with the lines in the hack. You probably have those lines duplicated - a couple of other people have done that as well. I had an error in the hack instructions that were there for about 6 hours when I first put up this version so if you downloaded it when I first put this version up download it again. If you can't figure it out let me know and I'll PM you my email address so you can send me your functions_bbcodeparse.php file and I'll figure out what's wrong.
|
yes i did. I fixed it. But ive come accross a new problem. If a image is thats on the same server is posted on the forums, it says its a broken link. For example, my site: haloimpulse.com
my sig is http://haloimpulse.com/aerotest/aerosig.jpg however, it says its broken on the forums. But when i host it on my other server, it works fine (http://asylum-designs.com/aero/aerosig.jpg) |
Quote:
// Image not found $bbtag='<table border="1" cellpadding="2" id="image_found"><tr><td><FONT color="#FF0000">Image link is broken</font></td></tr></table>'; $image_found=false; with // Image not found $bbtag='<table border="1" cellpadding="2" id="image_found"><tr><td><FONT color="#FF0000">'. $link .'</font></td></tr></table>'; $image_found=false; and these lines: // Image not found return '<table border="1" cellpadding="2"><tr><td><FONT color="#FF0000">Image link is broken</font></td></tr></table>'; with: // Image not found return '<table border="1" cellpadding="2"><tr><td><FONT color="#FF0000">'. $link .'</font></td></tr></table>'; That will display the link it's trying to go instead of the "broken link" message. Report back with what that says (in case it's different than http://haloimpulse.com/aerotest/aerosig.jpg ). |
Parse error: parse error, unexpected '/' in /home/haloimp/public_html/includes/functions_bbcodeparse.php on line 1148 :-/
|
Quote:
|
Quote:
[high]* HaloImpulse has a PM![/high] |
Quote:
Code:
/me |
Hello ,
There is Error :( please help Parse error: parse error in /home/virtual/site4/www/html/montada/includes/functions_bbcodeparse.php on line 1685 Fatal error: Call to undefined function: handle_bbcode_img() in /home/virtual/site4/www/html/montada/includes/functions_bbcodeparse.php on line 640 please help what can i do ? Regards |
Quote:
Quote:
|
Sir,
Please Let me what is the wrong in the the file , Regards |
Quote:
there is a new error like this , Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1140 Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1140 what is the problems Regards |
On line 1122 in your file you deleted several lines from the original code. Starting on line 1122 you should have:
Quote:
Quote:
|
Quote:
I was modify the file and uploade it but , there is a new error like this Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1144 Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1144 regards |
I dont know if u know this problem.
if in a thread are some dead images in it, to open this thread i need more then 2 minutes!? I remove your code, then all work fine. Is there a fix for this problem? |
ForYou - It looks like your problem is a bug in the version of PHP that your server is running. Try upgrading to a newer version of php if you have that option. If you do a search on yahoo on "Warning: getimagesize(): stream does not support seeking" you'll find a bunch of information on it.
mr.gamesbay - that is a problem with using getimagesize but I haven't found a better solution. If it's taking more than 2 minutes then you must have a LOT of pictures in that thread that are bad links. Timeouts should only happen if the server is unreachable - if the server is reachable and the files just aren't there that should go through fast. The timeout is set to 5 seconds to get a response from the remote server - if after 5 seconds there is no response then it moves on. So to have it taking 2 minutes you'd have to have ~20 pictures on that thread that are linked to a non-active server. There is some discussion at the beginning of this thread on how to do a resize using Javascript that solves this problem but that doesn't work if the pictures are loaded from the cache so IMO it isn't a good solution. |
Quote:
First i think, it was an error with my webspace or my vB, but after i removed the code, the threads opend normal. The code from Auros i used too, is imo faster, but it have a small bug if i use the WYSIWYG-Editor and i dont know how to remove the bug. PS: Sorry about my bad English |
Quote:
Code:
/* All you have to do is add fiImageResize() to the onLoad handler of your body tag and it will resize all your images. If you have images that shouldn't be resized, you have to give them an id and them on the following line: Code:
if (docImg[i].width > imgWidthMax && docImg[i].id != 'forumlogo') Code:
.imglimit { |
This sounds good, but i dont realy know how to use ist.
This part i must put in the CSS of the Style?! Right? Code:
.imglimit { Code:
/* |
Quote:
Quote:
All you should do then is add this line at the bottom of headinclude (you find it under common templates in the template manager). Code:
<script type="text/javascript" src="clientscript/resizeall.js"></script> On my board, with vB3.3 the body tag now looks like this Code:
<body onload="$onload; fiImageResize()"> |
Thanks dis.pater! :)
Works PERFECT! :) |
Quote:
I have a pic. names (back_hi.gif) that shouldn't be resized. |
Quote:
Suppose you have this in your template: Code:
<img src="back_hi.gif" /> Code:
<img src="back_hi.gif" id="nr1" /> Code:
if (docImg[i].width > imgWidthMax && docImg[i].id != 'forumlogo') Code:
if (docImg[i].width > imgWidthMax && docImg[i].id != 'nr1') edit: Seems like vB is parsing vB tags inside the code tag :ermm: |
PHP Code:
vBulletin Message is this: PHP Code:
|
All times are GMT. The time now is 01:26 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:
|