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 ... 19
61
Gibt es irgendeinen Weg die Pflicht ein Bild hochzuladen auszuschalten?
Es klingt zwar Schwachsinnig in einem Galleriesystem diese Funktion auszuschalten beziehungsweise zu entschärfen aber das bräuchte ich für eine Erweiterung

----

Is there any way the obligation to upload a picture off?
It sounds moronic in a gallery system to defuse or disable this feature but I would need for an extension

62
I would like to see is the path of the category in the details.htm.
Example:
Main category/subcategory

Is that possible?

----------------------

Ich möchte gerne das der Kategoriepfad in der details.htm angezeigt wird.
Beispiel:
Hauptkategorie/unterkategorie

Ist das möglich?


Has done here: D

63
Discussion & Troubleshooting / - delete -
« on: September 13, 2010, 01:10:49 PM »
- delete -

64
V1 - http://www.4homepages.de/forum/index.php?topic=27911.msg151072#msg151072

Or / oder
search / suche: includes/functions.php
  foreach ($visible_cat_cache as $subcat_id) {
    if (
$i <= $num_subs && $i <= $config['num_subcats']) {
      
$sub_url $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$subcat_id);
      
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
      if (
$i != $config['num_subcats'] && $i $config['num_subcats'] && $i $num_subs) {
        
$sub_cat_list .= ", ";
      }
      if (
$i == $config['num_subcats'] && $i $num_subs) {
        
$sub_cat_list .= " ...\n";
      }
    }
    
$i++;
  }


replace with / ersetze mit:
foreach ($visible_cat_cache as $subcat_id) {
    if (
$i <= $num_subs && $i <= $config['num_subcats']) {
      
$is_new = (isset($new_image_cache[$subcat_id]) > 0) ? 0;
      
$sub_url $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$subcat_id);
	
  
$subsub_cat get_subcategories($subcat_id);
    
$site_template->register_vars(array(
      
"sub_cat_name" => format_text($cat_cache[$subcat_id]['cat_name'], 2),
      
"sub_cat_url" => $sub_url,
	
  
"sub_is_new" => ($is_new == 1) ? $lang['new']  : "",
	
  
"sub_sub_cat" => $subsub_cat
    
));
      
$sub_cat_list .= $site_template->parse_template("sub_category_bit");
      if (
$i != $config['num_subcats'] && $i $config['num_subcats'] && $i $num_subs) {
       
$sub_cat_list .= (!empty($subsub_cat)) ? "\n<li>".$subsub_cat."</li>\n" "";
       
$sub_cat_list .= "</li>\n<li>";
      }
      if (
$i == $config['num_subcats'] && $i $num_subs) {
        
$sub_cat_list .= " ...\n";
      }
    }
    
$i++;
  }

65
 :flag-de:
Hallo zusammen,

ich möchte zu jedem Bild die passenden Unterkategorien ausgeben.

Beispiel:
Bild #1 liegt in der Kategorie "Test" mit der ID 2.
In der details.html sollen die Unterkategorien von Kategorie "Test" mit der ID 2 ausgegeben werden.

 :flag-en:
Hi,

I want to spend for each image the appropriate subcategories.

Example:
Image # 1 is located in the category "Test" with the ID 2
In details.html to the sub-category of "test" with the ID 2 will be issued.

66
Programming / preg_replace Problem
« on: September 11, 2010, 02:07:40 AM »
Did I done a different code found!

Hi,

the building for me is:
...
    
$search_array = array(
      
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
      
"/(\[)(list)(])(.*)(\[\/list\])/siU",
      
"/(\[\*\])/siU",
      
"/(\[\/\*\])/siU",
      
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
      
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
      
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
      
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
      
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
      
"/javascript:/si",
      
"/about:/si",
      
"/:D/si",
      
"/(\:)\)/si",
      
"/:(/si",
    );
    
$replace_array = array(
      
"<ol type=\"\\5\">\\7</ol>",
      
"<ul>\\4</ul>",
      
"<li>",
      
"</li>",
      
"<a href=\"http://www.\\6\" target=\"_blank\" rel=\"nofollow\">\\8</a>",
      
"<a href=\"\\5\" target=\"_blank\" rel=\"nofollow\">\\7</a>",
      
"<a href=\"http://www.\\5\" target=\"_blank\" rel=\"nofollow\">www.\\5</a>",
      
"<a href=\"\\4\" target=\"_blank\" rel=\"nofollow\">\\4</a>",
      
"<pre>Code:<hr size=1>\\5<hr size=1></pre>",
      
"java script:",
      
"about :",
      
"<img src=\"./board/wcf/images/smilies/biggrin.png\" alt=\":D\">",
      
"<img src=\"./board/wcf/images/smilies/smile.png\" alt=\":)\">",
      
"<img src=\"./board/wcf/images/smilies/sad.png\" alt=\":)\">"
    
);
    
$text preg_replace($search_array$replace_array$text);
    if (!
$bbcode_img)  {
      
$text preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU""<a href=\"\\5\" target=\"_blank\">\\5</a>"$text);
    }
    else  {
      
$text preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU""<img src=\"\\5\">"$text);
    }
    
$text preg_replace("/(\[)(b)(])(\r\n)*([^\"]*)(\[\/b\])/siU""<b>\\5</b>"$text);
.....


It's about this smiley ""/:(/si"," and "/(\8)\)/si",
I do not get converted, I have tried all variations ... someone knows more?

67
Programming / 4images comments to woltlab burning board
« on: September 07, 2010, 07:55:37 PM »
 :flag-de:
Ich möchte das die Bilderkommentare auch direkt in die Datenbank von woltlab burning board geschrieben werden. Das hat auch schon funktioniert.
 :flag-en:
I would like the pictures and comments directly to the database by Burning Board. This has also already works.

Details.php
      $sql "INSERT INTO ".COMMENTS_TABLE."
              (image_id, user_id, user_name, comment_headline, comment_text, comment_ip, comment_date)
              VALUES
              (
$id, ".$user_info['user_id'].", '$user_name', '$comment_headline', '$comment_text', '".$session_info['session_ip']."', ".time().")";
      
$site_db->query($sql);
      
$commentid $site_db->get_insert_id();
	
  
// Forenpost erstellen
        
$sql "INSERT INTO wbb1_1_post
                 (threadID, enableHtml, username, subject, userID, message, time)
                 VALUES
                ("
.$image_row['image_thread'].", '0', '$user_name', '$comment_headline',  ".$user_info['user_id'].", '$comment_text', ".time().")";
      
$site_db->query($sql);
      
$commentid $site_db->get_insert_id();


 :flag-de:
Als nächstes möchte ich, dass die Kommentare auch wieder ausgegeben werden. Es sollen die in der 4images Datenbank eingetragenen Kommentare sowie die aus dem Forum angezeigt werden. Aber das funktioniert nicht richtig, hier der code

 :flag-en:
Next I would like the comments are also displayed again. It should in the 4images database registered comments, which are displayed from the forum. But that does not work properly, here is the code
  $sql "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date".get_user_table_field(", u.""user_level").get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email").get_user_table_field(", u.""user_showemail").get_user_table_field(", u.""user_invisible").get_user_table_field(", u.""user_joindate").get_user_table_field(", u.""user_lastaction").get_user_table_field(", u.""user_comments").get_user_table_field(", u.""user_homepage").get_user_table_field(", u.""user_icq").", p.threadID, p.username, p.subject, p.userID, p.message, p.time
          FROM "
.COMMENTS_TABLE." c
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = c.user_id)
	
	
  LEFT JOIN wbb1_1_post p ON (p.threadID = "
.$image_row['image_thread'].")
          WHERE c.image_id = 
$image_id
          ORDER BY c.comment_date ASC"
;
  
$result $site_db->query($sql);

68
Mods & Plugins (Requests & Discussions) / Top XX Lightbox images
« on: August 29, 2010, 01:29:22 PM »
Hallo zusammen,

ist es möglich eine Art "Top XX Leuchtkasten Bilder" auf der Startseite auszugeben?
Es sollen quasi die Beliebtesten Bilder ausgegeben werden, die am meisten in den Leuchtkästen zu finden sind.


---

Hi,

It is possible a kind of "Top XX lightbox images" on the front page issue?
There are virtually the popular images are displayed which are mostly found in the light boxes.

69
Discussion & Troubleshooting / User ausgabe
« on: August 26, 2010, 05:55:55 PM »
Hallo zusammen,

ich finde den Thread einfach nicht mehr. Und zwar wie ich die aktuellen User ausgebe!

z.B Unsere Gallerie beherbegt XX User.

Wie lautet das der Code nochmal?

70
 :flag-de:
Mit dieser Modifikation ist es endlich möglich Bilder mit einen Schatten oder einen Bilderrahmen auszustatten. Das alles ist mit nur einem Klick getan, es müssen keine weiteren Modifizierungen der Dateien vorgenommen werden, nur bei der ersten Installation. Derzeit stehen 16 verschiedene Styles zur Verfügung.

Getestet mit 4images 1.7.8

 :flag-en:
With this modification, it is finally possible images with a shadow or a picture frame equip. This is all done with just one click, there are no additional modifications of the files are made, first only during the installation. Currently there are 16 different styles available.

Tested with 4images 1.7.8

Step 1
Open / Öffne: includes/functions.php
Search / Suche:
$height $image_info[1];
Add after / Füge  danach ein:
	
    
$height_polaroid $image_info[1] + 2;
	
	
$width_polaroid $image_info[0] + 38;
$width_mod_schatten_12 $image_info[0] - 20;

Search / Suche:
"height" => $height,
Add after / Füge danach ein:
	
  
"height_polaroid" => $height_polaroid,
	
  
"width_polaroid" => $width_polaroid,
"width_mod_schatten_12" => $width_mod_schatten_12,


Step 2
Open / Öffne: templates/*TEMPLATE*/details.html
Search / Suche:
Code: [Select]
{image}Replace with / Ersetze mit:
Code: [Select]
{ms_style}
Step 3
Open / Öffne: admin/settings.php
Search / Suche:
show_setting_row("image_table_cellpadding");
Add after / Füge danach ein:
show_setting_row("image_style""show_image_style_select");
Search / Suche:
function show_upload_mode_options($setting_name$setting_value) {
Add above / Füge davor ein:
function show_image_style_select($setting_name$setting_value) {
  global 
$image_style_optionlist;
  echo 
"<select name=\"setting_item[".$setting_name."]\">";
  foreach (
$image_style_optionlist as $key => $val) {
    echo 
"<option value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" selected=\"selected\"";
    }
    echo 
">".$val."</option>";
  }
  echo 
"</select>";
}


Step 4
Open / Öffne: lang/admin.php
Search / Suche:
$setting['image_table_cellspacing'] = "Cellspacing der Bilder Tabelle";
Add after / Füge danach ein:
include(TEMPLATE_PATH.'/mod_schatten/lang/mod_schatten_lang.php');

Step 5
Open / Öffne: details.php
Search / Suche:
show_image($image_row$mode01);
Add after / Füge danach ein:
if($config['image_style'] == 0){
  
$ms 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(
$config['image_style'] > 0){
  
$ms $site_template->parse_template("mod_schatten/mod_schatten_".$config['image_style']);
}
$site_template->register_vars("ms_style",$ms);


Fertig: Lade den Anhang herunter und kopiere den Ordner "mod_schatten" in deinem "templates/*TEMPLATE*/" Ordner
Finish: Download the attachment and copy the "mod_schatten" folder in your "templates/*TEMPLATE*/" folder


71
Mods & Plugins (Releases & Support) / - delete -
« on: August 11, 2010, 07:04:20 PM »
- delete -

72
Quicklist/e







System Erweiterung / System expansion

:flag-de:
:flag-en:
  • Paging for comments
    • This MOD will add Paging to comments, that means it will display only XX number of comments per page

Kommentar- System / Comment- System

:flag-de:
:flag-en:

Bilder- System / Image- System

:flag-de:
:flag-en:

Nutzer- System / User- System

:flag-de:
:flag-en:




Administration

:flag-de:
:flag-en:
  • Date on Admin Panel
    • With this hack is the current date and time displayed in the administration area


System Erweiterung / System expansion

:flag-de:
:flag-en:
  • HTML only for admins
    • Remove the html extension for non-admins, because only admins can upload HTML files right
[/list]



    Quicklist/e







    System Erweiterung / System expansion

    :flag-de:
    :flag-en:
    • Paging for comments
      • This MOD will add Paging to comments, that means it will display only XX number of comments per page

    Kommentar- System / Comment- System

    :flag-de:
    :flag-en:

    Bilder- System / Image- System

    :flag-de:
    :flag-en:

    Nutzer- System / User- System

    :flag-de:
    :flag-en:




    Administration

    :flag-de:
    :flag-en:
    • Date on Admin Panel
      • With this hack is the current date and time displayed in the administration area


    System Erweiterung / System expansion

    :flag-de:
    :flag-en:
    • HTML only for admins
      • Remove the html extension for non-admins, because only admins can upload HTML files right



    System Erweiterung / System expansion

    :flag-de:[/list]

    73
    Mods & Plugins (Requests & Discussions) / [MOD] Captcha Control
    « on: August 08, 2010, 04:27:59 PM »
     :flag-de:
    Durch diese Modifikation ist es nun möglich alle wichtigen Einstellungen für das Captcha im Administrationsreich einzustellen. ReCaptcha wird ebenfalls unterstützt, muss aber installiert sein.

     :flag-en:
    With this modification, it is now possible, with all the important settings for the Captcha in the administrative realm set. ReCaptcha is also supported, but must be installed.

    Step 1
    Open / Öffne: global.php
    4images 1.7.7
    Search / Suche:
    // Initialize CAPTCHA configuration
    $captcha_enable              1;
    $captcha_enable_comments     1;
    $captcha_enable_upload       1;
    $captcha_enable_registration 1;
    $captcha_enable_postcards    1;
    $captcha_ttf                 1;
    $captcha_path                ROOT_PATH.'captcha';
    $captcha_chars               "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    $captcha_length              5;
    $captcha_wordfile            0;
    $captcha_width               200;
    $captcha_height              70;
    $captcha_text_color          '#000000';
    $captcha_text_size           25;
    $captcha_text_transparency   60;
    $captcha_filter_text         1;
    $captcha_filter_bg           1;

    4images 1.7.8
    // Initialize CAPTCHA configuration
    $captcha_enable              1;
    $captcha_enable_comments     1;
    $captcha_enable_upload       1;
    $captcha_enable_registration 1;
    $captcha_enable_postcards    1;
    $captcha_ttf                 1;
    $captcha_path                ROOT_PATH.'captcha';
    $captcha_chars               "abcdefghijklmnopqrstuvwxyz1234567890";
    $captcha_length              5;
    $captcha_wordfile            0;
    $captcha_width               200;
    $captcha_height              70;
    $captcha_text_color          '#000000';
    $captcha_text_size           25;
    $captcha_text_transparency   60;
    $captcha_filter_text         1;
    $captcha_filter_bg           1;

    Replace with / Ersetze mit:
    4images 1.7.7
    /* // Initialize CAPTCHA configuration
    $captcha_enable              = 1;
    $captcha_enable_comments     = 1;
    $captcha_enable_upload       = 1;
    $captcha_enable_registration = 1;
    $captcha_enable_postcards    = 1;
    $captcha_ttf                 = 1;
    $captcha_path                = ROOT_PATH.'captcha';
    $captcha_chars               = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    $captcha_length              = 5;
    $captcha_wordfile            = 0;
    $captcha_width               = 200;
    $captcha_height              = 70;
    $captcha_text_color          = '#000000';
    $captcha_text_size           = 25;
    $captcha_text_transparency   = 60;
    $captcha_filter_text         = 1;
    $captcha_filter_bg           = 1; */

    4images 1.7.8
    /*// Initialize CAPTCHA configuration
    $captcha_enable              = 1;
    $captcha_enable_comments     = 1;
    $captcha_enable_upload       = 1;
    $captcha_enable_registration = 1;
    $captcha_enable_postcards    = 1;
    $captcha_ttf                 = 1;
    $captcha_path                = ROOT_PATH.'captcha';
    $captcha_chars               = "abcdefghijklmnopqrstuvwxyz1234567890";
    $captcha_length              = 5;
    $captcha_wordfile            = 0;
    $captcha_width               = 200;
    $captcha_height              = 70;
    $captcha_text_color          = '#000000';
    $captcha_text_size           = 25;
    $captcha_text_transparency   = 60;
    $captcha_filter_text         = 1;
    $captcha_filter_bg           = 1; */

    Search / Suche:
    //-----------------------------------------------------
    //--- Generate Setting --------------------------------
    //-----------------------------------------------------
    $sql "SELECT setting_name, setting_value
            FROM "
    .SETTINGS_TABLE;
    $result $site_db->query($sql);
    if (!
    $result) {
      echo 
    $lang['no_settings'];
      exit;
    }
    while (
    $row $site_db->fetch_array($result)) {
      
    $config[$row['setting_name']] = $row['setting_value'];
    }
    $site_db->free_result();

    Add after / Füge danach ein:
    // Initialize CAPTCHA configuration
    $captcha_enable              $config['captcha_enable'];
    $captcha_enable_comments     $config['captcha_enable_comments'];
    $captcha_enable_upload       $config['captcha_enable_upload'];
    $captcha_enable_registration $config['captcha_enable_registration'];
    $captcha_enable_postcards    $config['captcha_enable_postcards'];
    $captcha_ttf                 1;
    $captcha_path                ROOT_PATH.''.$config['captcha_path'].'';
    $captcha_chars               "".$config['captcha_chars']."";
    $captcha_length              $config['captcha_length'];
    $captcha_wordfile            $config['captcha_wordfile'];
    $captcha_width               $config['captcha_width'];
    $captcha_height              $config['captcha_height'];
    $captcha_text_color          ''.$config['captcha_text_color'].'';
    $captcha_text_size           $config['captcha_text_size'];
    $captcha_text_transparency   $config['captcha_text_transparency'];
    $captcha_filter_text         $config['captcha_filter_text'];
    $captcha_filter_bg           $config['captcha_filter_bg'];
    // Initialize CAPTCHA configuration end


    Step 2
    Open / Öffne: admin/settings.php
    Search / Suche:
      show_form_footer($lang['save_changes'], ""2);
    }

    Add above / Füge darüber ein:
      show_table_separator($setting_group["captchacontrol"], 2"setting_group_captchacontrol");
      
    show_setting_row("captcha_enable""radio");
      
    show_setting_row("captcha_enable_comments""radio");
      
    show_setting_row("captcha_enable_upload""radio");
      
    show_setting_row("captcha_enable_registration""radio");
      
    show_setting_row("captcha_enable_postcards""radio");
      
    show_setting_row("captcha_path");
      
    show_setting_row("captcha_chars");
      
    show_setting_row("captcha_length");
      
    show_setting_row("captcha_wordfile""radio");
      
    show_setting_row("captcha_width");
      
    show_setting_row("captcha_height");
      
    show_setting_row("captcha_text_color");
      
    show_setting_row("captcha_text_size");
      
    show_setting_row("captcha_text_transparency");
      
    show_setting_row("captcha_filter_text""radio");
      
    show_setting_row("captcha_filter_bg""radio");
      
    show_setting_row("captcha_recaptcha_onoff""radio");
      
    show_setting_row("captcha_recaptcha_domain");
      
    show_setting_row("captcha_recaptcha_publickey");
      
    show_setting_row("captcha_recaptcha_privatkey");


    Step 3
    :flag-de:
    Öffne: lang/deutsch/admin.php
    Suche:
    ?>
    Add above / Füge darüber ein:
    /*-- Setting-Group captchacontrol --*/
    $setting_group["captchacontrol"] = "Captcha Einstellungen";
    $setting['captcha_enable'] = "Captcha einschalten";
    $setting['captcha_enable_comments'] = "Captcha in den Kommentaren";
    $setting['captcha_enable_upload'] = "Captcha im Uploadformular";
    $setting['captcha_enable_registration'] = "Captcha wären der Registration";
    $setting['captcha_enable_postcards'] = "Captcha beim Postkarten versenden";
    $setting['captcha_path'] = "Captcha Verzeichnis<br /><span class=\"smalltext\">Ausgehend vom ROOT- Verzeichnis</span>";
    $setting['captcha_chars'] = "Erlaubte Zeichen im Captcha";
    $setting['captcha_length'] = "Zeichenlänge<br /><span class=\"smalltext\">Welche Länge soll der Code besitzen</span>";
    $setting['captcha_wordfile'] = "Vorgefertigte Wörter verwenden<br /><span class=\"smalltext\">captcha/wordlist.tx</span>";
    $setting['captcha_width'] = "Captcha Breite<br /><span class=\"smalltext\">In Pixel</span>";
    $setting['captcha_height'] = "Captcha Höhe<br /><span class=\"smalltext\">In Pixel</span>";
    $setting['captcha_text_color'] = "Captcha Schriiftfarbe";
    $setting['captcha_text_size'] = "Captcha Schrifthöhe";
    $setting['captcha_text_transparency'] = "Captcha Transparents<br /><span class=\"smalltext\">0-100</span>";
    $setting['captcha_filter_text'] = "Text verschleiern<br /><span class=\"smalltext\">Erschwärt den Spambots das Captcha zu lesen</span>";
    $setting['captcha_filter_bg'] = "Hintergrund verschleiern<br /><span class=\"smalltext\">Erschwärt den Spambots das Captcha zu lesen</span>";
    $setting['captcha_recaptcha_onoff'] = "ReCaptcha- Unterstützung<br /><span class=\"smalltext\">Registration: <a href=\"http://recaptcha.net\" target=\"_blank\">http://recaptcha.net</a></span>";
    $setting['captcha_recaptcha_domain'] = "ReCaptcha Domain<br /><span class=\"smalltext\">Trage hier die Domain ein, auf der ReCaptcha registriert wurde</span>";
    $setting['captcha_recaptcha_publickey'] = "ReCaptcha Public-Key<br /><span class=\"smalltext\">Trage hier den Public-Key der registrierten Domain ein</span>";
    $setting['captcha_recaptcha_privatkey'] = "ReCaptcha Privat-Key<br /><span class=\"smalltext\">Trage hier den Privat-Key der registrierten Domain ein</span>";


     :flag-en:
    Open: lang/english/admin.php
    Search:
    ?>
    Add above / Füge darüber ein:
    /*-- Setting-Group XX --*/
    $setting_group[XX] = "Captcha Settings";
    $setting['captcha_enable'] = "Captcha enabled";
    $setting['captcha_enable_comments'] = "Enables the CAPTCHA system for the comments";
    $setting['captcha_enable_upload'] = "Enables the CAPTCHA system for the upload";
    $setting['captcha_enable_registration'] = "Enables the CAPTCHA system for the registration form";
    $setting['captcha_enable_postcards'] = "Enables the CAPTCHA system for the e-cards";
    $setting['captcha_path'] = "Path to the folder which contains the CAPTCHA files<br /><span class=\"smalltext\">Starting from the root directory</span>";
    $setting['captcha_chars'] = "A list of letters which will be used for the randomly generated CAPTCHA strings";
    $setting['captcha_length'] = "Number of letters of the CAPTCHA strings";
    $setting['captcha_wordfile'] = "If this option is set to 1, a word from \"captcha/wordlist.txt\" is used.";
    $setting['captcha_width'] = "Width of the CAPTCHA image in pixel.";
    $setting['captcha_height'] = "Height of the CAPTCHA image in pixel.";
    $setting['captcha_text_color'] = "Color (Hex) of the CAPTCHA text.";
    $setting['captcha_text_size'] = "Size of the CAPTCHA text.";
    $setting['captcha_text_transparency'] = "Transparency of the CAPTCHA text.<br /><span class=\"smalltext\">0-100</span>";
    $setting['captcha_filter_text'] = "The CAPTCHA text willbe filtered (\"obscured\").";
    $setting['captcha_filter_bg'] = "The CAPTCHA background image will be filtered (\"obscured\").";
    $setting['captcha_recaptcha_onoff'] = "ReCaptcha support<br /><span class=\"smalltext\">Registration: <a href=\"http://recaptcha.net\" target=\"_blank\">http://recaptcha.net</a></span>";
    $setting['captcha_recaptcha_domain'] = "ReCaptcha Domain<br /><span class=\"smalltext\">Insert here the domain that was registered on the ReCaptcha</span>";
    $setting['captcha_recaptcha_publickey'] = "ReCaptcha Public-Key<br /><span class=\"smalltext\">Insert here the public key of a registered domain</span>";
    $setting['captcha_recaptcha_privatkey'] = "ReCaptcha Private-Key<br /><span class=\"smalltext\">Insert here the private key of a registered domain</span>";

    Please replace the "XX" with the correckt Group.

    ReCaptcha Support

    Installation
    Redo Step 2 from this thread / Mache Step 2 aus diesem Thread rückgängig: http://www.4homepages.de/forum/index.php?topic=27551.0
    Step 2 must be installed for this modification so / Schritt 2 muss für diese Modifikation so installiert werden
    Open / Öffne: global.php
    Search / Suche:
    $captcha_filter_bg           $config['captcha_filter_bg'];
    // Initialize CAPTCHA configuration end

    Add after / Füge danach ein:
    $captcha_recaptcha           $config['captcha_recaptcha_onoff']; //0 = disable; 1 = enable with auto domain select; "yourdomain" = for one specific domain only, this domain must be specified in $recaptcha_domains below
    //$captcha_recaptcha           = "yourdomain2"; //use only reCAPTCHA keys for yourdomain2

    $recaptcha_domains[''.$config['captcha_recaptcha_domain'].''] = array("".$config['captcha_recaptcha_publickey']."""".$config['captcha_recaptcha_privatkey']."");
    /*//to add more then one domain:
    $recaptcha_domains['example.com']   = array("public key for example.com", "private key for example.com");
    $recaptcha_domains['4homepages.de'] = array("asdfasdfasdf", "a98sd7as9df7as");
    $recaptcha_domains['google.com']    = array("23kj423h42k", "8fas9d8a9sdf9a");
    */
    if ($captcha_enable && $captcha_recaptcha
        
    && (isset($recaptcha_domains[$captcha_recaptcha])
              || isset(
    $recaptcha_domains[strtolower($_SERVER["HTTP_HOST"])])))
    {
      
    $captcha_recaptcha = (isset($recaptcha_domains[$captcha_recaptcha]))
                              ? 
    $recaptcha_domains[$captcha_recaptcha]
                              : 
    $recaptcha_domains[strtolower($_SERVER["HTTP_HOST"])];
    }
    else
    {
      
    $captcha_recaptcha 0;
    }


    Finish / Fertig
    Upload the attachment and copy the install.php (install_177.php for 4images 1.7.7 / install_178.php for 4images 1.7.8) in your root directory. Then run the installation: http://yoursite.com/install.php
    Lade  den Anhang herunter und kopiere die install.php (install_177.php für 4images 1.7.7 / install_178.php für 4images 1.7.8) in deinem Root- Verzeichnis. Führe dann die Installation aus: http://deineseite.de/install.php

    74
    Mods & Plugins (Requests & Discussions) / [MOD] Commentbox v0.2
    « on: August 07, 2010, 02:22:36 PM »
    Quote
    [MOD] Commentbox v0.2 bietet eine Schnittstelle um das Kommentarformular in einem Popup öffnen zu lassen

    Mit dieser Modifikation ist es möglich, dass man Kommentare über ein Popup schreiben kann. Das spart enormen Platz auf der Detailsseite und kommt den web2.0 Standard nahe. Die Voraussetzung ist Javascript und funktioniert mit der jQuery- Unterstützung.

    Online Installation and Screenshots:  :arrow:

    75
    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

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