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 - bergblume

Pages: 1 [2] 3
16
Chit Chat / "Lightbox" für Mods im Forum?
« on: December 03, 2009, 01:38:37 PM »
Hallo zusammen,

ich verwende eine vielzahl der tollen MODs hier im Forum... nun meine Frage (als übersichtlichkeit oder als eine art bookmark gedacht):

gäbe es eine möglichkeit einzelne Beiträge als Bookmark in seinem Profil hier im Forum abzuspeichern?

Fände ich äußerst praktisch!

gruss, bergblume

17
Discussion & Troubleshooting / Wort in verschiedenen Sprachen hinzufügen
« on: November 10, 2009, 12:01:30 PM »
hallo zusammen,

eine triviale frage für die meisten von euch wahrscheinlich....

ich habe verschiedene sprachen bei mir installiert...
nun möchte ich z.B. das  Wort "Pferd" einfügen, so dass es in den verschiedenen sprachen erscheint...

was muss ich dafür machen... mein ansatz wäre:
in jede der main.php (der einzelnen sprachpakete)
Quote
$lang['pferd'] = "Pferd";
(dt. Sprachpaket) bzw.
Quote
$lang['pferd'] = "horse";
(engl. Sprachpaket) einzufügen

und dann in meinem template z.b. in home.html dann
Quote
{lang_pferd}
einfügen... stimmt das? oder muss ich auch in der datenbank was ändern bzw. hinzufügen?

wäre euch dankbar wenn ihr mir hier kurz unter die arme greifen könntet.

Gruss, bergblume

Edit: ok, habe die lösung selbst gefunden... ich musste noch zusätzlich in includes/page_header.php folgende zeile einfügen:
Quote
"lang_pferd" => $lang['pferd'],
dann klappt´s!  :D
in Verbindung mit diesem MOD ne geniale Sache => http://www.4homepages.de/forum/index.php?topic=23490.msg128812#msg128812 !!

18
Hallo zusammen,

hinsichtlich der besseren auffindbarkeite von 4images-webseiten zu bestimmten begriffen habe ich folgende idee:

Die Interne Verlinkung auf einer Webseite ist gerade für die Suchmaschinenoptimierung wichtig. Doch ist es mühsam in jedem Artikel die Keyword oder andere Begriffe zu verlinken. Daher wäre ein Plugin, welches diese Verlinkung automatisch vornimmt ideal. Natürlich kann man damit nicht nur eigene Seiten verlinken, sondern auch Hyberlinks zu anderen Webseiten Standardmäßig setzen.

als anregung könnte dieses plugin von wordpress dienen => Link

in english:

Is it possible to realize a plugin for 4images that is called 4images seo autolinks and works like this => http://wordpress.org/extend/plugins/automatic-seo-links/screenshots/

the tool will automatically choose a word and will put a chosen URL behind. It will only use plain text in description.


Perhaps this realization for phpbb might also be a help in realization... sorry I am a fool in php so I am not able to do it on my own  :oops:

greetings,
bergblume

19
hallo zusammen,

über die suche habe ich leider nichts passendes gefunden...

folgende Frage... .es gibt ja den uploadlink (Bsp. auf meiner Seite) über den ich dann im dropdownmenu die dazugehörige Kategorie wählen kann...

gibt es nun auch die mögliochkeit einer einzigen Kommentarformularseite (neben den bisherigen kommentarmöglichkeiten) über die der user dann auch via drop-down menu das entsprechende bild auswählen kann zu dem er dann einen kommentar hinzufügen will?

viele Grüße
bergblume

20
Mods & Plugins (Requests & Discussions) / bbcode plugin for phpbb
« on: October 19, 2009, 01:31:05 PM »
hello together,

I am looking for the following solution:

I use the bridge between 4images and phpbb... now I want to set up a category named "phpbb uploaded fotos" in 4images... this directory shall be linked within phpbb... this means that I have within my posting of phpbb a button called "upload 4images pics" and that the code of the uploaded picture will automatically placed within the posting (You click "upload 4images pics" link, image is uploaded and bbcode is automatically inserted in post) ... a solution like that is realized with postimage.org but I want to have it within my 4images gallery => reference link => http://www.postimage.org/mod.php ?

does anyone have a clue how I can realize this?

thank you very much and best regards,
bergblume

21
Hallo zusammen,

ich möchte v.a. die Startseite meiner 4images-gallerie ansprechender gestalten... nur bin ich leider kein grafiker und auch kein experte in css...
ich möchte gerne nur 1 neues Bild auf der startseite angezeigt bekommen (das kann ich ja problemlos im ACP einstellen) - doch nun zur herausforderung...
das "thumbnail" soll nicht als thumbnail sondern größer (z.B. 550x300px) angezeigt werden und davor (als overlay) sollen dann die infos zum bild (Titel, Datum, Kommentare) davorgeschaltet werden....
das ganze soll in etwa wie hier bei spox realisiert ausschauen...

wer kann hier weiterhelfen?

viele grüße und danke,
bergblume


22
hallo zusammen,

ich nutze diesen RSS-Feed für meine 4images seite... leider wird bei meiner aktuellen einstellung die {image_description} komplett im rss ausgegeben... ich möchte allerdings, dass nur ein "teaser-text" mit ca. 30 Wörtern (oder 300 Zeichen) ausgegeben wird und der text dann mit (...) abgebrochen wird...

was muss ich hierfür ändern?

Code: [Select]
attached
danke und viele grüße,
bergblume

23
hallo zusammen,
ich möchte in meinem beschreibungsfeld (description) automatisch einen bannercode eingefügt haben (soll direkt in dem description-field ausgegeben). der banner soll dann automatisch über dem text, den man im beschreibungsfeld dann ganz normal eingibt, erscheinen...
was muss ich hierfür wo ändern?
danke euch, bergblume

24
hallo zusammen,

ich habe ein kleines problem... meine kommentarfunktion funktioniert - ich habe aber folgendes phänomen: wenn ich einen kommentar eintrage wird der kommentar zwar gespeichert und ich werde laut browser url auf die detailseite geleitet, diese ist aber komplett weiß... wenn ich dann nen refresh mache wird der kommentar nochmals gepostet... und wenn ich auf die url seite wieder gehe sind die kommentare da aber die direkte weiterleitung nach kommentar-post zur detailseite scheint irgendeine macke zu haben...

ich hatte zuvor diesen mod installiert (der aber auch nicht richtig funktioniert hatte) und den ich jetzt wieder deinstalliert habe => http://www.4homepages.de/forum/index.php?topic=23866.0

danke für euere hilfe!
bergblume


Edit 14:30 Uhr...

habe das problem nun selbst beheben können indem ich in die datei details.php den ursprünglichen code wieder eingefügt habe...

Code: [Select]
//-----------------------------------------------------
//--- Save Comment ------------------------------------
//-----------------------------------------------------
$error = 0;
if ($action == "postcomment" && isset($HTTP_POST_VARS[URL_ID])) {
  $id = intval($HTTP_POST_VARS[URL_ID]);
  $sql = "SELECT cat_id, image_allow_comments
          FROM ".IMAGES_TABLE."
          WHERE image_id = $id";
  $row = $site_db->query_firstrow($sql);

  if ($row['image_allow_comments'] == 0 || !check_permission("auth_postcomment", $row['cat_id']) || !$row) {
    $msg = $lang['comments_deactivated'];
  }
  else {
    $user_name = un_htmlspecialchars(trim($HTTP_POST_VARS['user_name']));
    $comment_headline = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_headline']));
    $comment_text = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_text']));

    $captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";

    // Flood Check
    $sql = "SELECT comment_ip, comment_date
            FROM ".COMMENTS_TABLE."
            WHERE image_id = $id
            ORDER BY comment_date DESC
            LIMIT 1";
    $spam_row = $site_db->query_firstrow($sql);
    $spamtime = $spam_row['comment_date'] + 180;

    if ($session_info['session_ip'] == $spam_row['comment_ip'] && time() <= $spamtime && $user_info['user_level'] != ADMIN)  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['spamming'];
      $error = 1;
    }

    $user_name_field = get_user_table_field("", "user_name");
    if (!empty($user_name_field)) {
      if ($site_db->not_empty("SELECT $user_name_field FROM ".USERS_TABLE." WHERE $user_name_field = '".strtolower($user_name)."' AND ".get_user_table_field("", "user_id")." <> '".$user_info['user_id']."'")) {
        $msg .= (($msg != "") ? "<br />" : "").$lang['username_exists'];
        $error = 1;
      }
    }
    if ($user_name == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['name_required'];
      $error = 1;
    }
    if ($comment_headline == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 1;
    }
    if ($comment_text == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['comment_required'];
      $error = 1;
    }

    if ($captcha_enable_comments && !captcha_validate($captcha)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
      $error = 1;
    }

    if (!$error)  {
      $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();
      update_comment_count($id, $user_info['user_id']);
      $msg = $lang['comment_success'];
    }
  }
  unset($row);
  unset($spam_row);
}

//-----------------------------------------------------
//--- Show Comments -----------------------------------
//-----------------------------------------------------
if ($image_allow_comments == 1) {
  $site_template->register_vars(array(
      "has_rss"   => true,
      "rss_title" => "RSS Feed: ".$image_name." (".str_replace(':', '', $lang['comments']).")",
      "rss_url"   => $script_url."/rss.php?action=comments&amp;".URL_IMAGE_ID."=".$image_id
  ));

  $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")."
          FROM ".COMMENTS_TABLE." c
          LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = c.user_id)
          WHERE c.image_id = $image_id
          ORDER BY c.comment_date ASC";
  $result = $site_db->query($sql);

  $comment_row = array();
  while ($row = $site_db->fetch_array($result)) {
    $comment_row[] = $row;
  }
  $site_db->free_result($result);
  $num_comments = sizeof($comment_row);

  if (!$num_comments) {
    $comments = "<tr><td class=\"commentrow1\" colspan=\"2\">".$lang['no_comments']."</td></tr>";
  }
  else {
    $comments = "";
    $bgcounter = 0;
    for ($i = 0; $i < $num_comments; $i++) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;

      $comment_user_email = "";
      $comment_user_email_save = "";
      $comment_user_mailform_link = "";
      $comment_user_email_button = "";
      $comment_user_homepage_button = "";
      $comment_user_icq_button = "";
      $comment_user_profile_button = "";
      $comment_user_status_img = REPLACE_EMPTY;
      $comment_user_name = format_text($comment_row[$i]['comment_user_name'], 2);
      $comment_user_info = $lang['userlevel_guest'];

      $comment_user_id = $comment_row[$i]['user_id'];

      if (isset($comment_row[$i][$user_table_fields['user_name']]) && $comment_user_id != GUEST) {
        $comment_user_name = format_text($comment_row[$i][$user_table_fields['user_name']], 2);

        $comment_user_profile_link = !empty($url_show_profile) ? $site_sess->url(preg_replace("/{user_id}/", $comment_user_id, $url_show_profile)) : $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$comment_user_id);
        $comment_user_profile_button = "<a href=\"".$comment_user_profile_link."\"><img src=\"".get_gallery_image("profile.gif")."\" border=\"0\" alt=\"".$comment_user_name."\" /></a>";

        $comment_user_status_img = ($comment_row[$i][$user_table_fields['user_lastaction']] >= (time() - 300) && ((isset($comment_row[$i][$user_table_fields['user_invisible']]) && $comment_row[$i][$user_table_fields['user_invisible']] == 0) || $user_info['user_level'] == ADMIN)) ? "<img src=\"".get_gallery_image("user_online.gif")."\" border=\"0\" alt=\"Online\" />" : "<img src=\"".get_gallery_image("user_offline.gif")."\" border=\"0\" alt=\"Offline\" />";

        $comment_user_homepage = (isset($comment_row[$i][$user_table_fields['user_homepage']])) ? format_url($comment_row[$i][$user_table_fields['user_homepage']]) : "";
        if (!empty($comment_user_homepage)) {
          $comment_user_homepage_button = "<a href=\"".$comment_user_homepage."\" target=\"_blank\"><img src=\"".get_gallery_image("homepage.gif")."\" border=\"0\" alt=\"".$comment_user_homepage."\" /></a>";
        }

        $comment_user_icq = (isset($comment_row[$i][$user_table_fields['user_icq']])) ? format_text($comment_row[$i][$user_table_fields['user_icq']]) : "";
        if (!empty($comment_user_icq)) {
          $comment_user_icq_button = "<a href=\"http://www.icq.com/people/about_me.php?uin=".$comment_user_icq."\" target=\"_blank\"><img src=\"http://status.icq.com/online.gif?icq=".$comment_user_icq."&img=5\" width=\"18\" height=\"18\" border=\"0\" alt=\"".$comment_user_icq."\" /></a>";
        }

        if (!empty($comment_row[$i][$user_table_fields['user_email']]) && (!isset($comment_row[$i][$user_table_fields['user_showemail']]) || (isset($comment_row[$i][$user_table_fields['user_showemail']]) && $comment_row[$i][$user_table_fields['user_showemail']] == 1))) {
          $comment_user_email = format_text($comment_row[$i][$user_table_fields['user_email']]);
          $comment_user_email_save = format_text(str_replace("@", " at ", $comment_row[$i][$user_table_fields['user_email']]));
          if (!empty($url_mailform)) {
            $comment_user_mailform_link = $site_sess->url(preg_replace("/{user_id}/", $comment_user_id, $url_mailform));
          }
          else {
            $comment_user_mailform_link = $site_sess->url(ROOT_PATH."member.php?action=mailform&amp;".URL_USER_ID."=".$comment_user_id);
          }
          $comment_user_email_button = "<a href=\"".$comment_user_mailform_link."\"><img src=\"".get_gallery_image("email.gif")."\" border=\"0\" alt=\"".$comment_user_email_save."\" /></a>";
        }

        if (!isset($comment_row[$i][$user_table_fields['user_level']]) || (isset($comment_row[$i][$user_table_fields['user_level']]) && $comment_row[$i][$user_table_fields['user_level']] == USER)) {
          $comment_user_info = $lang['userlevel_user'];
        }
        elseif ($comment_row[$i][$user_table_fields['user_level']] == ADMIN) {
          $comment_user_info = $lang['userlevel_admin'];
        }

        $comment_user_info .= "<br />";
        $comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_joindate']])) ? "<br />".$lang['join_date']." ".format_date($config['date_format'], $comment_row[$i][$user_table_fields['user_joindate']]) : "";
        $comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_comments']])) ? "<br />".$lang['comments']." ".$comment_row[$i][$user_table_fields['user_comments']] : "";
      }

      $comment_user_ip = ($user_info['user_level'] == ADMIN) ? $comment_row[$i]['comment_ip'] : "";

      $admin_links = "";
      if ($user_info['user_level'] == ADMIN) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }

      $site_template->register_vars(array(
        "comment_id" => $comment_row[$i]['comment_id'],
        "comment_user_id" => $comment_user_id,
        "comment_user_status_img" => $comment_user_status_img,
        "comment_user_name" => $comment_user_name,
        "comment_user_info" => $comment_user_info,
        "comment_user_profile_button" => $comment_user_profile_button,
        "comment_user_email" => $comment_user_email,
        "comment_user_email_save" => $comment_user_email_save,
        "comment_user_mailform_link" => $comment_user_mailform_link,
        "comment_user_email_button" => $comment_user_email_button,
        "comment_user_homepage_button" => $comment_user_homepage_button,
        "comment_user_icq_button" => $comment_user_icq_button,
        "comment_user_ip" => $comment_user_ip,
        "comment_headline" => format_text($comment_row[$i]['comment_headline'], 0, $config['wordwrap_comments'], 0, 0),
        "comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
        "comment_date" => format_date($config['date_format']." ".$config['time_format'], $comment_row[$i]['comment_date']),
        "row_bg_number" => $row_bg_number,
        "admin_links" => $admin_links
      ));
      $comments .= $site_template->parse_template("comment_bit");
    } // end while
  } //end else
  $site_template->register_vars("comments", $comments);
  unset($comments);

25
Hello together,

based on this [MOD] GOogle Sitemap for your gallery - I want herewith give a clear overview how to get the sitemap work together with using [Mod] Search Engine Friendly URLs aka Short URLs

this is especially for those who have links like e.g.
domain.de/cat-georgia-1.html and domain.de/img-bildname-76.html

I have attached a working google.php-file for this....

You must install the [Mod] Search Engine Friendly URLs aka Short URLs before using this file.

1. Upload the file google.php to the root folder of 4images.
2. Modify the .htaccess to rewrite the URL of sitemap.

Code: [Select]
RewriteRule ^sitemap.xml$ google.php
Now the URL of sitemap is: http://www.yourdomain.com/sitemap.xml

You can send a ping to Google to notify your new sitemap by this way: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAP

greetz, bergblume

26
Hallo zusammen,

wie kann ich bei den kommentaren die titelzeile durch ein datumsauswahlfeld abändern - so dass dann in der ausgabe im Titel z.B. 07.07.2009 ausgegeben wird ? ich möchte, dass der user hier auswählen kann, wann er bei dem jeweiligen ort/bild schon war (daher ist der automatische zeitstempel für mich in dieser form nutzlos, da die user ja das datum aus der vergangenheit wählen.).... würde mich freuen, wenn mir hierbei jmd. helfen kann...

gruss, bergblume

27
hallo, in der standardansicht werden ja auf home.html die 3 neuesten bilder aus allen kategorien angezeigt...
kann ich zusätzlich noch eine separate zeile mit den 3 neuesten bildern aus einer fest definierten Kategorie in home.html hinzufügen?

28
hallo,
wie kann ich bei den thumbnails diesen unschönen umbruch verhindern? die zeile soll schon umgebrochen werden, aber auf einer linie zum oberen wort und nicht eingeschoben werden (siehe rote linie)
was muss ich hierfür wo ändern?
gruss, bergblume

29
hallo zusammen,
folgende frage bzw. idee... es gibt ja diese open cycle map für radfahrer : http://www.opencyclemap.org/
wie kann ich diese in googlemaps neben hybrid-view, satelliten-ansicht und kartenansicht integrieren?
gruss,
bergblume

30
Discussion & Troubleshooting / Kommentare als Gast
« on: June 03, 2009, 10:30:47 AM »
Hallo zusammen,
ich habe folgendes Problem mit der Kommentarfunktion... mittlerweile sind schon ziemlich viele User registriert...
ich habe meine kommentar-einstellungen so eingestellt, dass jeder (auch als Gast unangemeldet) Kommmentare schreiben kann....
das Problem ist nun, wenn jmd. unter dem Gastnamen z.B. Matze einen Kommentar schreibt, wird dieser Kommentar nicht angezeigt bzw. akzeptiert, das die Meldung kommt "Es existiert bereits ein User mit diesem Usernamen." --- wie kann ich dieses Problem umgehen ? gibt es irgendwie eine Möglcihkeit dass als username, dann automatisch Matze(Gast) verwendet wird oder etwas ähnliches?
danke f+ür eure Hilfe,
bergblume

Pages: 1 [2] 3