[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

Mod: Wer ist auf dem Bild?
Fragen und Diskussionen zu Modulen / Erweiterungen
Go to page Previous  1, 2, 3
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ›  Module & Blöcke

View previous topic :: View next topic  
Author Message
begg
Agent
Agent

Offline Offline
Joined: May 27, 2007
Posts: 50
Location: St. Gallen - Schweiz
PostPosted: 08.03.2009 21:39
Post subject: Re: Mod: Wer ist auf dem Bild?

das hört sich gut an. das wäre noch etwas, welches sowieso allg. bei coppermine noch fehlt!! naja vielleicht wirds ja mal noch....oder eben ein zusatz-modul für cpgn!! ;-)))

werde hier wieder öfters vorbeischauen...das bräuchte ich nämlich auch! =)

_________________
I just overracted....

begg's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
freundeskreis-stgallen.ch / Vers. 5.2.5 / Mysql DB 5.0.27 (viàPHPMyadmin) / 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 09.03.2009 13:05
Post subject: Re: Mod: Wer ist auf dem Bild?

@ Poldi Wink Sind schon 3 Wochen um?? *g* Hast du schon Urlaub?? *g*

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Poldi
Moderator
Moderator

Offline Offline
Joined: Nov 14, 2004
Posts: 705

PostPosted: 09.03.2009 15:38
Post subject: Re: Mod: Wer ist auf dem Bild?

Ich hasse euch alle *g*

Nein, ich hab keinen Urlaub (gestrichen, von wegen Wirtschaftskrise), aber ich gucks mir trotzdem die Woche an Razz

_________________
gG,
Poldi
www.green-dragon.de (Dragonfly 9.2.1)
www.tampones.de (Dragonfly 9.2.1)
www.bfg-deggendorf.de (Dragonfly 9.2.1)
www.sexy-goths.de (Dragonfly 9.1.2.1)
www.gig-hunter.de (deceased)
www.green-dragon.net (Dragonfly CVS ... Testseite)

Poldi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.0.27-5.0.18/4.4.9-5.2.1/9.1.0.0-9.2.1
Back to top
View user's profile Visit poster's website
begg
Agent
Agent

Offline Offline
Joined: May 27, 2007
Posts: 50
Location: St. Gallen - Schweiz
PostPosted: 09.03.2009 18:23
Post subject: Re: Mod: Wer ist auf dem Bild?

wir lieben dich alle dafür poldi!! ;-D


da kommt, wenn dann das modul funktioniert, schon meine nächste frage:

wie lege ich nen backup von den benutzeraccounts/fotos an?? ist das provider-abhängig?? habe bis jetzt doch immer, falls etwas nicht mehr funktionierte, die ganze site plattgemacht und neu aufgesetzt...aber mit bald 10'000 fotos ist das n riesenaufwand....(-_-)

_________________
I just overracted....

begg's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
freundeskreis-stgallen.ch / Vers. 5.2.5 / Mysql DB 5.0.27 (viàPHPMyadmin) / 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Poldi
Moderator
Moderator

Offline Offline
Joined: Nov 14, 2004
Posts: 705

PostPosted: 09.03.2009 18:33
Post subject: Re: Mod: Wer ist auf dem Bild?

Naja, mach ein Backup von der Datenbank (für die User- und Bild-Informationen) und mach ein Backup des modules/coppermine/albums Ordners, dort sind alle Bilder gespeichert.

Wenn du Mist baust, einfach das Datenbank-Backup wieder auf den DB-Server einspielen und das Backup der Bilder wieder in den entsprechenden Ordner laden ...

_________________
gG,
Poldi
www.green-dragon.de (Dragonfly 9.2.1)
www.tampones.de (Dragonfly 9.2.1)
www.bfg-deggendorf.de (Dragonfly 9.2.1)
www.sexy-goths.de (Dragonfly 9.1.2.1)
www.gig-hunter.de (deceased)
www.green-dragon.net (Dragonfly CVS ... Testseite)

Poldi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.0.27-5.0.18/4.4.9-5.2.1/9.1.0.0-9.2.1
Back to top
View user's profile Visit poster's website
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 23.03.2009 20:35
Post subject: Re: Mod: Wer ist auf dem Bild?

joar... ich wollt das Thema nicht sterben lassen Wink

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 01.04.2009 17:27
Post subject: Re: Mod: Wer ist auf dem Bild?

komm mal gerade nicht weiter:

ich habe mir dies umgeschrieben von den comments:
Array:
//Display User on Picture
function html_display_user($pid)
{
	global $CONFIG, $USER, $CURRENT_ALBUM_DATA, $username,$FAVPICS,$CURRENT_PIC_DATA,$THEME_DIR,$MAIN_CFG;
	global $template_user_on_picture, $template_add_your_username, $db;
	$html = '';
		
      $tmpl_uop_buttons = template_extract_block($template_user_on_picture, 'buttons', '{BUTTONS}');
	$tmpl_uop_ipinfo = template_extract_block($template_user_on_picture, 'ipinfo', '{IPINFO}');
	$result = $db->sql_query("SELECT uop_id, uop_author, uop_date, uop_uid, uop_hdr_ip FROM {$CONFIG['TABLE_USERONPICTURE']} WHERE pid='$pid' ORDER BY uop_id ASC",false, __FILE__,__LINE__);
	while ($row = $db->sql_fetchrow($result)) {
		$user_can_edit = (GALLERY_ADMIN_MODE || (USER_ID > 1 && USER_ID == $row['uop_id'] && USER_CAN_POST_COMMENTS));
		$uop_buttons = $user_can_edit ? $tmpl_uop_buttons : '';
		$uop_edit_box = $user_can_edit ? $tmpl_uop_edit_box : '';
		$uop_ipinfo = ($row['uop_hdr_ip'] && GALLERY_ADMIN_MODE)?$tmpl_uop_ipinfo : '';
		
		$params = array('{EDIT}' => &$uop_edit_box,
			'{BUTTONS}' => &$uop_buttons,
			'{IPINFO}' => &$uop_ipinfo
		);
		$template = template_eval($template_user_on_picture, $params);
		$info = '';
		
		$params = array('{UOP_AUTHOR}' => $row['uop_author'],
			'{UOP_ID}' => $row['uop_id'],
			'{EDIT_TITLE}' => COM_EDIT_TITLE,
			'{CONFIRM_DELETE}' => CONFIRM_DELETE_COM,
			'{DELETE_LINK}' => getlink("&file=delete"),
			'{DELETE_TEXT}' => DELETE.' '.USER_ON_PICTURE,
			'{UOP_DATE}' => localised_date($row['uop_date'], COMMENT_DATE_FMT),
			'{UOP_AVATAR}' => $avatar,
			'{OK}' => OK,
			'{UOP_IP}' => decode_ip($row['uop_hdr_ip']),
			'{ACTION}' => 'action="'.getlink('&file=db_input').'" enctype="multipart/form-data" accept-charset="utf-8"',
			'{THEMEDIR}' => $THEME_DIR,

		);

		$html .= template_eval($template, $params);
	}
	if (USER_CAN_POST_COMMENTS) {
		if (USER_ID > 1) {
			$username_input = '<input type="hidden" name="uop_author" value="' . CPG_USERNAME . '" />';
			template_extract_block($template_add_your_username, 'display_user_input', $display_user_input);
			// $username = '';
		} else {
			$username = isset($USER['name']) ? '"' . htmlprepare($USER['name']) . '"' : '"' . YOUR_NAME . '" onclick="javascript:this.value=\'\';"';
		}
	

			$params = array('{NAME}' => COM_NAME,
			'{PIC_ID}' => $pid,
			'{username}' => $username,
			'{MAX_COM_LENGTH}' => $CONFIG['max_com_size'],
			'{OK}' => OK,
			'{ACTION}' => 'action="'.getlink("&file=db_input").'" enctype="multipart/form-data" accept-charset="utf-8"',

		);
		
		$html .= template_eval($template_add_your_username, $params);
	}
}

// Ende Display User on Picture

aber nun bekomme ich immer nen fehler:
Array:
Theme:themes/reDesign/coppermine Template error
Failed to find block 'buttons'(#(<!-- BEGIN buttons -->)(.*?)(<!-- END buttons -->)#s) in :


anscheint findet der eine datei nicht, und war wo buttons gesucht wird... diese habe ich im script angegeben mit
Array:
$template_user_on_picture
und die datei ist auch vorhanden user_on_picture.html

aber es tut einfach nicht, weiß jemand warum?

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Katerrobin
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Feb 14, 2008
Posts: 144

PostPosted: 02.04.2009 01:03
Post subject: Re: Mod: Wer ist auf dem Bild?

Hmm, ich gehe jetzt keinen Code durch und lese auch bestimmt nicht den gesamten Thread.
Aber entweder gibst Du den gesamten Pfad an (mit http://) oder Du setzt vor den Linkangaben ein ../
Nsch deiner Fehlermeldung passt eines deiner Pfadangaben nicht.

_________________
Meine Seiten:
www.bdo-ev.net (DF 9.2.1. Seite
mit 4 Unterseiten als Forum)
www.denises-welt.de (DF 9.2.1
Seite unserer Tochter)
www.bikes-parts-design.com
(DF 9.2.1 in Verbindung mit Oscommerce)
www.kraeuterkeller.de
(Sehr nette Einbindung eines externen Newslettermoduls und das DA Bestellformular)
www.kochen-fuer-kids.de
(mal eine echte DF-Seite die sich nicht mit Warcraft beschäftigt Smile )

Katerrobin's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache / PHP 4.4.8 / MySQL 4.1.2.2 / CPG 9.2.1
Back to top
View user's profile
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 02.04.2009 13:08
Post subject: Re: Mod: Wer ist auf dem Bild?

öh, ja. das war nun was, was nicht passt.

es liegt irgendwie an dem template_extract_block($template_user_on_picture

ich denk mal ehr, das ich noch wo template_user_on_picture definieren muss...

und nicht wo nen ../ nen http setzen muss, wo vorher auch keins drin war.... vielleicht sollteste doch lesen was ich für nen problem habe

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 02.04.2009 14:08
Post subject: Re: Mod: Wer ist auf dem Bild?

so...

hab es nun definiert, aber nun steck ich wieder fest. Ich bekomme keine weiße seite, so weit so gut, aber,

es wird immer noch nicht der html block angezeigt.... er is zwar da, und auch definiert aber er erscheint einfach nicht... einziger anhaltspunkt ist:

Array:
themes/reDesign/coppermine/theme.inc

    * Warning line 541: Missing argument 7 for theme_display_image(), called in /var/www/modules/coppermine/displayimage.php on line 1089 and defined
    * Notice line 550: Undefined variable: user_on_picture

^^

Das hab ich behoben:

einfach weiter unten:
theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip, $user_on_picture); //,


aber, wie soll es auch anderes sein, die html datei wird immer noch nicht angezeigt.... warum zum teufel nicht...

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 02.04.2009 15:59
Post subject: Re: Mod: Wer ist auf dem Bild?

HA!

Ich habs hinbekommen!!!

Und es funktioniert sogar richtig!

Aber, wie bekomm ich es nun so hin, das jemand es auch bei sich einbauen kann? *g* War gar nicht so einfach, und kann bestimmt noch irgendwo optimiert werden.

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 02.04.2009 18:46
Post subject: Re: Mod: Wer ist auf dem Bild?

in Aktion:

emsland-partys.de/copp...82248.html

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 02.04.2009 20:41
Post subject: Re: Mod: Wer ist auf dem Bild?

So, ich hab noch nen YOUR_Account Block

doch der zeigt immer nur 1 Bild, und zwar das letzte, mit der hösten pid zahl...

kann mal jemand schauen... Ich will, eine liste der letzten 5 Einträge, also wo sich ein User zu letzt auf einem Bild vererwigt hat.

Array:
<?php
if (!defined('CPG_NUKE')) { exit; }
echo '<br />';
OpenTable();
global $prefix, $db, $CONFIG, $cpg_dir;

$cpg_dir = 'coppermine';

if (!is_active($cpg_dir)) {
   echo 'ERROR';
   return trigger_error($cpg_dir.' module is inactive', E_USER_WARNING);
}

$cpg_block = true;
require("modules/" . $cpg_dir . "/include/load.inc");
$cpg_block = false;
//$length = $CONFIG['thumbcols']; //number of thumbs
$length=5; //number of thumbs
$userinfo = getusrdata($username);


// END USER DEFINABLES
$getaid = $db->sql_query("select pid, uop_uid FROM ".$cpg_prefix."user_on_picture where uop_uid = '".$userinfo['user_id']."' GROUP BY uop_uid ORDER BY uop_uid LIMIT $length");
$row1 = $db->sql_fetchrow($getaid);
$aid1 = $row1['pid'];

$result = $db->sql_query("select pid, aid, filepath, filename FROM ".$cpg_prefix."pictures WHERE approved='1'  AND pid = '".$aid1."' GROUP BY pid ORDER BY pid DESC LIMIT $length",false,__FILE__,__LINE__);

if (!$row1) {echo '<center><br> <b>'.$userinfo['username'].'</b>ist auf keinem Bild verlinkt !<br><br></center>';
            CloseTable(); }
            else {


echo '<center><h3><b>'.$userinfo['username'].'s</b> ist verlinkt auf:</h3> <br>';


$pic = 0;
while ($row = $db->sql_fetchrow($result)) {

if (file_exists(get_pic_url($row,'normal'))){

   echo '<a href="' . getlink($cpg_dir . '&amp;file=displayimage&amp;album='.$row['aid'].'&amp;pid=' . $row['pid']) . '"><img src="' . get_pic_url($row,'thumb') . '" border="0" alt="Bild" width="60" /></a> '; }
else {

   echo '<a href="' . getlink($cpg_dir . '&amp;file=displayimage&amp;album='.$row['aid'].'&amp;pid=' . $row['pid']) . '"><img src="' . get_pic_url($row,'thumb') . '" border="0" alt="Bild" width="60" /></a>   '; }

   $pic++;
}
echo '<br /><br /><a href="'.getlink('coppermine&amp;cat='.$user_gallery).'">Profil Gallerie</a></center></p>';
}
CloseTable();

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ›  Module & Blöcke
Page 3 of 3
All times are GMT + 1 Hour
Go to page Previous  1, 2, 3



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy