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 - Foto-Portal

Pages: [1] 2 3
1
Mods & Plugins (Requests & Discussions) / Re: IP Adresse pro Bild speichern
« on: February 22, 2007, 10:52:00 AM »
Hallo,

ich möchte auch dieses einbauen aber
ich kenn mich nicht so gut aus.
Kann mir das jemand genauer erklären? Wo
ich diesen Code einbauen soll??

Gruß

2
Hallo,

ich habe die Installation nun durchgeführt,
allerdings beim Upload einer FLV-Datei kommt
folgende Felhlermeldung:

Fehler beim Upload der Bild-Datei:
video.flv: Die Datei hat ein ungültiges Format (flv, application/octet-stream)

Nun habe ich dieses ausprobiert und es geht wunderbar!
Danke
Saludos,,

Los ficheros FLV,, no se visualizan por si solos en la web,,, necesitaras un reproductor tanto para los FLV como para los FLA,,, que es el que estas intentando subir,,, y el que te da el error.

Primero,,, da de alta el nuevo tipo de fichero en el panel de control,, en la sección  : OPCIONES => CONFIGURACION DE IMAGENES Y ENVIO DE IMAGENES .

Segundo,,, abre : includes/upload_definitions.php

Localiza :

Quote
$mime_type_match['swf'] = array("application/x-shockwave-flash");

Añade debajo :

Quote
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream");

Cerrar y guardar cambios.

Tercero,,,, crea una nueva plantilla con el siguiente código,, la nombras como flv.html,,,  y la subes a : templates/tus_plantillas/media/ :

Code: [Select]
<!-- Template file for FLV files -->

<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="345" height="300">
<param name="movie" value="./data/player.swf?video=./.{media_src}&buffer=6">
<param name="quality" value="high">
<embed src="./data/player.swf?video=./.{media_src}&buffer=6" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="345" height="300">
</embed></object>

Cuarto,,, descarga este ZIP,, << >>  lo descomprimes,,, en el encontraras dos ficheros PLAYER.SWF y PLAYER.FLA y una imagen FLV.GIF que es el icono para suplir la falta de thumbnails.

Sube la imagen flv.gif templates/tus_plantillas/icons.

Sube los dos ficheros,, player.swf y player.fla dentro del directorio data

Para los ficheros tipo FLA es lo mismo pero cambiando la extensión

Creo que eso es todo,, espero que te sirva.

excitex2






3
Plugins / Re: [Plugin] Notepad in Control Panel
« on: February 12, 2007, 12:47:50 PM »
hi,

it is not working for me too.
i use version 1.7.4

Error:

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in ...4images/admin/plugins/notepad.php on line 7

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/.../usr/share/pear') in .../4images/admin/plugins/notepad.php on line 7

4
@trez

no!
like it now is, only the users should listed among themselves!

bitte kann jemand es richtig übersetzen?

-> so wie es jetzt ist nur es sollen die Benutzer untereinander aufgelistet werden. ----->   < / br >

5
@honda2000

und wie kann ich diese verschüsselte Version anzeigen lassen?


6
Hallo,

ich möchte dass die User_Passwörter für den Admin sichtbar sind.

Wie kann ich das realisieren?

gruss


--------------------

Hi

i need a mod, where i can see the passwords of the user in acp

greetins

7
@BartAfterDark

alo ich hab eine private Homepage wo nur bestimmte
und eingegrenzte user drauf zugreifen sollen.
Sprich nur Famile und Verwandte.

gruß

8
@gustav

es hat super funktioniert danke.

nur wie kann ich den Rahmen kleiner machen?


9
@trez

es klappt mit dem login_fenster soweit,
dass ich mich einloggen kann.
Aber nach dem einloggen bleibt das ganze auf der index.php!!!!!!!
und auf dieser index.php kann ich ja nur sehen dass ich eingeloggt bin... mehr nicht!!
Springt nicht zur index2.php!!

wenn ich in der adressleiste anstatt index.php nun index2.php eingebe dann
funktioniert es!

was soll ich machen?

10
Hallo,

wie kann das machen wenn ich die User die gerade online sind,
untereinander auflisten möchte und nicht nebeneinander?


like this:

flag user1  --> < / br >
flag user2  --> < / br >
flag user3  --> < / br >

and not:

flag user1, flag user2, flag user3

Danke und Gruß

------------------------------------------------




11
Mods & Plugins (Requests & Discussions) / login-window as index.html!?!?!
« on: February 08, 2007, 02:13:22 PM »
Hallo,

ich möchte dass bei meiner Gallerie, die Login-Fenster als index seite ist.
d.h. Wenn mann die Seite aufruft soll als erstes nur  Login_index
angezeigt werden. Es soll also NUR folgendes zu sehen sein:

Benutzername:
Passwort:
Beim nächsten Besuch automatisch anmelden?

» Password vergessen
» Registrierung

... und zwar in der mitte des Fensters.


danke und gruß
------------------------------------------


hi,

ineed a mod where the login-window als index is.
so if you enter the sait you see only:

Username:
Password:
Log me on automatically next visit?

» Forgot password
» Registration

.... in the middle of the window

thx for reply

12
Mods & Plugins (Requests & Discussions) / Re: Register Ip
« on: February 08, 2007, 10:24:46 AM »
hi erveryone.

its the same problem for me.
i can only see:

Username - Date - Date of registry - last action - options

???

thx for reply

13
Hello,

i need a mod where i can see (in ACP) the last 2 or 3 ip's frome the users, as they logged in.

byee & thx


---------------------------------


Hallo,

ich brauche einen Mod, wo ich die letzten 2 oder 3 User_ip's (in ACP) sehen kann,
mit dem sie eingeloggt waren.

danke & gruss

14
works fine.. thanks!!!!  :wink: :wink: :wink: :wink: :wink: :wink: :P :P :P :P

Hi all,

I did already forgot about this little modification I did. I was in fact the first little mod I did ever in PHP.

The idea is to show more statistics then the number of images and categories (which are shown by default).
This MOD will show:
- Number of Members
- Number of Image Votes
- Number of Image Hits
- Number of Image Comments
- Number of Image Downloads

All these are shown on totals, so it shows the total number of image hits over all images. You can see an example of it here: http://haunter.student.utwente.nl/Terrarevolution/galleries/index.php

// Ok, now lets get started

Creating the stats.php file
Make a new file called: stats.php
Save this empty file in the includes folder of 4images
Open stats.php with any code editor you like.

and copy past the following to your stats.php:
Code: [Select]
<?PHP

//-----------------------------------------------------
//--- Show number of Users ----------------------------
//-----------------------------------------------------
   $sql = "SELECT COUNT(*) as users
          FROM ".USERS_TABLE."
          WHERE user_id <> ".GUEST;
  $row = $site_db->query_firstrow($sql);

  $total_users = "".$lang['users']."<B> ".$row['users']."</B>\n";
 
  $site_template->register_vars("total_users", $total_users);
unset($total_users);

//-----------------------------------------------------
//--- Hits --------------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(image_hits) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_hits = "".$lang['total_hits']."<B> ".$row['sum']."</B>\n";
 
  $site_template->register_vars("total_hits", $total_hits);
unset($total_hits);

//-----------------------------------------------------
//--- Votes -------------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(image_votes) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_votes = "".$lang['total_votes']."<B> ".$row['sum']."</B>\n";
 
  $site_template->register_vars("total_votes", $total_votes);
unset($total_votes);

//-----------------------------------------------------
//--- Downloads ---------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(image_downloads) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_downloads = "".$lang['total_downloads']."<B> ".$row['sum']."</B>\n";
 
  $site_template->register_vars("total_downloads", $total_downloads);
unset($total_downloads);

//-----------------------------------------------------
//--- Comments ----------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(image_comments) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_comments = "".$lang['total_comments']."<B> ".$row['sum']."</B>\n";
 
  $site_template->register_vars("total_comments", $total_comments);
unset($total_comments);
?>

Now save the stats.php file.

ALWAYS BACKUP: any file you start editing as you might not be able to restore it when the mod doesn't work

Adding the statistics to the language files:

*NOTE* I only edited this in English, but you will have to copy this to any language you use and maybe translate the english.

Open the main.php file from the lang/[your language] folder of 4images.

Go all the way to the bottom of the file.

Find:
Code: [Select]
//-----------------------------------------------------
//--- Admin Links -------------------------------------
//-----------------------------------------------------
$lang['edit'] = "[Edit]";
$lang['delete'] = "[Delete]";

Add Before:
Code: [Select]
//-----------------------------------------------------
//--- Statistics --------------------------------------
//-----------------------------------------------------
$lang['users'] = "Total Members:";
$lang['total_hits'] = "Total Image Hits:";
$lang['total_votes'] = "Total Image Votes:";
$lang['total_downloads'] = "Total Image Downloads:";
$lang['total_comments'] = "Total Image Comments:";

Including the statistics in Index.php:

Open index.php in the root folder of 4images with any code editor you like.

Find:
Code: [Select]
require(ROOT_PATH.'includes/sessions.php');
Add after:
Code: [Select]
include(ROOT_PATH.'includes/stats.php');
Do the same for catergories.php, lightbox.php, top.php
(it might also work in memberlist.php, search.php, register.php etc. but I did not test them yet)

Now edit the template files that correspond with the php files you added the include to.

index.php = home.html
categories.php = categories.html
lightbox.php = lightbox.html
top.php = top.html

you can find the templates inside the templates/default folder of 4images.

In the templates you can now use the following tags:

{total_users} - This will show the total number of members
{total_votes} - This will show the total number of image votes
{total_comments} - This will show the total number of image comments
{total_hits} - This will show the total number of image hits
{total_downloads} - This will show the total number of image downloads

Uploading all the edited files:

Now upload all files you editted to the right folder at your webserver.

This is a list of files you need to upload:
./index.php
./categories.php
./lightbox.php
./top.php
./includes/stats.php
./lang/ (any language you editted) /main.php
./templates/ (any templates you editted) /home.html
./templates/ (any templates you editted) /categories.html
./templates/ (any templates you editted) /lightbox.html
./templates/ (any templates you editted) /top.html

of course if you editted any more files then the once I mentioned above, you will need to upload them too.

I think this is it. Please note that it could be that I made an error somewhere in the directions above. As soon as you notice any error, please let me know and I will correct it as soon as possible.

Enjoy this little mod!!!

Cheers,
Vraxor

15
...
But I dont like it so much, because non of my users no this feature and its just confusing.
Just put the "Next and Prev. Link" right under the image...

Bitte ... Wie funktioniert das?
please... how can i do this?

Pages: [1] 2 3