PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   Problem with img/ubb code not showing(FIXED) (http://www.photopost.com/forum/photopost-pro-bug-reports/115050-problem-img-ubb-code-not-showing-fixed.html)

Ted S July 26th, 2005 09:52 PM

Problem with img/ubb code not showing(FIXED)
 
I've enabled UBB code (Show UBBCode on Photo page set to "yes") yet the box does not display. Playing with the templates it appears that the variable $imgurl is null and has no data. What settings do I need to change to resolve this?

Thanks.

Ted S July 29th, 2005 12:25 AM

Any ideas?

Chuck S July 29th, 2005 05:48 AM

Well I can not explain why your $imgurl variable would be empty as it makes no sense since thats what we use to display the photo but I have seen this on a couple systems. There is a little edit one can make. I think most users I have encountered with this are on Vbulletin and I think they have a hack installed that must intefere with the variable.

In showphoto.php find this

Code:

Content visible to verified customers only.
then in showphoto.tmpl

if ( $Globals['showubb'] == "yes" && $imgurl != "" ) {

change to this

if ( $Globals['showubb'] == "yes" ) {

Ted S July 31st, 2005 10:48 PM

That did the trick, thanks.

Ted S August 1st, 2005 08:57 PM

Actually, users are still reporting issues:

Quote:

I've tried again to insert a photo from my gallery and it's a no go.

I tried the new little code box at the bottom of the gallery page and the world link icon thingie.

Extremely frustrating!
Quote:

I've been having the same problem. The url from the page gets copied rather than the url for the particular picture. As alcina said, very frustrating!

Chuck S August 1st, 2005 09:40 PM

How is an img tag not be right. You have an example. I show no issue with this here is a tag I get. Your not going to be able to see it since I have the data thing locked down but the url is indeed right

Code:

Content visible to verified customers only.

Ted S August 5th, 2005 07:52 PM

Chuck,

Here's how...

example url from ubb code

http://www.scubaboard.com/gallery/da...ue_springs.jpg

actual url (view source from the photo display page):
http://www.scubaboard.com/gallery/wa...e=15969&size=1

Mind you water marks are turned off

ehm August 5th, 2005 10:45 PM

I'm having the same problem here, with UBB 6.5.1.1 and PhotoPost 5.13
At the begining I had no link, even do I put YES on the option (like Ted S)
Then I use Omegatron fix and now I have the display link, but it's not doing any good.
This is the link:
Code:

Content visible to verified customers only.
When I paste it on UBB, the photo does not came up.
(see this page:
http://www.imigrar.com/forum/showthr...&vc=#Post39956

Chuck S August 6th, 2005 05:52 AM

Are you protecting your data directory ;)

this doesnt seem to exist on your server although I am sure it does

http://imigrar.com/photo/data/502/me...biaGlacier.jpg

remember image protection and image display arent mutually exclusive

Ted S August 6th, 2005 06:44 PM

That was it... I didn't even realize there was a photo protection option in the configuration area.

Thanks

Ted S August 6th, 2005 08:45 PM

Actually we still have a problem...

If the image being viewed is a medium image it will not work.

See http://www.scubaboard.com/gallery/sh...00/ppuser/8823 which tries to show http://www.scubaboard.com/gallery/da.../occytext1.jpg but should show http://www.scubaboard.com/gallery/da.../occytext1.jpg

Chuck S August 7th, 2005 08:04 AM

why should it not show it. It is coded to show the medium
Sorry this feature always shows the medium image and it is not coded to show a fullsize image. if thats what your after alter your code in showphoto.

Ted S August 10th, 2005 01:01 AM

It should show a path that works, it isn't. If the image has no medium version, the link works fine. If the image has a medium version, the link to that image is wrong. The problem is that the code isn't displaying the appropriate link for images, no changes have been made to the source php files.

Chuck S August 10th, 2005 08:02 AM

try linking them to either the thumbnail or large

$ubburl = "{$Globals['datadir']}/$storecat/$bigimage";
$showcode = "
Code:

Content visible to verified customers only.
";


All times are GMT -5. The time now is 08:25 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97