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

Pages: [1] 2 3 4 5 ... 7
1
A little update for this mod.
Looks like the old schema validation did not work.

here is a good site to validate your sitemap
http://www.xmlcheck.com/

Here is my google.php (with my conversion from win1251 to utf-8)

<?
# Create Google Sitemap for 4images
# Created by Mai Minh (minh@maingo.com http://www.vna2z.com)
# Modified by Oliver van der Werf (info@flash-webdesign.de http://www.flash-webdesign.de)
# Date: 28/11/2006 | 02.01.2007
# You can send ping to Google with this request: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAP
#---------------------------------
define('ROOT_PATH''./');
require(
"config.php");
include(
ROOT_PATH.'global.php');


$link=mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name") or die ("Cannot connect database!");

# 4images top page (with trailing slash)
$gallery_url 'http://www.fotodvor.com/';

# Priotity
//select between 0.0 and 1.0
//0.0 identifies the lowest priority page(s) on your website
//1.0 identifies the highest priority page(s) on your website
$prio_img
	
	
0.5;
$prio_cat
	
	
0.8;
$prio_profile
	
0.1;

# Frequency
//"always", "hourly", "daily", "weekly", "monthly", "yearly" or "never"
$freq_img
	
	
'daily';
$freq_cat
	
	
'daily';
$freq_profile
	
'monthly';

# Use Short URLs
$shortURL
	
	
1// 0 or 1

# Print XML header
xml_head();

# Print URLs

$categories mysql_query('SELECT cat_id, cat_name FROM ' $table_prefix 'categories');
while (
$category mysql_fetch_array($categories))
{
	
$catid $category['cat_id'];
	
$catname strtr($category['cat_name'], " eeeaeauoiiaaABCDEFGHIJKLMNOPQRSTUVWXYZ","-eeeaeauoiiaaabcdefghijklmnopqrstuvwxyz");
	
$catname fixname(multilang($catname));
	
if (
$shortURL == 1) {
	
	
$cat_url $gallery_url.'cat-'.$catname.'-'.$catid.'.htm';
	
}else {
	
	
$cat_url $gallery_url.'categories.php?cat_id='.$catid;
	
}

	
print_xml($cat_url,$prio_cat,$lastmod,$freq_cat);
}

$images mysql_query('SELECT image_id,image_name,image_active,image_date FROM ' $table_prefix 'images');
while (
$image mysql_fetch_array($images))
{
	
if (
$image['image_active'] == 1) {
	
	
$imgid $image['image_id'];
        
$imgname strtr($image['image_name'], ", eeeaeauoiiaaABCDEFGHIJKLMNOPQRSTUVWXYZ","--eeeaeauoiiaaabcdefghijklmnopqrstuvwxyz");
	
	
$imgname fixname ($imgname);
	
	
$date $image['image_date'];
	
	
$lastmod date("Y-m-d",$date)."T".date("H:i:s",$date)."+00:00";
	
	
if (
$shortURL == 1) {
	
	
	
$img_url $gallery_url.'img-'.$imgname.'-'.$imgid.'.htm';
	
	
}else{
	
	
	
$img_url $gallery_url.'details.php?image_id='.$imgid;
	
	
}
	
	
print_xml($img_url,$prio_img,$lastmod,$freq_img);
	
}
}


$profiles mysql_query('SELECT user_id, user_lastaction FROM ' $table_prefix 'users WHERE user_id >= "1"');
while (
$profile mysql_fetch_array($profiles))
{

	
$profileid $profile['user_id'];
	
$date $profile['user_lastaction'];
	

	
if (
$date == 0) {
	
	
$date_ time();
	
	
$date date("Y-m-d",$date_)."T".date("H:i:s",$date_)."+00:00";
	
else
	
{
	
	
$date date("Y-m-d",$date)."T".date("H:i:s",$date)."+00:00";
	

	

	
$profile_url $gallery_url.'member.php?action=showprofile&amp;user_id='.$profileid;
	
print_xml($profile_url,$prio_profile,$date,$freq_profile);
}

# Print XML footer
xml_foot();

function 
xml_head() {
	
$freq 'daily';
	
$priority '1.0';
	
$mod date("Y-m-d")."T".date("H:i:s")."+00:00";
	
echo 
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
	
<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">"
;
}

#-----------------------------------------------
# xml_foot
#-----------------------------------------------
function xml_foot() {
	
echo 
"
</urlset>"
;
}

#-----------------------------------------------
# print_xml
#-----------------------------------------------
function print_xml($url,$priority,$lastmod,$changefreq) {
	
$temp "<url>
	
<loc>
$url</loc>";
	
if (
$lastmod != '') {
	
	
$temp .="  <lastmod>$lastmod</lastmod>";
	
}
	
$temp .= "  <changefreq>$changefreq</changefreq>";
	
$temp .= "  <priority>$priority</priority>
	
</url>"
;
	
echo 
$temp;
}

function 
fixname($text)
{
  return 
strtolower(strtr(
    
$text,
     array(
      
"e" => "e",
      
"e" => "e",
      
"e" => "e",
      
"a" => "a",
      
"e" => "e",
      
"a" => "a",
      
"u" => "a",
      
"o" => "o",
      
"i" => "i",
      
"a" => "a",

      
//russian UTF8 encoded alphabet (lower and upper cases)
      
"&#38;#1040;" => "a",
      
"&#38;#1072;" => "a",
      
"&#38;#1041;" => "b",
      
"&#38;#1073;" => "b",
      
"&#38;#1042;" => "v",
      
"&#38;#1074;" => "v",
      
"&#38;#1043;" => "g",
      
"&#38;#1075;" => "g",
      
"&#38;#1044;" => "d",
      
"&#38;#1076;" => "d",
      
"&#38;#1045;" => "e",
      
"&#38;#1077;" => "e",
      
"&#38;#1025;" => "yo",
      
"&#38;#1105;" => "yo",
      
"&#38;#1046;" => "zh",
      
"&#38;#1078;" => "zh",
      
"&#38;#1047;" => "z",
      
"&#38;#1079;" => "z",
      
"&#38;#1048;" => "i",
      
"&#38;#1080;" => "i",
      
"&#38;#1049;" => "j",
      
"&#38;#1081;" => "j",
      
"&#38;#1050;" => "k",
      
"&#38;#1082;" => "k",
      
"&#38;#1051;" => "l",
      
"&#38;#1083;" => "l",
      
"&#38;#1052;" => "m",
      
"&#38;#1084;" => "m",
      
"&#38;#1053;" => "n",
      
"&#38;#1085;" => "n",
      
"&#38;#1054;" => "o",
      
"&#38;#1086;" => "o",
      
"&#38;#1055;" => "p",
      
"&#38;#1087;" => "p",
      
"&#38;#1056;" => "r",
      
"&#38;#1088;" => "r",
      
"&#38;#1057;" => "s",
      
"&#38;#1089;" => "s",
      
"&#38;#1058;" => "t",
      
"&#38;#1090;" => "t",
      
"&#38;#1059;" => "u",
      
"&#38;#1091;" => "u",
      
"&#38;#1060;" => "f",
      
"&#38;#1092;" => "f",
      
"&#38;#1061;" => "h",
      
"&#38;#1093;" => "h",
      
"&#38;#1062;" => "c",
      
"&#38;#1094;" => "c",
      
"&#38;#1063;" => "ch",
      
"&#38;#1095;" => "ch",
      
"&#38;#1064;" => "sh",
      
"&#38;#1096;" => "sh",
      
"&#38;#1065;" => "sch",
      
"&#38;#1097;" => "sch",
      
"&#38;#1066;" => "",
      
"&#38;#1098;" => "",
      
"&#38;#1067;" => "i",
      
"&#38;#1099;" => "i",
      
"&#38;#1068;" => "'",
      
"&#38;#1100;" => "'",
      
"&#38;#1069;" => "e",
      
"&#38;#1101;" => "e",
      
"&#38;#1070;" => "yu",
      
"&#38;#1102;" => "yu",
      
"&#38;#1071;" => "ya",
      
"&#38;#1103;" => "ya",
	
  
//russian 1251 encoded alphabet (lower and upper cases)
      
"&#1072;" => "a",
      
"&#1040;" => "a",
      
"&#1073;" => "b",
      
"&#1041;" => "b",
      
"&#1074;" => "v",
      
"&#1042;" => "v",
      
"&#1075;" => "g",
      
"&#1043;" => "g",
      
"&#1076;" => "d",
      
"&#1044;" => "d",
      
"&#1077;" => "e",
      
"&#1045;" => "e",
      
"&#1105;" => "yo",
      
"&#1025;" => "yo",
      
"&#1078;" => "zh",
      
"&#1046;" => "zh",
      
"&#1079;" => "z",
      
"&#1047;" => "z",
      
"&#1080;" => "i",
      
"&#1048;" => "i",
      
"&#1081;" => "j",
      
"&#1049;" => "j",
      
"&#1082;" => "k",
      
"&#1050;" => "k",
      
"&#1083;" => "l",
      
"&#1051;" => "l",
      
"&#1084;" => "m",
      
"&#1052;" => "m",
      
"&#1085;" => "n",
      
"&#1053;" => "n",
      
"&#1086;" => "o",
      
"&#1054;" => "o",
      
"&#1087;" => "p",
      
"&#1055;" => "p",
      
"&#1088;" => "r",
      
"&#1056;" => "r",
      
"&#1089;" => "s",
      
"&#1057;" => "s",
      
"&#1090;" => "t",
      
"&#1058;" => "t",
      
"&#1091;" => "u",
      
"&#1059;" => "u",
      
"&#1092;" => "f",
      
"&#1060;" => "f",
      
"&#1093;" => "h",
      
"&#1061;" => "h",
      
"&#1094;" => "c",
      
"&#1062;" => "c",
      
"&#1095;" => "ch",
      
"&#1063;" => "ch",
      
"&#1096;" => "sh",
      
"&#1064;" => "sh",
      
"&#1097;" => "sch",
      
"&#1065;" => "sch",
      
"&#1098;" => "",
      
"&#1066;" => "",
      
"&#1099;" => "i",
      
"&#1067;" => "i",
      
"&#1100;" => "'",
      
"&#1068;" => "'",
      
"&#1101;" => "e",
      
"&#1069;" => "e",
      
"&#1102;" => "yu",
      
"&#1070;" => "yu",
      
"&#1103;" => "ya",
      
"&#1071;" => "ya",
      
"/" => "",
	
  
"&" => "-",
	
  
"&#8470;" => "",
	
  
"," => "-",
	
  
"°" => "",
	
  
"\"" => "",
	
  
"?" => "",
	
  
"&#1110;" => "i"//ukranian i
	
  
"&#1030;" => "i"//ukranian i
	
  
"&#1111;" => "i"//ukranian &#1111;
	
  
"&#1108;" => "e"//ukranian &#1108;
	
  
"«" => "",
	
  
"»" => "",
	
  
"*" => "",
	
  
"?" => "",
	
  
"!" => "",
	
  
")" => "",
	
  
"(" => "",
	
  
"=" => "",
	
  
"." => "",
	
  
"#" => "",
	
  
"%" => "",
	
  
	
  
"–" => ""
  
)));
}
?>

2
hello,
i don't know, but i think that google has delete the translation..
anybody else here who can confirm that?

I confirm... this does not work any more... looking for another solution

this is official message from Google:

Important: Google Translate API v1 was officially deprecated on May 26, 2011; it was shut off completely on December 1, 2011. For text translations, you can use the Google Translate API v2, which is now available as a paid service. For website translations, we encourage you to use the Google Website Translator gadget.

3
i am soory if I missed the solution to this problem, but it's been bothering me for a while...

I have a bridge installed 4images<->phpBB3 and after login and logout, phpBB redirects me to the page where I have been when I clicked the submit button on the login form... I am positive that phpBB redirects correctly.

I then have a script that logs the user in/out:


//
	
login/logout 4images user on phpBB session data
	
if(
$bbuser->data['user_id'] != ANONYMOUS && ($user_info['user_id'] == -|| $user_info['user_name'] != $bbuser->data['username'])){

	
$user_exists $site_sess->login($bbuser->data['username'], $bbuser->data['user_password'], 01false);

    if (
$referer $_SERVER['HTTP_REFERER']) {  //this was an attempt to fix my problem from this tipic - http://www.4homepages.de/forum/index.php?topic=22887.0
    
redirect($referer); 
	
}
  
    
// if (!ereg("index.php", $url) && !ereg("login.php", $url) && !ereg("register.php", $url) && !ereg("member.php", $url)) {
      // redirect($url);
    // }
     
else {
       
redirect("index.php");
    }

	
}


I am still unable to make it work correctly.... I am being redirected to the index.php all the time no matter what I do... any ideas will be much appreciated...
v@no suggested here that I'd post here since my issue could be related to this MOD...

4
anybody who installed this bridge, is having a redirection problem? If user logs in from a 4images page (any page) he is not redirected back to the same page after the login, but to the main 4images page... the redirect parameter is correct, but for some reason it's not working...

5
that's exactly what was missing... template veariable...

in both files do this:

find
Code: [Select]
"comment_user_email_button" => ($show_comment  == 0) ? "" : $comment_user_email_button,
and add after

Code: [Select]
"comment_user_avatar" => $comment_user_avatar, //new line

my tutorial updated

6
zip up the two files and let me have a look... attach them here

7
if I remember right, the AJAX comments MOD requires you to modify details.php and ajaxcomments.php.... make sure you modify details.php first, and then do the same in ajaxcomments.php

8
But when I use it on the categories page or the home page, in thumbnail_bit, it changes the lightbox button image for every one on the page. So if I click one, they all change to the "checked" image. Same thing if I click to remove from the lightbox. They all change.

my code above is for the details page only... it needs to be modified to be used on categories page... no time right now... maybe someone will help sooner than me...

do you really need this for the categories page? Do you think your users will decide to put the image into the lightbox based on thumbnail only? This will also discourage them from rating and commenting your images as well

9
Dear friends,

I felt like my site needed an urgent need for threaded comments.
One level of comments or even two level only (with YouTube-like comments available with one of the Mods) was not enogh for my needs so I decided to do something different....

I found a class online and adjusted it to fit the 4images structure....
If the admins or code gurus of 4images will create a MOD out of it that would be great... I feel that it's much much simpler than the YouTube like commening MOD...

So after a week of struggle (I am not a pro PHP programmer :lol:) I made it work... sample screen shot attached.

Thanks guys for 4images and I thought I'd share something with the community!

Here is the code from details.php
It needs to be cleaned from my other MODs, so for those of you who just follow the instructions - DO NOT USE MY CODE before you clean it... and ALWAYS BACKUP your files before changing anythig:

you will need and additional field in your comments table... please try to make a MOD out of it for everyone, since I really do not have any more time for this ))))


//-----------------------------------------------------
//--- Show Comments NEW STYLE--------------------------
//-----------------------------------------------------

if ($image_allow_comments == 1) {

  
$sql "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_response, c.response, 
          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").", 
	
	
  u.full_name, c.comment_rating,c.comment_votes,c.comment_rating_users, c.comment_parent
          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 "
.(COMMENTS_ORDER "DESC" "ASC")."";
//        LIMIT $offset, $commentperpage"; line for paging comments

  
$result $site_db->query($sql);
  
debug($sql);
  
$comment_row1 = array();
  while (
$row $site_db->fetch_array($result)) {
    
$comment_row1[] = $row;
  }
  
//$site_db->free_result($result);
  
$num_comments1 sizeof($comment_row1);

  
class 
Threaded_comments  {  // thanks to http://www.jongales.com/blog/2009/01/27/php-class-for-threaded-comments/
	
 var 
$one_comment"";
	
 var 
$all_out"";
     public 
$parents  = array();  
     public 
$children = array();  

     
//  @param array $comments       
     
function __construct($comments) {
         foreach (
$comments as $comment)  
         {
             if (
$comment['comment_parent'] == 0)  
             {  
                 
$this->parents[$comment['comment_id']][] = $comment;  
             }  
             else  
             {  
                 
$this->children[$comment['comment_parent']][] = $comment;  
             }  
         }  
     }  
   
      
//@param array $comment 
      //@param int $depth 
     
Private function format_comment($comment_row$depth)  {

	
 
//include(ROOT_PATH."ajaxcomments.php");

	
 global 
$site_db$site_sess$site_template$config$user_table_fields$image_row$lang$user_info$image_allow_comments$row_bg_number$cat_id;
	
 
//**********************************************************************
	
 
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
	
  
	
  
$comment_by_owner = ($image_row['user_id'] == $comment_row['user_id']) ? 0;
	
  
      
$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['comment_user_name'], 2);
      
$comment_full_name $comment_row['full_name'];
      
$comment_user_info $lang['userlevel_guest'];
      
$comment_headline format_text($comment_row['comment_headline'], 0$config['wordwrap_comments'], 00);
      
$comment_user_id $comment_row['user_id'];
  
    
// for comments avatars
    
$sql2 "SELECT user_id, user_avatar, user_avatar_type, user_avatar_width,
    user_avatar_height FROM phpbb_users
    WHERE username = '"
.$comment_row['comment_user_name']."'";
    
$result2 $site_db->query($sql2);
	
$row2 $site_db->fetch_array($result2);
  
	
if (empty (
$row2['user_avatar'])) {
	
	
//$comment_user_avatar = get_user_avatar($row2['user_avatar'], $row2['user_avatar_type'], $row2['user_avatar_width'], $row2['user_avatar_height']); 
	
	
$comment_user_avatar "";
	
	

	
	
else {
	
	

	
	
if (
$row2['user_avatar_type'] == 1) {
	
	
$comment_user_avatar "<img src='".PHPBB3_URL."/download/file.php?avatar=".$row2['user_avatar']."'>";
                } else {
                
$comment_user_avatar "<img src='".$row2['user_avatar']."'>";
                }
        }       
    
// end comment avatars
	

	
//PM link
	
$phpbbuser $row2['user_id'];
	

	
$send_pm_comment = ($user_info['user_level'] != GUEST) ? "<a href='/forum/ucp.php?i=pm&mode=compose&u=".$phpbbuser."' target='blank'>".$lang['send_pm']."</a>" "";
	

	
  if (isset(
$comment_row[$user_table_fields['user_name']]) && $comment_user_id != GUEST) {
        
	
	
$comment_user_name format_text($comment_row[$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[$user_table_fields['user_lastaction']] >= (time() - 300) && ((isset($comment_row[$user_table_fields['user_invisible']]) && $comment_row[$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[$user_table_fields['user_homepage']])) ? format_url($comment_row[$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>";
        }
	
	

	
	

	
	
//new option - full name from phpBB
        
$comment_full_name = (isset($comment_row[$user_table_fields['full_name']])) ? $comment_row[$user_table_fields['full_name']] : "";
        if (!empty(
$comment_full_name)) {
          
$comment_user_full_name iconv('utf-8''windows-1251'$comment_full_name);
        }
	
	
//end new option - full name from phpBB
	
	

	
	

	
	
$comment_user_icq = (isset($comment_row[$user_table_fields['user_icq']])) ? format_text($comment_row[$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[$user_table_fields['user_email']]) && (!isset($comment_row[$user_table_fields['user_showemail']]) || (isset($comment_row[$user_table_fields['user_showemail']]) && $comment_row[$user_table_fields['user_showemail']] == 1))) {
          
$comment_user_email format_text($comment_row[$user_table_fields['user_email']]);
          
$comment_user_email_save format_text(str_replace("@"" at "$comment_row[$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[$user_table_fields['user_level']]) || (isset($comment_row[$user_table_fields['user_level']]) && $comment_row[$user_table_fields['user_level']] == USER)) {
          
$comment_user_level $lang['userlevel_user'];
        }
        elseif (
$comment_row[$user_table_fields['user_level']] == ADMIN) {
          
$comment_user_level $lang['userlevel_admin'];
        }
        elseif (
$comment_row[$user_table_fields['user_level']] == MODERADOR) { 
          
$comment_user_level $lang['userlevel_moderador']; 
        } 

        
$comment_user_info = (isset($comment_row[$user_table_fields['user_joindate']])) ? $lang['join_date']." ".format_date($config['date_format'], $comment_row[$user_table_fields['user_joindate']]) : "";
        
$comment_user_info .= (isset($comment_row[$user_table_fields['user_comments']])) ? " | <a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showcomments&user_id=".$comment_user_id)."\">".$lang['comments']." ".$comment_row[$user_table_fields['user_comments']]."</a>" "";
      }

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

      
$admin_links "";
      if (
$user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_comentarios'] == 1)) {
      
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row['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['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      
//removed below so that the owner of the image can not edit or delete comments to his photos
	
  
//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>";
      //}
	
  
	
  if (
$comment_by_owner == && $hide_author == 1) {
	
	
	
$show_comment 0
	
  } else { 
	
	
	
$show_comment 1
	
	
	
}
	
	
$spacer="";
	
	

         for (
$depth$depth 0$depth--) {  
             
$spacer .= "<td width=\"20\" valign=\"top\"><img src=\"./templates/dark/images/spacer.gif\" width=\"19\" height=\"19\"/></td>"
         }
	
	
	

      
$site_template->register_vars(array(
        
"comment_id" => $comment_row['comment_id'],
	
    
"lang_comments_per_page" => $lang['comments_per_page'],
        
"comment_user_id" => $comment_user_id,
	
	
"spacer" => $spacer,
        
"comment_user_status_img" => $comment_user_status_img,
        
"comment_user_name" => $comment_user_name,
        
"comment_user_info" =>  ($show_comment  == 0) ? "" $comment_user_info,
        
"comment_user_level" => $comment_user_level,
        
"comment_user_profile_button" => ($show_comment  == 0) ? "" $comment_user_profile_button,
	
	
"comment_user_profile_link" => $comment_user_profile_link,
        
"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" => ($show_comment  == 0) ? "" $comment_user_email_button,
        
"comment_user_avatar" => $comment_user_avatar//new line
        
"comment_user_homepage_button" => ($show_comment  == 0) ? "" $comment_user_homepage_button,
        
"comment_user_icq_button" => ($show_comment  == 0) ? "" $comment_user_icq_button,
        
"comment_user_ip" => $comment_user_ip,
        
"comment_headline" => $comment_headline,
	
	
"comment_author_PM" => ($hide_author == 1) ? "" $send_pm_comment,
	
	

        
"responses" => $responses,
        
"response_to_id" => $response_to_id,
        
"lang_post_response" => $lang['post_response'],
	
	
"lang_comment_voters" => $lang['comment_voters'],
	
	
"lang_comment_vote" => $lang['comment_vote'],
	
	
"lang_comment_hidden" => $lang['comment_hidden'],
	
	
"lang_comment_date" => $lang['comment_date'],
        
"comment_text" => format_text($comment_row['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['comment_date']),
        
"row_bg_number" => $row_bg_number,
        
"admin_links" => $admin_links,
        
//new field - full name
        
"comment_full_name" => $comment_full_name,
	
	
//unite all comment user fields to easily hide them
	
	
"hide_author" => $hide_author,
	
	
"comment_user_box" => ($show_comment  == 0) ? "< &#1040;&#1074;&#1090;&#1086;&#1088; &#1060;&#1086;&#1090;&#1086; >" "<a href=".$comment_user_profile_link."><b>".$comment_full_name."</b><br/>(".$comment_user_name.")<br />".$comment_user_avatar."<br />".$comment_user_level."</a>"
      
));

      if (
COMMENT_RATING_ENABLE)   {
        
$comment_row['cat_id'] = $cat_id;
        
$comment_row['image_allow_comments'] = $image_allow_comments;
	
	
  
$comment_row['comment_rating'] = (int)$comment_row['comment_rating'];
	
	
  
$links comment_rating_links($comment_row['comment_id'], $comment_row);
	
	
  
$site_template->register_vars(array(
	
	
	
"comment_rating" => $comment_row['comment_rating'],
	
	
	
"comment_rating_str" => (($comment_row['comment_rating'] > 0) ? "+" "").$comment_row['comment_rating'],
	
	
	
"comment_votes" => $comment_row['comment_votes'],
	
	
	
"comment_rating_link_good" => $links[0],
	
	
	
"comment_rating_link_bad" => $links[1],
	
	
	
"comment_class" => ($comment_row['comment_rating'] > "1" : ($comment_row['comment_rating'] < "2" "0")),
	
	
	
"comment_hide" => ($comment_row['comment_rating'] <= COMMENT_RATING_HIDE) ? 0,
	
	
	
"comment_vote_tooltip" => $lang['comment_rating_check'][$links[2]],
	
	
  ));
	
	
  
	
	
  
$site_template->register_vars(array(
	
	
  
"lang_author" => $lang['author'],
	
	
  
"lang_comment" => $lang['comment'],
	
	
  
"commentratinghide" => COMMENT_RATING_HIDE,
	
	
  
"comment_rating_enable" => COMMENT_RATING_ENABLE,
	
	
  
"ajaxcommentsurl" => $site_sess->url(ROOT_PATH."ajaxcomments.php""&"),
	
	
  
"lang_comment_rating" => $lang['comment_rating'],
	
	
  
"lang_votes" => $lang['votes'],
	
	
  
"url_id" => URL_ID,
	
	
));

	
	
$still_to_vote comment_rating_links($comment_row['comment_id'], $comment_row);
	
	
  
//check if owner rated all comments
	
	
  if (
$still_to_vote[2] == 0){
	
	
	
	
$show_reminder 1;
	
	
  } 
	
	
//end check if owner rated all comments  
	
	

	
	

	
	

	
	
}

	
	
$this->one_comment $site_template->parse_template("comment_bit_new");
	
	
$this->all_out .= $this->one_comment;
	
	
//debug ($comments);
	
	
}
   
      
//@param array $comment 
      //@param int $depth 
     
Private function print_parent($comment$depth 0) {  
         foreach (
$comment as $c)  
         {  
             
$this->format_comment($c$depth);
             if (isset(
$this->children[$c['comment_id']]))  
             {  
                 
$this->print_parent($this->children[$c['comment_id']], $depth 1);  
             }  
         }  
     }  
   
     Public function 
print_comments()  {
         foreach (
$this->parents as $c)  
         {
             
$this->print_parent($c);  
         }
	
	
 return 
$this->all_out;
	
 }
   
   } 
//end of class
	
  

	
  
  if (!
$num_comments1) {
    
$comments1 "<tr><td class=\"commentrow1\" colspan=\"2\">".$lang['no_comments']."</td></tr>";
  }
  else {
    
$bgcounter 0;
	
$comments1 .= "<table width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 1px solid grey;\">\n";
	
$comments_new = new Threaded_comments($comment_row1);
	
$comments1 .= $comments_new->print_comments();
	
$comments1 .= "</table>\n";
	


  } 
//end else

  //debug($comments1);
  
  
$site_template->register_vars(array(
    
"comments" => $comments1,
    
"comments_num" => $num_comments,
    
"commentbg" => (isset($row_bg_number)) ? $row_bg_number 0,
    
"page" => $page,
    
"perpage" => $commentperpage,
  ));

  unset(
$comments1);
  unset(
$hide_author);
  
  
// MOD: Notify comments by email.
	
$sql1 "SELECT cn.field_id, cn.comment_notify_status
              FROM " 
COMMENTS_NOTIFY_TABLE " cn
              LEFT JOIN " 
USERS_TABLE " u ON (" get_user_table_field("u.""user_id") . " = cn.user_id)
              WHERE cn.image_id = " 
$image_id " AND cn.user_id = " $user_info['user_id'] . " AND " get_user_table_field("u.""user_level") . " >= '" USER "'";
       
      
$result1 $site_db->query($sql1);
      
     while (
$notify_row $site_db->fetch_array($result1)) {
          
//$field_id = $notify_row['field_id'];
          
$comment_notify_status $notify_row['comment_notify_status'];
      }
// EBD MOD: Notify comments by email.
  
  
  //-----------------------------------------------------
  //--- BBCode & Form -----------------------------------
  //-----------------------------------------------------
  
$allow_posting check_permission("auth_postcomment"$cat_id);
  
$bbcode "";
  if (
$config['bb_comments'] == && $allow_posting) {
    
$site_template->register_vars(array(
      
"lang_bbcode" => $lang['bbcode'],
      
"lang_tag_prompt" => $lang['tag_prompt'],
      
"lang_link_text_prompt" => $lang['link_text_prompt'],
      
"lang_link_url_prompt" => $lang['link_url_prompt'],
      
"lang_link_email_prompt" => $lang['link_email_prompt'],
      
"lang_list_type_prompt" => $lang['list_type_prompt'],
      
"lang_list_item_prompt" => $lang['list_item_prompt']
    ));
    
$bbcode $site_template->parse_template("bbcode");
  }

  if (!
$allow_posting) {
    
$comment_form1 "";
  }
  else {
    
$user_name = (isset($HTTP_POST_VARS['user_name']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['user_name'])), 2) : (($user_info['user_level'] != GUEST) ? format_text($user_info['user_name'], 2) : "");
    
$comment_headline = (isset($HTTP_POST_VARS['comment_headline']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['comment_headline'])), 2) : "";
    
$comment_text = (isset($HTTP_POST_VARS['comment_text']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['comment_text'])), 2) : "";
	
$response_to = (isset($HTTP_POST_VARS['response_to']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['response_to'])), 2) : "";

    
$site_template->register_vars(array(
      
"bbcode" => $bbcode,
      
"user_name" => $user_name,
      
"comment_headline" => $comment_headline,
      
"comment_text" => $comment_text,
	
  
"response_to" => $response_to,
      
"lang_clear" => $lang['clear'],
      
"lang_clear_desc" => $lang['clear_desc'],
      
"lang_post_comment" => $lang['post_comment'],
      
"lang_name" => $lang['name'],
      
"lang_headline" => $lang['headline'],
      
"lang_comment" => $lang['comment'],
      
"lang_captcha" => $lang['captcha'],
      
"lang_captcha_desc" => $lang['captcha_desc'],
      
"captcha_comments" => (bool)$captcha_enable_comments,
	
  
	
	
"lang_comment_note" => $lang['comment_note'],
	
	
"lang_comment_tips" => $lang['comment_tips'],
	
	
"lang_comment_tip1" => $lang['comment_tip1'],
	
	
"lang_comment_tip2" => $lang['comment_tip2'],
	
	
"lang_comment_tip3" => $lang['comment_tip3'],
	
	
"lang_comment_tip4" => $lang['comment_tip4'],
	
	
"lang_comment_tip5" => $lang['comment_tip5']
	
  
    ));
    
$comment_form1 $site_template->parse_template("comment_form");
  }
  
$site_template->register_vars("comment_form"$comment_form1);
  unset(
$comment_form1);
// end if allow_comments


The comment_bit_new.html that works for me is below. Again, it needs cleaning and adjusting to your needs:
Code: [Select]
<tr>
<td width="100%">

<!-- uncomment and place this div where you want messages related to comment rating to be showed (additionally to tooltips), you can use this div to display floating messages -->
<div id="commentratingmsg"></div>
<!--mod ajax comments insert end-->

<!-- style="border: 1px solid grey;" -->
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
{spacer}
<td width="100%">

<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
  <td width="160px" class="commentrow{row_bg_number}" valign="top" align="center">
    <a name="comment{comment_id}"></a>
{comment_user_box}<br />
{if comment_user_ip}
<b>IP:</b>{comment_user_ip}
{endif comment_user_ip}
  </td>
  
  <td class="commentrow{row_bg_number}" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
         <td valign="top"><b>{comment_headline}</b></td>
<td valign="top" align="right">


<table width="100%">
<tr>
<td>
<span class="smalltext">{lang_comment_date} {comment_date}</span>
</td>
<!--mod ajax comments insert start -->
<td align="right">
{if comment_rating_enable}<span class="smalltext">{lang_comment_vote}</span>
<span id="cmsg{comment_id}" title="{comment_vote_tooltip}">
<span id="cr{comment_id}" class="comment_rating{comment_class}">{comment_rating_str}</span>
{comment_rating_link_good} {comment_rating_link_bad}
<span id="crv{comment_id}">{comment_votes}</span> <span class="smalltext">{lang_votes}</span> - <a href="javascript:showvotes({comment_id});"><span class="smalltext">{lang_comment_voters}</span></a>  <a href="http://www.fotodvor.com/blog/golovaniya-za-kommentarii-802" target="_blank"><span class="smalltext">Как голосовать?</span></a>
</span>
{endif comment_rating_enable}
<!--mod ajax comments insert end -->

{if admin_links}{admin_links}{endif admin_links}
</td>
</tr>
</table>
</td>
      </tr>
    </table>
    <hr size="1" />
<!--mod ajax comments insert start -->
<a href="#" id="cilh{comment_id}" onClick="return aCTog({comment_id});" style="{if comment_hide}display:inline;{endif comment_hide}{ifno comment_hide}display:none;{endifno comment_hide}">{lang_comment_hidden}<img id="cih{comment_id}" src="{template_image_url}/plus.png" border="0" /></a>
<div id="commentbox{comment_id}"{if comment_hide} style="display:none;"{endif comment_hide}>
<!--mod ajax comments insert end -->
{if is_admin}({comment_id}){endif is_admin}
    <div id="translate_comment_{comment_id}">{comment_text}</div>

<!-- <a href="#comment_form" onClick="get_link('{comment_headline}', '{response_to_id}')" /><b><span class="smalltext">{lang_post_response}</span></b></a> -->
{if user_loggedin}
<a href="#comment_form" onClick="get_link('{comment_headline}', '{comment_id}')" /><b><span class="smalltext">{lang_post_response}</span></b></a>
{endif user_loggedin}

{if responses}<br />{responses}<br />{endif responses}
<!--mod ajax comments insert start -->
</div>
<!--mod ajax comments insert end -->
</td>
</tr>

{if show_comment}
<tr>
  <td width="160px" class="commentrow{row_bg_number}" align="center">
    <span class="smalltext">{comment_user_status_img}</span>
  </td>
  <td class="commentrow{row_bg_number}">
    <table width="100%">
<tr>

<td align="left"><span class="smalltext">
{comment_author_PM}  |  {comment_user_info}  |  {comment_user_profile_button}  |  {comment_user_email_button}  |  {comment_user_homepage_button}  |  {comment_user_icq_button}  |  </span>
</td>

<td align="right">
<span class="smalltext">Translate: </span>
<a href="javascript:google_translate('en','comment',{comment_id});"><img src="{template_url}/images/flags/gb.png" border="0"></a>
<a href="javascript:google_translate('de','comment',{comment_id});"><img src="{template_url}/images/flags/de.png" border="0"></a>
<a href="javascript:google_translate('fr','comment',{comment_id});"><img src="{template_url}/images/flags/fr.png" border="0"></a>
<a href="javascript:google_translate('ru','comment',{comment_id});"><img src="{template_url}/images/flags/ru.png" border="0"></a>
<!-- http://www.famfamfam.com/lab/icons/flags/ -->
</td>

</tr>
</table>

  </td>
</tr>
{endif show_comment}
</table>

</td>
</tr>
</table>

</td>
</tr>


10
Well, for those of you that could not make the MOD work using V@no's code, here is ther reworked code based on above post from bernd

Place this in your header.html

Code: [Select]
<script type="text/javascript">
$(document).ready(function(){
$('#lb a').click(function() {
$.get(
"lightboxaction.php",
{ id: $(this).attr('id') },
function(data) {
$('#lb img').attr('src', data);
},
"text");
return false;
});

});
</script>

first line of the image button in functions.php

$lightbox_button "<span id=\"lb\"><a href=\"".$site_sess->url(ROOT_PATH."lightboxaction.php")."\" id=\"".$image_row['image_id']."\" title=\"".$lang['alt_lightbox_yes']."\"><img src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"\" /></a></span>";

second line of the image button
$lightbox_button "<span id=\"lb\"><a href=\"".$site_sess->url(ROOT_PATH."lightboxaction.php")."\" id=\"".$image_row['image_id']."\" title=\"".$lang['alt_lightbox_no']."\"><img src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"\" /></a></span>";


content of lightboxaction.php in your root

<?php
define
('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$error 0;
if (isset(
$HTTP_GET_VARS['id']) || isset($HTTP_POST_VARS['id']))
{
  
$id = (isset($HTTP_POST_VARS['id'])) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id'];
}
else
{
  
$id "";
}

if (
$id)
{
  if (
check_lightbox($id))
  {
    
$title = (remove_from_lightbox($id)) ? get_gallery_image("lightbox_no.gif") : get_gallery_image("lightbox_yes.gif");
  }
  else
  {
    
$title = (add_to_lightbox($id)) ? get_gallery_image("lightbox_yes.gif") : get_gallery_image("lightbox_no.gif");
  }
}
else
{
  
$error 1;
}


if (
$error)
{
  die(
"Security violation");
}
echo 
$title;
?>

11
Dear friends from Germany  :D

maybe you already have this covered in your systems somewhere - I could not find it.
If anybody could help me with the solutions I would be very grateful

I need to convert special German symbols in image name into regular Latin. The difficulty is that my sessions.php needs to be in win-1251 encoding... is there a way to go around this problem and still have german, ukranian and russian characters to show properly?

so basically the below function does not work properly if I encode the file in win-1251 (because the first block of characters gets encoded improperly):

Code: [Select]
function fixname($text)
{
  return strtolower(strtr(
    $text,
     array(
      "é" => "e",
      "è" => "e",
      "ê" => "e",
      "à" => "a",
      "ë" => "e",
      "â" => "a",
      "ú" => "a",
      "ó" => "o",
      "í" => "i",
      "á" => "a",
      "ä"  => "a", //new line

      //russian UTF8 encoded alphabet (lower and upper cases)
      "&#1040;" => "a",
      "&#1072;" => "a",
      "&#1041;" => "b",
      "&#1073;" => "b",
      "&#1042;" => "v",
      "&#1074;" => "v",
      "&#1043;" => "g",
      "&#1075;" => "g",
      "&#1044;" => "d",
      "&#1076;" => "d",
      "&#1045;" => "e",
      "&#1077;" => "e",
      "&#1025;" => "yo",
      "&#1105;" => "yo",
      "&#1046;" => "zh",
      "&#1078;" => "zh",
      "&#1047;" => "z",
      "&#1079;" => "z",
      "&#1048;" => "i",
      "&#1080;" => "i",
      "&#1049;" => "j",
      "&#1081;" => "j",
      "&#1050;" => "k",
      "&#1082;" => "k",
      "&#1051;" => "l",
      "&#1083;" => "l",
      "&#1052;" => "m",
      "&#1084;" => "m",
      "&#1053;" => "n",
      "&#1085;" => "n",
      "&#1054;" => "o",
      "&#1086;" => "o",
      "&#1055;" => "p",
      "&#1087;" => "p",
      "&#1056;" => "r",
      "&#1088;" => "r",
      "&#1057;" => "s",
      "&#1089;" => "s",
      "&#1058;" => "t",
      "&#1090;" => "t",
      "&#1059;" => "u",
      "&#1091;" => "u",
      "&#1060;" => "f",
      "&#1092;" => "f",
      "&#1061;" => "h",
      "&#1093;" => "h",
      "&#1062;" => "c",
      "&#1094;" => "c",
      "&#1063;" => "ch",
      "&#1095;" => "ch",
      "&#1064;" => "sh",
      "&#1096;" => "sh",
      "&#1065;" => "sch",
      "&#1097;" => "sch",
      "&#1066;" => "",
      "&#1098;" => "",
      "&#1067;" => "i",
      "&#1110;" => "i", //ukranian i
      "&#1099;" => "i",
      "&#1068;" => "'",
      "&#1100;" => "'",
      "&#1069;" => "e",
      "&#1101;" => "e",
      "&#1070;" => "yu",
      "&#1102;" => "yu",
      "&#1071;" => "ya",
      "&#1103;" => "ya",
  //russian 1251 encoded alphabet (lower and upper cases)
      "а" => "a",
      "А" => "a",
      "б" => "b",
      "Б" => "b",
      "в" => "v",
      "В" => "v",
      "г" => "g",
      "Г" => "g",
      "д" => "d",
      "Д" => "d",
      "е" => "e",
      "Е" => "e",
      "ё" => "yo",
      "Ё" => "yo",
      "ж" => "zh",
      "Ж" => "zh",
      "з" => "z",
      "З" => "z",
      "и" => "i",
      "И" => "i",
      "й" => "j",
      "Й" => "j",
      "к" => "k",
      "К" => "k",
      "л" => "l",
      "Л" => "l",
      "м" => "m",
      "М" => "m",
      "н" => "n",
      "Н" => "n",
      "о" => "o",
      "О" => "o",
      "п" => "p",
      "П" => "p",
      "р" => "r",
      "Р" => "r",
      "с" => "s",
      "С" => "s",
      "т" => "t",
      "Т" => "t",
      "у" => "u",
      "У" => "u",
      "ф" => "f",
      "Ф" => "f",
      "х" => "h",
      "Х" => "h",
      "ц" => "c",
      "Ц" => "c",
      "ч" => "ch",
      "Ч" => "ch",
      "ш" => "sh",
      "Ш" => "sh",
      "щ" => "sch",
      "Щ" => "sch",
      "ъ" => "",
      "Ъ" => "",
      "ы" => "i",
      "Ы" => "i",
      "ь" => "'",
      "Ь" => "'",
      "э" => "e",
      "Э" => "e",
      "ю" => "yu",
      "Ю" => "yu",
      "я" => "ya",
      "Я" => "ya",
      "/" => "",
  "&" => "-",
  "№" => "",
  "," => "-",
  "°" => "",
  "\"" => "",
  "і" => "i", //ukranian i  
  "ї" => "i", //ukranian ї
  "є" => "e", //ukranian є
  "«" => "",
  "»" => "",  
  )));
}

12
Mods & Plugins (Requests & Discussions) / Re: Cyrillic filenames
« on: March 06, 2011, 06:00:30 AM »
Well,

this change from V@no and mine shown above finally resolved the problem for me...
http://www.4homepages.de/forum/index.php?topic=27033.msg146563#msg146563

---

13
Please help.
Need input from SEO and 4images gurus...

I can not identify when this started to happen. I have many MODs installed. All seems to be working fine.
BUT Google stopped indexing my 4images pages altogether...

I started digging and found that only Googlebot does not see the pages served by 4images... all other search engines seem to be unaffected.
Analyzing the server response, I found a weird thing:

http://web-sniffer.net/
for URL like http://www.fotodvor.com/
with user agent: Googlebot

I get "Status: HTTP/1.1 302 Moved Temporarily"

any other user agent shows a good page.

renaming (thus disabling) .htaccess did not make any difference (it seems)...

Any ideas would be really appreciated!

Problem solved. Had to disable "bots as users" function by disabling all bots in Control panel of phpBB. I am using the bridge with phpBB forum.

14
To everyone who installed this MOD....

I had a problem where no search bot was seeing my 4images installation. The forum was perfectly accessible but the gallery was returning 302 redirect error....

more on the problem here  http://www.4homepages.de/forum/index.php?topic=17598.msg155638#msg155638


Well, I finally resolved (sort of) this problem.... The problem was that every search bot that came to site, was properly identified by the forum and a special username was assigned to the bot... the username was ever successfully replicated to 4images users database table, but it all stopped at this point..... and this was confusing 4images.... ohhh man, I spent hour and hours trying to figure out why Google was not able to see my 4images installation.... so finally I have disabled all Search Bots from the control panel of phpBB and it WORKED!!

I suggest you check your 4images gallery here

http://web-sniffer.net/
with user agent: Googlebot

 and if it returns the 302 redirect - disable treating search bots as users within the forum.. I am sure it will fix your issue too...

Denis, any idea what's causing this trouble?

15
just want to make sure that  this mod wors with treating bots as user with less rights... anyone using both???


EMERGENCY UPDATE:


I am experiancing a redirect loop error when using this with treat robots as users mod.... I think it is a result of  this mod.... this is a great mod, however I cant seem to get one single page indexed at google. I would really appreciate it if someone could help me with this.....

TIA

you can see at this link more detail... I am not sure it is this mod.... but this is the  only mod I know which does redirecting... http://www.4homepages.de/forum/index.php?topic=8752.75




Well, I finally resolved (almost) this problem.... Although I am not on this forum bridge, but on the phpBB3 bridge, I had the same problem. The problem was that every search bot that came to site, was properly identified by the forum and a special username was assigned to the bot... and this was confusing 4images.... ohhh man, I spent hour and hours trying to figure out why Google was not able to see my 4images installation.... so finally I have disabled Search Bot identification in my phpBB and it WORKED!! I suggest you dig through the settings and disable treating search bots as users within the forum.. I am sure it will fix your issue too...

Pages: [1] 2 3 4 5 ... 7