obey-robots.txt
  

pHpFusion-Nederlands


 Nederlands-, Vlaamstalige pHp-Fusion support site voor België en Nederland.


 PHP-Fusion is een open-source "Content Magagement System" (CMS) geschreven in PHP en MySQL.
 Het beheren van uw site gaat met een eenvoudig en begrijpbaar administratie systeem.
 PHP-Fusion bevat o.a. een forum, shoutbox, enquêtes, profielpagina's, nieuws, fotogalerij, weblinks enz.
 Uiteraard is de standaardinstallatie nog uit te breiden met infusies (modules) en andere thema's (skins).

Inloggen
Geef gebruikersnaam

Wachtwoord



Nog geen lid?

» Registreer «
Als geregistreerd lid kunt u reageren en alle extra functies gebruiken.

Wachtwoord vergeten?
Verzoek nieuw wachtwoord.
Gebruikers Online
» Gasten online: 7

» Leden online: 0
» Nieuwste lid: BlackHawk
Recent Online
» muscapaul 1 dag
Onderwerp bekijken
Vragen/Problemen in verband met infusions
\n
 Onderwerp afdrukken
8 photos panel
riku
hey ik probeerde zojuist 8 photos panel gedownload maar zodra ik een panel ervan wil maken en hem in de center onderaan wil zetten zie ik hem nooit ik krijg nooit panels onderin ik wil hem voor me photogallery die bij mij als openingspagina staat ik heb me gallery.php geupload misschien dat iemand mij zou kunnen helpen alvast bedankt.
Vincent

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: photogallery.php
| Author: Nick Jones (Digitanium)
| Co-Author: Robert Gaudyn (Wooya)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."photogallery.php";

define("SAFEMODE", @ini_get("safe_mode") ? true : false);

add_to_title($locale['global_200'].$locale['400']);

if (isset($_GET['photo_id']) && isnum($_GET['photo_id'])){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".DB_PHOTOS." tp
LEFT JOIN ".DB_PHOTO_ALBUMS." ta USING (album_id)
LEFT JOIN ".DB_USERS." tu ON tp.photo_user=tu.user_id
LEFT JOIN ".DB_RATINGS." tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='".$_GET['photo_id']."' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
redirect(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".DB_PHOTOS." SET photo_views=(photo_views+1) WHERE photo_id='".$_GET['photo_id']."'");

$pres = dbquery("SELECT photo_id FROM ".DB_PHOTOS." WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".DB_PHOTOS." WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);

opentable($locale['450']);
if ($settings['photo_watermark']) {
if ($settings['photo_watermark_save']) {
$parts = explode(".", $data['photo_filename']);
$wm_file1 = $parts[0]."_w1.".$parts[1];
$wm_file2 = $parts[0]."_w2.".$parts[1];
if (!file_exists(PHOTODIR.$wm_file1)) {
if ($data['photo_thumb2']) { $photo_thumb = "photo.php?photo_id=".$data['photo_id']; }
$photo_file = "photo.php?photo_id=".$data['photo_id'];
} else {
if ($data['photo_thumb2']) { $photo_thumb = PHOTODIR.$wm_file1; }
$photo_file = PHOTODIR.$wm_file2;
}
} else {
if ($data['photo_thumb2']) { $photo_thumb = "photo.php?photo_id=".$data['photo_id']; }
$photo_file = "photo.php?photo_id=".$data['photo_id'];
}
$photo_size = @getimagesize(PHOTODIR.$data['photo_filename']);
} else {
$photo_thumb = $data['photo_thumb2'] ? PHOTODIR.$data['photo_thumb2'] : "";
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
}
add_to_title($locale['global_201'].$data['photo_title']);
echo "\n\n\n";
if ((isset($prev['photo_id']) && isnum($prev['photo_id'])) || (isset($next['photo_id']) && ISnUM($next['photo_id']))) {
if (isset($prev)) { echo "\n"; }
if (isset($next)) { echo "\n"; }
}
echo "\n
\n";
echo "".$locale['400']." >\n";
echo "".$data['album_title']." >\n";
echo "".$data['photo_title']."\n
<<>>
\n";

echo "
\n";
echo ">\" class='photogallery_photo_link'>";
echo "'".$data['photo_filename']."'\n
\n";
echo "
\n";
if ($data['photo_description']) {
echo nl2br(parseubb($data['photo_description'], "b|i|u|center|small|url|mail|img|quote"))."

\n";
}
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."
\n";
echo $locale['434']."".$data['user_name']."
\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."
\n";
echo $locale['456'].parsebytesize($settings['photo_watermark'] ? filesize(PHOTODIR.$data['photo_filename']): filesize($photo_file))."
\n";
$photo_comments = dbcount("(comment_id)", DB_COMMENTS, "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
echo ($photo_comments == 1 ? $locale['436b'] : $locale['436']).$photo_comments."
\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("'*'", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."
\n";
echo $locale['457'].$data['photo_views']."\n
\n";
closetable();
if ($data['photo_allow_comments']) { showcomments("P", DB_PHOTOS, "photo_id", $_GET['photo_id'], FUSION_SELF."?photo_id=".$_GET['photo_id']); }
if ($data['photo_allow_ratings']) { showratings("P", $_GET['photo_id'], FUSION_SELF."?photo_id=".$_GET['photo_id']); }
}
} elseif (isset($_GET['album_id']) && isnum($_GET['album_id'])) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$_GET['album_id']."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".DB_PHOTO_ALBUMS." ta WHERE album_id='".$_GET['album_id']."'"
);
if (!dbrows($result)) {
redirect(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
redirect(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", DB_PHOTOS, "album_id='".$_GET['album_id']."'");
add_to_title($locale['global_201'].$data['album_title']);

if ($rows) {

opentable($locale['430']);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".DB_PHOTOS." tp
LEFT JOIN ".DB_USERS." tu ON tp.photo_user=tu.user_id
LEFT JOIN ".DB_RATINGS." tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id='".$_GET['album_id']."' GROUP BY photo_id ORDER BY photo_order LIMIT ".$_GET['rowstart'].",".$settings['thumbs_per_page']
);
$counter = 0;
echo "\n\n\n\n
\n";
echo "".$locale['400']." >\n";
echo "".$data['album_title']."\n";
echo "
\n";

echo "\n\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) { echo "\n\n"; }
echo "\n";
$counter++;
}
echo "\n
\n";
echo "".$data['photo_title']."

\n";
if ($data['photo_thumb1'] && file_exists(PHOTODIR.$data['photo_thumb1'])){
echo "'".$data['photo_thumb1']."'";
} else {
echo $locale['432'];
}
echo "


\n \n";
$photo_comments = dbcount("(comment_id)", DB_COMMENTS, "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
echo $locale['435'].$data['photo_views']."

\n";
echo "
\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) { echo "
\n".makepagenav($_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3, FUSION_SELF."?album_id=".$_GET['album_id']."&")."\n
\n"; }
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", DB_PHOTO_ALBUMS, groupaccess('album_access'Wink);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".DB_PHOTO_ALBUMS." ta
LEFT JOIN ".DB_USERS." tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access'Wink." ORDER BY album_order
LIMIT ".$_GET['rowstart'].",".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "\n\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) { echo "\n\n"; }
echo "\n";
echo "
\n";
echo "".$data['album_title']."

\n";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "'".$data['album_thumb']."'";
} else {
echo $locale['402'];
}
echo "


\n\n";
echo $locale['405'].dbcount("(photo_id)", DB_PHOTOS, "album_id='".$data['album_id']."'")."

\n";
echo "
";
$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,8");
if (dbrows($result) != 0) {
$i=0;
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 16);
if ($i % 4 == 0 && $i != 0) { echo "";}
echo "\n";
$i++;
}

} else {

echo ""

}

echo "


$itemdescription
No results!

$counter++; $k++;
}
echo "
\n";
closetable();
if ($rows > $settings['thumbs_per_page']) { echo "
\n".makepagenav($_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3)."\n
\n"; }
}else{
echo "

".$locale['406']."

\n";
closetable();
}
}

require_once THEMES."templates/footer.php";
?>
Gewijzigd door riku op 15 december 2009, 19:20  
Spring naar forum:
Nieuw onderwerp Antwoorden
Gebruik BBcode of HTML om naar; '8 photos panel', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Onderwerp Forum         Laatste bericht
Panel Code Needed Modificaties : 3 16 apr 2019, 20:41
Panel Algemene v7 support : 3 07 dec 2016, 20:53
last seen users panel Infusions : 1 03 apr 2016, 23:29
Advanced Shoutbox Panel Infusions : 7 31 mrt 2016, 14:30
User Info Panel (Extended) 2.0 Infusions : 10 02 feb 2016, 19:52