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

Pages: [1]
1
I want allow to register and login from google account on my 4image gallery. Who somebody built similar mod using Google Friend Connect technology?

We would ask for help.

2
Discussion & Troubleshooting / Re: Probleme mit Version 1.7.9
« on: November 16, 2010, 03:03:40 AM »
The problem with keywords is caused by a single letter in the code ;)
I propose to solve the problem of recovering some of the code for version 1.7.7: http://www.4homepages.de/forum/index.php?topic=28268.0

3
Discussion & Troubleshooting / [1.7.8, 1.7.9] Probleme mit Stichworte
« on: November 14, 2010, 03:00:13 PM »
In versions 1.7.8, and 1.7.9 I have a problem with the correct display of links to subpages detail.php keywords.
All the keywords are combined into one, and the newly added photos do not appear in the search tags along with the added earlier. In version 1.7.7 everything worked correctly.

Here's a link to the page: http://transportnews.22web.net/galeria/details.php?image_id=1034


PS. Sorry for the post in the wrong topic, this is my first post here :)



--------EDIT @ 2010-11-14 21:43: -----

I found a solution to this problem:

Open functions.php file
Go to linie 309. There is:

function show_image($image_row$mode ""$show_link 1$detailed_view 0) {
  global 
$self_url$site_template$site_sess$user_info$config$cat_cache$lang$additional_image_fields$user_table_fields$url_show_profile;

  
$is_new = ($image_row['image_date'] >= (time() - 60 60 24 $config['new_cutoff'])) ? 0;
  
$description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 101) : REPLACE_EMPTY;

  if (!empty(
$image_row['image_keywords'])) {
    
$split_keywords explode(","$image_row['image_keywords']);
    
$keywords "";
    foreach (
$split_keywords as $key => $val) {
      
$keywords .= (($keywords != "" ) ? ", " "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val2)."</a>";
    }
  }
  else {
    
$keywords REPLACE_EMPTY;
  }


Replace it to:

function show_image($image_row$mode ""$show_link 1$detailed_view 0) {
  global 
$self_url$site_template$site_sess$user_info$config$cat_cache$lang$additional_image_fields$user_table_fields$url_show_profile;

  
$is_new = ($image_row['image_date'] >= (time() - 60 60 24 $config['new_cutoff'])) ? 0;
  
$description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 101) : REPLACE_EMPTY;

  if (!empty(
$image_row['image_keywords'])) {
    
$split_keywords explode(" "$image_row['image_keywords']);
    
$keywords "";
    foreach (
$split_keywords as $key => $val) {
      
$keywords .= (($keywords != "" ) ? ", " "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val2)."</a>";
    }
  }
  else {
    
$keywords REPLACE_EMPTY;
  }


Pages: [1]