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

Pages: 1 ... 21 22 23 24 [25] 26 27 28
361
Discussion & Troubleshooting / Re: Random Image... with Category
« on: October 14, 2010, 08:28:50 PM »
UPDATE: OOOPPPS --- I have posted this in to the Mods section, but can´t delete this out of this section. Sorry!

Message was:
Hi all, hope you are fine !

I downloaded the random-image mod and would like to know:

how can I set this up to show the category of the picture?

Here is my code:
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: random_full.php                                      *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.0 for 4images 1.6.1                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
 *    weitere Informationen.                                              *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
 *    information.                                                        *
 *                                                                        *
 *************************************************************************/

// PATH TO YOUR 4images Gallery
define('ROOT_PATH''./4images/');

include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/db_mysql.php');
include(
ROOT_PATH.'includes/constants.php');


$site_db = new Db($db_host$db_user$db_password$db_name);
function 
is_remote($file_name) {
  return (
preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i'$file_name)) ? 0;
}

$sql "SELECT COUNT(*) as total_images
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b 
        WHERE a.image_active=1 
        AND a.cat_id = b.cat_id 
        AND b.auth_viewcat="
.AUTH_ALL.
        AND b.auth_viewimage="
.AUTH_ALL."
        "
;
$row $site_db->query_firstrow($sql);
$total_images $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images 1) ? mt_rand(0$total_images 1) : 0;

$sql "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_media_file, a.image_comments 
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b 
        WHERE a.image_active=1 
        AND a.cat_id = b.cat_id 
        AND b.auth_viewcat="
.AUTH_ALL.
        AND b.auth_viewimage="
.AUTH_ALL.
        LIMIT 
$number, 1";
$row $site_db->query_firstrow($sql);
$image_id $row['image_id'];
$cat_id $row['cat_id'];
$image_name $row['image_name'];
$image_comments $row['image_comments'];
$full_src = (is_remote($row['image_media_file'])) ? $row['image_media_file'] : ROOT_PATH.MEDIA_DIR."/".$cat_id."/".$row['image_media_file'];

echo 
"<img src=\"".$full_src."\" height=\"125\" width=\"150\" border=\"2\" alt=\"$image_name\"></a><br>\n";
echo 
'<font size="-2" face="Arial, Helvetica, sans-serif"><br>';

echo 
"$image_name\n";

?>

Thanks a lot

Trev

Hi,

you should use variables:

Code: [Select]
$cat_name
$cat_id


Greetz X23

362
Mods & Plugins (Requests & Discussions) / Re: Download Album
« on: October 14, 2010, 08:22:23 PM »
Und ich gebe die Hoffnung nicht auf das ihr einmal die Suche verwendet!

http://www.4homepages.de/forum/index.php?topic=3479.msg14253#msg14253



Hi,

ich lerne... :) danke dir.


MfG Jens

363
Thnx V@no this MOD is working for me now, the generated zip file name is numeric (random numbers "12387653.zip") is it possible to make zip file name as category name? i.e my_cat_name.zip.

Hi,

thats the line that defines the name (download.php):

Code: [Select]
     $file['file_name'] = time().".zip";
you should change:

Code: [Select]
time().
to what ever i think... im not sure but maybe V@no clears that up ;)
Iam also not sure if $cat_name is working in download.php...

EDIT:

It seems that iam wrong with that, i've tried:

Code: [Select]
time()."pups.zip"
But the filename is allready only the timestamp... hmmm V@no help please :)


Greetz X23


364
Plugins / Re: [Plugin] Batch Import
« on: October 14, 2010, 03:53:35 AM »
Hi,

this script is very nice but there is something i don't understand.

Why are successfully imported images and categories (folders) are not deleted?
So it is necessary to delete the contents of the import folder, if you forgot that
the categories are created again (same name) and the images re-imported.

I see no point in why files and folders are retaining, can someone explain this?

Someone has already adapted the script?

EDIT:

Ok i found that here ;)

Code: [Select]
// As default, the script will only copy the image files
// from your source folders to the 4images folders.
// After import you will have your image data twice on
// your server.
// If you have not enough server space set this to 1.
// Then the script will move the image files.
// Be carefully with this, your data could be lost!!!
$move_image_files = 0;

This is not clear for me:

Code: [Select]
// Then the script will move the image files.
Move to where? Do you mean deleted?

Code: [Select]
// Be carefully with this, your data could be lost!!!
Lost? You mean if the importt was unsuccessfully? but the script
should not delete anything if an error accours. Hmm

Why are categories that already exist duplicated?
Who uses two identical categories denominated?

The idea is to give users an ftp access for a
convenient upload of images.

If the categories are duplicated it's useless

Please clear this up.


Greeting X23

365
Hi,


currently iam using 25 different languages for my galery...
here are the flags i use with method b:

Preview:


Download: see post attachments


Greetz X23

366
nothing else has been changed, so it should work as before.

Hi,

never used it... so i only wanted to get sure ;) thx


Greetz X23

367
Hi,

thx Vano :thumbup:
Is the restore also working after that change or is it only
to show, download and delete them?

I don't want to test it out for nothing ;)


Greetz X23

368
[1.7.8] Database Backup shows only *.sql files (no *.sql.gz)

Hi,

thx didn't knew that.

EDIT: Sorry for this thread i didn't used the search...


Greetz X23

369
Discussion & Troubleshooting / Database Backups not shown in ACP (1.7.8)
« on: October 13, 2010, 12:47:37 PM »
Hi,

i've tested the database backup in acp the first time, backup is working fine
but is not shown on the backup list in acp.

Under data/database i can find the backup "backup201010131228.sql.gz"

So it's maybe a little code problem?


Greetz X23

370
Hi,

iam using ur mod and it's fine but i have an IE problem:

IE: (Page Peel is on top if the side, grrrrrrr all other browser interpret it well)


Firefox (some times FF don't like Dockflow, i don't know why but thats another problem):


Safari:


Chrome:



Anyone else with that issue? How to fix it?
Everything is working exept IE...


Greetz X3

371
What exactly this plug-in will do ?....
der frage schliesse ich mich an.

Hi,

vermutlich den HTML Text ich mag es garnicht so nennen "verschlüsseln"
das kann man sich dann auch gleich schenken, jemand der ernsthaft an den quelltext
will bekommt den auch... (Das ist doch nur was um Script Kiddies) abzuhalten.

EDIT:

Auflösung also das ist nur eine möglichkeit im ACP html zu verschlüssel,
der code kann eingefügt "verschlüsselt" und dann weiterverarbeitet werden.

Screenshot:


Dafür gibt es aber online auch etliche Webseiten ;)


Greetz X23

372
Damit ich es in meiner Liste eintragen kann :D

Hi,

Scherzkeks dann stimmt meine Vermutung ;)
Und wie bekomm ich das ding jetzt nach links?

EDIT:

Ist es möglich das ganze auch für die übrigen Browser zu realisieren?
(Safari und Chrome) Wenn das nicht geht kannst du kurz ausholen
und schildern woran das liegt?

Muss die Opensearch einfach nur um code erweitert werden oder
gibt es da noch andere Hindernisse?


Gruß Jens

373
Hast du das unter 4images 1.7.8 getestet?

Hi,

ja 1.7.8 wieso fragst du nach der Version wenns um die Grafikplatzierung via css geht?
Versteh mich nicht falsch ich will nur den Hintergrund deiner Nachfrage blicken ;)


Gruß Jens

374
No Problem :D

Hi Benny,

danke für den MOD der funktioniert klasse  :thumbup:
Hier mal meine Grafik die ich für meine Seite angepasst habe:
http://www.xup.in/dl,12184715/splugin.png/

Ich habe aber noch ein Problem da ich das pagepeel einsetze, würde ich das Such-Plugin gerne in die linke obere ecke verbannen,
verstehe das mit dem css aber nicht die werte sind ja alle auf null aber wo ist oben rechts definiert?


Gruß Jens

375
Hi,

i use the following to flash apps on other sites then 4images, they are easily
in integration and may can be useful for someone of you:

Shoutbox:


Demo: http://www.flashdevs.com/old/shout_box/demo/
Installation: http://www.flashdevs.com/old/shout_box/installation/
Download: http://www.flashdevs.com/old/shout_box/download/


MP3 Player:


Demo: http://www.flashdevs.com/old/mp3_player/demo/
Installation: http://www.flashdevs.com/old/mp3_player/installation/
Download: http://www.flashdevs.com/old/mp3_player/download/


Pages: 1 ... 21 22 23 24 [25] 26 27 28