4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2014, 04:02:02 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [MOD] PM to owner of image when Comment ist posted
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 2 [3] Print
This topic has not yet been rated!
Author Topic: [MOD] PM to owner of image when Comment ist posted  (Read 33567 times)
Zyga
Jr. Member
**
Offline Offline

Posts: 87

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #30 on: April 07, 2006, 05:05:07 PM »

oh, you are right.

you should use:
if ($image_row['user_id']) {
   here whole code from first page
}

$image_row['user_id'] is the image owner's user_id

hmmmm i dont understeand   Crying or Very sad
it takes user_id field not comments_to_pm and (correct me if im wrong) it takes it from image table not users
Logged
Frobman
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #31 on: May 13, 2006, 11:55:13 AM »

Quote  [Expand]
but again i have problem

i receive PM but when i click on it
site works but over i see


Quote
DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0)
You have an error in your SQL syntax near 'AND (pm_type = 2 OR pm_type = 0)' at line 3

please help !
code is like it was :/ i change nothing

i dont know with one code fragment should i paste here

@Zyga: how did you solve the problem? (i´ve the same Error-Message)

Thx Frobman
Logged
Zyga
Jr. Member
**
Offline Offline

Posts: 87

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #32 on: May 13, 2006, 04:06:03 PM »

Quote  [Expand]
but again i have problem

i receive PM but when i click on it
site works but over i see


Quote
DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0)
You have an error in your SQL syntax near 'AND (pm_type = 2 OR pm_type = 0)' at line 3

please help !
code is like it was :/ i change nothing

i dont know with one code fragment should i paste here

@Zyga: how did you solve the problem? (i´ve the same Error-Message)

Thx Frobman

sorry but I do nothing it just start works few days later
I dont know how can I help
Logged
ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 28


View Profile WWW
« Reply #33 on: February 28, 2007, 12:56:51 AM »

hi zusammen,
wäre es möglich bei pm_from anstatt immer den admin zu nehmen
die entsprechende id des absenders zu nehmen?

und wenn es ein gast ist, auch gast im der kopfzeile erscheint....

gruss ivan
Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
impss
Sr. Member
****
Offline Offline

Posts: 382

Thank You
-Given: 5
-Receive: 9


View Profile WWW
« Reply #34 on: February 28, 2007, 04:08:39 AM »

Im getting this error as others have

1
2
DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (pm_type = 2 OR pm_type = 0)' at line 3

any help?

thanks
Logged

Flo2005
Full Member
***
Offline Offline

Posts: 237

Thank You
-Given: 0
-Receive: 0

Copy & Paste Profi :)


View Profile WWW
« Reply #35 on: February 28, 2007, 06:39:09 AM »

Im getting this error as others have

1
2
DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (pm_type = 2 OR pm_type = 0)' at line 3

any help?

thanks

Which PHP Version is running on your server?

I´ll remember  Confused you have to change something in pm.php when you´re running PHP5
Logged


Project offline
ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 28


View Profile WWW
« Reply #36 on: February 28, 2007, 07:02:52 AM »

correct this part:

$pm_from = 0; //Hier bitte die user_id vom Absender angeben
Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
impss
Sr. Member
****
Offline Offline

Posts: 382

Thank You
-Given: 5
-Receive: 9


View Profile WWW
« Reply #37 on: February 28, 2007, 07:05:25 AM »

Yea.. im running PhP5

correct this part:

$pm_from = 0; //Hier bitte die user_id vom Absender angeben
'

do i change that to a 1?
Logged

ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 28


View Profile WWW
« Reply #38 on: February 28, 2007, 07:29:55 AM »

your user_id

Wink
Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
impss
Sr. Member
****
Offline Offline

Posts: 382

Thank You
-Given: 5
-Receive: 9


View Profile WWW
« Reply #39 on: February 28, 2007, 03:26:27 PM »

Thank you it looks to be working. And Thanks for the quick responce
 Cool


Is there any way to change it so the Pm is sent from the commenter?
Logged

Jan-Lukas
Addicted member
******
Offline Offline

Posts: 1209

Thank You
-Given: 134
-Receive: 39


View Profile WWW
« Reply #40 on: June 02, 2007, 01:25:31 AM »

hi zusammen,
wäre es möglich bei pm_from anstatt immer den admin zu nehmen
die entsprechende id des absenders zu nehmen?

und wenn es ein gast ist, auch gast im der kopfzeile erscheint....

gruss ivan

Hbe es mir auch gerade eingebaut, und finde auch das dort die ID des Absenders reingehört.
Über eine Lösung würde ich mich freuen

Danke
Harald
Logged

Danke Harald

Pages: «« « 1 2 [3] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos
Page created in 0.275 seconds with 19 queries.
Post your comments here