German / Deutsch
Wenn man alles Punkt für Punkt, genau so macht wie beschrieben klappt das 100 %tig bei den XX muss man 7 eintragen, das ist die einzige Stolperstelle
und um das ganze zu toppen, habe ich meine BB Codes Begrenzt. Nur noch *.jpg und *.gif zugelassen
details.php
));
//-----------------------------------------------------
//--- ImageCodes v1.0 Begins --------------------------
//-----------------------------------------------------
// Mod: ImageCodes v1.0
// Version: 1.0
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: June 30 2007
$sql = "SELECT image_media_file FROM ".IMAGES_TABLE." WHERE image_id= $image_id";
$image_codes = $site_db->query_firstrow($sql);
$new_name = $image_codes['image_media_file'];
$uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
$uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
$uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
$uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
$uploaded_image_bbcode = "[URL=".$script_url."][IMG]".$uploaded_image_path."[/IMG][/URL]";
$uploaded_thumb_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumb_path."[/IMG][/URL]";
$uploadinfo .= "<font size='2' face='Tahoma'><b>Bilder Codes einbinden:</b><br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Vorschaubild für Webseiten<br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Vorschaubild Für Forums<br /><br />";
$uploadinfo .= "<font size='1' face='Tahoma'>Benutze diesen Code für volle Größe für Foren und Webseiten</font><br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> für Webseiten<br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Webseiten und Forums<br /><br />";
$uploadinfo .= "<font size='1' face='Tahoma'>Privater Link für e-Mails oder als reinen Link</font><br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Reiner Hyper Textlink<br />";
$icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";
$site_template->register_vars("image_codes", $icodes);
//-----------------------------------------------------
//--- end of ImageCodes v1.0 --------------------------
//-----------------------------------------------------
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>
und der Rechtsklick eingeschaltet und erweitert.
header.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{prepend_head_title}{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}">
<meta name="description" content="{detail_meta_description}{site_name}">
<meta name="keywords" content="{detail_meta_keywords}">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="10 days">
<meta http-equiv="imagetoolbar" content="no">
<link rel="stylesheet" href="{template_url}/style.css" type="text/css">
<link rel="shortcut icon" href="{home_url}favicon.ico">
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}">
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
{if has_rss}
{endif has_rss}
<script type="text/javascript">
function highlight(field) {
field.focus();
field.select();
}
</script>
<script language="javascript" type="text/javascript">
<!--
var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
function new_captcha_image() {
if (captcha_image_url.indexOf('?') == -1) {
document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}
document.getElementById('captcha_input').value="";
document.getElementById('captcha_input').focus();
captcha_reload_count++;
}
function opendetailwindow() {
window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
}
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert("© Copyright by {site_name}");
return false;
}
else if (event.button == 2 || event.button == 3) {
alert("© Copyright by {site_name}");
return false;
}
return true;
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}
document.oncontextmenu = new Function("alert('© Copyright by {site_name} War wohl nix was? mit Bilderklau??? ;-) Wenn du das Bild verlinken möchtest, klicke auf das Bild deiner Wahl. Es erscheint der Code zum kopieren. Klicke auf den Code den du brauchst. Der ausgewählte Code wird Blau. Klicke in deinem Browser auf Bearbeiten / Kopieren. Der Code ist dann in der Zwischenablage. Wechsel nun zu der Seite wo du den Code einbinden willst. Rechte Maustaste auf der Seite wo du das Bild Einfügen willst. Das wars. Wers immer wieder Probiert dem Sperre ich seine IP Adresse Kapie !');return false");
// -->
</script>
{if has_rss}
{endif has_rss}
<div id="container">
<p>
<br />
Dann habe ich 2 bereiche eingerichtet
1. Bilder Öffentlich für alle
2. Bilder Mitglieder nur für angemeldete Benutzer sichtbar.
schaut euch einfach meine Seite an, un probier als gast einfach ein wenig herum, dann wisst ihr genau was ich meine
xxx: rockballads. cwsurf. de/forum/4images/