php forum
php mysql forum
php mysql smarty
 
Page 2 of 5 < 1 2 3 4 5 >
Topic Options
#268376 - 01/30/04 01:41 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: Kelly]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I haven't used this yet, but does it allow me to browse the photo categories to find photos quicker? I have 50 galleries and some users have hundreds of photos. So any way to browse the photos quicker would be cool. Also it would be cool if they could use any photo in this. What I mean is not just thier photos (that they themselves have uploaded to their member galleries or public galleries), but all photos in their personal gallery (not other members galleries) and all photos in the public galleries, regardless of who posted them.
_________________________
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
#268377 - 01/30/04 02:02 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: luan]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Steelhead<br /><br />At the top of that file you need to have the information to connect to photopost database. Try putting the select threads database at the bottom of the file or try it without it since it operates in another window.<br /><br />Don Julio<br /><br /> This mod only pulls your photo's however if you look at the query I am sure you can adjust things to your liking. I beleive the default is ORDER BY date DESC
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268378 - 01/30/04 02:14 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Chuck ... I tried with out and with it at bottom.. no luck<br /> I have the database stuff at the top. <br /><br />BTW steelhead is the other guy, but I knew you meant me <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#268379 - 01/30/04 04:29 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: Kelly]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Marty,<br /><br /> Ok If the username and password to access the first database are the same you can just put this before the query in pppanel.php<br /><br />mysql_select_db ("DATABASENAME")or die("Could not select database");
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268380 - 01/30/04 04:53 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
is the database named changed to match my sites? If so I got errors again.<br /><br />SQL ERROR: Database error only visible to forum administrators<br /><br />Warning: Supplied argument is not a valid MySQL result resource in /home2/www/steelheader/ubbthreads/mysql.inc.php on line 133<br />SQL ERROR: Database error only visible to forum administrators<br /><br />Warning: Supplied argument is not a valid MySQL result resource in /home2/www/steelheader/ubbthreads/mysql.inc.php on line 160<br /><br />Warning: Supplied argument is not a valid MySQL result resource in /home2/www/steelheader/ubbthreads/mysql.inc.php on line 133

Top
#268381 - 01/30/04 05:13 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: Kelly]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
You have to reselect your Threads database at the bottom.
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#268382 - 01/30/04 05:35 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
It seems, that many people have trouble with the databaseswitching. It would be fine to put another modified file in your archiv with sample settings for people who have installed in seperate default databases.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#268383 - 01/31/04 01:03 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: landyphil]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Chuck, this looks like an awesome hack and I'm trying to get it implemented. <br /> <br />I'm running into an issue with this hack however and I'm sure it's something simple. <br /> <br />- A user clicks on post or reply. <br />- User clicks on the "Insert My Photos into Post" <br />- The users is shown the infamous red x with boxes that are suppose to show his/her photos. <br /> <br />I did not continue hacking into the showflat.tmpl or showthreaded.tmpl files as I don't use the quick reply hack. <br /> <br />Also, I'm assuming I'm to upload the pppanel.php file into the ubbthreads directory. <br /> <br />Now, a little background. <br /> <br />I'm running two seperate databases. One for my ubbthreads and one for the photopost. <br /> <br />I added the same user from ubbthreads to my photopost database. So that the same user can share the database. <br /> <br />I've tried following some of the thread here, but get a bit lost. <br /> <br />Any help on this is greatly appreciated. <br /> <br />[]http://members.cox.net/gonzo_family/misc/myphotos_error.gif[/]
_________________________
F-Body Hideout
Project Speedy

Top
#268384 - 01/31/04 01:16 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: General_Failure]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
I've added this code as I read above: <br /> <br />// Selecting the PhotoPost Database <br />[:"red"]mysql_select_db ("smoknz28_photopost")or die("Could not select database");[/] <br /> <br />$query = "SELECT id,cat,title,bigimage,medsize FROM {$pp_prefix}photos WHERE userid = {$user['U_Number']} ORDER BY date DESC LIMIT $page,16"; <br />$result = mysql_query($query); <br />$sth = $dbh -> do_query($query); <br />$numrows = $dbh -> total_rows($sth); <br /> <br />But I'm having the same results.
_________________________
F-Body Hideout
Project Speedy

Top
#268385 - 01/31/04 04:54 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: General_Failure]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
What is this setting?<br /><br />$data_dir="";
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268386 - 01/31/04 09:59 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
I'm just curious. Could the js for the photopanel conflict with the js for the font colors? My font colors no longer render on the posting form. Example here.
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
#268387 - 01/31/04 10:05 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: ]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Anything is possible.<br /><br />However I would double check your hacking first.<br /><br />There are multiple instances of defined functions under that script call and the only thing broken is your colors.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268388 - 01/31/04 11:25 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
[]Omegatron said: <br />What is this setting? <br /> <br />$data_dir=""; [/] <br /> <br />Yea, I was a bit confused on this one as I wasn't sure where I should point this to as the jpeg files are stored in seperate subdirectories off of the data directory. <br /> <br />$data_dir = "http://www.f-bodyhideout.com/gallery/data/" ; //URL of your photo dir where those jpeg stored (with / at end)
_________________________
F-Body Hideout
Project Speedy

Top
#268389 - 01/31/04 11:34 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: General_Failure]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Well there is your problem. Your data path is not correct<br /><br />I view one of your thumbs and get this as your data path<br /><br />http://www.f-bodyhideout.com/ubbthreads/gallery/data/
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268390 - 01/31/04 11:42 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Duhhhh....damn, do you ever get tired of dealing with knuckle-heads like me?? <img src="http://www.ubbdev.com/forum/images/graemlins/doah.gif" alt="" />
_________________________
F-Body Hideout
Project Speedy

Top
#268391 - 01/31/04 11:52 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: General_Failure]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I just smile a bit thats all <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268392 - 01/31/04 12:27 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
<img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
_________________________
F-Body Hideout
Project Speedy

Top
#268393 - 01/31/04 04:24 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
I'll check my hacking. On another note, if you are not logged in and click the My Photos, it throws mysql errors because there's no unumber. So, there needs to be a check for valid user so it doesn't throw the errors. But, awesome hack at any rate. Thanks for the hack Michael.
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
#268394 - 01/31/04 06:44 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: ]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Do you allow anonymous posting?<br /><br />Just checking cause if you have quick reply mod installed and you have no right to post thus the quick reply does not show so the my photos link would not work<br /><br />Also in your posting screens if you have no photos it says you have no photos<br /><br />So I am assuming that you allow anonymous posting?
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#268395 - 01/31/04 07:30 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
Yes, I do allow anonymous posts of messages, but not uploading of any sort. I don't use the quick reply and thus don't have it installed. Yes, it does say that you have no photos, but not until it throws out the mysql errors when not logged in.
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
Page 2 of 5 < 1 2 3 4 5 >


Moderator:  Ian_W 
Who's Online
0 registered (), 24 Guests and 8 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
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks