Previous Thread
Next Thread
Print Thread
Hop To
#200494 11/02/2007 4:09 PM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
I've created a photo gallery, and now uploaded a few test images into it. When I try to insert one of the gallery photo's into a post in a forum outside the gallery, all I get is this:
[Linked Image from .com]
with no image.

If I put the URL into my browser, the image shows up, but no image shows up within a post. What am I doing wrong?

Thanks!
EJH

EJH #200707 11/05/2007 5:57 PM
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
This is probably for the 7 series - moving there smile


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
Also, how/where can I set an option to allow people replying to attach photos?

EJH #200757 11/06/2007 1:20 AM
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
It is currently NOT possible but has been HEAVILY requested by many members here already.

Hopefully a feature to be added soon to an upcoming release.

ntdoc #200759 11/06/2007 1:26 AM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
Test
Attachments
Kan.jpg

EJH #200760 11/06/2007 1:30 AM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
????

EJH #200763 11/06/2007 1:35 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by EJH
????


you might have unknowingly answered your own question smile

the key is the '?' in the url. i believe we'll be relaxing the regex restriction to allow it to work. not sure, but i seem to recall Rick being open to it.

in any event, if you MUST have it NOW in 7.2.2, its a very simple change to the do_markup routine and specifically the [img] tag markup.

just have it relax and not treat ?s with disdain wink

EJH #200764 11/06/2007 1:38 AM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
Also, w/regard to my original question--anyone know why I'm finding it impossible to insert an image into a post when liked to a photo in my board's gallery, i.e., why when I post do I get this:

["img"]https://www.ubbcentral.com/forums/gallery/48/thumbs/918.jpg["/img"]
(quotes intentially added).

instead of this:
[Linked Image]

thank for any help!

SD #200765 11/06/2007 1:44 AM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
Interesting--thanks.
Can you expain the "simple change"? I'd greatly appreciate it.

Thanks!

EJH #200767 11/06/2007 2:05 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
ubbthreads.inc.php there are 4 regexes..

#\[img\]([^?\['\"]+?)\.(gif|png|jpg|jpeg)\[/img\]# <-- 1st one

the "[^?" tells it to kill ?s.. so just change it to "[^" (remove the ?) and *poof* done.. note: do it on all 4 lines..

or.. you can just change your configuration to 'spider friendly' urls and the ?s will go away and you can link with no changes at all to your code..

example for this board below, like you posted:

[Linked Image]

that works because the url is of the form blabla.com/oioi/vey/teehee/doh/xxx.jpg vs blabla.com?ubb=oioi&vey=teehee&doh=xxx.jpg .. ok ? smile

SD #200769 11/06/2007 2:18 AM
Joined: Nov 2007
Posts: 24
E
EJH
Offline
stranger
stranger
E Offline
Joined: Nov 2007
Posts: 24
thank you very much!

SD #202890 12/08/2007 10:57 PM
Joined: Dec 2007
Posts: 10
R
stranger
stranger
R Offline
Joined: Dec 2007
Posts: 10
I found that when I tried to insert a photo into a post that was uploaded when the links were not set to "search engine friendly", the photo did not show and only the path to the photo showed.

Once I changed the system to "search engine friendly links". The photo showed ok.

My big problem is getting uploaded photos to show as inline images automatically in a post.....

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Originally Posted by robstandon
My big problem is getting uploaded photos to show as inline images automatically in a post.....


This all depends upon the size of the image - if the size is below your maximum size it should display inline.

For example my thumbnail image used by Sirdude above, I save to my HDD, then uploaded here, and it is displaying just fine.

Maybe your image you are trying is too large?
Attachments
918.jpg

Ian #202892 12/09/2007 6:40 AM
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
You can set the maximum size via

CP --> Display options --> Topic Display Options --> Max Size for inline uploaded images

Mine is set to 2000 bytes

Ian #202911 12/09/2007 8:31 PM
Joined: Dec 2007
Posts: 10
R
stranger
stranger
R Offline
Joined: Dec 2007
Posts: 10
Thanks. found the setting and fixed it. I guess I misread it originally and thought it was a setting in Megs.

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
no worries - glad it is working for you smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)