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.


Messages - Martin2006-B-2

Pages: [1]
1
Mods & Plugins (Releases & Support) / Re: [MOD] Search Statistics v1.2
« on: January 29, 2008, 04:14:59 PM »
This is a GREAT Mod! Thanks to all!

2
Discussion & Troubleshooting / Pictures in Google Image Search
« on: December 03, 2007, 08:20:52 PM »
Hi All. The question i have is also fallen is this forum Tread : http://www.4homepages.de/forum/index.php?topic=9488.0
But no one answered. So i'll ask again.

Is it possible that my pics will be found in google Image Search?
For example: I have an image which is called "cloudy.jpg". Now someone searches for the word "cloudy" in google image search. Is it possible that my image will be shown?

Greets


3
Cool MOD! It Works. Thx

4
Mods & Plugins (Releases & Support) / Re: [MOD] Paging for comments
« on: October 29, 2007, 12:49:26 PM »
@Neo777

For Version 1.7.4 it looks like this:

Code: [Select]
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&".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);

You have to replace this part:

Code: [Select]
$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").$additional_sql."
          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
          LIMIT $offset, $commentperpage";
  $result = $site_db->query($sql);

with this part

Code: [Select]
if (isset($HTTP_POST_VARS['commentsetperpage']) || isset($HTTP_GET_VARS['commentsetperpage'])) {
  $commentsetperpage = (intval($HTTP_POST_VARS['commentsetperpage']) ) ? intval($HTTP_POST_VARS['commentsetperpage']) : intval($HTTP_GET_VARS['commentsetperpage']);
  if ($commentsetperpage) {
    $site_sess->set_session_var("commentperpage", $commentsetperpage);
    $session_info['commentperpage'] = $commentsetperpage;
  }
}

if (isset($session_info['commentperpage'])) {
  $commentperpage = $session_info['commentperpage'];
}
else {
  $commentperpage = 5;
}
$commentsperpage_dropdown = "\n<select name=\"commentsetperpage\" onchange=\"if (this.options[this.selectedIndex].value != 0){ forms['commentsperpage'].submit() }\" class=\"select\">\n";
for($i = 1; $i <= 15; $i++) {
  $setvalue = 1 * $i;
  $commentsperpage_dropdown .= "<option value=\"".$setvalue."\"";
    if ($setvalue == $commentperpage) {
    $commentsperpage_dropdown .= " selected=\"selected\"";
  }
  $commentsperpage_dropdown .= ">";
  $commentsperpage_dropdown .= $setvalue;
  $commentsperpage_dropdown .= "</option>\n";
}
$commentsperpage_dropdown .= "</select>\n";

$site_template->register_vars("commentsperpage_dropdown", $commentsperpage_dropdown);
$commentsperpage_dropdown_form = $site_template->parse_template("commentsperpage_dropdown_form");
$site_template->register_vars("commentsperpage_dropdown_form", $commentsperpage_dropdown_form);

  $sql = "SELECT COUNT(image_id) AS comments
      FROM ".COMMENTS_TABLE."
      WHERE image_id = $image_id";
$result = $site_db->query_firstrow($sql);
$site_db->free_result();
$num_comments = $result['comments'];
if ($action == "postcomment") {
$page = ceil($num_comments / $commentperpage);
}
$num_rows_all = (isset($num_comments)) ? $num_comments : 0;
$link_arg = $site_sess->url(ROOT_PATH."details.php?image_id=$image_id");
include(ROOT_PATH.'includes/paging.php');
$getpaging = new Paging($page, $commentperpage, $num_rows_all, $link_arg, $lang['comment_stats'], "comments");
$offset = $getpaging->get_offset();
$site_template->register_vars(array(
  "paging" => $getpaging->get_paging(),
  "paging_stats" => ($num_comments) ? $getpaging->get_paging_stats() : ""
));
  $additional_sql = "";
  if (!empty($additional_user_fields)) {
    $table_fields = $site_db->get_table_fields(USERS_TABLE);
    foreach ($additional_user_fields as $key => $val) {
      if (isset($table_fields[$key])) {
        $additional_sql .= ", u.$key";
      }
    }
  }
  $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").$additional_sql."
          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 DESC
          LIMIT $offset, $commentperpage";
  $result = $site_db->query($sql);


Than it should work!

5
Sorry i found the answer on page 2...

-------------------------------
Hi i installed the "[Mod] Search Engine Friendly URLs aka Short URLs "  -  it works and i have a question... is it possible to make the URL's like " yourhomepage.com/?template=faq or yourhomepage.com/index.php?template=faq" also search engine friendly? (url is only an example)

THX for answers! Greetz
-------------------------------

QUESTION ANSWERED!!!

6
Great Mod! Thanks!

7
Don't work. Get "Internal Server Error 500"

what shall i do?

Greetz! Martin

Sorry my mistake! mod_rewrite was not enabled  :roll:

8
Don't work. Get "Internal Server Error 500"

what shall i do?

Greetz! Martin

9
Mod Arbeitet PERFECT! :) Danke

nur das habe ich nicht so ganz verstanden...

This mod works fine in 1.7.4 version
but fix this code!

with follow problems
-spam words not with name separate **** in admin control panel
-view not correct <a href= in user control panel and others

find in includes/functions.php



Gruß! Martin


10
Ich freu mich jetzt schon riesig!  :)

Gruß! Martin

Pages: [1]