PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old September 7th, 2005, 12:20 PM   #1 (permalink)
ehm
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 139
UBB code to show photo is not right

I have ubb 6.5.2.0 and photopost 5.14
on the line "Show UBB Code" at the showphoto.php the code display is:
Code:
Content visible to verified customers only.
the think is that I'm not using the medium size. At least all my /medium folders are empty.

I could find this line of code at showphoto.tmpl
<span class="{$Style['small']}"><b>{$Globals['pp_lang']['ubbcode']}:</b> <input type="text" name="ubb" value="$showcode" size="80"> &nbsp;&nbsp;&nbsp;&nbsp;

by that line I assume that I need to edit $showcode
but I have no idea where this variable is set.

Can any one help me pointing the right direction to fix the ubb code display?

PS: if I remove the "/medium/" from the line below
Code:
Content visible to verified customers only.
the images display fine.

Thank you
ehm is offline   Reply With Quote
Old September 7th, 2005, 12:34 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
The variable is set in showphoto.php and if there is no medium it should display the large image tag
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 7th, 2005, 01:22 PM   #3 (permalink)
ehm
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 139
Quote:
Originally Posted by omegatron
The variable is set in showphoto.php and if there is no medium it should display the large image tag
Well,
it's not doing it Omegatron.
the "Trigger medium graphic height and width" option on the setup is "0" (should be 'null'??)

Coudl be something else wrong?
At the first installation (version 4.x) I had medium images but I changed it when I first upgrade to 5.0. Since then I never checked it until some members start complaing about the display not showing any images inside UBB.

This is the hard code on my showphoto.php
----
$ubburl = "{$Globals['datadir']}/$storecat/medium/$bigimage";
----
So looks like it always will put /medium/ there on the link.

What can be done?
Thank you

Last edited by ehm; September 7th, 2005 at 01:24 PM.
ehm is offline   Reply With Quote
Old September 7th, 2005, 01:35 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Well If I look at our code I show this

$showcode = "
Code:
Content visible to verified customers only.
";

So I dont know what your code is what version where it came from etc but $imgurl is determined by the program in showphoto so your $showcode statement should be this above
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 7th, 2005, 02:00 PM   #5 (permalink)
ehm
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 139
Thats very strange...
My was uploda on 08/05/05 and the file size is 53,245 bytes
It was on the 5.14 package...
The first line is the one who set the $imgurl and they are lines 1151 and 1152 respectively
I'm pasting the whole portion of my code:
---
$ubburl = "{$Globals['datadir']}/$storecat/medium/$bigimage";
$showcode = "
Code:
Content visible to verified customers only.
";
---

As you cas see, the $ubburl is hard coded on the program.
ehm is offline   Reply With Quote
Old September 7th, 2005, 05:00 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Your using some hacked old file. The 5.14 download does not have any code like that.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 7th, 2005, 06:27 PM   #7 (permalink)
ehm
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 139
Just to be on the safe side, I donwload from PhotoPost and upload all *.php to my site again.
Now, the behavior change. Instead of a wrong link on that UBB Code, I have nothing now.
The new line on showphoto.tmpl is:
-
if ( $Globals['showubb'] == "yes" && $imgurl != "" ) {
-
the old showphot.tmpl does not have that &&$imgurl !="")

could be something?

thats it. Only the tag, but nothing else.
Am I missing something?

Last edited by ehm; September 7th, 2005 at 06:40 PM.
ehm is offline   Reply With Quote
Old September 7th, 2005, 07:08 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Okay well if ON THE FLY IS set to YES and there is no medium image then $imgurl is empty so at line 489 of showphoto it is this

Code:
Content visible to verified customers only.
change it to this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 7th, 2005, 07:16 PM   #9 (permalink)
ehm
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 139
there it goes

it's working now.
Thank you.

I assume it will be a fix on the future version right? or do I have to save it and change on any new version?
ehm is offline   Reply With Quote
Old September 7th, 2005, 07:25 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
nah it will be submitted and fixed
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RP 3.01 - Ubb Code Question WB ReviewPost Installation & Upgrades 2 September 20th, 2005 02:08 PM
showphoto URL - show under UBB Code? mjm Photopost Pro How Do I...? 1 July 14th, 2005 12:59 PM
UBB code - show link to thumbnail mjm Photopost Pro How Do I...? 4 July 14th, 2005 12:40 PM
UBB code for Thumbs Damir P Photopost Pro How Do I...? 1 April 10th, 2005 10:02 AM


All times are GMT -5. The time now is 12:17 AM.

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