Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Invalid]: extract member emails  (Read 4904 times)

0 Members and 1 Guest are viewing this topic.

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
[Invalid]: extract member emails
« on: November 24, 2008, 06:44:11 pm »

Hello everyone...
I have "Coppermine Photo Gallery v1.4.18:"  I have 2 seperate data bases.  I have the script to extract the emails from the 1st gallery but not from the second, can someone point me in the right direction?

The directory is www.korentertainment.net/gallery2

Thanks in advance
« Last Edit: January 23, 2009, 08:40:41 am by Joachim Müller »
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: extract member emails
« Reply #1 on: November 24, 2008, 08:24:52 pm »

The first thing you need to do is upgrade to the latest revision

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade_why

Logged
It is a mistake to think you can solve any major problems just with potatoes.

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #2 on: January 15, 2009, 02:43:39 am »

ok it is now updated.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: extract member emails
« Reply #3 on: January 15, 2009, 09:38:00 am »

You need to change your script to use the database name/user/password of your second gallery

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #4 on: January 16, 2009, 02:48:44 pm »

Ok I have no clue as to how to do that.
I do not know anything about php.

Can U pont out what I am to do?
Logged

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #5 on: January 16, 2009, 02:53:28 pm »

This is all I see.

I have 2 galleries,
first one is http://korentertainment.net/gallery
Second one is http://korentertainment.net/gallery2

Quote
<?php
define('IN_COPPERMINE', 1);
require 'include/init.inc.php';

$test = CPG_db_query("SELECT DISTINCT(user_email) FROM {$CONFIG['TABLE_USERS']} WHERE user_email <> ''");
while ($row = mysql_fetch_assoc($test))
echo $row['user_email'] . "<br />";
?>
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: extract member emails
« Reply #6 on: January 16, 2009, 03:00:29 pm »

copy the file into your 2nd galleries root and call it with your webbrowser... that should do

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #7 on: January 16, 2009, 09:27:33 pm »

I did that long ago and it didn't work.
Logged

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #8 on: January 16, 2009, 09:29:34 pm »

copy the file into your 2nd galleries root and call it with your webbrowser... that should do
This is the message I'm getting

Quote
Not in Coppermine...
Fatal error: Call to undefined function: cpg_db_query() in /home/content/a/r/w/arwilliams/html/gallery2/view-user-email.php on line 5
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: extract member emails
« Reply #9 on: January 16, 2009, 10:07:53 pm »

try that

Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require 
'include/init.inc.php';

$test cpg_db_query("SELECT DISTINCT(user_email) FROM {$CONFIG['TABLE_USERS']} WHERE user_email <> ''");
while (
$row mysql_fetch_assoc($test))
echo 
$row['user_email'] . "<br />";
?>

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #10 on: January 18, 2009, 12:00:56 am »

I tried that and it extracted one email address "admin@mail.com"
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: extract member emails
« Reply #11 on: January 18, 2009, 10:59:33 am »

Your code... I just changed the function name to a valid one (one that exists).

Nevertheless it works for me.

Nibbler

  • Guest
Re: extract member emails
« Reply #12 on: January 18, 2009, 05:05:16 pm »

That gallery is bridged. You need to be extracting the emails from the forum not from Coppermine.
Logged

KOREntertainment

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: extract member emails
« Reply #13 on: January 21, 2009, 06:53:35 pm »

I'm assuming that I have to go to the support forum for my message board for that right?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: extract member emails
« Reply #14 on: January 23, 2009, 08:40:02 am »

Right.
Marking thread as "invalid".
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.