Author Topic: phpBB Private Messages Pop Up in 4images Gallerys  (Read 10419 times)

0 Members and 1 Guest are viewing this topic.

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
phpBB Private Messages Pop Up in 4images Gallerys
« on: May 20, 2003, 06:32:15 PM »
Mal hoffen das das das richtige Forum ist  :wink:

Kleines Mod für 4images+phpBB User:
phpBB User wollen ja alle einen Nachrichten PopUp in der Gallery oder?
Hier kurz und fein:
**********************************************************
Little Mod for 4images+phpBB Users:
phpBB Users want to have a private msgs PopUp their Gallery, won't they?
Look here, small and nice:

Finde in page_header.php / Find in page_header.php
Code: [Select]
//-----------------------------------------------------
//--- Register Global Vars ----------------------------
//-----------------------------------------------------
$total_images = 0;
$total_categories = 0;
$auth_cat_sql['auth_viewcat']['IN'] = 0;
$auth_cat_sql['auth_viewcat']['NOTIN'] = 0;
if (!empty($cat_cache)) {
  foreach ($cat_cache as $key => $val) {
    if (check_permission("auth_viewcat", $key)) {
      $total_categories++;
      if (isset($val['num_images'])) {
        $total_images += $val['num_images'];
      }
      else {
        $cat_cache[$key]['num_images'] = 0;
      }
      $auth_cat_sql['auth_viewcat']['IN'] .= ", ".$key;
    }
    else {
      $auth_cat_sql['auth_viewcat']['NOTIN'] .= ", ".$key;
    }
  }
}



Danach einfügen / Add after
Code: [Select]
if ( $user_info['user_new_privmsg'] ) //private messages
{

if ( $user_info['user_last_privmsg'] > $user_info['user_lastvisit'] )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_last_privmsg = " . $user_info['user_lastvisit'] . "
WHERE user_id = " . $user_info['user_id'];
$site_db->query($sql);

$s_privmsg_new = 1;

}
else
{
$s_privmsg_new = 0;

}
}
else
{
$s_privmsg_new = 0;

}


if ( !empty($user_info['user_popup_pm']) ){
?>

<script language="Javascript" type="text/javascript">

if (<?php echo $s_privmsg_new ?>)
{
window.open('/XXX/privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}

</script>

<?php
&#125;


XXX durch phpbb verzeichnis ersetzen oder z.B. http://www.meineseite.de/phpbb (evtl. Endung von privmsg.php anpassen)
**********************************************************
Replace XXX with your phpbb dir. or adjust to http://www.yoursite.com/phpbb

P.S.: Falls es das schon gibt, habe kein Mod dazu gefunden  :o

Offline tikle

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: phpBB Private Messages Pop Up in 4images Gallerys
« Reply #1 on: March 24, 2005, 09:42:30 PM »
i need this MOD, bat :

Parse error: parse error, unexpected $ in /var/www/web125/html/fotomir/includes/page_header.php on line 467

 :(


Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: phpBB Private Messages Pop Up in 4images Gallerys
« Reply #2 on: October 27, 2008, 10:36:14 AM »
Klappt das auch mit der aktuellen Version von phpbb und 4images?
---
   
Does it work well with the current version of phpbb and 4images?

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: phpBB Private Messages Pop Up in 4images Gallerys
« Reply #3 on: December 15, 2009, 02:03:40 PM »

Parse error: syntax error, unexpected $end in /home/arabcine/public_html/bi3.test/includes/page_header.php on line 527