Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sunny C.

Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 19
76
Mods & Plugins (Requests & Discussions) / [MOD] Admin image info
« on: August 03, 2010, 07:53:39 PM »
 :flag-de:
Der Administrator kann zu jedem Bild eine Information hinterlassen. Das kann für wichtige Hinweise oder Rechtsfolgebelehrungen sein. Die User haben keinen Einfluss auf  diese Informationen und können diese nicht ändern oder löschen.

 :flag-en:
The administrator can leave information to every picture. This can be for important tips or legal result instructions. The users have no control over this information and can not delete or modify.

Demo: Admin Image Info

Step 1
Open / Öffne: admin/images.php
Search / Suche:
$image_description un_htmlspecialchars(trim($HTTP_POST_VARS['image_description']));
 :above:Add after / Füge danach ein:
$image_newfield un_htmlspecialchars(trim($HTTP_POST_VARS['image_newfield']));
Search / Suche
image_description '$image_description',
Replace with / Ersetze mit:
image_description '$image_description'image_newfield '$image_newfield',
Search / Suche:
  $title $lang['field_description_ext'].((isset($file_src)) ? get_iptc_insert_link($file_src"caption""image_description") : "");
  
show_textarea_row($title"image_description"$image_row['image_description'], $textarea_size);

 :above: Add after / Füge danach ein:
  $title $lang['field_newfield'].((isset($file_src)) ? get_iptc_insert_link($file_src"caption""image_newfield") : "");
  
show_textarea_row($title"image_newfield"$image_row['image_newfield'], $textarea_size);

Search / Suche:
$image_description un_htmlspecialchars(trim($HTTP_POST_VARS['image_description_'.$i]));
:above: Add after / Füge danach ein:
$image_newfield un_htmlspecialchars(trim($HTTP_POST_VARS['image_newfield_'.$i]));
Search / Suche
user_idimage_nameimage_description,
Replace with / Ersetze mit:
user_idimage_nameimage_descriptionimage_newfield,
Search / Suche
$user_id'$image_name''$image_description',
Replace with / Ersetze mit:
$user_id'$image_name''$image_description''$image_newfield',
Search / Suche
show_textarea_row($lang['field_description_ext'],"image_description_".$i""$textarea_size);
:above: Add after / Füge danach ein
show_textarea_row($lang['field_newfield'],"image_newfield_".$i""$textarea_size);
Search / Suche
show_input_row($lang['field_description_contains'], "image_description"""$textinput_size);
:above: Add after / Füge danach ein:
show_input_row($lang['field_newfield_contains'], "image_newfield"""$textinput_size);
Search / Suche
  $image_description trim($HTTP_POST_VARS['image_description']);
  if (
$image_description != "") {
    
$condition .= " AND INSTR(LCASE(i.image_description),'".strtolower($image_description)."')>0";
  }

:above: Add after / Füge danach ein:
  $image_newfield trim($HTTP_POST_VARS['image_newfield']);
  if (
$image_newfield != "") {
    
$condition .= " AND INSTR(LCASE(i.image_newfield),'".strtolower($image_newfield)."')>0";
  }

Search / Suche
show_hidden_input("image_description"$image_description1);
:above: Add after / Füge danach ein:
show_hidden_input("image_newfield"$image_newfield1);

Step 2
Open / Öffne: lang/admin.php
Search / Suche
 :flag-en:
$lang['field_description_contains'] = "Description contains";
:above: Add after
[püp]$lang['field_newfield_contains'] = "Contained information";[/php]
Search:
$lang['field_description_ext'] = "Description<br /><span class=\"smalltext\">HTML allowed.</span>";
:above: Add after
$lang['field_newfield'] = "Admin Information<br /><span class=\"smalltext\">Put down here special information about this image<br />HTML allowed.</span>";
 :flag-de:
Suche:
$lang['field_description_contains'] = "Beschreibung enthält";
:above: Füge danach ein
$lang['field_newfield_contains'] = "Eingetragene Information";
Suche:
$lang['field_description_ext'] = "Beschreibung<br /><span class=\"smalltext\">Sie können HTML-Code verwenden.</span>";
:above: Füge danach ein:
$lang['field_newfield'] = "Admin Information<br /><span class=\"smalltext\">Tragen Sie hier spezielle Informationen zu diesem Bild ein<br />Sie können HTML-Code verwenden.</span>";

Step 3
Open / Öffne: details.php
Search / Suche
i.image_description,
Replace with / Ersetze mit
i.image_descriptioni.image_newfield,

Step 4
Open / Öffne: templates/*DEFAULT*/details.html
Search / Suche
Code: [Select]
{image}:above: Add after / Füge danach ein
Code: [Select]
<br />{image_newfield}
Step 5
Open / Öffne: includes/functions.php
Search / Suche
$description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 101) : REPLACE_EMPTY;
:above: Add after / Füge danach ein:
  if (!empty($image_row['image_newfield'])) {
  
$newfield .= "<div style=\"display: block;\" id=\"text\">\n";
  
$newfield .= "<div class=\"box\">\n";
  
$newfield .= "<div class=\"info\">";
  
$newfield .= (!empty($image_row['image_newfield'])) ? format_text($image_row['image_newfield'], 101) : REPLACE_EMPTY;
  
$newfield .= "</div>\n";
  
$newfield .= "</div>\n";
  
$newfield .= "</div>";
  } else {
  
$newfield .= (!empty($image_row['image_newfield'])) ? format_text($image_row['image_newfield'], 101) : REPLACE_EMPTY;
  }

Search / Suche
"image_description" => $description,
:above: Add after / Füge danach ein:
"image_newfield" => $newfield,

Step 6
Open / Öffne: style.css
Add the end of the File / Füge am Ende der Datei das ein
Code: [Select]
#text div.box div.info {
height: 28px;
border: 1px solid #d6dddf;
background: #eff3f6 url('images/info.png') left no-repeat;
background-position: 7px;

}

Step 7
Downloade den Anhang => Kopiere die install.php in deinem root verzeichnis => info.png in deinem templates/*DEFAULT*/images verzeichnis
Download the attachment => copy the install.php into your root directory => info.png put in your templates/*DEFAULT*/images folder

77
      :flag-de:
      Hallo zusammen,

      ich habe mich von der Modifikation
[MOD]Displaying Advertisement before the image inspirieren lassen. Der gesamte Code stammt von mir und wurde nicht von der originalen Modifikation kopiert.

Features:
  • Browser freundlicher Code
  • Dauer der Werbeanzeige, Werbecode und An/Aus kann über das ACP gesteuert werden

Demo: [WERBUNG]
Demo: [KEINE-WERBUNG]
Notiz: Google-Adsense wird derzeit nicht unterstützt

 :flag-en:
Hello together,

I have derived inspiration towards the modification [MOD]Displaying Advertisement before the image. The whole code comes from me and was not copied by the original modification.

Features:
  • Browser compatible
  • Advertisment time, Advertisement Code and Enabled/Disabled can configured on ACP

Demo: [ADSENSE]
Demo: [NO-ADSENSE]
Notice: Google-Adsense is not supported currently


Changelog:
  • Add Step 4 / Step 4 hinzugefügt
  • Update Step 1 for XHTML Valide
  • Add image width and height support / Bilder Breite und Höhe können nun angeben werden
  • Es ist nun möglich für jedes  Bild separat einzustellen ob Werbung angezeigt werden soll oder nicht / Now it is possible to put for every picture separately whether advertisement should be indicated or not
  • Added Support for JavaScript disabled / Unterstützung, wenn JavaScript ausgeschaltet ist


Step 1

Open / Öffne: details.php
Search / Suche:
//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------
$image_allow_comments = (check_permission("auth_readcomment"$cat_id)) ? $image_row['image_allow_comments'] : 0;
$image_name format_text($image_row['image_name'], 2);
show_image($image_row$mode01);

 :above: Add after / Füge danach ein:
    //--- Image Adsense Start -------------------------
	

$image_allow_adsense $image_row['image_allow_adsense'];
$image_adsense_code = (isset($image_row['image_adsense_code'])) ? htmlentities($image_row['image_adsense_code']) :"";
$image_adsense_code $config['image_adsense_code'];
$image_adsense $config['image_adsense'];
$image_adsense_height_code "height=\"".$config['image_adsense_height']."\"";
$image_adsense_width_code "width=\"".$config['image_adsense_width']."\"";
if (
$image_allow_adsense == 1) {
if(
$config['image_adsense_onoff'] == 1)  {
$image_adsense_show .= "<div align=\"center\">\n";
$image_adsense_show .= "<script type=\"text/javascript\">\n";
$image_adsense_show .= "//<![CDATA[\n";
$image_adsense_show .= "function fc() {\n";
$image_adsense_show .= "if(c>0){\n";
$image_adsense_show .= "document.getElementById(\"dl\").innerHTML = '".$lang['adsense_sek']."<br />".$lang['adsense_loader']."<br />".$image_adsense_code."';\n";
$image_adsense_show .= "c=c-1;\n";      
$image_adsense_show .= "setTimeout(\"fc()\", 1000);\n";
$image_adsense_show .= "} else {\n";
$image_adsense_show .= "var tt = '";
$image_adsense_show .= "<img src=\"".MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file']."\" border=\"1\" alt=\"".$image_row['image_name']."\" ".$image_adsense_width_code." ".$image_adsense_height_code."  />";
$image_adsense_show .= "';\n";
$image_adsense_show .= "document.getElementById(\"dl\").innerHTML = tt;\n";
$image_adsense_show .= "}\n";
$image_adsense_show .= "}\n";
$image_adsense_show .= "var c=".$config['image_adsense_time'].";\n";         
$image_adsense_show .= "if (window.location.hash == \"#dlt\")\n";
$image_adsense_show .= "c = 0;\n";
$image_adsense_show .= "window.onload = fc;\n";
$image_adsense_show .= "//]]>\n";
$image_adsense_show .= "</script>\n";
$image_adsense_show .= "<div id=\"dl\"></div>";
   } else {
	
   
$image_adsense_show get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
   }
   
   } else {
	
   
$image_adsense_show get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
   }
$site_template->register_vars(array(
  
"image_adsense" => $image_adsense_show,
  
"image_adsense_time" => $image_adsense_time,
  
"image_adsense_code" => $image_adsense_code,
  
"lang_adsense_sek" => $lang['adsense_sek'],
  
"lang_adsense_loader" => $lang['adsense_loader'],
  
"image_adsense_height_code" => $image_adsense_height_code,
  
"image_adsense_width_code" => $image_adsense_width_code,
  ));
  
    
//--- Image Adsense Ende --------------------------

Search / Suche:
i.image_allow_comments,
Replace with / Ersetze mit:
i.image_allow_commentsi.image_allow_adsense,

Step 2
Open / Öffne: admin/settings.php
Search / Suche:
show_table_separator($setting_group[3], 2"setting_group_3");
 :above: Add after / Füge danach ein:
  show_setting_row("image_adsense_onoff""radio");
  
show_setting_row("image_adsense_time");
  
show_setting_row("image_adsense_code""textarea");
  
show_setting_row("image_adsense_width");
  
show_setting_row("image_adsense_height");


Step 3
Open / Öffne: lang/admin.php
Search / Suche:
/*-- Setting-Group 3 --*/
$setting_group[3]="Bild Einstellungen";

 :above: Add after / Füge danach ein:
 :flag-de:
$setting['image_adsense_onoff'] = "Bilder Werbung anzeigen";
$setting['image_adsense_time'] = "Dauer der Werbung<br /><span class=\"smalltext\">Bitte in Sekunden angeben</span>";
$setting['image_adsense_code'] = "Werbecode<br /><span class=\"smalltext\">HTML Code wird unterstützt</span>";
$setting['image_adsense_width'] = "Bilderbreite<br /><span class=\"smalltext\">In Pixel</span>";
$setting['image_adsense_height'] = "Bilderhöhe<br /><span class=\"smalltext\">In Pixel</span>";

Suche:
$lang['field_allow_comments'] = "Kommentare erlauben";
 :above: Füge danach ein:
$lang['field_allow_adsense'] = "Werbung vor dem Bild anzeigen";
 :flag-en:
$setting['image_adsense_onoff'] = "Show Image Advertisment";
$setting['image_adsense_time'] = "Duration of the advertisement<br /><span class=\"smalltext\">Second</span>";
$setting['image_adsense_code'] = "Advertisement code<br /><span class=\"smalltext\">HTML support</span>";
$setting['image_adsense_width'] = "Image width<br /><span class=\"smalltext\">In Pixel</span>";
$setting['image_adsense_height'] = "Image height<br /><span class=\"smalltext\">In Pixel</span>";

Search:
$lang['field_allow_comments'] = "Allow comments";
 :above: Add after
$lang['field_allow_adsense'] = "Displaying Advertisement before the image";

Step 4
Open / Öffne: teamplates/your-template/details.html
Search / Suche:
[/list][/list]
Code: [Select]
{image}Replace with / Ersetze mit:
Code: [Select]
{if allow_adsense}{image_adsense}{endif allow_adsense}<noscript>{image}</noscript>
Step 6
Open / Öffne: admin/images.php
Search / Suche:
$image_allow_comments intval($HTTP_POST_VARS['image_allow_comments']);
 :above: Add after / Füge danach ein:
$image_allow_adsense intval($HTTP_POST_VARS['image_allow_adsense']);
Search / Suche:
image_allow_comments $image_allow_comments,
Replace with / Ersetze mit:
image_allow_comments $image_allow_commentsimage_allow_adsense $image_allow_adsense,
Search / Suche
show_radio_row($lang['field_allow_comments'], "image_allow_comments"$image_row['image_allow_comments']);
 :above: Add after / Füge danach ein:
show_radio_row($lang['field_allow_adsense'], "image_allow_adsense"$image_row['image_allow_adsense']);
Search / Suche:
$image_allow_comments trim($HTTP_POST_VARS['image_allow_comments_'.$i]);
 :above: Add after / Füge danach ein
$image_allow_adsense trim($HTTP_POST_VARS['image_allow_adsense_'.$i]);
Search / Suche
image_download_urlimage_allow_comments
Replace with / Ersetze mit
image_download_urlimage_allow_commentsimage_allow_adsense
Search / Suche
'$image_download_url'$image_allow_comments
Replace with / Ersetze mit
'$image_download_url'$image_allow_comments$image_allow_adsense
Search / Suche
show_radio_row($lang['field_allow_comments'], "image_allow_comments_".$i1);
 :above: Add after / Füge danach ein:
show_radio_row($lang['field_allow_adsense'], "image_allow_adsense_".$i1);

Step 7

Download the Attachment Put the load.gif in your templates/your-templates/images folder
Downloade den Anhang Kopiere die loader.gif in dein templates/dein-template/images Ordner
Download the Attachment put the install.php in your root and start (http://youtsite.de/install.php)
Downloade den Anhang und kopiere die install.php in deinem Root- Verzeichnis und führe diese aus (http://deineseite.de/install.php)

78
Programming / Imagecode in Adsense- Script dont work
« on: August 01, 2010, 07:21:44 PM »
Hello this is my code in details.php:

// Image Adsense Start
$image_adsense $config['image_adsense'];
$image_adsense_time $config['image_adsense_time'];
   if(
$config['image_adsense_onoff'] == 1)  {
$image_adsense_show .= "<div align=\"center\">\n";
$image_adsense_show .= "<script type=\"text/javascript\">\n";
$image_adsense_show .= "<!--\n";
$image_adsense_show .= "function fc() {\n";
$image_adsense_show .= "if(c>0){\n";
$image_adsense_show .= "document.getElementById(\"dl\").innerHTML = '".$lang['adsense_sek']."<br />".$lang['adsense_loader']."';\n";
$image_adsense_show .= "c=c-1;\n";      
$image_adsense_show .= "setTimeout(\"fc()\", 1000);\n";
$image_adsense_show .= "} else {\n";
$image_adsense_show .= "var tt = '";
$image_adsense_show .= get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
$image_adsense_show .= "';\n";
$image_adsense_show .= "document.getElementById(\"dl\").innerHTML = tt;\n";
$image_adsense_show .= "}\n";
$image_adsense_show .= "}\n";
$image_adsense_show .= "var c=".$image_adsense_time.";\n";         
$image_adsense_show .= "if (window.location.hash == \"#dlt\")\n";
$image_adsense_show .= "c = 0;\n";
$image_adsense_show .= "window.onload = fc;\n";
$image_adsense_show .= "//-->\n";
$image_adsense_show .= "</script>\n";
$image_adsense_show .= "<div id=\"dl\">.</div>";
   } else {
	
   
$image_adsense_show get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
   }
$site_template->register_vars(array(
  
"image_adsense" => $image_adsense_show,
  
"image_adsense_time" => $image_adsense_time,
  ));
// Image Adsense Ende


If the advertisement is switched off, the original code is given
   } else {
	
   
$image_adsense_show get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
   }


If the advertisement is switched on, the Javascript with the image code should be given, but functioned not.
$image_adsense_show .= "<div align=\"center\">\n";
$image_adsense_show .= "<script type=\"text/javascript\">\n";
$image_adsense_show .= "<!--\n";
$image_adsense_show .= "function fc() {\n";
$image_adsense_show .= "if(c>0){\n";
$image_adsense_show .= "document.getElementById(\"dl\").innerHTML = '".$lang['adsense_sek']."<br />".$lang['adsense_loader']."';\n";
$image_adsense_show .= "c=c-1;\n";      
$image_adsense_show .= "setTimeout(\"fc()\", 1000);\n";
$image_adsense_show .= "} else {\n";
$image_adsense_show .= "var tt = '";
$image_adsense_show .= get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
$image_adsense_show .= "';\n";
$image_adsense_show .= "document.getElementById(\"dl\").innerHTML = tt;\n";
$image_adsense_show .= "}\n";
$image_adsense_show .= "}\n";
$image_adsense_show .= "var c=".$image_adsense_time.";\n";         
$image_adsense_show .= "if (window.location.hash == \"#dlt\")\n";
$image_adsense_show .= "c = 0;\n";
$image_adsense_show .= "window.onload = fc;\n";
$image_adsense_show .= "//-->\n";
$image_adsense_show .= "</script>\n";
$image_adsense_show .= "<div id=\"dl\">.</div>";

This line simply does not function
$image_adsense_show .= get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode$show_link$detailed_view);
But in the source text everything is right
Code: [Select]
<script type="text/javascript">
<!--
function fc() {
if(c>0){
document.getElementById("dl").innerHTML = 'Noch ' + c + ' Sekunden<br /><img src="./templates/default/images/loader.gif" width="16" height="16" />';
c=c-1;
setTimeout("fc()", 1000);
} else {
var tt = '<img src="./data/media/1/1-7be2c989ee4267f4.jpg" border="1" alt="test" width="200" height="266" />
';
document.getElementById("dl").innerHTML = tt;
}
}
var c=2;
if (window.location.hash == "#dlt")
c = 0;
window.onload = fc;
//-->
</script>

Edit://
This work:
$image_adsense_show .= "var tt = '";
$image_adsense_show .= "<img src=\"".MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file']."\" border=\"1\" alt=\"".$image_row['image_name']."\"".$width_height." />";
$image_adsense_show .= "';\n";

But is this conform

and
".$width_height."
dont work

79
Mods & Plugins (Requests & Discussions) / Lost Password
« on: July 31, 2010, 12:28:37 PM »
Hallo zusammen,

die "Passwort vergessen"- Funktion möchte ich etwas abändern. Und zwar, wenn ein User das Passwort vergessen hat und sich dieses zuschicken lässt, soll das Passwort nicht vom System geändert werden sondern das Passwort was in der Datenbank steht soll dem Benutzer wieder zu gesendet werden!

Ist das möglich?

80
Language Packs / - delete -
« on: July 15, 2010, 03:03:58 PM »
- delete -

81
Demo: http://test.4images.benny-boehnke.info/details.php?image_id=1

Step 1
Open / Öffne: templates/YOUR-TEMPLATE-DEIN-TEMPLATE/details.html
Search / Suche:
Code: [Select]
{header}Add after / Danach einfügen:
Code: [Select]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="imagezoom/featuredimagezoomer.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){

$('#image_id_<?php echo $image_id?>').addimagezoom({
zoomrange: [3, 10],
magnifiersize: [300,300],
magnifierpos: 'right',
largeimage: '{media_src}'
})
})
</script>

Step 2
Open / Öffne: templates/STYLES/styles.css
Search the last / Suche die leztzte:
Code: [Select]
}Add after / Füge danach ein:
Code: [Select]
.magnifyarea{
box-shadow: 5px 5px 7px #818181;
-webkit-box-shadow: 5px 5px 7px #818181;
-moz-box-shadow: 5px 5px 7px #818181;
filter: progid:DXImageTransform.Microsoft.dropShadow(color=#818181, offX=5, offY=5, positive=true);
background: white;
}

Step 3
Open / Öffne: templates/YOUR-TEMPLATE-DEIN-TEMPLATE/media/jpg.html
Search / Suche:
Code: [Select]
<imgReplace with / Ersetze mit:
Code: [Select]
<img id="image_id_<?php echo $image_id?>"
Step 4
Open / Öffne: templates/YOUR-TEMPLATE-DEIN-TEMPLATE/media/png.html
Search / Suche:
Code: [Select]
<imgReplace with / Ersetze mit:
Code: [Select]
<img id="image_id_<?php echo $image_id?>"
Step 5
Open / Öffne: templates/YOUR-TEMPLATE-DEIN-TEMPLATE/media/gif.html
Search / Suche:
Code: [Select]
<imgReplace with / Ersetze mit:
Code: [Select]
<img id="image_id_<?php echo $image_id?>"
Step 6
Download the attachment => Unpack and put the "imagezoom" folder in your root folder
Downloade den Anhang => Entpacken und packe den "imagezoom" ordner in deinem Root Verzeichnis

82
Programming / Re: [MOD] Media sites v1.11 (2010-07-14)
« on: July 14, 2010, 12:56:27 PM »
Thank you!!!!!!!!!!!!!!!!!!!!!
But can you help me for a other script?

Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^.*\.zippyshare\.com\/v\/([0-9]+).*$%i''$1'$url);
$video[2] = preg_replace('%^www([0-9]+)\.zippyshare.*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'file.html';
break;


Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^zippyshare\.com\/v\/([0-9]+)\file.html.*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([a-z0-9_-]+).*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'file.html';
break;


Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^zippyshare\.com\/v\/([0-9]+)\/file\.html.*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([a-z0-9_-]+).*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'/file.html';
break;


Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^zippyshare\.com\/v\/([0-9]+)\/file\.html.*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([a-z0-9_-]+).*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3];
break;


This all worked:
	
	
	
case 
'autsch':
	
	
	
	
	
// http://autsch.de/35566
	
	
	
	
	
// http://autsch.de/42141/berraschte_katze/
	
	
	
	
$video[2] = preg_replace('%^autsch\.de\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://autsch.de/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'clipfish':
	
	
	
	
	
// http://www.clipfish.de/channel/207/video/2536671/jordin-spark-live-bei-energy-in-the-park-berlin-2008/
	
	
	
	
	
// http://www.clipfish.de/video/3303441/abstrukt-trick/28
	
	
	
	
	
// http://www.clipfish.de/video/277370/
	
	
	
	
$video[2] = preg_replace('%^.*video\/([a-z0-9]+)\/.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.clipfish.de/video/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'collegehumor':
	
	
	
	
	
// http://www.collegehumor.com/video:1932963
	
	
	
	
$video[2] = preg_replace('%^.*\/video\:([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.collegehumor.com/video:'.$video[2];
	
	
	
	
break;
	
	
	
case 
'dailymotion':
	
	
	
	
	
// http://www.dailymotion.com/video/x56pa6_feuer-schere-messer-licht_fun
	
	
	
	
	
// http://www.dailymotion.com/video/xd0k3e_unicutt-tv-nightlifereport-springbr_lifestyleundefined
	
	
	
	
	
// -> http://www.dailymotion.com/video/xd0k3e
	
	
	
	
$video[2] = preg_replace('%^.*\/video\/([a-z0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.dailymotion.com/video/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'g4tv':
	
	
	
	
	
// http://g4tv.com/videos/45434/Sengoku-Basara-Samurai-Heroes-Captivate-Trailer/
	
	
	
	
$video[2] = preg_replace('%^.*\/videos\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://g4tv.com/videos/'.$video[2].'/embedded';
	
	
	
	
break;
	
	
	
case 
'gametrailers':
	
	
	
	
	
// http://www.gametrailers.com/player/usermovies/208901.html?playlist=featured
	
	
	
	
	
// http://www.gametrailers.com/user-movie/ninja-gaiden-2-new-gameplay/208901
	
	
	
	
	
// http://www.gametrailers.com/player/33290.html
	
	
	
	
	
// http://www.gametrailers.com/video/episode-21-bonus-round/33290
	
	
	
	
$video[3] = preg_match('%^.*(\/usermovies\/|\/user-movie\/).*$%i'$url);
	
	
	
	
$video[2] = preg_replace('%^.*\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.gametrailers.com/'.($video[3] ? 'user-movie' 'video').'/embedded/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'google':
	
	
	
	
	
// http://video.google.de/videoplay?docid=-8070240344560020977&hl=de&emb=1#
	
	
	
	
$video[2] = preg_replace('%^.*docid=([-0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://video.google.com/videoplay?docid='.$video[2];
	
	
	
	
break;
	
	
	
case 
'ign':
	
	
	
	
	
// http://uk.movies.ign.com/dor/objects/14332808/centurion/videos/Centurion.html
	
	
	
	
	
// http://uk.video.ign.com/dor/articles/965543/ign-daily-fix-/videos/thefix_spc_042110.html;jsessionid=5lu3b5fowqh8
	
	
	
	
	
// -> http://movies.ign.com/dor/objects/14332808/embedded/videos/Centurion.html
	
	
	
	
$video[4] = preg_replace('%^.*\/dor\/([a-z]+)s\/[0-9]+.*$%i''$1'$url);
	
	
	
	
$video[3] = preg_replace('%^.*\/videos\/([-0-9a-z_]+)\.html.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^.*\/dor\/[a-z]+\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://movies.ign.com/dor/'.$video[4].'s/'.$video[2].'/embedded/videos/'.$video[3].'.html';
	
	
	
	
break;
	
	
	
case 
'metacafe':
	
	
	
	
	
// http://www.metacafe.com/watch/4621570/scalado_photoflow_on_nokia_5800/
	
	
	
	
	
// http://www.metacafe.com/watch/2526516/unbelievable_check_this_out_man/
	
	
	
	
$video[3] = preg_replace('%^metacafe\.com\/watch\/([0-9]+)\/.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^metacafe\.com\/watch\/[0-9]+\/([0-9a-z_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.metacafe.com/watch/'.$video[3].'/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'mycarmovie':
	
	
	
	
	
// http://www.mycarmovie.com/sell/585713e2fbfdfa8f445c8637211f573c/
	
	
	
	
	
// http://mycarmovie.com/brands/448e6fba1697559d7395e37d69b79790/
	
	
	
	
	
// http://www.mycarmovie.com/tv/3be968b43ffe65aef8df25d278f2bfc3
	
	
	
	
	
// http://www.mycarmovie.com/carmovies/008fd7fa9af24923be36773170e633cb
	
	
	
	
$video[3] = preg_replace('%^mycarmovie\.com\/([0-9a-z]+)\/.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^mycarmovie\.com\/[0-9a-z]+\/([0-9a-z]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.mycarmovie.com/'.$video[3].'/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'myspace':
	
	
	
	
	
// http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=104346587
	
	
	
	
$video[2] = preg_replace('%^.*videoid=([a-z0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid='.$video[2];
	
	
	
	
break;
	
	
	
case 
'myvideo':
	
	
	
	
	
// http://www.myvideo.de/watch/3489403/Bodo_Wartke_Liebesparade
	
	
	
	
$video[2] = preg_replace('%^.*\/watch\/([0-9]+)\/.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.myvideo.de/watch/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'paintballtube':
	
	
	
	
	
// http://www.paintballtube.de/video/605/LOS-Woodlands.de
	
	
	
	
$video[2] = preg_replace('%^.*\/video\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.paintballtube.de/video/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'photobucket':
	
	
	
	
	
// http://s87.photobucket.com/albums/k136/librarypics/Anahuac2/ana-con%202009/?action=view&current=HPIM1574.flv
	
	
	
	
$video[4] = preg_replace('%^.*\.photobucket\.com\/albums\/(.+)\/.*$%i''$1'$url);
	
	
	
	
$video[3] = preg_replace('%^s([0-9]+)\.photobucket.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^.*(\/|current=)([-a-z0-9]+)\.flv.*$%i''$2'$url);
	
	
	
	
$video[1] = 'http://s'.$video[3].'.photobucket.com/albums/'.$video[4].'/?action=view&current='.$video[2].'.flv';
	
	
	
	
break;
	
	
	
case 
'screentoaster':
	
	
	
	
	
// http://www.screentoaster.com/watch/stWEhXS0RIR19WQF5dUllYVVFT/google_gravity
	
	
	
	
$video[2] = preg_replace('%^.*\/watch\/st([0-9a-z]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.screentoaster.com/watch/st'.$video[2].'/embedded';
	
	
	
	
break;
	
	
	
case 
'sevenload':
	
	
	
	
	
// http://de.sevenload.com/sendungen/Journal-Reporter/folgen/38PCERH-Polen-nach-dem-Tod-von-Praesident-Kaczynski
	
	
	
	
	
// http://de.sevenload.com/videos/K6kf6lh-Test-Drive-Unlimited-Trailer
	
	
	
	
	
// -> http://www.sevenload.com/videos/38PCERH-
	
	
	
	
$video[2] = preg_replace('%^.*\/([a-z0-9]+)-.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.sevenload.com/videos/'.$video[2].'-';
	
	
	
	
break;
	
	
	
case 
'spike':
	
	
	
	
	
// http://www.spike.com/video/embedded/2763936
	
	
	
	
$video[2] = preg_replace('%^spike\.com.*\/video\/[a-z0-9_-]+\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.spike.com/video/embedded/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'veoh':
	
	
	
	
	
// http://www.veoh.com/videos/v16493535wyzGAET6
	
	
	
	
	
// http://www.veoh.com/collection/kushtvdigitalunderground/watch/v1552357JGDgCw2s
	
	
	
	
	
// http://www.veoh.com/collection/Nirvana-Music-Videos/watch/v16493535wyzGAET6
	
	
	
	
	
// http://www.veoh.com/browse/videos/category/technology_and_gaming/watch/v19713720TSHY4QQX
	
	
	
	
$video[2] = preg_replace('%^.*\/v([a-z0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.veoh.com/videos/v'.$video[2];
	
	
	
	
break;
	
	
	
case 
'vimeo':
	
	
	
	
	
// http://www.vimeo.com/4321799
	
	
	
	
$video[2] = preg_replace('%^vimeo\.com\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.vimeo.com/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'wegame':
	
	
	
	
	
// http://www.wegame.com/watch/test-1st-video/
	
	
	
	
	
// http://www.wegame.com/watch/gara-illegale-degli-gnomi-ironforge-stormwind/
	
	
	
	
$video[2] = preg_replace('%^wegame\.com\/watch\/([0-9a-z_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.wegame.com/watch/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'youku':
	
	
	
	
	
// http://v.youku.com/v_show/id_XMTcxMDcyMTU2.html
	
	
	
	
$video[2] = preg_replace('%^youku\.com\/v_show\/id_([0-9a-z_-]+)\.html.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://v.youku.com/v_show/id_'.$video[2].'.html';
	
	
	
	
break;
	
	
	
case 
'youtube':
	
	
	
	
	
// http://www.youtube.com/watch?v=-zvCUmeoHpw
	
	
	
	
$video[2] = preg_replace('%^.*v=([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.youtube.com/watch?v='.$video[2];
	
	
	
	
break;
	
	
	
case 
'megavideo':
	
	
	
	
	
// http://www.megavideo.com/?v=4WX1OEGD
	
	
	
	
$video[2] = preg_replace('%^.*v=([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.megavideo.com/?v='.$video[2];
	
	
	
	
break;
	
	
	
case 
'rutube':
	
	
	
	
	
// http://rutube.ru/tracks/3384079.html?v=b451e7bd97148a9bc114da16d0f40598
	
	
	
	
$video[3] = preg_replace('%^rutube\.ru\/tracks\/([0-9]+)\.html.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^.*v=([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://rutube.ru/tracks/'.$video[3].'.html?v='.$video[2];
	
	
	
	
break;
	
	
	
case 
'mp3upload':
	
	
	
	
	
// http://mp3upload.ca/music/view/26546
	
	
	
	
$video[2] = preg_replace('%^.*view/([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://mp3upload.ca/music/view/'.$video[2];
	
	
	
	
break;

83
Open / Öffne: admin/home.php
Search / Suche:
  show_table_footer();

  
$sql "SELECT SUM(cat_hits) AS sum
          FROM "
.CATEGORIES_TABLE;
  
$row $site_db->query_firstrow($sql);

Add above / Füge darüber ein
  echo '<tr class="tablerow"><td><b>Base Directory</b></td><td colspan="3">';
  print (
$_SERVER['DOCUMENT_ROOT']);
  echo 
'</td></tr>';

84
Öffne / Open: admin/index.php
Suche / Search:
Code: [Select]
       <td align="right">
        Version: <b><?php echo SCRIPT_VERSION?></b>
        </td>
Replace with / Ersetze mit:
ENGLISH DATE CODE:
Code: [Select]
       <td align="right">
        <?php print (date("l d<\sup>S</\sup> F Y h:i A")); ?> | Version: <b><?php echo SCRIPT_VERSION?></b>
        </td>
DEUTSCHER CODE FÜR DAS DATUM:
Code: [Select]
<td align="right">
        <?php echo "Heute ist der ".date("d.m.Y").", es ist jetzt ".date("H:i"); ?>  Uhr | Version: <b><?php echo SCRIPT_VERSION?></b>
        </td>

Finish / Fertig

85
Chit Chat / Looks like a charm
« on: July 11, 2010, 12:14:28 AM »

86
Mods & Plugins (Releases & Support) / [MOD] Pagepeel Advertisement
« on: July 10, 2010, 11:43:08 PM »
Hello,

this mod is showing up a pagepeel with ACP Settings!
From: http://www.sohtanaka.com/web-design/examples/peeling-effect/

Step 1
Open / Öffne: templates/TEMPLATE/header.html
Search / Suche:
Code: [Select]
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">or / oder
Code: [Select]
<body>Add after / füge danach ein:
Code: [Select]
{site_pagepeel}Search / Suche:
Code: [Select]
</head>Add above / Davor einfügen
Code: [Select]
<!-- Pagepeel Start-->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){

//Page Flip on hover

$("#pageflip").hover(function() {
$("#pageflip img , .msg_block").stop()
.animate({
width: '307px',
height: '319px'
}, 500);
} , function() {
$("#pageflip img").stop()
.animate({
width: '50px',
height: '52px'
}, 220);
$(".msg_block").stop()
.animate({
width: '50px',
height: '50px'
}, 200);
});


});
</script>
<!-- Pagepeel Ende -->

Step 2
Open / Öffne: includes/page_header.php
Search / Suche:
foreach ($list as $name)
{
  
$array[$name] = ($name == $file);
}
$site_template->register_vars($array);

Add after / Füge danach ein:
// Pagepeel Mod Start
$site_pagepeel $config['site_pagepeel'];
$site_pagepeel_url $config['site_pagepeel_url'];
if (
$site_pagepeel){
$site_pagepeel "<div id=\"pageflip\">
	
	
<a href=\""
.$site_pagepeel_url."\"><img src=\"".TEMPLATE_PATH."/images/page_flip.png\" alt=\"\" /></a>
	
	
<div class=\"msg_block\"></div>
	
</div>\n"
;
}
// Pagepeel Mod Ende

Search / Suche:
// Replace Globals in $lang
$lang $site_template->parse_array($lang);

$site_template->register_vars(array(

Add after / füge danach ein:
  // Pagepeel Mod Start
  
"site_pagepeel" => $site_pagepeel,
  
"site_pagepeel_url" => $site_pagepeel_url,
  
// Pagepeel Mod Ende


Step 3
Open / Öffne: templates/TEMPLATE/style.css
Ad the end of the file add / am ende datei folgendes hinzufügen:
Code: [Select]
img { behavior: url(iepngfix.htc) }
#pageflip {
position: relative;
right: 0; top: 0;
float: right;
}
#pageflip img {
width: 50px; height: 52px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
border:none;
}
#pageflip .msg_block {
width: 50px; height: 50px;
overflow: hidden;
position: absolute;
right: 0; top: 0;
background: url(images/subscribe.png) no-repeat right top;
}
Step 4
Open / Öffne: lang/YOURLANG/admin.php
Search / Suche:
$setting['site_email'] = "XXXXXX";
Add after / Füge danach ein:
GERMAN:
$setting['site_pagepeel'] = "Pagepeel auf der Seite anzeigen?";
$setting['site_pagepeel_url'] = "Hier die Pagepeel URL eingeben";

ENGLISH:
$setting['site_pagepeel'] = "Show Pagepeel?";
$setting['site_pagepeel_url'] = "Pagepeel URL";


Step 5
Open / Öffne: admin/settings.php
Search / Suche:
  show_setting_row("site_name"""1);
  
show_setting_row("site_email");

Add after / füge danach ein:
  show_setting_row("site_pagepeel""radio");
  
show_setting_row("site_pagepeel_url");


Step 6
Download the Archiv
Downloade das Archiv

Put the images to your templates/yourtemplate/images folder / Schiebe die Bilder in deinem templates/deindesign/images Ordner
Put the iepngfix.htc in your roo folder / füge die iepngfix.htc  in deinem root verzeichnis

Finish / Fertig

87
Programming / Extern Avatar from WBB in 4images Comment
« on: July 10, 2010, 10:40:49 PM »
Hello,

this is the wcf1_avatar table from Woltlab Burning Board
i will show the Avatar of the user in 4images comment



I use wordpress + 4images + woltlab nurning board. The user´s have all the same ID, i have a single registration for wordpress/4images and wbb


i will use {comment_user_avatar} in the comment for showing the WBB Avatar

Sorry for my english....

88
Discussion & Troubleshooting / register.php redirect
« on: July 08, 2010, 03:23:51 PM »
Zum registrieren auf meiner Seite verwende ich die register.php ohne {header}und{footer}
Die Registration funktioniert, aber sobald man auf "Registrieren" klickt bleibt die Seite leer, ich möchte das man danach auf "index.php" weitergeleitet wird.

89
Discussion & Troubleshooting / swf upload dont work
« on: July 04, 2010, 12:10:23 PM »
Error:
Code: [Select]
Error uploading image file: intro_screens.swf
intro_screens.swf: Invalid file type (swf, video/sfa)

No database entry!

mime:

90
Programming / Text to Png
« on: July 02, 2010, 07:38:15 PM »
Hello i write a script to show text to png.
http://gn.germannaruto.de/wp-gallerie/lol.php?text=woot!
Works fine, but i cant use in home.html
Like:
Code: [Select]
<h2><a class="title" href="../?p=1" rel="bookmark"><?php include ("lol.php?Hallo Welt!"); ?></a></h2>

Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 19