PDA

View Full Version : vBPicGallery 10.0.5 Running on cpurigs.com


Pages : 1 2 3 [4]

wpwood3
12-06-2007, 11:31 PM
We need to see if it's throwing an error to the apache logs or the mysql logs. That's odd.

I have it two sites. Same server though.No errors in either.

It's weird because everything else is working perfectly.

Got any debug code you want me to try?

Greg
12-06-2007, 11:33 PM
You're getting the same image every time? Is there more than one image? I hadda ask. LOL

wpwood3
12-06-2007, 11:35 PM
You're getting the same image every time? Is there more than one image? I hadda ask. LOLYes

On both of my servers I get the exact same image every time. Image#1 from Gallery#1.

Greg
12-06-2007, 11:38 PM
Sounds like the $random variable is always 0.

Find this line...
$random = mt_rand( $range_row->min_id , $range_row->max_id );

put this after it and see.
echo $random."<br />";

See if it's always 0. If so we move up one line and see why.

wpwood3
12-06-2007, 11:42 PM
Sounds like the $random variable is always 0.

Find this line...
$random = mt_rand( $range_row->min_id , $range_row->max_id );

put this after it and see.
echo $random."<br />";

See if it's always 0. If so we move up one line and see why.
Yep, it's 0 every time.

wpwood3
12-06-2007, 11:50 PM
Your new code did fix one thing.
I can now change the Featured Gallery in ACP and it gives me that gallery.
That was not working before.

The random gallery option "0" is still broken.

Greg
12-06-2007, 11:51 PM
I see why too. I went outside the $db-> scope of the mysql connection on your install apparently.

It was an oversight, probably from when I optimized the query. It's fixed in the download package.

Those two line need to look like...


$range_row = $db->fetch_array( $range_result );
$random = mt_rand( $range_row['min_id'] , $range_row['max_id'] );


Get the whole file out of the newly posted zip in the downloads section.

wpwood3
12-06-2007, 11:55 PM
I see why too. I went outside the $db-> scope of the mysql connection on your install apparently.

It was an oversight, probably from when I optimized the query. It's fixed in the download package.

Those two line need to look like...


$range_row = $db->fetch_array( $range_result );
$random = mt_rand( $range_row['min_id'] , $range_row['max_id'] );


Get the whole file out of the newly posted zip in the downloads section.
YOU DA MAN!!!:D:D:D:D

Greg
12-06-2007, 11:59 PM
I'm taking advantage of you, so that's good to hear. I would never have gotten so much working in the last two days if not for the second pair of eyes.

You have been great. I really appreciate it. Your feedback is solid.

Thanks

wpwood3
12-07-2007, 12:03 AM
I'm taking advantage of you, so that's good to hear. I would never have gotten so much working in the last two days if not for the second pair of eyes.

You have been great. I really appreciate it. Your feedback is solid.

ThanksNo...
Thank YOU!

I got the Gallery I wanted with the features I wanted!
It was like I had my own personal programmer on staff. ;)

bpt323
12-07-2007, 06:43 PM
any chance to expand on the search function, to include searching the user database for a specific member? keywords are nice. but in the event where a forum has many members modifying in the same way; it becomes a little less helpful.

also could you clairify if the new version incorporates the "lightbox" feature or is this something additional i have to add for my pictures to display better?

Greg
12-07-2007, 06:48 PM
Do you mean by keyword and by user x at the same time? Or Galleries by user x?

bpt323
12-07-2007, 06:57 PM
galleries by user, as a combination of both would be overkill. this would significantly ease browsing for users seeking to find 1 individual. as opposed to before, finding the user via searching through posts or member list then clicking another link to take you to their gallery. (or clicking through page after page in order to find them in the gallery listing) follow where im coming from?

Greg
12-07-2007, 07:36 PM
That is called a Hall in vBPicGallery. That's where the user is taken by the postbit link if it's enabled.

I'll look into adding something like the AJAX username thing when you go to type a recipient to a PM and go from there.

bpt323
12-07-2007, 08:01 PM
thanks, is the lightbox feature part of this or does it need to be added additionally?

Greg
12-07-2007, 08:19 PM
Lightbox is integrated in.