php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#284384 - 03/21/05 04:08 PM PhotoPal 1.4
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Okay this is an upgrade to the PhotoPal so that it is compatible to run with Photopost 5.0 file structure<br /><br />You must be running Photopost 5.0 or above


Attachments
126478-photopal1.4.zip (77 downloads)

_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#284385 - 03/21/05 04:31 PM Re: PhotoPal 1.4 [Re: sf49rminer]
BWilliams_dup1 Offline
Member

Registered: 03/09/03
Posts: 171
Loc: Southern California
I was just making a post asking about an update <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br /><br /><br />I have everything set, well, at least I think I do and am getting this error:<br /><br /><br />Fatal error: Call to undefined function: pp_get_ext() in /home/socaps/public_html/ubbthreads/pals/custombox2pal.php on line 11

Top
#284386 - 03/21/05 08:32 PM Re: PhotoPal 1.4 [Re: vajraman]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
above the pp_is_image function add this<br /><br />function pp_get_ext( $filename ) {<br /> return substr($filename, strrpos($filename,"."));<br />}
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#284387 - 03/21/05 08:50 PM Re: PhotoPal 1.4 [Re: sf49rminer]
BWilliams_dup1 Offline
Member

Registered: 03/09/03
Posts: 171
Loc: Southern California
ok, did that and now it's showing up, but not showing the images. I can however click on the broken image and it does link to the medium image.

Top
#284388 - 03/21/05 10:11 PM Re: PhotoPal 1.4 [Re: sf49rminer]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Thanks for updating this Chuck - I needed the fix you posted as well <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#284389 - 03/21/05 11:36 PM Re: PhotoPal 1.4 [Re: SurfMinister]
BWilliams_dup1 Offline
Member

Registered: 03/09/03
Posts: 171
Loc: Southern California
[]AllenAyres said:<br />Thanks for updating this Chuck - I needed the fix you posted as well <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> [/]<br />OK, what am I doing wrong here? When I add the fix above it does not show the images and also make the calendar go crazy ???<br /><br />I guess I will delete the files and try from scratch again.

Top
#284390 - 03/22/05 01:36 AM Re: PhotoPal 1.4 [Re: vajraman]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
Thank you for the update.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#284391 - 03/22/05 04:04 AM Re: PhotoPal 1.4 [Re: landyphil]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
I know, this pal is sometimes a little bit tricky. I attach my working version here. Always remeber to setup your inc file properly. In my script you need to set your path and your threads DB name at the end.


Attachments
126498-custombox2pal.php.txt (83 downloads)

_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#284392 - 03/22/05 11:52 AM Re: PhotoPal 1.4 [Re: landyphil]
BWilliams_dup1 Offline
Member

Registered: 03/09/03
Posts: 171
Loc: Southern California
thanks, I figured it out. I was not setting the data directory path correct. <br /> <br />Now, I have a problem with the calendar pal, which is 2 boxes bellow and am getting this error: <br /> <br />
Code:
Script: /home/socaps/public_html/ubbthreads/pals/calendarpal.php <br />Line#: 70 <br />SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3 <br />SQL Error #: 1064 <br />Query: SELECT Bo_Keyword FROM w3t_Boards WHERE () <br /> <br />Please use your back button to return to the previous page.
<br /> <br />Whats weird is that if I turn the Photopal off it works. <br /> <br />Idea's ??? <br /> <br /> <br />www.socaps.com

Top
#284393 - 03/22/05 12:34 PM Re: PhotoPal 1.4 [Re: vajraman]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
sounds like a variable in the photopal is conflicting with a variable in the calendar pal.. try this.. add the photopal to your sidebar and just the photopal and go to the calendar itself.. see if same error
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#284394 - 03/29/05 12:49 AM Re: PhotoPal 1.4 [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks Chuck!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#284395 - 04/25/05 06:11 PM Re: PhotoPal 1.4 [Re: Daine]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I have added this to the footer of my site and changed it around a little:<br />http://www.laondalatina.com<br /><br />What I want to know is what change would I have to make so it doesn't pull any photos from users member albums, private or not.<br /><br />Thanks!
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#284396 - 05/27/05 07:12 AM Re: PhotoPal 1.4 [Re: luan]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
As I was having problems with 1.3, ive upgraded to 5.1 and this version, but I still get the same error..<br /><br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in g:\webs\www.bm3w.co.uk\public_html\ubbthreads\pals\custombox1pal.php on line 78<br /><br />Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in g:\webs\www.bm3w.co.uk\public_html\ubbthreads\pals\custombox1pal.php on line 103<br /><br />Anyone have any idea why?

Top
#284397 - 05/27/05 07:14 AM Re: PhotoPal 1.4 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Those lines are:<br /><br />while ( list($pid, $puser, $puserid, $pcat, $ptitle, $photo, $pviews) = mysql_fetch_array($result)) { <br /><br />and<br /><br />mysql_free_result($result);

Top
#284398 - 05/27/05 08:24 PM Re: PhotoPal 1.4 [Re: statusblue]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Featured Photos <br /> <br />I'm not getting any pictures displayed on the sidebar. It just shows the title bar on the side that says Featured Photos. <br /> <br />Mmm....any thoughts on this? <br /> <br />You can view this at: www.f-bodyhideout.com/ubbthreads

Top
#284399 - 05/29/05 12:08 PM Re: PhotoPal 1.4 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
[]MattUK said:<br />As I was having problems with 1.3, ive upgraded to 5.1 and this version, but I still get the same error..<br /><br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in g:\webs\www.bm3w.co.uk\public_html\ubbthreads\pals\custombox1pal.php on line 78<br /><br />Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in g:\webs\www.bm3w.co.uk\public_html\ubbthreads\pals\custombox1pal.php on line 103<br /><br />Anyone have any idea why? [/]<br /><br />Anyone?

Top
#284400 - 05/29/05 06:01 PM Re: PhotoPal 1.4 [Re: statusblue]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
[]MattUK said:<br />Those lines are:<br /><br />while ( list($pid, $puser, $puserid, $pcat, $ptitle, $photo, $pviews) = mysql_fetch_array($result)) { <br /><br />and<br /><br />mysql_free_result($result); [/]<br /><br />thats not the line in question.. those only respond to the query.. whats the query above those lines?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#284401 - 06/04/05 01:55 AM Re: PhotoPal 1.4 [Re: 234234]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
//<br />// Featured Photos Code<br />// Follow down to End Feature Photos Code<br />//<br /><br />// which type of images do you want to show<br />$q_switch = "random";<br /><br />switch ($q_switch) {<br /> case "most_view":<br /> $query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views <br /> FROM {$pp_db_prefix}photos p <br /> LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat <br /> WHERE c.password = '' <br /> ORDER BY c.views DESC";<br /> break;<br /> case "lastest":<br /> $query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views <br /> FROM {$pp_db_prefix}photos p <br /> LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat <br /> WHERE c.password = '' <br /> ORDER BY date DESC";<br /> break;<br /> case "random":<br /> $query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views <br /> FROM {$pp_db_prefix}photos p <br /> LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat <br /> WHERE c.password = '' <br /> ORDER BY RAND()";<br /> break;<br />}<br />$result = mysql_query($query);<br /><br />$counted = 0; $featured = "";<br /><br />while ( list($pid, $puser, $puserid, $pcat, $ptitle, $photo, $pviews) = mysql_fetch_array($result)) { <br /> if ( pp_is_image($photo) ) {<br /> $photolen = strlen($photo);<br /> $theext = pp_get_ext($photo);<br /> $photo_name = str_replace( $theext, "", $photo );<br /> <br /> $temp_user = $line['userid'];<br /> $thumbtag = "{$full_path}{$pcat}/thumbs/{$photo}";<br /> $mthumb = "<img border=\"0\" src=\"{$data_dir}{$pcat}/thumbs/{$photo}\" alt=\"$thumbtag\" />";

Top
#284402 - 06/04/05 11:55 AM Re: PhotoPal 1.4 [Re: statusblue]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
so then this is the actual query that is giving you problems<br /><br /> $query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views<br />FROM {$pp_db_prefix}photos p<br />LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat<br />WHERE c.password = ''<br />ORDER BY RAND()";<br />break;<br />}<br /><br />so in a sql window try running<br /><br /><br />SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views<br />FROM pp_photos p<br />LEFT JOIN pp_categories c ON c.id=p.cat<br />WHERE c.password = ''<br />ORDER BY RAND()";<br />break;<br />}<br /><br />pp_ is whatever YOUR table PREFIX is
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#284403 - 06/04/05 12:05 PM Re: PhotoPal 1.4 [Re: 234234]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
SQL Error.. see next post

Top
#284404 - 06/04/05 12:15 PM Re: PhotoPal 1.4 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Ok I found it.. I get an SQL error..<br /><br />"You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ";break;}' at line 1

Top
#284405 - 06/04/05 04:36 PM Re: PhotoPal 1.4 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views<br />FROM pp_photos p<br />LEFT JOIN pp_categories c ON c.id=p.cat<br />WHERE c.password = ''<br />ORDER BY RAND()";<br />break;<br />}<br /><br />It seems to be the RAND() that is causing the problem. Also, it is not picking up the correct prefix for the database name.<br /><br />If I hard code those, then we start to see something working, but rather than thumbs I get links to the pictures, but then it tries to link to Chucks website at reef.<br /><br />See at www.bm3w.co.uk<br /><br />So now I have no idea why its trying to goto Chucks site, and is not displaying the thumbs...

Top
#284406 - 06/04/05 05:18 PM Re: PhotoPal 1.4 [Re: statusblue]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
BTW you did change these settings in the photopost.inc.php<br />right?<br /><br />$url_path = "http://www.reeftalk.com/ubbthreads/gallery"; //URL of your photo album, where the index.pl is (with / at end)<br />$data_dir = "URL/TO/PHOTOPOST/DATA/DIR/"; //URL of your photo dir where those jpeg stored (with / at end)<br /><br /><br />they should be pointed to YOU
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#284407 - 06/04/05 05:25 PM Re: PhotoPal 1.4 [Re: 234234]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Er...<br /><br />Yeah.. you know.. er...<br /><br /><blush><br /><br />I just fixed that and now the links work <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /><br />So.. all that is left now.. is that i dont have thumb pics... just links... no doubt ive cocked up elsewhere again <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#284408 - 06/04/05 05:59 PM Re: PhotoPal 1.4 [Re: General_Failure]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
[]smoknz28 said:<br />Featured Photos<br /><br />I'm not getting any pictures displayed on the sidebar. It just shows the title bar on the side that says Featured Photos.<br /><br />Mmm....any thoughts on this?<br /><br />You can view this at: www.f-bodyhideout.com/ubbthreads [/]<br /><br />Any ideas on the above quote?<br /><br />Thanks guys,<br />Gonzo

Top
#284409 - 06/05/05 02:36 AM Re: PhotoPal 1.4 [Re: statusblue]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
All is working ok now! Just need to work out how to reorg the layout!

Top
#284410 - 06/04/06 11:05 AM Re: PhotoPal 1.4 [Re: statusblue]
StanCA Offline
Power User

Registered: 07/01/02
Posts: 68
O, I will try again... <br /><br />IS there a way to have random photos, from photopost, show up in the top or bottom of a forum??<br /><br /><br />Thanks<br /><br />Stan

Top
Page 1 of 2 1 2 >


Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM