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

Pages: 1 2 [3] 4 5 6 7
31
Mods & Plugins (Requests & Discussions) / Private nachrichten
« on: May 02, 2003, 02:47:38 PM »
Quote from: Cr@zy Sash
v@no und ich haben einen Mod geschrieben. Schau dort mal.


ach in verbindung mit phpbb ????

32
Mods & Plugins (Requests & Discussions) / mmmm
« on: May 02, 2003, 02:38:46 PM »
Quote from: party-cam.org
die benachrichtigung.php muss im PHPBB verzeichnis liegen


Innerhalb der Homepage funzt es aber nicht.....geht kein poup auf.....

33
Mods & Plugins (Requests & Discussions) / Private nachrichten
« on: May 02, 2003, 02:32:22 PM »
Quote from: party-cam.org
die benachrichtigung.php muss im PHPBB verzeichnis liegen


Dort funzt sie einwandfrei....geht sofort n popup auf wenn ich sie aufrufe

34
Mods & Plugins (Requests & Discussions) / UPS
« on: May 02, 2003, 02:26:46 PM »
Quote from: party-cam.org
die benachrichtigung.php muss im PHPBB verzeichnis liegen


ups...ich hatte sie ins 4images verzeichnis rein...peinlich....mom probiere es mal aus...

35
Mods & Plugins (Requests & Discussions) / Private nachrichten
« on: May 02, 2003, 02:15:43 PM »
Quote from: party-cam.org
funktioniert die benachrichtigung.php auch nicht wenn sie driekt aufgerufen wird, d.h. nicht per iframe bzw. auch <?php echo "/board/privmsg.".$phpEx."?mode=newpm" ?> angepasst?


nein dann bekomme ich folgenden Fehler :

Fatal error: Call to undefined function: session_pagestart() in /homepages/3/d75848838/htdocs/main/foto-place/benachrichtigung.php on line 10

hier mal mein Quelltext von benachrichtigungs.php

<?php
define('IN_PHPBB', true);  

$site_root_path = 'http://www.foto-place.de/';//site path
$phpbb_root_path = '../forum/'; //forums path
include($phpbb_root_path . 'extension.inc');  
include($phpbb_root_path . 'common.php');  
include($phpbb_root_path . 'config.php');  

$userdata = session_pagestart($user_ip, PAGE_INDEX);  
init_userprefs($userdata);

if($userdata['session_logged_in']){//logged in

if ( $userdata['user_new_privmsg'] )//private messages
    {
        $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];  
        $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);  

        if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
        {
            $sql = "UPDATE " . USERS_TABLE . "
                SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
                WHERE user_id = " . $userdata['user_id'];
            if ( !$db->sql_query($sql) )
            {
                message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
            }

            $s_privmsg_new = 1;
            $icon_pm = $images['pm_new_msg'];
        }
        else
        {
            $s_privmsg_new = 0;
            $icon_pm = $images['pm_no_new_msg'];
        }
    }
    else
    {
        $l_privmsgs_text = $lang['No_new_pm'];

        $s_privmsg_new = 0;
        $icon_pm = $images['pm_no_new_msg'];
    }

    if ( $userdata['user_unread_privmsg'] )
    {
        $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];  
        $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);  
    }
    else
    {
        $l_privmsgs_text_unread = $lang['No_unread_pm'];
    }
}


//Private Message Hack by AJQuick.com
if ( !empty($userdata['user_popup_pm']) ){
?>
<script language="Javascript" type="text/javascript">
<!--
    if (<?php echo $s_privmsg_new ?>)
    {
        window.open('<?php echo "/forum/privmsg.".$phpEx."?mode=newpm" ?>', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    }
//-->
</script>
<?php
}
//Change the path to forums to approbriate name
?>

36
Mods & Plugins (Requests & Discussions) / Es funzt net
« on: May 02, 2003, 01:58:25 PM »
Quote from: party-cam.org
ok
habs nun anders gelöst:

Code: [Select]
<iframe width="1" height="1" src="benachrichtigung.php" ></iframe>
in footer.html einfügen.

und benachrichtigung.php so erstellen:

Code: [Select]
<?php
define
&#40;'IN_PHPBB', true&#41;; 

$site_root_path '/';//site path
$phpbb_root_path '../board/'//forums path 
include&#40;$phpbb_root_path . 'extension.inc'&#41;; 
include&#40;$phpbb_root_path . 'common.php'&#41;; 
include&#40;$phpbb_root_path . 'config.php'&#41;; 

$userdata session_pagestart&#40;$user_ip, PAGE_INDEX&#41;; 
init_userprefs&#40;$userdata&#41;;

if&#40;$userdata['session_logged_in'&#93;&#41;&#123;//logged in

if &#40; $userdata['user_new_privmsg'&#93; &#41;//private messages
&#123;
$l_message_new = &#40; $userdata['user_new_privmsg'&#93; == 1 &#41; ? $lang['New_pm'&#93; &#58; $lang['New_pms'&#93;; 
$l_privmsgs_text sprintf&#40;$l_message_new, $userdata['user_new_privmsg'&#93;&#41;; 

if &#40; $userdata['user_last_privmsg'&#93; > $userdata['user_lastvisit'&#93; &#41;
&#123;
$sql "UPDATE " USERS_TABLE "
SET user_last_privmsg = " 
$userdata['user_lastvisit'&#93; . " 
WHERE user_id " . $userdata['user_id'&#93;;
if &#40; !
$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, 
$sql&#41;;
&#125;

$s_privmsg_new = 1;
$icon_pm = $images['pm_new_msg'&#93;;
&#125;
else
&#123;
$s_privmsg_new = 0;
$icon_pm = $images['pm_no_new_msg'&#93;;
&#125;
&#125;
else
&#123;
$l_privmsgs_text = $lang['No_new_pm'&#93;;

$s_privmsg_new = 0;
$icon_pm = $images['pm_no_new_msg'&#93;;
&#125;

if &#40; 
$userdata['user_unread_privmsg'&#93; &#41;
&#123;
$l_message_unread = &#40; $userdata['user_unread_privmsg'&#93; == 1 &#41; ? $lang['Unread_pm'&#93; &#58; $lang['Unread_pms'&#93;; 
$l_privmsgs_text_unread = sprintf&#40;$l_message_unread$userdata['user_unread_privmsg'&#93;&#41;; 
&#125;
else
&#123;
$l_privmsgs_text_unread = $lang['No_unread_pm'&#93;;
&#125;
&#125;


//Private Message Hack by AJQuick.com
if &#40; !empty&#40;
$userdata['user_popup_pm'&#93;&#41; &#41;&#123;
?>

<script language="Javascript" type="text/javascript">
<!--
if (<?php echo $s_privmsg_new ?>)
{
window.open('<?php echo "/board/privmsg.".$phpEx."?mode=newpm" ?>', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<?php
&#125;
//Change the path to forums to approbriate name
?>
[/color]


P.S.: in dem code oben ist n fehler drin (?)


Hy,

habe gerade mal den Code so eingebaut wie du es beschrieben hast. Den Pfad auf "forum" geändert und und beim site path mein URL eingetrage als http://www.foto-place.de/
Aber es tut sich nix. Habe ich etwas falsch gemacht ??? Kann es daran liegen das ich einen anderen Prefix als "phpbb" verwende ????

lg

37
Hallo zusammen,

zum PhpBB gehören ja auch bei den meisten Themplates poups für die PM`s dazu. Ich dachte mir das es doch genial wäre diese auch auserhalb des Forums als in der Gallerie zu haben. Ich habe die MODs bei phpBB durchgesehen und habe dazu folgendes gefunden :

########################################################
## Mod Title:   Add PM Support To Your Entire Site
## Mod Version: 1.0.0
## Author:      AJ Quick, (http://www.ajquick.com/)
##
## Description:  
## This mod will add the ability to get private messages
## pop-ups when viewing your main site, if you have the
## hack that allows viewers to be logged in your site,
## other than just your forums.

## It was designed for PHPBB 2.0+
##
## Installation Level:  Complex!
## Installation Time:   As long as it takes.
##
## Notes..
## You must have some form of the login through base address
## hack installed. See example:
##
########################################################

#
#-----[ You Must Have Something Like This: ]------------------------------------------
#

<?php
define('IN_PHPBB', true);

$site_root_path = '/';//site path
$phpbb_root_path = '/forums/'; //forums path
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.php');
include($phpbb_root_path . 'config.php');

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>

#
#-----[ //end of example ]------------------------------------------

#



#
#-----[ Add This Above Your Head Tags: ]------------------------------------------
#


<?php
if($userdata['session_logged_in']){//logged in

if ( $userdata['user_new_privmsg'] )//private messages
   {
      $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
      $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);

      if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
      {
         $sql = "UPDATE " . USERS_TABLE . "
            SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
            WHERE user_id = " . $userdata['user_id'];
         if ( !$db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
         }

         $s_privmsg_new = 1;
         $icon_pm = $images['pm_new_msg'];
      }
      else
      {
         $s_privmsg_new = 0;
         $icon_pm = $images['pm_no_new_msg'];
      }
   }
   else
   {
      $l_privmsgs_text = $lang['No_new_pm'];

      $s_privmsg_new = 0;
      $icon_pm = $images['pm_no_new_msg'];
   }

   if ( $userdata['user_unread_privmsg'] )
   {
      $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
      $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
   }
   else
   {
      $l_privmsgs_text_unread = $lang['No_unread_pm'];
   }
?>


#
#-----[ Add This In Your Head Tags: ]------------------------------------------
#


<?php
//Private Message Hack by AJQuick.com
if ( !empty($userdata['user_popup_pm']) ){
?>
<script language="Javascript" type="text/javascript">
<!--
   if (<?php echo $s_privmsg_new ?>)
   {
      window.open('<?php echo "/forums/privmsg.".$phpEx."?mode=newpm" ?>', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
   }
//-->
</script>
<?php
}
//Change the path to forums to approbriate name
?>


#
#-----[ If you want PM statuses add this somewhere: ]------------------------------------------
#


<a href="/forums/privmsg.php?folder=inbox"><?php echo $l_privmsgs_text ?></a>
//change the path to the file


# That's It!
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Gibt es hier jemanden der weis in welche Seiten die Codes eingefügt werden müssen und was man evtl. daran modifizieren müsste ??? Ich denke das die Änderungen ne Kleinigkeit sind fü jemanden der php beherscht, oder ???

Lg

Gabi

38
Quote from: Synapse
Quote from: limes
hi,
es scheint bisher wohl keine möglichkeit zu geben, eine bestehende 4images-installation um phpbb zu erweitern. ich habe derzeit ca. 2000 user in 4images und möchte phpbb integrieren. gibt es nicht doch ein chance? ich verfüge über html/perl und ein wenig php/sql-kenntnisse. wer kann mir weiterhelfen. ich bin auch gerne bereit einen angemessenen euro-betrag springen zu lassen ...?
markus


Es gibt eine möglichkeit, die wurde schon ein paar postings vorher beschrieben und sie funktioniert. du musst die bestehende 4images usertable so anpassen, dass sie der vom phpBB gleicht und dann entprechend in jene für das PHPBB umbekennen. Vorher solltest du allerdings einen SQL dump machen und die umbenannte tabelle wieder neu generieren... sonst funktioniert die userverwaltung im 4images logischerweise nicht.

Synapse


Wie geht das genau ???
Kannst du das näher erklären.....so das es auch eine phpAnfängerin versteht ???

lg

Gabi

39
Mods & Plugins (Requests & Discussions) / Member ID
« on: March 07, 2003, 01:45:18 PM »
Hallo zusammen,

ich habe da schon wieder mal ne Frage. Integration von phpbb ist abgeschlossen und funzt super. Würde nun gerne noch die direkte Linkadresse zu den Bildern "anzeigen" lassen, damit die User ihn kopieren können und dann z.B. in ihrer eigenen HP ein Link zu deren Bildergallerie einfügen können. Wie müßte der Code dafür aussehen ????

Ich hoffe es kann mir jeman weiterhelfen

lg

Gabi

40
Installation, Update & Configuration / Tumbs in den TOP 10 Liste ???
« on: March 04, 2003, 01:16:36 PM »
Quote from: V@no
http://4homepages.de/forum/viewtopic.php?t=2544


Mist is alles wieder in Englisch....kannst du mir das alles mal ins deutsche übersetzen ???

lg

Gabi

41
Installation, Update & Configuration / Tumbs in den TOP 10 Liste ???
« on: March 04, 2003, 12:42:17 PM »
Gibt es eine Möglichkeit bei den TOP Bildern die Tumbs mit einzublenden ??? Wäre cool, dann hätte man auf einen Blick die Topbilder.

lg

Gabi

42
Hallo zusammen,

könnte mir jemand einen Tip oder Infos geben wie ich phpbb2.0.4 in meine bestehende 4images Gallerie einbinden kann und ob dies möglich ist ???
MEin Englisch ist nich so gut das ich den ganzen Kauderwelsch auf dieser Seite verstehe  :oops:

lg

Gabi

43
Quote from: Jan
Try to change in "includes/constants.php"
Code: [Select]
define('ADMIN', 1);
back to
Code: [Select]
define('ADMIN', 9);
If you have already installed 4images, you have to go to the database and change the field "user_level" in the user table back to 9 for all current 4images admins. Hope this will work.

Jan


Hy Jan,

muß dich noch mal nerven. Nachdem die Integration vonn phpbb in meiner neuen Seite so gut geklappt hat, möchte ich dies auch für meine bestehende Homepage http://www.foto-place.de machen. Schade das ich fast null Englisch kann. Wenn ich das richtig verstanden habe geht das mit diesem Script ????


Index: includes/constants.php
===================================================================
diff -Naur includes/constants.php
--- includes/constants.php   2002-07-29 06:04:04.000000000 +0800
+++ includes/constants.php   2002-10-19 02:46:37.000000000 +0800
@@ -178,4 +178,16 @@
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

+// Album integration
+$album_table_prefix = '4images_';
+//define('ALBUM_INTEGRATED', 0); // Integrated album off
+define('ALBUM_INTEGRATED', 1); // Integrated album on
+define('ALBUM_USERS_TABLE', $album_table_prefix.'users');
+
+// Album User levels
+define('ALBUM_GUEST', -1);
+define('ALBUM_USER_AWAITING', 1);
+define('ALBUM_USER', 2);
+define('ALBUM_ADMIN', 9);
+
?>
Index: includes/usercp_activate.php
===================================================================
diff -Naur includes/usercp_activate.php
--- includes/usercp_activate.php   2002-05-20 01:21:38.000000000 +0800
+++ includes/usercp_activate.php   2002-10-19 03:25:49.000000000 +0800
@@ -56,6 +56,19 @@
      {
         message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update);
      }
+      if ( defined('ALBUM_INTEGRATED') )
+      {
+         if (ALBUM_INTEGRATED == 1)
+         {
+            $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+               SET user_level = " . ALBUM_USER . "
+               WHERE user_id = " . $row['user_id'] . " AND user_activationkey = '" . $HTTP_GET_VARS['act_key'] . "'";
+            if ( !($result = $db->sql_query($album_sql)) )
+            {
+               message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql_update);
+            }
+         }
+      }

      if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN && $sql_update_pass == '' )
      {
Index: includes/usercp_register.php
===================================================================
diff -Naur includes/usercp_register.php
--- includes/usercp_register.php   2002-09-28 12:21:18.000000000 +0800
+++ includes/usercp_register.php   2002-10-18 02:57:36.000000000 +0800
@@ -440,6 +440,13 @@
         {
            message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
         }
+         $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+            SET " . $album_username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_homepage = '" . str_replace("\'", "''", $website) . "', user_showemail = $viewemail, user_invisible = " . (1 - $allowviewonline) . "
+            WHERE user_id = $user_id";
+         if ( !($result = $db->sql_query($album_sql)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql);
+         }

         if ( !$user_active )
         {
@@ -499,6 +506,8 @@
         //
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
+         $album_sql = "INSERT INTO " . ALBUM_USERS_TABLE . "   (user_id, user_name, user_password, user_email, user_showemail, user_allowemails, user_invisible, user_joindate, user_lastaction, user_lastvisit, user_comments, user_homepage, user_icq, user_level, user_activationkey)
+            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', $viewemail, 1, " . (1 - $allowviewonline) . ", " . time() . ", " . time() . ", " . time() . ", 0, '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $icq) . "', ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {
            $user_actkey = gen_rand_string(true);
@@ -506,10 +515,14 @@
            $key_len = ( $key_len > 6 ) ? $key_len : 6;
            $user_actkey = substr($user_actkey, 0, $key_len);
            $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
+            $user_level = ALBUM_USER_AWAITING;
+            $album_sql .= $user_level . ", '" . str_replace("\'", "''", $user_actkey) . "')";
         }
         else
         {
            $sql .= "1, '')";
+            $user_level = ALBUM_USER;
+            $album_sql .= $user_level . ", '')";
         }

         if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
@@ -517,6 +530,11 @@
            message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
         }

+         if ( !($result = $db->sql_query($album_sql, BEGIN_TRANSACTION)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not insert data into photo album users table', '', __LINE__, __FILE__, $album_sql);
+         }
+
         $sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
            VALUES ('', 'Personal User', 1, 0)";
         if ( !($result = $db->sql_query($sql)) )


Könntest du mir vieleicht ein wenig erklären wie ich dabei vorgehen muß ??????? Büddde büddde
 lg

Gabi

44
Mods & Plugins (Requests & Discussions) / Ich wusste es doch
« on: March 01, 2003, 08:39:03 PM »
War wieder mal n sau dummer Fehler, das alles net ging. Hatte im phpbb die Einstellung der Cockies mit http://  reingeschrieben und das will das Prog ja garnet haben.
An dieser Stelle ein Lob und Dankeschön für Jan´s Geduld mit mir.  :oops:

Liebe Grüße

Gabi

45
Nach der integration von phpbb herscht bei mir Chaos. Ich bin dauernd wieder abgemeldet, sobald ich die HP verlasse. Ich nutze ein Template 4waters bei dem in der linken Hälfte noch weitere Links sind, eines habe ich auf eine Seite innerhalb 4imgs verlinkt "Linkliste" sobald ich da drauf gehe bin ich wieder ausgeloggt. Das gleiche passiert bei allen 3 Links, selbst bei "Home". Kann mir vieleicht jemand einen Tip geben wie ich das hinbekomme, denn sonst kann ich alles wieder löschen :-( Hier mal der Link zu meiner HP http://www.model-voting.de falls mal jemand schauen will.

lg an alle

Gabi

Pages: 1 2 [3] 4 5 6 7