Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - seastorm42

Pages: [1] 2 3
1
Mods & Plugins (Requests & Discussions) / Well.... still needing help
« on: February 20, 2003, 09:02:54 PM »
Still having some problems with this little project.  It seems to update on some servers and not others. Not exactly sure...

also when the blog goes to an archive page, it loses the pictures... any php gurus that wish to help would be greatly appreciated!

2
I'd like any advice anyone has to give about using the following  as a php include to cause a Movable Type blog to show the last 5 new thumbs from a 4images gallery.

Quote
<?php
define('ROOT_PATH', '../gallery/');
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');

$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}

$num_images = 5;

$sql = "SELECT a.image_id, a.image_date, a.cat_id, a.image_name, a.image_active, a.image_thumb_file
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
WHERE a.image_active=1
AND a.cat_id = b.cat_id
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."
ORDER BY a.image_date DESC
LIMIT $num_images";
$result = $site_db->query($sql);

while ($row = $site_db->fetch_array($result)){
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
#$image_name = $row['image_name'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];


echo "<center><table><tr><td width=120 align=center><a href=\"".ROOT_PATH."details.php?image_id=$image_id\"><br/><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br></td><td class=main_td valign=top><b>$image_name</b></td></td></table></center>\n";
}
?>


I installed it on my index.php blog page with an include and it showed the last 5 images wonderfully...  but when i added a new photo to the gallery it didn't show up... I can't figure out why.  

Any ideas?

3
Mods & Plugins (Requests & Discussions) / Hmmmm.....
« on: December 21, 2002, 10:34:19 PM »
tried that on a friends gallery. It didn't work.  But I had no problems with the other method... Thanks anyway.

4
Mods & Plugins (Requests & Discussions) / functions.php ??
« on: December 20, 2002, 09:11:24 PM »
Hmmm... as far as I can tell I don't see a "fuctions.php" file in my 4images directory anywhere...  maybe I'm blind though...

Becky

5
Mods & Plugins (Requests & Discussions) / Thank you!
« on: December 10, 2002, 06:06:50 PM »
This worked great!

My contributors will love this!

THANK YOU!

6
Templates & Styles (Requests & Discussions) / Member options won't stay set
« on: December 10, 2002, 05:06:43 PM »
I have my site www.image-cafe.net running through one of the www.vierstra.com templates (modified) but I have ver 1.7 installed of 4images.  

I've tried to set the USER SETTINGS through the control panel, such as "Allow users to edit their own images" etc. I've set them to YES allow users to edit, delete, etc.  Saved it but everytime I exit and come back into the program it's reset back to NO for all those selections.   :?:

I'm thinking this might be due to the template being built for an older ver of 4images??  

Any suggestions what files i need to update in the 4ROUND template to make it ver 1.7 compliant??

7
Mods & Plugins (Requests & Discussions) / Email about comments
« on: December 10, 2002, 04:59:49 PM »
Is it possible to have the site email the person who posted the image whenever someone adds a comment to one of the images they have uploaded?   :?:

8
Mods & Plugins (Requests & Discussions) / Thank you!
« on: December 10, 2002, 04:58:20 PM »
Yes thank you so much. I've added that to the index.php file. Worked like a charm.

9
Discussion & Troubleshooting / Banning IPs and/or users email
« on: December 06, 2002, 06:48:49 AM »
Is there a way to ban a certain email address/ ip address from registering and gaining access to a 4images gallery??? (without making the registration depend on webmaster approval for each and every new person?)

10
Mods & Plugins (Requests & Discussions) / THANK YOU!
« on: December 02, 2002, 10:13:15 PM »
Thank you so much. That worked perfectly! Saves me so much work trying to figure out which images to keep after several months!

I appreicate your tips!!!

11
On the categories.php pages that come up when you select a certain catgegory that contains all the thumbs ....

I'd like to add the download count underneath HITS on my category pages so all at one glance I can see how popular which images are.

Can someone please help me with this???  I'm pretty good at following instructions if someone can tell me where to add the codes.

Thanks,
Becky

12
Installation, Update & Configuration / Don't shoot me for asking...
« on: November 11, 2002, 11:21:25 PM »
Please don't shoot me for asking this.... But... do you know of another free PHP software similar to 4images that WOULD work in that situation?  I really hate to disappoint her.  



B

13
Installation, Update & Configuration / ???
« on: November 11, 2002, 03:23:24 PM »
I wanted to help this friend install 4Images and when I told her to check to make sure they supported MYSQL and PHP this is the message we received

Quote
We have php version 4.2.2 We do not support mysql only sql 2000


So I'm wondering if I should try to install it for her or not....

Becky

14
Installation, Update & Configuration / ANYONE?????
« on: November 11, 2002, 06:09:54 AM »
I could really use some help with this.... anyone?

15
Installation, Update & Configuration / MY SQL Question
« on: November 09, 2002, 06:27:11 AM »
Will 4images run on sql 2000 ???

Pages: [1] 2 3