Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Guestbooks
Author Message
Nickman
Manager



Posts: 1,860
Joined: May 2008
Reputation: 37
Thanked 5 Times in 4 Posts
MyBux: 874
Post: #11
RE: User Guestbooks
(03-10-2009 01:48 PM)RhymeFront Wrote:  thx 4 the support...

Sorry I didn't notice it until now. I take it your USERGROUP is 4? Not an additional usergroup?

My Blog
03-11-2009 03:40 AM
RhymeFront
Junior Member


Posts: 5
Joined: Mar 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #12
RE: User Guestbooks
Its allright ;)... It runs now ^^... I was a litle pisst of sorry :)
Maybe you can help me ? But at first sorry 4 my bad english, i'm german.

I take some modifications on the gb.php. Know members becom a PM when they have a new Entry in there guestbook, but it don't show the "Stripe" under the Header where you become the info that you get a new Message. It only shows the Number of new PM's. I show you :

PHP Code:
$do=$db->query("INSERT INTO ".TABLE_PREFIX."usergb SET posterdid='$mid',memberid='$id',message='$comment'");
    if (
$do)
    {
    
$sqlarray = array(
            
'uid' => $uid,
            
'fromid' => 3,
            
'toid' => $uid,
            
'folder' => 1,
            
'subject' => "Neuer Gaestebuch-Eintrag",
            
'message' => "Du hast einen neuen Eintrag in deinem Gaestebuch!",
            
'dateline' => time(),
            
'status' => 0,
            
'includesig' => 'no',
            
'smilieoff' => 'no',
            
'receipt' => 0
            
);
            
$db->insert_query("privatemessages"$sqlarray); 
        
$db->query("UPDATE ".TABLE_PREFIX."users SET unreadpms=unreadpms+1 WHERE uid='".$uid."';"); 
    

        
redirect("member.php?action=profile&uid=".$uid,"Dein Eintrag wurde erfolgreich hinzugefügt.");

    }
    }
}
}

(This post was last modified: 03-12-2009 01:49 PM by RhymeFront.)
03-12-2009 01:42 PM


Nickman
Manager



Posts: 1,860
Joined: May 2008
Reputation: 37
Thanked 5 Times in 4 Posts
MyBux: 874
Post: #13
RE: User Guestbooks
I would make sure that
PHP Code:
$db->query("UPDATE ".TABLE_PREFIX."users SET unreadpms=unreadpms+1 WHERE uid='".$uid."';"); 

is working.

My Blog
03-12-2009 02:00 PM
RhymeFront
Junior Member


Posts: 5
Joined: Mar 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #14
RE: User Guestbooks
no it don't work thats my problem...
03-12-2009 02:02 PM


xrum
Junior Member


Posts: 10
Joined: Mar 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #15
RE: User Guestbooks
works great! thank you!
03-13-2009 12:05 AM
RhymeFront
Junior Member


Posts: 5
Joined: Mar 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #16
RE: User Guestbooks
now it runs ;)
03-13-2009 12:21 AM


madshark
Member


Posts: 186
Joined: Feb 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 296
Post: #17
RE: User Guestbooks
nick is there a template that {$usergb} draws its formatting from ?? i cant see to find it...

"Real men don't use backups, they post their stuff on a public ftp server and let the rest of the world make copies"
04-12-2009 08:08 PM
Nickman
Manager



Posts: 1,860
Joined: May 2008
Reputation: 37
Thanked 5 Times in 4 Posts
MyBux: 874
Post: #18
RE: User Guestbooks
The template is in the file I believe.

My Blog
04-13-2009 08:25 AM


madshark
Member


Posts: 186
Joined: Feb 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 296
Post: #19
RE: User Guestbooks
ya found it .. thanks

"Real men don't use backups, they post their stuff on a public ftp server and let the rest of the world make copies"
04-13-2009 08:43 AM
Impulser360
Junior Member


Posts: 13
Joined: Apr 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #20
RE: User Guestbooks
Thanks for the support
04-15-2009 10:45 PM


 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Random user chooser Nickman 5 211 06-27-2009 02:54 PM
Last Post: paijoblaah
  BBCode User Title Nickman 7 237 05-16-2009 08:27 AM
Last Post: neowarf
  User Statistics Alexandru21 8 261 05-15-2009 07:52 AM
Last Post: Mizukin
  User Agent Plugin Nickman 2 174 05-01-2009 05:11 AM
Last Post: habs
  User BBCodes Nickman 4 146 04-30-2009 06:34 AM
Last Post: Dalton



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?




Theme created by AK-47. Find more great themes and skins at K! Dezign R1s.net