Author Topic: Neue Bilder auf der Startseite  (Read 49895 times)

0 Members and 1 Guest are viewing this topic.

Offline CanOne

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Kunst-ist-Alles
Re: Neue Bilder auf der Startseite
« Reply #30 on: March 30, 2006, 03:05:57 PM »
kann keiner helfen?

hätte noch ne frage, wo kann ich einstellen wie viele bilder auf der startseite der galerie angezeigt werden
also die neuesten bilder...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Neue Bilder auf der Startseite
« Reply #31 on: March 30, 2006, 06:56:18 PM »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline CanOne

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Kunst-ist-Alles
Re: Neue Bilder auf der Startseite
« Reply #32 on: March 30, 2006, 07:53:47 PM »
okay danke...hat geklappt

wär cool wenn mir noch einer bei dem anderen helfen könnte dann wär alles perfekt :)

Offline CanOne

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Kunst-ist-Alles
Re: Neue Bilder auf der Startseite
« Reply #33 on: April 05, 2006, 05:13:07 PM »
die neusten bilder werden zwar angezeigt, aber wenn da ne mp3 datei dabei ist, wird nichts angezeigt, obwohl auf der galerie startseite auch dieses thumbnail bild für mp3´s angezeigt wird...woran kann das liegen?

edit: www.kunst-ist-alles.com/4images/new_pics.php falls jemand gucken will

Offline CanOne

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Kunst-ist-Alles
Re: Neue Bilder auf der Startseite
« Reply #34 on: May 14, 2006, 08:07:09 PM »
sorry wegen sovielen post von mir aber hätte noch ne frage

und zwar würde ich die neusten bilder gerne nur von einer kathegorie mit derzeit zwei unterkats (die eine unterkat hat auch nochma 2 unterkats) anzeigen lassen

wie kann ich das machen?

Offline Amosnet

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • Bilder verkaufen
Re: Neue Bilder auf der Startseite
« Reply #35 on: May 26, 2006, 04:49:08 PM »
Hier mein Quelltext zum new_pics.php Mod von Nicky.

Dieser wurde um folgende Funktionen erweitert:
Anzeige von Kategorien (inkl. Link auf diese)
Deutscher Text
Einbinden von Schriftarten und Schriftgröße

in English:
Extension for the new_pics.php Mod from Nicky:
I have implimented following funktions:
Show the Category Name and Link
German Text (can change into your pref. language)
You can choose your Font and Font size.

[qcode]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: constants.php                                        *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
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)) ? 1 : 0;
}

if (!defined('ROOT_PATH')) {
  die("Security violation");
}

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

// Table names
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('COMMENTS_TABLE', $table_prefix.'comments');
define('GROUP_ACCESS_TABLE', $table_prefix.'groupaccess');
define('GROUP_MATCH_TABLE', $table_prefix.'groupmatch');
define('GROUPS_TABLE', $table_prefix.'groups');
define('IMAGES_TABLE', $table_prefix.'images');
define('IMAGES_TEMP_TABLE', $table_prefix.'images_temp');
define('LIGHTBOXES_TABLE', $table_prefix.'lightboxes');
define('POSTCARDS_TABLE', $table_prefix.'postcards');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SESSIONVARS_TABLE', $table_prefix.'sessionvars');
define('SETTINGS_TABLE', $table_prefix.'settings');
define('USERS_TABLE', $table_prefix.'users');
define('WORDLIST_TABLE', $table_prefix.'wordlist');
define('WORDMATCH_TABLE', $table_prefix.'wordmatch');

define('GUESTBOOK_TABLE', $table_prefix.'guestbook');

// URL Parameters
define('URL_IMAGE_ID', 'image_id');
define('URL_CAT_ID', 'cat_id');
define('URL_USER_ID', 'user_id');
define('URL_POSTCARD_ID', 'postcard_id');
define('URL_COMMENT_ID', 'comment_id');
define('URL_PAGE', 'page');
define('URL_ID', 'id');


// User levels
define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);


// Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 9);


// Group types
define('GROUPTYPE_GROUP', 1);
define('GROUPTYPE_SINGLE', 2);


// Chmod for files and directories created by 4images
define('CHMOD_FILES', 0666);
define('CHMOD_DIRS', 0777);


// Will be used to replace the {xxx} tage if the value is empty.
// Netscape Browser sometimes need this to display table cell background colors.
define('REPLACE_EMPTY', '&nbsp;');


// Max rating value
define('MAX_RATING', 10);


// Days postcards will be held in the database
define('POSTCARD_EXPIRY', 10);


// Time offset for your website. Sometimes usefull if your server is located
// in other timezones.
define('TIME_OFFSET', 0);


// All words <= MIN_SEARCH_KEYWORD_LENGTH and >= MAX_SEARCH_KEYWORD_LENGTH
// are not added to the search index
define('MIN_SEARCH_KEYWORD_LENGTH', 3);
define('MAX_SEARCH_KEYWORD_LENGTH', 25);

// If you set this to 1, admins will authenticated additionally with cookies.
// If you use "User Integration", you should set this to 0.
define('ADMIN_SAFE_LOGIN', 0);


// If you use GD higher 2.0.1 and PHP higher 4.0.6 set this to 1.
// Your thumbnails will be created with better quality
define('CONVERT_IS_GD2', 0);


// If you have a lot of images in your database,
// the random image function could make your programm slow.
// Try first to set "SHOW_RANDOM_CAT_IMAGE" to 0.
define('SHOW_RANDOM_IMAGE', 0);
define('SHOW_RANDOM_CAT_IMAGE', 0);
// Set "SHOW_POTD_IMAGE" to 1 if you would like to show Photo Of The Day.
// The choices to select Photo Of The Day are: 'by_votes', 'by_rating', 'by_comments', 'by_downloads', 'by_hits' or 'random'
define('SHOW_POTD_IMAGE', 1);
define('POTD_SELECT_MODE', 'random');



// Check existence of remote image files.
// If you choose 1, you could get sometimes timeout errors
define('CHECK_REMOTE_FILES', 0);


// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 1);


define('MEDIA_DIR', 'data/media');
define('THUMB_DIR', 'data/thumbnails');
define('MEDIA_TEMP_DIR', 'data/tmp_media');
define('THUMB_TEMP_DIR', 'data/tmp_thumbnails');
define('DATABASE_DIR', 'data/database');
define('TEMPLATE_DIR', 'templates');

define('SCRIPT_VERSION', '1.7');
?>
[/qcode]

If you also use the random.php Mod in your external Website, remove following code from the second loaded script:
[qcode]// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
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)) ? 1 : 0;
}[/qcode]
I love 4images! http://www.fotos-verkaufen.de Fotos verkaufen online Tips und Tricks und http://www.fotoskaufen.de

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Neue Bilder auf der Startseite
« Reply #36 on: August 09, 2006, 08:07:36 AM »
Super, funktioniert bei mir im Portal auch.

nur eins ist blöd, mein Portal hat einen gelben Hintergrund, wo jetzt die Bilder sind ist ein weißer Rahmen.
Bekommt man den hintergrund auch noch Farblich?



Keine Ahnung ob das noch Aktuell ist, sollte aber so klappen (in der Random geht es so)
in der new_pic.php (oder wie ihr sie genannt habt)
über dem "<?php "

<body bgcolor="hier dein Farbcode">
<?php

z.B. für grau
<body bgcolor="cccccc">
<?php
Danke Harald