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

Pages: 1 [2] 3 4 5
16
Mods & Plugins (Requests & Discussions) / [REQ] Comment Preview
« on: September 07, 2005, 01:58:50 PM »
What about this mod?

17
Find:
"media_src" => $media_src

replace:
"media_src" => substr($media_src, 1, (strlen($media_src)-1))

18
You must remove start "." in $media_src

19
Language Packs / Re: [Language] Russian language files & buttons
« on: June 22, 2005, 11:37:32 AM »
GD с гифами не работает. Либо используй ImageMagic, либо преьюшки делай сам. Второе лучше, поскольку качество автопревьюшки из гифа - отстой. Попробуй сам сделать в Шопе, не перейдя в RGB. Если устоит - тогда ImageMagic.

20
Language Packs / Re: [Language] Russian language files & buttons
« on: June 16, 2005, 06:33:42 PM »
Меняешь 3 переменные в global.php:

найти:
Code: [Select]
$cache_page_index = 1;
$cache_page_categories = 1;
$cache_page_top = 1;
заменить на:
Code: [Select]
$cache_page_index = 0;
$cache_page_categories = 0;
$cache_page_top = 0;

21
Chit Chat / Re: sessionid in the address
« on: June 04, 2005, 07:35:20 AM »
just in case, try this too:
http://www.4homepages.de/forum/index.php?topic=6998.0

Thanks, but this hack don't resolve this problem.

I resolve this by changing 3 variables in global.php:

find:
Code: [Select]
$cache_page_index = 1;
$cache_page_categories = 1;
$cache_page_top = 1;
change to:
Code: [Select]
$cache_page_index = 0;
$cache_page_categories = 0;
$cache_page_top = 0;

Now all working correctly  :wink:

22
Chit Chat / Re: sessionid in the address
« on: June 03, 2005, 06:51:32 PM »
I see this situation:
When I visit my site first time - all links contains "sessionid=";
If I click on picture of the day or random image - "sessionid=" not shown in links of this images next time (and it is correct), but all another links - categories, links of new images, links of images in categories etc. contains "sessionid=". Why?
How I can resolve this? 

23
May be quickedit code (batch procedure) can be like this:
Code: [Select]
  foreach ($image_ids as $key => $val) {
$set = "";
    $image_keywords[$key] = preg_replace("/[\n\r]/is", " ", $image_keywords[$key]);
    $image_keywords[$key] = str_replace(","," ",$image_keywords[$key]);
    $image_keywords[$key] = ereg_replace("( ){2,}", " ", $image_keywords[$key]);
if ($editname && !empty($image_name[$key])) { $set.= " image_name = '"; $set.= trim($image_name[$key]); $set.= "'";};
if ($editdescription) { $set.= ", image_description = '"; $set.= trim($image_description[$key]); $set.= "'";};
if ($editkeywords) { $set.= ", image_keywords = '"; $set.= trim($image_keywords[$key]); $set.= "'";};
if ($editdate) { $set.= ", image_date = UNIX_TIMESTAMP('".$image_date[$key]."')";};
    $sql = "UPDATE ".IMAGES_TABLE."
            SET".trim($set, ",")."
            WHERE image_id = $val";
    $result = $site_db->query($sql);
    if ($editkeywords) {
      $search_words = array();
      foreach ($search_match_fields as $image_column => $match_column) {
        $image_col = $$image_column;
        if (isset($image_col[$key])) {
          $search_words[$image_column] = stripslashes($image_col[$key]);
        }
      }
      add_searchwords($val, $search_words);
    }
  }

Because your code insert slashes in image name if it contains ".

24
When I delete an image, comments deleted, but user comments counter don't updated  :(

25
When I move image to another category, which contains the image with same name (example has one-digit name), I have this problem:
Destination image is overwrited, thumbnail is from destination image.
I have tried move image with letters name ; has following - image not overwrited, but thumbnails is equal  :(

26
Right is:
Code: [Select]
onsubmit="if (cat_id.value==0){ alert('{cat_name_required}'); return false;} uploadbutton.disabled=true;"
or
Code: [Select]
onsubmit="if (cat_id.options[cat_id.selectedIndex].value==0){ alert('{cat_name_required}'); return false;} uploadbutton.disabled=true;"

27
V@no, you have made misprint:
Quote
onsubmit="if(cat_id.value==0){alert('{cat_name_required}');return false;} return false;} uploadbutton.disabled=true;"
and ascanio paste this code in his page...

28
Step 4 don't working. Alert never shown...
This code is right:
Code: [Select]
onsubmit="if (cat_id.options[cat_id.selectedIndex].value==0){ alert('{cat_name_required}'); return false;} uploadbutton.disabled=true;"

29
Chris, in functions.php you can see this function:
Code: [Select]
function show_error_page($error_msg, $clickstream = "") {
  global $site_template, $site_sess, $lang, $config;
  if (empty($clickstream)) {
    $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].$lang['error'];
  }
  $site_template->register_vars(array(
    "error_msg" => $error_msg,
    "lang_error" => $lang['error'],
    "clickstream" => $clickstream,
    "random_image" => ""
  ));
  $site_template->print_template($site_template->parse_template("error"));
  exit;
}

I mean, what when this function is working you don't have any info in page_title and clickstream (if clickstream is placed in header.html). For default template clickstream is working well...

30
I'm understand. But clickstream and page title shown on all pages, exept error page

Pages: 1 [2] 3 4 5