pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => PHPNuke 5.2-6.0 & VKP 5.5 => Thema gestartet von: modelportal in 14 August 2002, 17:15:51

Titel: Ich suche...und habe die Nase voll:-)
Beitrag von: modelportal in 14 August 2002, 17:15:51
  Könnte mir jemmand mal einen Link schicken,wo ich das Script für den Block "Messagebox runterladen kann?Ich danke Euch

Und noch eine Frage an die Webmaster.Eben gerade habe ich mich bei Euch angemeldet und es öffnete sich ein kleines Fenster,welches wir ja alle vom Nuke-Messenger kennen.Nette Sache.Dann finde ich die Option auch sehr praktisch,das ich gleich die nachricht löschen konnte mit dem kleinen Häkchen.Wo bekomme ich das Script her.Ich finde es nicht auf die Schnelle.Würde es lieber einsetzen wollen,ohne das ich ewig im Internet suche und mich auf 10 weiteren Seiten anmelden muss,um in den Downloadbereich zu kommen.
Könnt Ihr mir schreiben wo ich es runterladen kann?
MfG
 http://www.xxxxgeil.de



EDIT: Name gelöscht
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: DarkBoy in 14 August 2002, 19:57:51
HI
  was du mit messege Box  meinst weiss ich nicht?   Den Buddymessenger hier ?

Das  mit dem PM  senden usw  findest du hier im neuen VKP-Mxxx eingebaut!  sprich es gibt dieses nicht als einzelmodul zumindestens noch nicht. Ein umbauen in Nuke 5.5 und VKP55  ist  zwarmöglich, bedarf aber bisschen aufpassen  und  handarbeit.
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: Professor in 14 August 2002, 21:44:53
hehe... mit Messagebox meint er die Shoutbox, die ich auf meinen Seiten umbenannt habe  ;)

ich habe ihm aber schon eine Mail geschrieben...

Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: modelportal in 15 August 2002, 12:35:46
alles klar und danke euch.ich habe es hinbekommen.aber es ist eine andere wie auf deinen seiten.
ich kann dort keine namen eingeben und die namen haben auch keinen link.so sieht der block aus:

-----------------------------------------------------------------------------------------------Anfang

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2001 by Francisco Burzi (fbc@mandrakesoft.com)         */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-Sample_Block.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

//$content = "Here goes the content you want in your new block";




// File: $Id: ishoutbox.php,v 1.8 2001/09/03 05:14:45 pkellum Exp $ $Name:  $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the Post-Nuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file:
// ----------------------------------------------------------------------

$shoutdir = "modules/NS-iShoutbox/";


$shoutfile = $shoutdir."shout.html";

$maxshouts = 10;  // maximum shouts before trimming takes place

$blocks_modules['ishoutbox'] = array(
    'func_display' => 'blocks_ishoutbox_block',
    'text_type' => 'ishoutbox',
    'text_type_long' => "ishoutbox",
    'allow_multiple' => false,
    'form_content' => false,
    'form_refresh' => false,
    'show_preview' => false
);

$content=show();

function show() {
    global $user,$PHP_SELF,$username,$cookie,$shouttext,$totalcol,$admin,$smiley,$browser,$content,$shoutcsv,$shoutdir,$totalcol,$HTTP_USER_AGENT;
    include "modules/NS-iShoutbox/smilies.php";
    $shoutcsv = "modules/NS-iShoutbox/shout.csv";
    $totalcol  = 15;

   if (strpos($HTTP_USER_AGENT,"MSIE")) {
      if (strpos($HTTP_USER_AGENT,"Opera"))  {
         $browser="Opera";
      } else {
         $browser="IE";
      }
   }  else  {
         $browser="Netscape";      
   }

   
   
    cookiedecode($user);
    $username = $cookie[1];
    if (isset($shouttext) && ($shouttext!="")) {
          save_shouttext();
      }  


    if (($browser=="IE") ||($browser=="MSIE")) {
      $boxstuff  =getiShouts();     // IE version using IFRAME
    } else {
      $boxstuff  =getiShoutsText();  // Netscape version using TEXTAREA
    }
     // $boxstuff  =getiShouts();  
        $boxstuff .= "<script language=\"Javascript\" src=\"modules/NS-iShoutbox/smilies.js\"></script>";
        $boxstuff .= "<center><form action=\"modules.php?op=modload&name=NS-iShoutbox&file=index&csvfile=$shoutcsv\" method=\"post\" name=form>";
        if (is_user($user)) {   // only members can shout    
        $boxstuff .= "<input type=\"text\" name=\"shouttext\" size=\"$totalcol\" maxlength=\"180\"><br><br>";
        $boxstuff .= "<input type=\"hidden\" name=\"username\" value=\"$username\">";
            $boxstuff .= "<input type=\"submit\" value=\"Senden\"></font>";
        }  
         
        if ($admin) {
            $boxstuff .= "<input type=submit name=clear value=Löschen>";
        }
        $boxstuff .= "<center></form>\n";
        foreach ($smiley as $i=>$sm) {
           $boxstuff.="<a href=\"javascript:smilie('$i')\"><img src=modules/NS-iShoutbox/smileys/$sm border=0></a>";
        }
        return $boxstuff;
       
}

function getiShoutsText () {
    global $shoutfile,$totalcol, $maxshouts, $shoutcsv;
    $shoutcsv = "modules/NS-iShoutbox/shout.csv";  // donno why global values can be accessed so have to define again
   
    $shouts = file($shoutcsv); // read in shouts for count
   
    $output= "<form><textarea rows=8 cols=15 class=shoutbox readonly wrap=on>";
   
    $totalshouts = count($shouts);
   
    if ($totalshouts > $maxshouts) {
        //$shouts=trimTheFile($shouts);  
        $totalshouts = count($shouts);
    }
   
    for ($count=$totalshouts-1;$count>=0;$count--) {
      $oneline = explode("|",$shouts[$count]);
      if (count($oneline)!=0) {
         $output.="$oneline[0]-".formatTheDate($oneline[2]).
               "\n$oneline[1]\n\n"."";
      }
   }
   $output.="</textarea></form>";
   return $output;

}


function getiShouts () {
    global $shoutcsv,$totalcol, $maxshouts,$shoutfile;
    $shoutcsv = "modules/NS-iShoutbox/shout.csv";  // donno why global values can be accessed so have to define again
    $shouts = file($shoutcsv); // read in shouts for count
       
    $totalshouts = count($shouts);
   
   
   
    for ($count=$totalshouts-1;$count>=0;$count--) {
      $oneline = explode("|",$shouts[$count]);
      if (count($oneline)!=0) {
      $line.="$oneline[0]-".formatTheDate($oneline[2]).
               "<br>$oneline[1]<hr>";
               
      }
     
   
   }
   
   
   $output= "<iframe name=\"topFrame\" bgcolor=\"#660000\" src=\"modules/NS-iShoutbox/show.php\" width=\"142\" height=\"150\" frameborder=\"0\">
             </iframe>";


   return $output;

}

function formatTheDate($date) {
   return date("h:ia",$date);
}

function trimTheFile($shouts) {
  global $shoutcsv,$maxshouts;
  $totrim=count($shouts)-$maxshouts;    
 
  for ($i=0; $i<$totrim;$i++) {
     array_shift($shouts);
  }
 
  $f=fopen($shoutdir.$shoutcsv,"w");
   foreach($shouts as $i => $line) {
      fputs($f,"$line");
   }
  return($shouts);
}

function CountTotalShouts() {
    global $shoutcsv;
    $shouts = file($shoutcsv); // read in shouts for count
    return count($shouts);
}


?>
-------------------------------------------------------------------------------------------------------ENDE


Wo kann ich es ändern und vor allen wie,das wenn man auf die namen klickt,das man den im userinfo landet um mehr über den user erfahren zu können?

mfg
 http://www.xxxxgeil.de


EDIT: Name gelöscht
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: affenkind in 15 August 2002, 14:25:02
Professor? Kannst du den Block nicht als Download anbieten? Das Ding ist wirklich nicht schlecht und ich würde ihn auch gerne haben wen das geht?

Thx im voraus
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: modelportal in 15 August 2002, 18:51:51
das original habe leider nicht mehr.aber sende mir deine mailaddy,dann schicke ich dir das modul
webmaster@xxxxgeil.de
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: modelportal in 15 August 2002, 19:01:25
ach du meinst das script vom professor?
das bekommst du hier:
http://www.addict.net.nz/~glutnix
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: Professor in 20 August 2002, 15:03:52
bei Warp-Speed könnt ihr sie auch runterladen:

http://warpspeed.4thdimension.de/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=1349&ttitle=shoutbox.tgz

Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: affenkind in 19 August 2002, 15:43:44
ja gern =)
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: Professor in 19 August 2002, 12:41:00
der da oben - das war ich  ;)
Titel: Re: Ich suche...und habe die Nase voll:-)
Beitrag von: in 18 August 2002, 23:23:48
ZitatProfessor? Kannst du den Block nicht als Download anbieten? Das Ding ist wirklich nicht schlecht und ich würde ihn auch gerne haben wen das geht?

Thx im voraus

sorry, ich war einige Tage verreist. ich werde demnächst mein Original als Zip-Datei packen und den Download-Link dann hier reinposten, ok?