|
|

12.11.2009, 00:33
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
Brauche hilfe bei einem modul, komme nicht mehr weiter
Hallo Leute
ich habe das Raktek Photplog Modul geändert und ich habe bisl was ändern können nun möchte ich wie beim Albummodul eine Spaltenangabe, habe so das man angibt 10 Bilder a' 2 Spalten macht 5 Zeilen aber irgenwie kommt bei mir nur ne Fehlermeldung wenn ich das hier einfüge.
Parse error: syntax error, unexpected '=' in /www/htdocs/w0075c23/test/forum/vbcms_global_modules/vbcsmodul_gallery.php on line 8
Das habe ich in der Modul xml eingefügt
Code:
<setting varname="photopics_break">
<grouptitle>vbcsmodul_gallery</grouptitle>
<value>2</value>
<defaultvalue>2</defaultvalue>
<optioncode />
<displayorder>10</displayorder>
<volatile>1</volatile>
<product>vbcms</product>
<phrase_desc>Wieviele Bilder sollen nebeneinander angezeigt werden?</phrase_desc>
<phrase_title>Wieviele Bilder nebeneinander</phrase_title>
</setting>
Das beinhaltet die php Datei des moduls
Code:
<?php
$portal = true;
require_once($vbulletin->options['photoplog_full_path'].'/thumbnails.php');
$i = 0;
$bgclass = exec_switch_bg();
while( = $this->db->fetch_array($photoplog_minithumb_pics))
{
if($this->registry->vbcmsoptions['photopics_break'] == $i)
{
$bgclass = exec_switch_bg();
$breaker = '</tr><tr valign="top">';
$i = 0;
}else{
$breaker = '';
}
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] .= "' . fetch_template('ocp_portalthumbs') . '";');
unset($photoplog_minithumb_pics, $bgclass, $i, $breaker);
?>
Das wurde von mir eingefügt das ist Teilweise aus dem Albummodul.
Code:
$i = 0;
$bgclass = exec_switch_bg();
while( = $this->db->fetch_array($photoplog))
{
if($this->registry->vbcmsoptions['photopics_break'] == $i)
{
$bgclass = exec_switch_bg();
$breaker = '</tr><tr valign="top">';
$i = 0;
}else{
$breaker = '';
}
unset($photoplog_minithumb_pics, $bgclass, $i, $breaker);
So sieht das Template aus.
Code:
<div class="tborder outer_padding">
<div class="tcat inner_padding">
<a href="#top" onclick="return toggle_collapse('module_$module_row[id]')" style="float:right"><img alt="" border="0" id="collapseimg_module_$module_row[id]" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg.gif" /></a>$vbphrase[galerie] - $vbphrase[photoplog_random_thumbs]
</div>
<div id="collapseobj_module_$module_row[id]" style="$collapse">
<div class="alt1 inner_padding">
<table border="0" width="100%">
<tr>
$photoplog_minithumb_pics
</tr>
</table>
</div>
</div>
</div><br />
<div class="tborder outer_padding">
<div class="tcat inner_padding">
<a href="#top" onclick="return toggle_collapse('module_$module_row[id]')" style="float:right"><img alt="" border="0" id="collapseimg_module_$module_row[id]" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg.gif" /></a>$vbphrase[galerie] - $vbphrase[photoplog_newest_thumbs]
</div>
<div id="collapseobj_module_$module_row[id]" style="$collapse">
<div class="alt1 inner_padding">
<table border="0" width="100%">
<tr>
$photoplog_thumb_pics
</tr>
<tr>
$photoplog_thumb_info
</tr>
</table>
</div>
</div>
</div>
</div><br />
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

12.11.2009, 10:04
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
|
Nach while( fehlt die Variable.
|

12.11.2009, 23:59
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
|
Wie muss die aussehen? ==> $photoplog_minithumb_pics als beispiel?
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

13.11.2009, 00:03
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
So hab eingefügt.
Jetzt kommt das ?
Parse error: syntax error, unexpected $end in /www/htdocs/w0075c23/test/forum/vbcms_global_modules/vbcsmodul_gallery.php on line 20
Was sagt die zeile aus ??
Code:
$picture = prepare_pictureinfo_thumb($picture, array('albumid' => $picture['albumid']));
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
Last edited by OCPerformance : 13.11.2009 at 00:23.
|

13.11.2009, 12:23
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
|
Zeig mal die gesamte Datei.
|

13.11.2009, 23:17
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
Das beinhaltet die php Datei des moduls
So sieht sie aus.
Code:
<?php
$portal = true;
require_once($vbulletin->options['photoplog_full_path'].'/thumbnails.php');
$i = 0;
$bgclass = exec_switch_bg();
while( = $this->db->fetch_array($photoplog_minithumb_pics))
{
if($this->registry->vbcmsoptions['photopics_break'] == $i)
{
$bgclass = exec_switch_bg();
$breaker = '</tr><tr valign="top">';
$i = 0;
}else{
$breaker = '';
}
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] .= "' . fetch_template('ocp_portalthumbs') . '";');
unset($photoplog_minithumb_pics, $bgclass, $i, $breaker);
?>
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

16.11.2009, 05:19
|
Neuer Benutzer
|
|
Join Date: 07.2009
Posts: 19
Rep Power: 3
|
|
|
den fehler habe ich ab und zu, wenn die datei nicht zur gänze auf dem ftp hochgeladen wurde
|

16.11.2009, 10:56
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
Da fehlt immer noch die Variable hinter while(
|

16.11.2009, 18:32
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
Variable ist schon drin hatte vergessen es hier zu ändern.
Code:
<?php
$portal = true;
require_once($vbulletin->options['photoplog_full_path'].'/thumbnails.php');
$i = 0;
$bgclass = exec_switch_bg();
while($photoplog_minithumb_pics = $this->db->fetch_array($photoplog_minithumb_pics))
{
if($this->registry->vbcmsoptions['photopics_break'] == $i)
{
$bgclass = exec_switch_bg();
$breaker = '</tr><tr valign="top">';
$i = 0;
}else{
$breaker = '';
}
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] .= "' . fetch_template('ocp_portalthumbs') . '";');
unset($photoplog_minithumb_pics, $bgclass, $i, $breaker);
?>
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

17.11.2009, 15:15
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
Code:
<?php
$portal = true;
require_once($vbulletin->options['photoplog_full_path'].'/thumbnails.php');
$i = 0;
$bgclass = exec_switch_bg();
while($photoplog_minithumb_pics = $this->db->fetch_array($photoplog_minithumb_pics))
{
if($this->registry->vbcmsoptions['photopics_break'] == $i)
{
$bgclass = exec_switch_bg();
$breaker = '</tr><tr valign="top">';
$i = 0;
}else{
$breaker = '';
}
}
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] .= "' . fetch_template('ocp_portalthumbs') . '";');
unset($photoplog_minithumb_pics, $bgclass, $i, $breaker);
?>
|

17.11.2009, 17:54
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
Gut habs geändert
Irgendwas musas immernoch nicht stimmen denn jetzt Zeigt er nichts mehr an ?
habe jetzt auf das geändert
jetzt werden wieder Bilder angezigt ohne Fehlermeldung aber keine 2 oder dritte zeile wie erwartet?
breaker im Template eingefügt
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

19.11.2009, 16:42
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
|
hast ne Idee an was es immer noch liegen kann?
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

19.11.2009, 16:59
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
|
Wie sieht die Photoplog Thumbnails.php aus?
|

20.11.2009, 20:48
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
Hier
PHP Code:
<?php
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++ PhotoPlog Copyright © 2001-2007 ThinkDing LLC - All Rights Reserved ++++++++++++ ++++++++++++ This file may not be redistributed in whole or significant part ++++++++++++ ++++++++++++ PhotoPlog Pro is NOT free software :: visit photoplog.com for details ++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
// #################### PREVENT UNAUTHORIZED USERS ######################## if (!defined('VB_AREA') || !defined('THIS_SCRIPT') || !defined('DIR')) { exit(); // DO NOT REMOVE THIS! }
// ####################### GRAB PLOG BACK-END ############################# if (!defined('PHOTOPLOG_SCRIPT')) { require_once(DIR.'/includes/photoplog_prefix.php');
$photoplog = array(); $photoplog_ds_catquery = $db->query_first("SELECT data FROM " . TABLE_PREFIX . "datastore WHERE title = 'photoplog_dscat' "); $photoplog_ds_catopts = unserialize($photoplog_ds_catquery['data']); $db->free_result($photoplog_ds_catquery);
if (!is_array($photoplog_ds_catopts)) { $photoplog_ds_catopts = array(); }
define('PHOTOPLOG_SCRIPT','init'); require_once($vbulletin->options['photoplog_full_path'].'/permissions.php'); }
$photoplog['location'] = $vbulletin->options['photoplog_script_dir'];
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_start')) ? eval($hook) : false;
// #################### DETERMINE THUMB DISPLAY ########################### $photoplog_newest_display = intval($vbulletin->options['photoplog_newest_display']);
$photoplog_vba_adjust = (defined('VBA_PORTAL')) ? 5 : 6;
$photoplog['do_vert'] = ( ($photoplog_newest_display == 2) || (intval($photoplog_newest_display + $photoplog_vba_adjust) % 9 == 0) ) ? 1 : 0;
if ($photoplog_vba_adjust == 5) { global $photoplog; }
// ###################### SET BIT OPTION VALUES ########################### $photoplog_categoryoptions = array( 'allowhtml' => 1, 'allowsmilies' => 2, 'allowbbcode' => 4, 'allowimgcode' => 8, 'allowparseurl' => 16, 'allowcomments' => 32, 'issearchable' => 64, 'ismembersfolder' => 128, 'actasdivider' => 256, 'allowdeschtml' => 512, 'openforsubcats' => 1024 );
// #################### INITIALIZE ADMIN SQL BIT ########################## require_once(DIR . '/includes/adminfunctions.php');
$photoplog['canadminforums'] = 0; $photoplog_admin_sql1 = 'AND ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.moderate = 0'; $photoplog_admin_sql1a = 'AND f1.moderate = 0'; $photoplog_admin_sql2 = 'AND ' . PHOTOPLOG_PREFIX . 'photoplog_ratecomment.moderate = 0'; $photoplog_admin_sql2a = 'AND f2.moderate = 0'; $photoplog_admin_sql3 = 'AND IFNULL(' . PHOTOPLOG_PREFIX . 'photoplog_ratecomment.moderate,0) = 0'; $photoplog_admin_sql4 = PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_comments0 AS num_comments, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_ratings0 AS num_ratings, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.sum_ratings0 AS sum_ratings, IF(' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_ratings0 > 0,' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.sum_ratings0 / ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_ratings0,0) AS ave_ratings, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.last_comment_dateline0 AS last_comment_dateline, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.last_comment_id0 AS last_comment_id'; $photoplog_admin_sql5 = 'AND ' . PHOTOPLOG_PREFIX . 'photoplog_catcounts.moderate = 0';
if (can_administer('canadminforums')) { $photoplog['canadminforums'] = 1; $photoplog_admin_sql1 = ''; $photoplog_admin_sql1a = ''; $photoplog_admin_sql2 = ''; $photoplog_admin_sql2a = ''; $photoplog_admin_sql3 = ''; $photoplog_admin_sql4 = PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_comments1 AS num_comments, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_ratings1 AS num_ratings, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.sum_ratings1 AS sum_ratings, IF(' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_ratings1 > 0,' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.sum_ratings1 / ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.num_ratings1,0) AS ave_ratings, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.last_comment_dateline1 AS last_comment_dateline, ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.last_comment_id1 AS last_comment_id'; $photoplog_admin_sql5 = 'AND ' . PHOTOPLOG_PREFIX . 'photoplog_catcounts.moderate = 1'; }
// ###################### INITIALIZE SEARCH INFO ########################## $photoplog_upload_bits = $photoplog_comment_bits = ''; $photoplog_upload_list = $photoplog_comment_list = ''; $photoplog_search_info = ''; $photoplog_searchinfo_active = ($vbulletin->options['photoplog_is_active'] && $vbulletin->options['photoplog_searchinfo_active']) ? 1 : 0;
if ($photoplog_searchinfo_active && ($_GET['photoplog_searchinfo'] || defined('PHOTOPLOG_SEARCHINFO'))) { $photoplog_searchquery_sql1 = $photoplog_searchquery_sql2 = ''; $photoplog_nocats_sql1 = $photoplog_nocats_sql2 = ''; $photoplog_search_query_form1 = $photoplog_search_query_form1 = '';
$photoplog_hslink1 = 'file_'.substr($vbulletin->options['photoplog_highslide_search_thumb'], 0, 1).'link'; $photoplog_hslink2 = 'file_'.substr($vbulletin->options['photoplog_highslide_search_thumb'], -1, 1).'link';
$photoplog['do_highslide'] = 0; if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') { $photoplog['do_highslide'] = 1; }
if ($_GET['photoplog_searchinfo'] && $_GET['photoplog_searchquery']) { $vbulletin->input->clean_array_gpc('g', array( 'photoplog_searchquery' => TYPE_STR, 'photoplog_searchtype' => TYPE_BOOL ));
$photoplog_search_query = $vbulletin->GPC['photoplog_searchquery']; $photoplog_search_type = $vbulletin->GPC['photoplog_searchtype'];
$photoplog_search_query_form1 = htmlspecialchars_uni($photoplog_search_query); $photoplog_search_query_form2 = htmlspecialchars_uni($photoplog_search_query);
if (vbstrlen($photoplog_search_query) >= intval($vbulletin->options['minsearchlength'])) { if ($photoplog_search_type) { $photoplog_search_query_temp_array = array($photoplog_search_query); } else { $photoplog_search_query_temp_array = explode(' ', $photoplog_search_query); }
foreach ($photoplog_search_query_temp_array AS $photoplog_search_query_temp_key => $photoplog_search_query_temp_value) { if (vbstrlen(trim($photoplog_search_query_temp_value)) < intval($vbulletin->options['minsearchlength'])) { unset($photoplog_search_query_temp_array[$photoplog_search_query_temp_key]); } }
$photoplog_search_query = trim(implode(' ', $photoplog_search_query_temp_array));
if ($photoplog_search_query) { $photoplog_from_chars = array('%','_'); $photoplog_to_chars = array('\%','\_'); $photoplog_search_query = str_replace($photoplog_from_chars, $photoplog_to_chars, $photoplog_search_query);
if ($vbulletin->options['allowwildcards']) { $photoplog_search_query = str_replace('*','%',$photoplog_search_query); } else { $photoplog_search_query = str_replace('*','',$photoplog_search_query); }
$photoplog_nosearch_cats = array();
if (!empty($photoplog_ds_catopts)) { foreach ($photoplog_ds_catopts AS $photoplog_ds_catid => $photoplog_ds_value) { $photoplog_categorybit = $photoplog_ds_catopts[$photoplog_ds_catid]['options']; $photoplog_catoptions = convert_bits_to_array($photoplog_categorybit, $photoplog_categoryoptions); $photoplog_do_searches = ($photoplog_catoptions['issearchable']) ? true : false; if (!$photoplog_do_searches) { $photoplog_nosearch_cats[] = intval($photoplog_ds_catid); } $photoplog_allow_desc_html[$photoplog_ds_catid] = $photoplog_catoptions['allowdeschtml']; } } if (!empty($photoplog_perm_not_allowed_bits)) { $photoplog_nosearch_cats = array_unique(array_merge($photoplog_nosearch_cats, $photoplog_perm_not_allowed_bits)); }
if (!empty($photoplog_nosearch_cats)) { $photoplog_nocats_sql1 = "AND " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.catid NOT IN (" . implode(",",$photoplog_nosearch_cats) . ")"; $photoplog_nocats_sql2 = "AND " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.catid NOT IN (" . implode(",",$photoplog_nosearch_cats) . ")"; }
$photoplog_searchquery_sql_temp1 = array(); $photoplog_searchquery_sql_temp2 = array();
if ($photoplog_search_type) { $photoplog_search_query_array = array($photoplog_search_query); } else { $photoplog_search_query_array = explode(' ', $photoplog_search_query); }
foreach ($photoplog_search_query_array AS $photoplog_search_query_value) { $photoplog_search_query_value = trim($photoplog_search_query_value); if (vbstrlen($photoplog_search_query_value) > 0) { $photoplog_search_query_value = str_replace('"', '', $photoplog_search_query_value); if (substr($photoplog_search_query_value, -1) == '%') { $photoplog_search_query_value = substr($photoplog_search_query_value, 0, -1).'*'; } $photoplog_search_query_value = str_replace('%', '', $photoplog_search_query_value);
$photoplog_search_query_value = $db->escape_string($photoplog_search_query_value);
if ($photoplog_search_type) { $photoplog_search_query_value = '"' . $photoplog_search_query_value . '"'; }
$photoplog_searchquery_sql_temp1[] = " MATCH (title, description, fielddata) AGAINST ('" . $photoplog_search_query_value . "' IN BOOLEAN MODE) ";
$photoplog_searchquery_sql_temp2[] = " MATCH (" . PHOTOPLOG_PREFIX . "photoplog_ratecomment.title, comment) AGAINST ('" . $photoplog_search_query_value . "' IN BOOLEAN MODE) "; } }
if (count($photoplog_searchquery_sql_temp1)) { $photoplog_searchquery_sql1 = "AND (" . implode(' OR ', $photoplog_searchquery_sql_temp1) . ")"; } if (count($photoplog_searchquery_sql_temp2)) { $photoplog_searchquery_sql2 = "AND (" . implode(' OR ', $photoplog_searchquery_sql_temp2) . ")"; }
unset($photoplog_searchquery_sql_temp1, $photoplog_searchquery_sql_temp2); } } }
$photoplog_thirty_days_ago = TIMENOW - (86400 * 30); $photoplog_search_sql1 = 'AND ' . PHOTOPLOG_PREFIX . 'photoplog_fileuploads.dateline > ' . intval($photoplog_thirty_days_ago); $photoplog_search_sql2 = 'AND ' . PHOTOPLOG_PREFIX . 'photoplog_ratecomment.dateline > ' . intval($photoplog_thirty_days_ago); $photoplog_phrase_addon1 = $vbphrase['photoplog_last_thirty_days']; $photoplog_phrase_addon2 = $vbphrase['photoplog_last_thirty_days'];
if ($photoplog_searchquery_sql1) { $photoplog_search_sql1 = $photoplog_searchquery_sql1; $photoplog_catid_sql1 = $photoplog_nocats_sql1; $photoplog_phrase_addon1 = $photoplog_search_query_form1; if ($displayWords) // comes from vB search.php file { $photoplog_phrase_addon1 = '<span class="normal">'.$vbphrase['key_words'].':</span> '.$displayWords; } } if ($photoplog_searchquery_sql2) { $photoplog_search_sql2 = $photoplog_searchquery_sql2; $photoplog_catid_sql2 = $photoplog_nocats_sql2; $photoplog_phrase_addon2 = $photoplog_search_query_form2; if ($displayWords) // comes from vB search.php file { $photoplog_phrase_addon2 = '<span class="normal">'.$vbphrase['key_words'].':</span> '.$displayWords; } } unset($photoplog_searchquery_sql1, $photoplog_searchquery_sql2, $photoplog_nocats_sql1, $photoplog_nocats_sql2);
if ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanviewfiles']) { $photoplog_upload_infos = $db->query_read_slave("SELECT fileid, catid, userid, username, filename, title, dateline FROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads WHERE 1=1 $photoplog_search_sql1 $photoplog_catid_sql1 $photoplog_admin_sql1 ORDER BY dateline DESC LIMIT 5 ");
while ($photoplog_upload_info = $db->fetch_array($photoplog_upload_infos)) { $photoplog['fileid'] = $photoplog_upload_info['fileid']; $photoplog['catid'] = $photoplog_upload_info['catid']; $photoplog['userid'] = $photoplog_upload_info['userid']; $photoplog['username'] = $photoplog_upload_info['username']; $photoplog['filename'] = $photoplog_upload_info['filename']; $photoplog['title'] = photoplog_process_text($photoplog_upload_info['title'], $photoplog['catid'], true, false); $photoplog['date'] = vbdate($vbulletin->options['dateformat'],$photoplog_upload_info['dateline'],true); $photoplog['time'] = vbdate($vbulletin->options['timeformat'],$photoplog_upload_info['dateline']);
$photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
photoplog_file_link($photoplog['userid'], $photoplog['fileid'], $photoplog['filename']);
$photoplog_upload_thumb = '<a href="'.$photoplog['location'].'/index.php?'.$vbulletin->session->vars['sessionurl'].'n='.$photoplog['fileid'].'"><img style="'.$vbulletin->options['photoplog_csssearch_thumbs'].'" src="'.$photoplog['file_slink'].'" alt="'.$photoplog['title'].'" border="0" /></a>'; if ($vbulletin->options['photoplog_highslide_active'] && $photoplog['do_highslide']) { $photoplog_upload_thumb = ' <script type="text/javascript">hs.registerOverlay({thumbnailId: \'hsjs' . $photoplog['hscnt'] . '\', overlayId: \'hscontrolbar\', position: \'top right\', hideOnMouseOut: true});</script> <a id="hsjs' . $photoplog['hscnt'] . '" href="' . $photoplog[$photoplog_hslink2] . '" class="highslide" onclick="return hs.expand(this, {slideshowGroup: \'searchinfo\'})"><img style="' . $vbulletin->options['photoplog_csssearch_thumbs'] . '" src="' . $photoplog[$photoplog_hslink1] . '" alt="' . $photoplog['title'] . '" border="0" /></a> <div class="highslide-caption" id="caption-for-hsjs' . $photoplog['hscnt'] . '"><a href="' . $photoplog['location'] . '/index.php?' . $vbulletin->session->vars['sessionurl'] . 'n=' . $photoplog['fileid'] . '">' . $photoplog['title'] . '</a> </div> '; }
$photoplog_upload_bits .= ' <tr> <td class="alt1" align="left"> ' . $photoplog_upload_thumb . ' </td> <td class="alt1" align="left" width="100%"> <span class="smallfont"> <a href="'.$photoplog['location'].'/index.php?'.$vbulletin->session->vars['sessionurl'].'n='.$photoplog['fileid'].'">'.$photoplog['title'].'</a> <br /> '.$vbphrase['photoplog_posted_by'].' <a href="member.php?'.$vbulletin->session->vars['sessionurl'].'u='.$photoplog['userid'].'">'.$photoplog['username'].'</a> '.$photoplog['date'].' '.iif(!$show['detailedtime'], '<span class="time">'.$photoplog['time'].'</span>', '').' </span> </td> </tr> '; }
$db->free_result($photoplog_upload_infos);
if ($photoplog_upload_bits) { $photoplog_upload_list .= ' <table class="tborder" border="0" cellpadding="'.$stylevar['cellpadding'].'" cellspacing="'.$stylevar['cellspacing'].'" align="center" width="100%" style="background: '.$stylevar['alt1_bgcolor'].'; display: block; height: 100%;"> <tr> <td class="thead" colspan="2"> <a href="'.$photoplog['location'].'/index.php?'.$vbulletin->session->vars['sessionurl'].'v=1">'.$vbphrase['photoplog_newest_uploads'].'</a> - '.$photoplog_phrase_addon1.' </td> </tr> '.$photoplog_upload_bits.' </table> '; } }
if ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanviewcomments']) { $photoplog_order_sql = "ORDER BY " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.dateline DESC, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid DESC";
$photoplog_comment_infos = $db->query_read_slave("SELECT DISTINCT(" . PHOTOPLOG_PREFIX . "photoplog_ratecomment.fileid), " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.catid, " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.userid, " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.username, " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.title, " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.dateline, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.filename, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.userid AS fu_userid, $photoplog_admin_sql4 FROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads, " . PHOTOPLOG_PREFIX . "photoplog_ratecomment WHERE 1=1 $photoplog_search_sql2 AND " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.fileid = " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid AND " . PHOTOPLOG_PREFIX . "photoplog_ratecomment.comment != '' $photoplog_catid_sql1 $photoplog_catid_sql2 $photoplog_admin_sql1 $photoplog_admin_sql2 $photoplog_order_sql LIMIT 5 ");
while ($photoplog_comment_info = $db->fetch_array($photoplog_comment_infos)) { $photoplog['do_comments'] = 0; $photoplog['catid'] = $photoplog_comment_info['catid'];
if (in_array($photoplog['catid'],array_keys($photoplog_ds_catopts))) { $photoplog_categorybit = $photoplog_ds_catopts[$photoplog['catid']]['options']; $photoplog_catoptions = convert_bits_to_array($photoplog_categorybit, $photoplog_categoryoptions); $photoplog['do_comments'] = ($photoplog_catoptions['allowcomments']) ? 1 : 0; }
if (!$photoplog['do_comments']) { continue; }
$photoplog['fileid'] = $photoplog_comment_info['fileid']; $photoplog['userid'] = $photoplog_comment_info['userid']; $photoplog['username'] = $photoplog_comment_info['username']; $photoplog['filename'] = $photoplog_comment_info['filename']; $photoplog['fu_userid'] = $photoplog_comment_info['fu_userid']; $photoplog['title'] = photoplog_process_text($photoplog_comment_info['title'], $photoplog['catid'], true, false); $photoplog['date'] = vbdate($vbulletin->options['dateformat'],$photoplog_comment_info['dateline'],true); $photoplog['time'] = vbdate($vbulletin->options['timeformat'],$photoplog_comment_info['dateline']);
$photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
photoplog_file_link($photoplog['fu_userid'], $photoplog['fileid'], $photoplog['filename']);
$photoplog_comment_thumb = '<a href="'.$photoplog['location'].'/index.php?'.$vbulletin->session->vars['sessionurl'].'n='.$photoplog['fileid'].'"><img style="'.$vbulletin->options['photoplog_csssearch_thumbs'].'" src="'.$photoplog['file_slink'].'" alt="'.$photoplog['title'].'" border="0" /></a>'; if ($vbulletin->options['photoplog_highslide_active'] && $photoplog['do_highslide']) { $photoplog_comment_thumb = ' <script type="text/javascript">hs.registerOverlay({thumbnailId: \'hsjs' . $photoplog['hscnt'] . '\', overlayId: \'hscontrolbar\', position: \'top right\', hideOnMouseOut: true});</script> <a id="hsjs' . $photoplog['hscnt'] . '" href="' . $photoplog[$photoplog_hslink2] . '" class="highslide" onclick="return hs.expand(this, {slideshowGroup: \'searchinfo\'})"><img style="' . $vbulletin->options['photoplog_csssearch_thumbs'] . '" src="' . $photoplog[$photoplog_hslink1] . '" alt="' . $photoplog['title'] . '" border="0" /></a> <div class="highslide-caption" id="caption-for-hsjs' . $photoplog['hscnt'] . '"><a href="' . $photoplog['location'] . '/index.php?' . $vbulletin->session->vars['sessionurl'] . 'n=' . $photoplog['fileid'] . '">' . $photoplog['title'] . '</a> </div> '; }
$photoplog_comment_bits .= ' <tr> <td class="alt1" align="left"> ' . $photoplog_comment_thumb . ' </td> <td class="alt1" align="left" width="100%"> <span class="smallfont"> <a href="'.$photoplog['location'].'/index.php?'.$vbulletin->session->vars['sessionurl'].'n='.$photoplog['fileid'].'">'.$photoplog['title'].'</a> <br /> '.$vbphrase['photoplog_posted_by'].' <a href="member.php?'.$vbulletin->session->vars['sessionurl'].'u='.$photoplog['userid'].'">'.$photoplog['username'].'</a> '.$photoplog['date'].' '.iif(!$show['detailedtime'], '<span class="time">'.$photoplog['time'].'</span>', '').' </span> </td> </tr> '; }
$db->free_result($photoplog_comment_infos);
if ($photoplog_comment_bits) { $photoplog_comment_list .= ' <table class="tborder" border="0" cellpadding="'.$stylevar['cellpadding'].'" cellspacing="'.$stylevar['cellspacing'].'" align="center" width="100%" style="background: '.$stylevar['alt1_bgcolor'].'; display: block; height: 100%;"> <tr> <td class="thead" colspan="2"> <a href="'.$photoplog['location'].'/index.php?'.$vbulletin->session->vars['sessionurl'].'v=5">'.$vbphrase['photoplog_newest_comments'].'</a> - '.$photoplog_phrase_addon2.' </td> </tr> '.$photoplog_comment_bits.' </table> '; } }
if ($photoplog_upload_list || $photoplog_comment_list) { $photoplog_searchinfo_title = $vbphrase['photoplog_photoplog'] . ' - ' . $vbphrase['photoplog_gallery']; if ($vbphrase['photoplog_photoplog'] == $vbphrase['photoplog_gallery']) { $photoplog_searchinfo_title = $vbphrase['photoplog_photoplog']; }
$photoplog_search_info .= ' <table class="tborder" border="0" cellpadding="'.$stylevar['cellpadding'].'" cellspacing="'.$stylevar['cellspacing'].'" align="center" width="100%"> <thead> <tr> <td class="tcat" colspan="2"> <a style="float: '.$stylevar['right'].';" href="#top" onclick="return toggle_collapse(\'photoplog_searchinfo\')"><img id="collapseimg_photoplog_searchinfo" src="'.$stylevar['imgdir_button'].'/collapse_tcat'.$vbcollapse['collapseimg_photoplog_searchinfo'].'.gif" alt="'.$vbphrase['photoplog_toggle'].'" border="0" /></a> <a href="'.$photoplog['location'].'/index.php'.$vbulletin->session->vars['sessionurl_q'].'">'.$photoplog_searchinfo_title.'</a> </td> </tr> </thead> <tbody id="collapseobj_photoplog_searchinfo" style="'.$vbcollapse['collapseobj_photoplog_searchinfo'].'"> <tr> '; }
$photoplog_search_tdwidth = ' width="100%"'; if ($photoplog_upload_list && $photoplog_comment_list) { $photoplog_search_tdwidth = ' width="50%"'; }
if ($photoplog_upload_list) { $photoplog_search_info .= ' <td class="alt2" valign="top"'.$photoplog_search_tdwidth.'>'.$photoplog_upload_list.'</td> '; }
if ($photoplog_comment_list) { $photoplog_search_info .= ' <td class="alt2" valign="top"'.$photoplog_search_tdwidth.'>'.$photoplog_comment_list.'</td> '; }
if ($photoplog_upload_list || $photoplog_comment_list) { $photoplog_search_info .= ' </tr> </tbody> </table> <br /> '; }
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_searchinfo')) ? eval($hook) : false;
return $photoplog_search_info; }
// ###################### INITIALIZE STATS BITS ########################### $photoplog_file_stats_less1 = 0; $photoplog_file_stats_more1 = 0; $photoplog_file_stats_less2 = 0; if (THIS_SCRIPT != 'member' || !$userinfo['userid']) { $photoplog_file_stats = $db->query_first_slave("SELECT COUNT(fileid) AS num1, MAX(fileid) AS num2 FROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads "); $photoplog_file_stats_num1 = intval($photoplog_file_stats['num1']); $photoplog_file_stats_num2 = intval($photoplog_file_stats['num2']); $db->free_result($photoplog_file_stats);
$photoplog_file_stats_rand = intval(rand(0,1) * $photoplog_file_stats_num2); $photoplog_file_stats_less1 = max(1, $photoplog_file_stats_rand - 100); $photoplog_file_stats_more1 = $photoplog_file_stats_rand + 100; if ($photoplog_file_stats_less1 == 1) { $photoplog_file_stats_more1 = $photoplog_file_stats_rand + 200; } if ($photoplog_file_stats_more1 > $photoplog_file_stats_num2) { $photoplog_file_stats_less1 = max(1, $photoplog_file_stats_num2 - 200); $photoplog_file_stats_more1 = $photoplog_file_stats_num2; } $photoplog_file_stats_less2 = max(1, $photoplog_file_stats_num2 - 100); }
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|

20.11.2009, 20:50
 |
Aufsteigender Benutzer
|
|
Join Date: 10.2008
Location: Berlin
Age: 27
Posts: 196
Rep Power: 5
|
|
Zu viele Zeichen daher Doppelpost
PHP Code:
// ###################### INITIALIZE RANDOM BITS ########################## $photoplog_cnt_bits = 0; $photoplog['minithumbnails'] = ''; $photoplog['numrand_thumbs'] = intval($vbulletin->options['photoplog_numrand_thumbs']);
if ( $vbulletin->options['photoplog_is_active'] && $photoplog['numrand_thumbs'] > 0 && ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanviewfiles']) ) { $photoplog_sql = 'WHERE 1=1'; $photoplog_fileid_sql = "AND " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid BETWEEN " . intval($photoplog_file_stats_less1) . " AND " . intval($photoplog_file_stats_more1); if (THIS_SCRIPT == 'member' && $userinfo['userid']) { $photoplog_sql = "WHERE " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.userid = ".intval($userinfo['userid']); $photoplog_fileid_sql = ''; }
$photoplog_order_sql = 'ORDER BY RAND()';
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_sortsql_random')) ? eval($hook) : false;
$photoplog_file_infos = $db->query_read_slave("SELECT " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.catid, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.filename, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.userid, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.title, $photoplog_admin_sql4 FROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads $photoplog_sql $photoplog_fileid_sql $photoplog_catid_sql1 $photoplog_admin_sql1 $photoplog_order_sql LIMIT ".intval($photoplog['numrand_thumbs'])." ");
$photoplog_hslink1 = 'file_'.substr($vbulletin->options['photoplog_highslide_random_thumb'], 0, 1).'link'; $photoplog_hslink2 = 'file_'.substr($vbulletin->options['photoplog_highslide_random_thumb'], -1, 1).'link';
$photoplog['do_highslide'] = 0; if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') { $photoplog['do_highslide'] = 1; }
$photoplog_minithumb_pics = '';
while ($photoplog_file_info = $db->fetch_array($photoplog_file_infos)) { $photoplog_cnt_bits++;
$photoplog['fileid'] = $photoplog_file_info['fileid']; $photoplog['catid'] = $photoplog_file_info['catid']; $photoplog['filename'] = $photoplog_file_info['filename']; $photoplog['userid'] = $photoplog_file_info['userid']; $photoplog['title'] = photoplog_process_text($photoplog_file_info['title'], $photoplog['catid'], true, false);
$photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
photoplog_file_link($photoplog['userid'], $photoplog['fileid'], $photoplog['filename']);
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_minithumbpics')) ? eval($hook) : false;
eval('$photoplog_minithumb_pics .= "' . fetch_template('photoplog_minithumb_pics') . '";'); }
$db->free_result($photoplog_file_infos);
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_minithumbnails')) ? eval($hook) : false;
eval('$photoplog[\'minithumbnails\'] = "' . fetch_template('photoplog_minithumb_nails') . '";'); }
if (!$photoplog_cnt_bits) { $photoplog['minithumbnails'] = ''; }
// ###################### INITIALIZE NEWEST BITS ########################## $photoplog_cnt_bits = 0; $photoplog['thumbnails'] = ''; $photoplog['numnew_thumbs'] = intval($vbulletin->options['photoplog_numnew_thumbs']); $photoplog['numnew_width'] = '';
if ( $vbulletin->options['photoplog_is_active'] && $photoplog['numnew_thumbs'] > 0 && ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanviewfiles']) ) { $photoplog['numnew_width'] = intval(100 / $photoplog['numnew_thumbs']);
$photoplog_sql = 'WHERE 1=1'; $photoplog_fileid_sql = "AND " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid >= " . intval($photoplog_file_stats_less2); if (THIS_SCRIPT == 'member' && $userinfo['userid']) { $photoplog_sql = "WHERE " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.userid = ".intval($userinfo['userid']); $photoplog_fileid_sql = ''; }
$photoplog_order_sql = "ORDER BY " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.dateline DESC, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid DESC";
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_sortsql_new')) ? eval($hook) : false;
$photoplog_file_infos = $db->query_read_slave("SELECT " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.fileid, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.filename, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.userid, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.username, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.title, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.catid, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.dateline, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.filesize, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.dimensions, " . PHOTOPLOG_PREFIX . "photoplog_fileuploads.views, $photoplog_admin_sql4 FROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads $photoplog_sql $photoplog_fileid_sql $photoplog_catid_sql1 $photoplog_admin_sql1 $photoplog_order_sql LIMIT ".intval($photoplog['numnew_thumbs'])." ");
$photoplog_hslink1 = 'file_'.substr($vbulletin->options['photoplog_highslide_new_thumb'], 0, 1).'link'; $photoplog_hslink2 = 'file_'.substr($vbulletin->options['photoplog_highslide_new_thumb'], -1, 1).'link';
$photoplog['do_highslide'] = 0; if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') { $photoplog['do_highslide'] = 1; }
$photoplog_thumb_pics = ''; $photoplog_thumb_info = '';
while ($photoplog_file_info = $db->fetch_array($photoplog_file_infos)) { $photoplog_cnt_bits++;
$photoplog['fileid'] = $photoplog_file_info['fileid']; $photoplog['filename'] = $photoplog_file_info['filename']; $photoplog['userid'] = $photoplog_file_info['userid']; $photoplog['username'] = $photoplog_file_info['username']; $photoplog['catid'] = $photoplog_file_info['catid'];
$photoplog['title'] = $photoplog_file_info['title']; if ($photoplog['title'] == '') { $photoplog['title'] = $vbphrase['photoplog_untitled']; } $photoplog_title_line = $photoplog['title']; if (vbstrlen($photoplog_title_line) > 20) { $photoplog_title_line = fetch_trimmed_title($photoplog_title_line, 17); } $photoplog['title'] = photoplog_process_text($photoplog['title'], $photoplog['catid'], true, false); $photoplog_title_line = photoplog_process_text($photoplog_title_line, $photoplog['catid'], true, false);
$photoplog['do_comments'] = 0;
if (!in_array($photoplog['catid'],array_keys($photoplog_ds_catopts))) { $photoplog['category_title'] = htmlspecialchars_uni($vbphrase['photoplog_not_available']); } else { $photoplog['category_title'] = htmlspecialchars_uni($photoplog_ds_catopts[$photoplog['catid']]['title']);
$photoplog_categorybit = $photoplog_ds_catopts[$photoplog['catid']]['options']; $photoplog_catoptions = convert_bits_to_array($photoplog_categorybit, $photoplog_categoryoptions); $photoplog['do_comments'] = ($photoplog_catoptions['allowcomments']) ? 1 : 0; }
$photoplog['comment_raw_average'] = $vbphrase['photoplog_none']; $photoplog['comment_img_average'] = 0; $photoplog_comment_raw_count = 0; $photoplog_comment_info = 0;
if ( $photoplog['do_comments'] && ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanviewcomments']) ) { $photoplog['comment_raw_average'] = sprintf("%.2f",round($photoplog_file_info['ave_ratings'],2)); $photoplog['comment_img_average'] = intval(round($photoplog_file_info['ave_ratings'],0)); if ($photoplog['comment_raw_average'] == '0.00') { $photoplog['comment_raw_average'] = $vbphrase['photoplog_none']; } $photoplog_comment_raw_count = intval($photoplog_file_info['num_comments']);
if ($photoplog_comment_raw_count > 0) { $photoplog_comment_raw_count = "<a href=\"".$photoplog['location']."/index.php?".$vbulletin->session->vars['sessionurl']."n=".$photoplog['fileid']."#comment\">".$photoplog_comment_raw_count."</a>"; }
$photoplog_comment_info = 1; }
$photoplog['date'] = vbdate($vbulletin->options['dateformat'],$photoplog_file_info['dateline'],true); $photoplog['time'] = '';
if (!$show['detailedtime']) { $photoplog['time'] = vbdate($vbulletin->options['timeformat'],$photoplog_file_info['dateline']); $photoplog['time'] = "<span class=\"time\">".$photoplog['time']."</span>"; }
$photoplog['filesize'] = vb_number_format($photoplog_file_info['filesize'],1,true); $photoplog['dimensions'] = $photoplog_file_info['dimensions']; $photoplog['views'] = $photoplog_file_info['views'];
$photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
photoplog_file_link($photoplog['userid'], $photoplog['fileid'], $photoplog['filename']);
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_thumbpics')) ? eval($hook) : false;
eval('$photoplog_thumb_pics .= "' . fetch_template('photoplog_thumb_pics') . '";'); eval('$photoplog_thumb_info .= "' . fetch_template('photoplog_thumb_info') . '";');
if ($photoplog['do_vert']) { if ($vbulletin->options['photoplog_info_thumbs']) { $photoplog_thumb_pics .= $photoplog_thumb_info; } $photoplog_thumb_info = ''; } }
$db->free_result($photoplog_file_infos);
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_thumbnails')) ? eval($hook) : false;
eval('$photoplog[\'thumbnails\'] = "' . fetch_template('photoplog_thumb_nails') . '";'); }
if (!$photoplog_cnt_bits) { $photoplog['thumbnails'] = ''; }
// ###################### INITIALIZE ALBUM BITS ########################### $photoplog_cnt_bits = 0; $photoplog['memberalbums'] = ''; $photoplog['album_control'] = 0;
if ( THIS_SCRIPT == 'member' && $vbulletin->options['photoplog_is_active'] && ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanusealbumfeature']) ) { $photoplog_do_flag = 0; if (empty($_REQUEST['do'])) { $photoplog_do_flag = 1; }
if ($_REQUEST['do'] == 'album' || $photoplog_do_flag) { $vbulletin->input->clean_array_gpc('g', array( 'aid' => TYPE_UINT, 'page' => TYPE_UINT, 'pp' => TYPE_UINT ));
$photoplog['album_albumid'] = $vbulletin->GPC['aid']; $photoplog_page_num = $vbulletin->GPC['page']; $photoplog_per_page = $vbulletin->GPC['pp'];
$photoplog_cnt = 0; $photoplog['album_bits'] = ''; $photoplog['album_title'] = ''; $photoplog['album_description'] = ''; $photoplog['album_privacy'] = ''; $photoplog['album_count'] = 0; $photoplog['album_pagenav'] = '';
$photoplog_hslink1 = 'file_'.substr($vbulletin->options['photoplog_highslide_small_thumb'], 0, 1).'link'; $photoplog_hslink2 = 'file_'.substr($vbulletin->options['photoplog_highslide_small_thumb'], -1, 1).'link';
$photoplog['do_highslide'] = 0; if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') { $photoplog['do_highslide'] = 1; }
if ($photoplog['album_albumid']) { $photoplog_album_info = $db->query_first_slave("SELECT fileids, title FROM " . PHOTOPLOG_PREFIX . "photoplog_useralbums WHERE albumid = ".intval($photoplog['album_albumid'])." AND userid = ".intval($userinfo['userid'])." AND visible = 1 ");
if (!$photoplog_album_info) { $photoplog_return_url = 'member.php?'.$vbulletin->session->vars['sessionurl'].'u='.$userinfo['userid']; exec_header_redirect($photoplog_return_url); exit(); }
$photoplog_album_fileids = unserialize($photoplog_album_info['fileids']); $photoplog['album_title'] = htmlspecialchars_uni($photoplog_album_info['title']);
$db->free_result($photoplog_album_info);
if (!is_array($photoplog_album_fileids)) { $photoplog_album_fileids = array(); }
$photoplog_file_tot = count($photoplog_album_fileids); if (!$photoplog_file_tot) { $photoplog_return_url = 'member.php?'.$vbulletin->session->vars['sessionurl'].'u='.$userinfo['userid']; exec_header_redirect($photoplog_return_url); exit(); }
$photoplog_page_tot = 12; if (!$photoplog_page_num || $photoplog_page_num == 1) { $photoplog_page_start = 0; } else { $photoplog_page_start = $photoplog_page_tot * ($photoplog_page_num - 1); } $photoplog_album_fileids = array_slice($photoplog_album_fileids, $photoplog_page_start, $photoplog_page_tot);
$photoplog_userids = array(); $photoplog_filenames = array(); $photoplog_titles = array();
$photoplog_file_infos = $db->query_read_slave("SELECT fileid, catid, userid, filename, title FROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads WHERE fileid IN (".implode(',', $photoplog_album_fileids).") $photoplog_catid_sql1 $photoplog_admin_sql1 "); while ($photoplog_file_info = $db->fetch_array($photoplog_file_infos)) { $photoplog['fileid'] = $photoplog_file_info['fileid']; $photoplog['catid'] = $photoplog_file_info['catid']; $photoplog_userids[$photoplog['fileid']] = $photoplog_file_info['userid']; $photoplog_filenames[$photoplog['fileid']] = $photoplog_file_info['filename']; $photoplog_titles[$photoplog['fileid']] = photoplog_process_text($photoplog_file_info['title'], $photoplog['catid'], true, false); } $db->free_result($photoplog_file_infos);
$photoplog_cnt_bits = 0; foreach ($photoplog_album_fileids AS $photoplog['fileid']) { $photoplog_cnt_bits ++;
$photoplog['userid'] = $photoplog_userids[$photoplog['fileid']]; $photoplog['filename'] = $photoplog_filenames[$photoplog['fileid']]; $photoplog['title'] = $photoplog_titles[$photoplog['fileid']];
$photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
photoplog_file_link($photoplog['userid'], $photoplog['fileid'], $photoplog['filename']);
($hook = vBulletinHook::fetch_hook('photoplog_albums_viewbit')) ? eval($hook) : false;
eval('$photoplog[\'album_bits\'] .= "' . fetch_template('photoplog_album_view_bit') . '";');
if ($photoplog_cnt_bits % 4 == 0) { $photoplog['album_bits'] .= '</tr><tr>'; } }
$photoplog['album_bits'] = eregi_replace(preg_quote("</tr><tr>")."$","",$photoplog['album_bits']);
while ($photoplog_cnt_bits % 4 != 0) { $photoplog['album_bits'] .= "<td class=\"alt1\" align=\"left\" valign=\"bottom\" width=\"25%\"> </td>"; $photoplog_cnt_bits ++; }
sanitize_pageresults($photoplog_file_tot, $photoplog_page_num, $photoplog_per_page, $photoplog_page_tot, $photoplog_page_tot); $photoplog_link = 'do=album&u='.$userinfo['userid'].'&aid='.intval($photoplog['album_albumid']); $photoplog_sort_url = 'member.php?'.$vbulletin->session->vars['sessionurl'].$photoplog_link; $photoplog['album_pagenav'] = construct_page_nav($photoplog_page_num, $photoplog_per_page, $photoplog_file_tot, $photoplog_sort_url, '#album');
($hook = vBulletinHook::fetch_hook('photoplog_albums_viewlist')) ? eval($hook) : false;
eval('$photoplog[\'memberalbums\'] .= "' . fetch_template('photoplog_album_view_list') . '";'); } else { $photoplog_album_info = $db->query_first_slave("SELECT COUNT(*) AS cnt1 FROM " . PHOTOPLOG_PREFIX . "photoplog_useralbums WHERE userid = ".intval($userinfo['userid'])." AND visible = 1 "); $photoplog_album_tot = intval($photoplog_album_info['cnt1']); $db->free_result($photoplog_album_info);
$photoplog_page_tot = 10; sanitize_pageresults($photoplog_album_tot, $photoplog_page_num, $photoplog_per_page, $photoplog_page_tot, $photoplog_page_tot);
$photoplog_limit_lower = ($photoplog_page_num - 1) * $photoplog_per_page; if ($photoplog_limit_lower < 0) { $photoplog_limit_lower = 0; }
$photoplog_limit_lower = intval($photoplog_limit_lower); $photoplog_per_page = intval($photoplog_per_page);
$photoplog_link = 'do=album&u='.$userinfo['userid']; $photoplog_sort_url = 'member.php?'.$vbulletin->session->vars['sessionurl'].$photoplog_link; $photoplog['album_pagenav'] = construct_page_nav($photoplog_page_num, $photoplog_per_page, $photoplog_album_tot, $photoplog_sort_url, '#album');
$photoplog_album_infos = $db->query_read_slave("SELECT albumid,title,description,fileids FROM " . PHOTOPLOG_PREFIX . "photoplog_useralbums WHERE userid = ".intval($userinfo['userid'])." AND visible = 1 ORDER BY dateline DESC LIMIT $photoplog_limit_lower,$photoplog_per_page "); while ($photoplog_album_info = $db->fetch_array($photoplog_album_infos)) { $photoplog_cnt++;
$photoplog['album_albumid'] = intval($photoplog_album_info['albumid']); $photoplog['album_title'] = htmlspecialchars_uni($photoplog_album_info['title']); $photoplog['album_description'] = nl2br(htmlspecialchars_uni($photoplog_album_info['description'])); $photoplog['album_count'] = vb_number_format(intval(count(unserialize($photoplog_album_info['fileids']))));
($hook = vBulletinHook::fetch_hook('photoplog_albums_bit')) ? eval($hook) : false;
eval('$photoplog[\'album_bits\'] .= "' . fetch_template('photoplog_album_bit') . '";'); } $db->free_result($photoplog_album_infos);
if ($photoplog_cnt) { eval('$photoplog[\'memberalbums\'] .= "' . fetch_template('photoplog_album_list') . '";'); }
($hook = vBulletinHook::fetch_hook('photoplog_albums_list')) ? eval($hook) : false; } } }
($hook = vBulletinHook::fetch_hook('photoplog_thumbnails_complete')) ? eval($hook) : false;
?>
__________________
Mein Forum Xpert-Oc-Team (Computer, Vmod und Overclocking Forum)
Hier findet man die richtigen Leute wenn es um Computer Probleme, Aufrüsten, Overclocking, Modding und Vmodding geht. Einsteiger sind immer herzlich bei uns Willkommen.
www.xpert-oc-team.de
VB 3.8.6 PL1 ======== VBCMS 2.6.0 ======== VB Blog 2.0.2 ======== VB Projektverwaltung 2.0.1 ======== vBExperience 3.8.3
itrader 2.1.0 ======== Membermap 2.0.2 ======== Downloads 5.1.0 ======== Lexikon 1.1.0 ======== E-impressum 1.63
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
HTML code is Off
|
|
|
|