bs0d |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 5:48 pm on Jan 28 2007
|
|
|
 Member #: 1 Rank: Admin. - (1,510) Since: 02/06/05 Posts: 604 From: USA
|
|
Viewed: 18,771 Times | |  |
hafdis |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 8:27 pm on Jan 28 2007
|
|
|
Member #: 266 Rank: user - (4) Since: 01/28/07 Posts: 4 From: Iceland
|
yes i have been
trying this,
gonna try it
more 
|
Viewed: 18,761 Times | |  |
bs0d |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 9:12 pm on Jan 28 2007
|
|
|
 Member #: 1 Rank: Admin. - (1,510) Since: 02/06/05 Posts: 604 From: USA
|
Feel free to
ask any
questions about
how it works or
specific errors
you may occur
when you
combine the
code with your
site.
|
Viewed: 18,757 Times | |  |
ki |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 3:08 am on Jan 29 2007
|
|
|
 Member #: 204 Rank: user - (50) Since: 09/16/06 Posts: 53 From: Florida
|
bs0d
said...
<
i>
Feel free to
ask any
questions about
how it works or
specific errors
you may occur
when you
combine the
code with your
site.
well, are you
using it to
grab images
from a mysql
database, and
are you looking
for to do like
4 images then
new line?
|
Viewed: 18,752 Times | |  |
hafdis |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 11:01 pm on Jan 29 2007
|
|
|
Member #: 266 Rank: user - (4) Since: 01/28/07 Posts: 4 From: Iceland
|
Hi
I am not sure
about this, not
sure if this
photo plugin is
using mysql, i
have not setup
any mysql for
the gallery,
just for
wordpress
itself.
I got this
code
Code:
but i got no
clue how to use
this or where i
should put it,
can anyone help
me with this
|
Viewed: 18,730 Times | |  |
bs0d |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 11:41 pm on Jan 29 2007
|
|
|
 Member #: 1 Rank: Admin. - (1,510) Since: 02/06/05 Posts: 604 From: USA
|
By the looks of
it, you
haven't setup
the database
for anything...
unless you have
a table named,
"table&q
uot; -
I would say you
should read our
pagination
tutorial, you
can paginate
anything with
it. If you read
the tutorial
here you will
know how to use
it. I can help
answer
questions
better with my
code. It looks
like you just
copied the code
and pasted it
into your site,
even the
author's name
at the bottom.
You must set
the code up to
read from your
site.
|
Viewed: 18,723 Times | |  |
gravy |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 6:23 pm on Jun 10 2007
|
|
|
 Member #: 294 Rank: user - (63) Since: 03/07/07 Posts: 66 From: MN
|
You know I been
fighting with
pagination in
my members
galleries for
an age, and I
still don't
get it. I
don't know why
it is so tuff
for me. Like
right now I
have this
working at
imagerabbit:
Code:
<?
if
($_SESSION['lo
gged_in'] == 1
) {
$user =
$_SESSION['use
rname'];
$query =
"SELECT *
FROM files
WHERE
`username` =
'$user'"
;;
$result =
mysql_query($qu
ery) or
die(mysql_error
());
$column=1;
while($row =
mysql_fetch_arr
ay($result)){
if ($column==1)
{
//
Begin row in
table
echo
"<tr&g
t;";
}
// This loops
in the while()
statement to
get each result
from the
database.
?>
<td>
<?php echo
$value->numb
er;
echo
"<a
href='".
$_CONFIG['site
_url']."
gallery.php?ent
ry=images/&quo
t;.$row['image
']."'
target='_blank
'><img
src='".$
_CONFIG['site_
url']."t
humbs/".$
row['image'].
"'
border='0'>
;</a>&qu
ot;;
?>
&
nbsp;
</
td>
<?
$column++;
// When you've
looped enough,
end the row.
if ($column==6)
{
echo
"</tr&
gt;";
$column=1;
}
}
}
?>
I know, this is
not the best
way of doing
things and this
is simple right
off the bat.
Query the DB
grab the
results, and
put it in
columns so it
is uniform.
Looks nice, but
some of my
members have
120 photos
hosted and it
takes forever
to get all the
photos
displayed.
So I have read
the tutorial
and it all
makes sense,
(Awesome Job
Bs0d), but if I
impliment the
pagination
codes where
they should be,
everything goes
haywire.
I need thoughts
suggestions,
and help with
this, so call
me stupid, but
I want to hear
from you
guys.
Also, this
website is a
help paradise,
everyone should
get involved to
help and
discuss coding
just like this.
Bs0d has done
an outstanding
job with this
website and the
guy really
cares, so lets
discuss shall
we....
Photo Hosting
Scripts? It's
what I do.... |
Viewed: 17,741 Times | |  |
gravy |
Subject: "re: Pagination
in photo
gallery"
Posted: @ 10:55 pm on Jun 23 2007
|
|
|
 Member #: 294 Rank: user - (63) Since: 03/07/07 Posts: 66 From: MN
|
gravy
said...
<
i>
You know I been
fighting with
pagination in
my members
galleries for
an age, and I
still don't
get it. I
don't know why
it is so tuff
for me. Like
right now I
have this
working at
imagerabbit:
<BR><f
ont
size=1><u
>Code:</u
><BR>&
lt;div
name="div
_box"
class="di
vCode">
;
<?
if
($_SESSION['lo
gged_in'] == 1
) {
$user =
$_SESSION['use
rname'];
$query =
"SELECT *
FROM files
WHERE
`username` =
'$user'"
;;
$result =
mysql_query($qu
ery) or
die(mysql_error
());
$column=1;
while($row =
mysql_fetch_arr
ay($result)){
if ($column==1)
{
//
Begin row in
table
echo
"<tr&g
t;";
}
// This loops
in the while()
statement to
get each result
from the
database.
?>
<td>
<?php echo
$value->numb
er;
echo
"<a
href='".
$_CONFIG['site
_url']."
gallery.php?ent
ry=images/&quo
t;.$row['image
']."'
target='_blank
'><img
src='".$
_CONFIG['site_
url']."t
humbs/".$
row['image'].
"'
border='0'>
;</a>&qu
ot;;
?>
&
nbsp;
</
td>
<?
$column++;
// When you've
looped enough,
end the row.
if ($column==6)
{
echo
"</tr&
gt;";
$column=1;
}
}
}
?>
I know, this is
not the best
way of doing
things and this
is simple right
off the bat.
Query the DB
grab the
results, and
put it in
columns so it
is uniform.
Looks nice, but
some of my
members have
120 photos
hosted and it
takes forever
to get all the
photos
displayed.
So I have read
the tutorial
and it all
makes sense,
(Awesome Job
Bs0d), but if I
impliment the
pagination
codes where
they should be,
everything goes
haywire.
I need thoughts
suggestions,
and help with
this, so call
me stupid, but
I want to hear
from you guys.
Also, this
website is a
help paradise,
everyone should
get involved to
help and
discuss coding
just like this.
Bs0d has done
an outstanding
job with this
website and the
guy really
cares, so lets
discuss shall
we....
I figured this
out finally,
came to me this
morning.
Awesome.
Photo Hosting
Scripts? It's
what I do.... |
Viewed: 17,638 Times | |  |
Viewing Page: 1 of 1 |
|