The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have this code to parse the bbcode into html, and it works perfectly, except attached images are made into links. How can I get the bbcode parser to make the images display with the <img /> tag and not links?
PHP Code:
|
#2
|
|||
|
|||
![]()
In Settings > Options > Message Attachment Options, what do you have selected for "View Attached Images Inline" and "Thumbnail Creation"?
|
#3
|
||||
|
||||
![]()
"View Attached Images Inline" is set to "Yes, full size" - when it was set to "Yes, display thumbnails" only a link was displayed as well.
"Thumbnail Creation" is set to "Yes" When I go to: Maintenance -> General Update Tools -> Rebuild Attachment Thumbnails Code:
Building Attachment ThumbnailsIf you receive a fatal error or if the process seems to hang, you will need to delete the last attachment listed on the screen then refresh this window. Processing: Attachment : 1 (jpg) Error Processing: Attachment : 2 (jpg) Error Processing: Attachment : 3 (jpg) Error Processing: Attachment : 4 (jpg) Error Processing: Attachment : 5 (jpg) Error Processing: Attachment : 6 (jpg) Error Processing: Attachment : 7 (jpg) Error Processing: Attachment : 8 (jpg) Error Processing: Attachment : 9 (jpg) Error Processing: Attachment : 10 (jpg) Error Processing: Attachment : 11 (jpg) Error Processing: Attachment : 12 (jpg) Error Processing: Attachment : 13 (jpg) Error Processing: Attachment : 14 (jpg) Error Processing: Attachment : 18 (jpg) Error Processing: Attachment : 19 (jpg) Error Processing: Attachment : 20 (jpg) Error Processing: Attachment : 21 (jpg) Error Processing: Attachment : 23 (jpg) Error Processing: Attachment : 24 (jpg) Error Processing: Attachment : 25 (jpg) Error Processing: Attachment : 28 (jpg) Error Processing: Attachment : 29 (jpg) Error Processing: Attachment : 30 (jpg) Error Processing: Attachment : 31 (jpg) Error |
#4
|
|||
|
|||
![]()
OK. I don't know if that's a problem or not, I was just looking at the parsing code and noticed that it doesn't try to show the images unless those settings allow it (and the way you have them set is OK).
Oh, I should have asked: what does your call to $bbcode_parser->parse() look like? The code you posted has a commented out call to do_parse(). |
#5
|
||||
|
||||
![]()
I'm not using $bbcode_parser->parse(); I am using this:
PHP Code:
|
#6
|
|||
|
|||
![]()
No, that's OK, you can call do_parse(). I just assumed (incorrectly) that the commented out call to do_parse() was an experiment or something.
I'm not sure what the problem is, I'd probably have to have it set up so I could debug it. I guess it could be the errors you're getting when you try to build the thumbnails. Do you have the image processing options set up correctly? Does it work for normal forum posts? |
#7
|
||||
|
||||
![]()
Where are the image processing functions? On normal form posts the thumbnails don't work, but I have it set up so full size images do work (http://otakuhelpers.com:8080/forums/...ter-535-Review!), if I try to use thumbnails it only displays a link.
|
#8
|
|||
|
|||
![]()
I meant the options under Settings > Options > Image Settings.
I'm guessing it has something to do with the missing thumbnail images, but I can't follow all the logic (I'm looking at handle_bbcode_img() in includes/class_bbcode.php). |
#9
|
||||
|
||||
![]()
I have Image Processing Library > GD is checked. That is all that is installed.
|
#10
|
|||
|
|||
![]()
OK, that sounds good. I'm looking at the "rebuild attachments" code to see what could cause errors. Do you have attachments stored in the database or the file system? If you have them stored in the database, you need a valid writable temp path, either in the php settings, or possibly in the vb settings if you are using open basedir restrictions (although I think if you didn't have a writable temp path you wouldn't be able to upload anything).
If you have attachments stored in the file system, those directories have to be writable (but again, if they weren't you wouldn't be able to attach anything). I guess if you've been using the same server for a long time but just upgraded vb, then it's probably not the directory permissions (unless maybe you moved them). |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|