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 - boxerbay

Pages: [1] 2
1
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 28, 2002, 12:18:10 AM »
@ Jan - Thanks Jan - that removed the link.  I am still stuck with the white backgraound.  I've tried everything even CSS.  Nothing works.  Here is my code from inside PostWrap:

<html>
<body bgcolor="#e5e5e5">
<p align="center">
<iframe  src="http://www.chphoto.net/chphoto/random.php" name="I1" width="100" marginwidth="0" height="100" marginheight="0" align="middle" scrolling="no" frameborder="0" vspace="0" style="color: grey" border="o" >
</iframe>

<a href="modules.php?op=modload&name=PostWrap&file=index&page=chphoto">CHPHOTO.NET</a>
</p>
</body>
</html>

But I think the color may need to be set in random.php
Here is my code:

<?php
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH', '../chphoto/');
define('SCRIPT_URL', 'http://www.chphoto.net/chphoto/');

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;
}

$sql = "SELECT COUNT(*) as total_images
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."
";
$row = $site_db->query_firstrow($sql);
$total_images = $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images > 1) ? mt_rand(0, $total_images - 1) : 0;

$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments
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."
LIMIT $number, 1";
$row = $site_db->query_firstrow($sql);
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : SCRIPT_URL.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];

echo "<Center><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a></Center><br>\n";

?>

2
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 24, 2002, 09:40:15 PM »
Jan can you help me out? I have random image but i want to change the white box to grey behind the images and I want to remove the link from the images.  I used Michi modified random image script.

Jan kann Sie mir heraus helfen?  ich haben gelegentliches Bild, aber ich möchte den weißen Kasten zum Grau hinter den Bildern ändern und ich möchte die Verbindung von den Bildern entfernen.

http://babelfish.altavista.com/tr  

Thanks.
PS: Great Script!!! I plan on sending you a donation as soon as I get all the problems worked out. You deserve it!

3
Mods & Plugins (Releases & Support) / any help?
« on: November 24, 2002, 09:29:25 PM »
any help?

5
Feedback & Suggestions / postnuke to phpbb to 4images
« on: November 19, 2002, 02:18:58 AM »

6
Mods & Plugins (Releases & Support) / Postnuke to phpBB2 to 4images
« on: November 19, 2002, 02:12:39 AM »
Jan,
I tried it and I think I am VERY close to integrating all three.  Here's what I did.  
First I installed Postnuke.  http://www.postnuke.com

Then I installed the phpbb 2 postnuke module http://phpbb2pnmod.sourceforge.net/index.php

Got those to work fine then I did a fresh install of 4images and the integration to phpbb mod.

IT WORKS!!!  well sort of.  A few bugs that I don't think are major but unfortunately I am not a PHP'er. :(

For it to work you need to log into to POSTNUKE first.  For testing use login: tester1 password: 123456

As you can see it logs you in to postnuke but if you go to paparazzi pics (upper right block) it takes you in to 4images but you are not logged in.

BUT... if you go into the phpbb forum first then go back to the paparazzi pics it has logged you in!!!  yay!

So that's my first problem and also I have noticed that it gives an error if you try to log out from 4images.  This could be solved by eliminating the log in / log out feature in 4images since postnuke should be the one controlling the log in / out.  

Ideally I would like to have postnuke user table as the primary user table.

I hope you can help out because that would be VERY cool to get all three working.

7
Jan the man!
Ok first they are all fresh installs.  I have a postnuke site with phpbb integrated on it.  see sourceforge.com phpbb2postnuke mod. Question: Can I now add 4 images to the same database then edit the files as shown in the install notes and it will work?  Please advise if possible before I go insane attempting this.  I am a newbie but so far so good I got postnuke and phpbb to work together but now I want to add 4images to it also.  Please help.
Thanks.
 :lol:

8
Mods & Plugins (Requests & Discussions) / top images on index page
« on: November 10, 2002, 04:54:05 AM »
help please.

9
Discussion & Troubleshooting / error deleting image from server
« on: November 10, 2002, 04:52:49 AM »
here is my error message
Delete: Image  
  No entries found.
 
 


[Back to overview]

10
Discussion & Troubleshooting / anybody?
« on: November 08, 2002, 12:46:54 AM »
help

11
how do i show on index.php top image by rating, top image by votes, and top image by hits?  I am not too good at PHP so if possible please provide the code for the index.php page and the template home.php page.  I think bith need to be edited but I'm not sure. THANKS!

12
Discussion & Troubleshooting / deleteing images error
« on: November 06, 2002, 12:40:13 AM »
I am getting an error and I am unable to delete images from the server.
Here are my steps.  I go the pic i want to remove and hit delete.  I get the delete image confirm screen and select YES to delete image from server. Then i get no entries found.  I look in the images and it's still there.  How do I fix this?

13
Plugins / batch error
« on: November 02, 2002, 01:36:03 AM »
I get this error:

The data source path "/path/to/images/folder" seems to be incorrect!

what am i supposed to set this to?

14
Installation, Update & Configuration / problem resolved
« on: November 01, 2002, 05:49:22 PM »
ok i figured this one out.  Not sure about the rest of you guys but in my cpanel3 when a create a database and name it "photodbs" it actually gets named "domain_databasename" so in my case it's "chphoto_photodbs"  I hope that helps a lot of people as it caused my about 2 hours of frustration and a migrain from staring at source code.  

:)

15
any solution to this Couldn't open Template-Pack with cpanel??

Pages: [1] 2