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

Pages: [1]
1
Discussion & Troubleshooting / Re: Probleme mit footer
« on: October 06, 2005, 03:43:21 PM »
O.K. hat sich erledigt! Habe das includen wohl falsch verstanden! Habe jetzt im footergleich die relative URL angegeben und es funktioniert! Also nochmal Danke!

2
Discussion & Troubleshooting / Re: Verlust von Bildern
« on: October 06, 2005, 09:39:28 AM »
Einfach das Datenbank backup wieder aufspielen und die Bilder von der Festplatte per FTP in den entsprechenden Ordner im Media Verzeichniss laden! Müsste eigentlich so klappen!

3
Discussion & Troubleshooting / Re: Probleme mit footer
« on: October 05, 2005, 04:26:49 PM »
Habe das mit dem includen versucht, nur leider funzt es nicht!
Hier meine externe PHP:
Code: [Select]
<?php
$host
="rdbms.strato.de"
$user="+++"
$db="+++"
$pass="+++"

mysql_connect ($host,$user,$pass);
mysql_select_db($db);
$ergebnis=mysql_query("SELECT file FROM bildergalerie_werbung ORDER BY rand() LIMIT 1");
mysql_close(); 
$eintraege=mysql_num_rows($ergebnis); 
for (
$x=0;$x<=$eintraege-1;$x++){
$werbe=mysql_result($ergebnis,$x,"file");
}
echo
"$werbe"
?>


Dazu die footer.html:
Code: [Select]
{cp_link}
<p align="center">
  [Powered by <b>4images</b>]&nbsp;&nbsp;[Design by <b><a href="mailto:mematola@arcor.de">mematola</a></b>]
  <br />
  Copyright &copy; 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>
<p align="center">
<?php 
include($_SERVER['DOCUMENT_ROOT']."/werbung.php"); 
?>

</p>
</html>

Aber da kommt die Fehlermeldungen:
Quote
Warning: Unable to access /home/strato/www/re/www.rebellen-web.de/htdocs/werbung.php in /mnt/be2/07/199/00000010/htdocs/galerie/includes/template.php(133) : eval()'d code on line 344

Warning: Failed opening '/home/strato/www/re/www.rebellen-web.de/htdocs/werbung.php' for inclusion (include_path='') in /mnt/be2/07/199/00000010/htdocs/galerie/includes/template.php(133) : eval()'d code on line 344
Verstehe die erste nicht, da ich die richtigen Zugangsdaten eingegeben habe!
Bei der zweiten scheint etwas mit der Ausgabe nicht zu stimmen!

4
Discussion & Troubleshooting / Re: Probleme mit footer
« on: October 05, 2005, 02:13:21 PM »
Danke!
Aber ich kann doch aus der footer.html nicht direkt eine Datenbankabfrage machen? Das Problem ist, das ich mehrere Banner in die Datenbank eingetragen habe und die per rand() und Limit 1 abfragen will! Nur wo kommt diese Abfrage hin, das das ganze dann im Footer angezeigt wird!

P.S. Sorry, I can`t speak or write English so good!

5
Discussion & Troubleshooting / Probleme mit footer
« on: October 05, 2005, 12:03:06 PM »
Hi Leutz!
Ich hoffe es kann mir jemand helfen! Ich möchte gerne eine Art Bannerrotation im footer machen! Habe meine Links in die Datenbank eingetragen! Welche PHP Datei ist zuständig für den footer, wo ich dann die entsrechende Datenbankabfrage hineinpacken kann?

6
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 02-04-2004 14:00 EST)
« on: April 06, 2005, 12:06:15 PM »
Sorry, its not my mod! I have found this on google!

7
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 16-03-2004 08:18 EST)
« on: March 26, 2005, 10:02:03 AM »
to mematola

Maybe you have this mod in English?

please!

Code: [Select]
==========================================
Well a new tecnologie is born. MMS! I think you can get more users on your gallery if you have a mms service on it.

Overview:

You can recieve all images on your mms mobilphone.

Changed files:

- includes/functions.php
- includes/constants.php
- templates/<dein Template>/details.html
- lang/<deine Sprache>/main.php

New files:

- mms.php
- getmms.php
- templates/<dein Template>/mms.html
- templates/<dein Template>/images/mms.gif

Installation

Important: Backup all files

1.)
Open includes/functions.php find:
Code:

  else {
    $user_name = $lang['userlevel_guest'];
    $user_name_link = $user_name;
  }
 

add after:
Code:

$mms = '<a href="javascript:mms(\''.$site_sess->url(ROOT_PATH."mms.php?id=".$image_row['image_id']."").'\')"><img border="0" src="'.get_gallery_image("mms.gif").'"></a>';
 

suche nach:
Code:
"image_file_name" => $image_row['image_media_file'],
füge dahinter ein:
Code:
"mms" => $mms,


2.)
open includes/constants.php

find:
Code:

// If 4images has problems to find out the right URL, define it here.
// define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash
 

replace with:
Code:

// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash
 

Don't foget 2 edit the line. Your must set your domain!!!

3.)
open templates/<dein Template>/details.html

find:
Code:
{header}

add after
Code:

<script language="javascript">
function mms(url) {
  var winWidth = 500;
  var winHeight = 350;
  var w = (screen.width - winWidth)/2;
  var h = (screen.height - winHeight)/2 - 60;
  var name = 'MMS';
  var features = 'scrollbars=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;
  window.open(url,name,features);
}
</script>


You can use the {mms} tag in your details template in order to let users recieve mms.

4.)
open lang/<deine Sprache>/main.php

add:
Code:

//-----------------------------------------------------
//--- Send MMS ----------------------------------------
//-----------------------------------------------------
$lang['mmsheadline'] = "Recieve image over mms";
$lang['imagewidth'] = "Width:";
$lang['imageheight'] = "Height:";
$lang['download'] = "Downlaod";
$lang['id'] = "ID:";
$lang['mmstext'] = "<b>This picture on your mobile</b><br>
<ul>
<li> Choose in the Services-menu 'Go to address'<li> Put the following in the gap:<br> <B>
{url_mms_id}</B><li> Then you see this:<BR> ID: <b>{mms_id}</b><br><b>Ok, Download</b><li> Choose 'Ok, download'<li> The picture will be loaded. Please be patient.<li> After the download you see the following:<br> <b>File recieved</b><br>Options - back<li> Choose <br> <b>Options > Save</b><li> Rename the picture and choose a folder.<li> <b>Now is the picture on your mobile :-)</b>
</ul>";
 


5.)
create mms.php add the following code:

Code:

<?php 
define
('ROOT_PATH''./'); 
$main_template 'mms'
include(
ROOT_PATH.'global.php'); 
require(
ROOT_PATH.'includes/sessions.php'); 
$user_access get_permission(); 
include(
ROOT_PATH.'includes/page_header.php'); 

$sql "SELECT image_id, cat_id, image_thumb_file, image_media_file FROM ".IMAGES_TABLE.
             WHERE image_id = "
.$id.""
$image_row $site_db->query_firstrow($sql); 

$file_size "n/a"
if (
$file_size = @filesize("data/thumbnails/".$image_row['cat_id']."/".$image_row['image_media_file'])) { 
   
$file_size format_file_size($file_size); 
   } 

$size = @getimagesize("data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file'].""); 
//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  
"thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $mode$show_link), 
  
"file_size" => $lang['file_size']." ".$file_size
  
"width" => $lang['imagewidth']." ".$size[0]." ".$lang['px'], 
  
"height" => $lang['imageheight']." ".$size[1]." ".$lang['px'], 
  
"mmsheadline" => $lang['mmsheadline'], 
  
"text" => $lang['mmstext'], 
  
"mms_id" => $id
  
"url_mms_id" => "".SCRIPT_URL."/getmms.php?id=".$id."" 
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>

 


6.)
create getmms.php add the following code:

Code:

<?php 
define
('ROOT_PATH''./'); 
include(
ROOT_PATH.'global.php'); 
if (!
$id) { 
echo 
$lang['error']; 
exit; 

$sql "SELECT image_id, cat_id, image_thumb_file, image_media_file FROM ".IMAGES_TABLE.
             WHERE image_id = "
.$id.""
$image_row $site_db->query_firstrow($sql); 
echo 
$lang['id']." ".$id
echo 

<br> 
<a href=\""
.SCRIPT_URL."/data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file']."\">".$lang['download']."</a>"
?>

 


7.)
create templates/<dein Template>/mms.html

you can use the following tags:

- {mmsheadline}  to show the headline
- {text}  to show the helptext
- {thumbnail}  to show the image
- {width}  to show the width
- {height}  to show the height
- {file_size}  to show the file size


Possible example of the template:Code:

<html>
<head>
<title>{site_name}</title>
<link rel="stylesheet" href="{template_url}/style.css">
</head>
<body bgcolor="#001B8B" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" text="#FFFFFF">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
        <tr>
          <td class="head1" height="19">{mmsheadline}</td>
        </tr>
        <tr>
          <td class="head1">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
         <tr>
          <td class="row2">{text}</td>
        </tr>
        </table>
          </td>

          <td class="head1">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td class="row2" align="center">{thumbnail}<p>{file_size}<p>{widh}<p>{height}</td>
        </tr>
        </table>

</body>
</html>
 


 
create a new button templates/<dein Template>/images/mms.gif

Done!
Some information about the mod:

The thumbnails must be max. 128x128 px and the file size shouldn't be heigher than von 18 kb..

DEMO: http://crazyfunpics.de


8
Chit Chat / MMS
« on: March 18, 2005, 10:17:52 AM »
Ich habe das hier im Google Cache gefunden!

von Cr@zy Sash: Bilder als MMS auf`s Handy laden!

Code: [Select]
So hier nun ein neuer Mod von mir. Ich denke mal im Zeitalter, wo die MMS Handy im Kommen sind, da ist so ein Servcie genau das richtige für eine Seite um mehr Besucher zu bekommen.

Übersicht:

Mit diesem Mod könnt ihr euch die Thumbnails aus eurer Gallery auf euer MMS - fähiges Handy holen

Geänderte Dateien:

- includes/functions.php
- includes/constants.php
- templates/<dein Template>/details.html
- lang/<deine Sprache>/main.php

Neue Dateien:

- mms.php
- getmms.php
- templates/<dein Template>/mms.html
- templates/<dein Template>/images/mms.gif

Installation

WICHTIG: Mache vorher von den geänderten Dateien Dateien ein Backup

1.)
Öffne die Datei includes/functions.php finde:
Code:

  else {
    $user_name = $lang['userlevel_guest'];
    $user_name_link = $user_name;
  }
 

füge dahinter das ein:
Code:

$mms = '<a href="javascript:mms(\''.$site_sess->url(ROOT_PATH."mms.php?id=".$image_row['image_id']."").'\')"><img border="0" src="'.get_gallery_image("mms.gif").'"></a>';
 

suche nach:
Code:
"image_file_name" => $image_row['image_media_file'],
füge dahinter ein:
Code:
"mms" => $mms,


2.)
Öffne die Datei includes/constants.php

suche nach:
Code:

// If 4images has problems to find out the right URL, define it here.
// define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash
 

ersetzen mit:
Code:

// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash
 

Wobei du da dann deine richtige Url zur Gallery angeben musst!!!

3.)
Öffne die templates/<dein Template>/details.html

suche nach:
Code:
{header}

füge dahinter ein
Code:

<script language="javascript">
function mms(url) {
  var winWidth = 500;
  var winHeight = 350;
  var w = (screen.width - winWidth)/2;
  var h = (screen.height - winHeight)/2 - 60;
  var name = 'MMS';
  var features = 'scrollbars=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;
  window.open(url,name,features);
}
</script>


So nun kannst du irgenwo im Template noch den Tag {mms} setzen, damit die User das Bild schicken können.

4.)
Öffne die lang/<deine Sprache>/main.php

und füge folgendes ein:
Code:

//-----------------------------------------------------
//--- Send MMS ----------------------------------------
//-----------------------------------------------------
$lang['mmsheadline'] = "Bild als MMS schicken";
$lang['imagewidth'] = "Bildbreite:";
$lang['imageheight'] = "Bildhöhe:";
$lang['download'] = "Downlaod";
$lang['id'] = "ID:";
$lang['mmstext'] = "<b>So kommt dieses Bild auf Ihr Handy</b><br>
<ul>
  <li> Rufen Sie im WAP-Menu \"Zur Adresse\" auf<li> Geben Sie dort folgendes ein:
<br> <b>{url_mms_id}</b><li> Es erscheint folgendes:<br>
 ID: <b>{mms_id}</b><br><b>Ok, Download</b>
 <li> Wählen Sie \"Download\"<li>
  Das Bild wird nun auf Ihr Handy geladen. Bitte gedulden Sie sich einen Augenblick.<li>
  Beim abgeschlossenen Download erscheint:<br> <b>Datei empfangen</b><br>Optionen - zurück<li> Wählen Sie <BR> <b>Optionen > Speichern</b><li> Geben Sie dem Bild nun noch einen Namen und wählen Sie einen Ordner aus.<li> <b>Jetzt ist das Bild in auf Ihrem Handy abgespeichert!</b>
</ul>";
 


5.)
Erstelle eine neue Datei mms.php und füge folgenen Code ein:

Code:

<?php 
define
('ROOT_PATH''./'); 
$main_template 'mms'
include(
ROOT_PATH.'global.php'); 
require(
ROOT_PATH.'includes/sessions.php'); 
$user_access get_permission(); 
include(
ROOT_PATH.'includes/page_header.php'); 

$sql "SELECT image_id, cat_id, image_thumb_file, image_media_file FROM ".IMAGES_TABLE.
             WHERE image_id = "
.$id.""
$image_row $site_db->query_firstrow($sql); 

$file_size "n/a"
if (
$file_size = @filesize("data/thumbnails/".$image_row['cat_id']."/".$image_row['image_media_file'])) { 
   $file_size format_file_size($file_size); 
   

$size = @getimagesize("data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file'].""); 
//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  "thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $mode$show_link), 
  "file_size" => $lang['file_size']." ".$file_size
  "width" => $lang['imagewidth']." ".$size[0]." ".$lang['px'], 
  "height" => $lang['imageheight']." ".$size[1]." ".$lang['px'], 
  "mmsheadline" => $lang['mmsheadline'], 
  "text" => $lang['mmstext'], 
  "mms_id" => $id
  "url_mms_id" => "".SCRIPT_URL."/getmms.php?id=".$id."" 
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>

 


6.)
Erstelle eine neue Datei getmms.php und füge folgenen Code ein:

Code:

<?php 
define
('ROOT_PATH''./'); 
include(
ROOT_PATH.'global.php'); 
if (!
$id) { 
echo 
$lang['error']; 
exit; 

$sql "SELECT image_id, cat_id, image_thumb_file, image_media_file FROM ".IMAGES_TABLE.
             WHERE image_id = "
.$id.""
$image_row $site_db->query_firstrow($sql); 
echo 
$lang['id']." ".$id
echo 

<br> 
<a href=\""
.SCRIPT_URL."/data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file']."\">".$lang['download']."</a>"
?>

 


7.)
Erstelle eine neue Datei templates/<dein Template>/mms.html

In dem Template kannst du folgen Tags nutzen:

- {mmsheadline}  Zur Anzeige der Überschrift
- {text}  Zur Anzeige des Hilfetextes
- {thumbnail}  Zur Anzeige der Bilddatei
- {width}  Zur Anzeige der Breite
- {height}  Zur Anzeige der Höhe
- {file_size}  Zur Anzeige der Dateigröße


Ein Beispiel des gesamten Templates:Code:

<html>
<head>
<title>{site_name}</title>
<link rel="stylesheet" href="{template_url}/style.css">
</head>
<body bgcolor="#001B8B" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" text="#FFFFFF">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
        <tr>
          <td class="head1" height="19">{mmsheadline}</td>
        </tr>
        <tr>
          <td class="head1">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
         <tr>
          <td class="row2">{text}</td>
        </tr>
        </table>
          </td>

          <td class="head1">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td class="row2" align="center">{thumbnail}<p>{file_size}<p>{widh}<p>{height}</td>
        </tr>
        </table>

</body>
</html>
 


 
Erstelle einen neuen Button templates/<dein Template>/images/mms.gif

Feritg!
So nun nochein paar wichtige Information zur Nutzung:

Die Thumbnails dürfen nicht größer als 128x128 sein und sollten wenn möglich eine Dateigröße von 18 kb nicht überschreiten. Alles weitere rund um die Nutzung dürfte aus dem Infotext klarwerden, der erscheint, wenn man den MMS Button in der Detailansicht klickt.

Eine Demo gibt es wie immer unter: http://crazyfunpics.de

==========================================


Pages: [1]