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

Pages: [1] 2 3
1
What is the problem?
Problem is when i move my mouse over the paging links
Quote
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...  Next page »  Last page »

It shows:
http://poview.org/c1?page=2

not
http://poview.org/c1.2

but if i manually enter the address  http://poview.org/c1.2 it works.

was i able to clear my self?

2
now that my
http://poview.org/categories.php?cat_id=1
changed to
http://poview.org/c1

how can i change
http://poview.org/c1?page=2
to
http://poview.org/c1.2

like v@no  :wink:

Hello V@no... pls help
here's the category section of my sessions.php
Code: [Select]
      elseif (strstr($url, 'categories.php')) {
        if (strstr($url, 'cat_id=') && strstr($url, 'page=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches1);
          preg_match('#page=([0-9]+)&?#', $url, $matches2);
          if (isset($matches1[1]) && isset($matches2[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('categories.php', 'c'.$matches1[1].'.'.$matches2[1], $url);
            $query = str_replace('cat_id='.$matches1[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches1[1], '', $query);
            $query = str_replace('cat_id='.$matches1[1], '', $query);
            $query = str_replace('page='.$matches2[1].'&', '', $query);
            $query = str_replace('&page='.$matches2[1], '', $query);
            $query = str_replace('page='.$matches2[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        elseif (strstr($url, 'cat_id=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('categories.php', 'c'.$matches[1], $url);
            $query = str_replace('cat_id='.$matches[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches[1], '', $query);
            $query = str_replace('cat_id='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('categories.php', 'c', $url);
        }
      }
and here's my .htaccess
Code: [Select]
RewriteRule ^c$ categories.php?%{QUERY_STRING}
RewriteRule ^c([0-9]+)\.([0-9]+)$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^c([0-9]+)$ categories.php?cat_id=$1&%{QUERY_STRING}

3
Hey thanks :)
It works now perfect
TIP: code should be replace in 2 places in member.php

I've got a better solution... my previous fix was not proper ... it was also taking out the hyperlink from the clickstream.

Find (3 times):
Code: [Select]
$txt_clickstream = "";
Replace ALL with:
Code: [Select]
$txt_clickstream = "";
$txt_clickstream_t = "";

Next Find ALL lines starting with (9 times):
Code: [Select]
$txt_clickstream = get_category_path(
Duplicate that line and make following changes in the duplicated line:
Code: [Select]
$txt_clickstream_t = get_category_path_nohtml(
Now Find ALL lines starting with (9 times):
Code: [Select]
$txt_clickstream .= $lang
Duplicate that line and make following changes in the duplicated line:
Code: [Select]
$txt_clickstream_t .= $lang

Lastly Find:
Code: [Select]
$page_title = $config['category_separator'].$txt_clickstream;
Replace with:
Code: [Select]
$page_title = $config['category_separator'].$txt_clickstream_t;
That's it.. hope it works for all..

5
hey v@no,

somehow ... the style.css is not working with my pm.php  :(
What's wrong? format is all messed up.  :cry:

6
Mods & Plugins (Releases & Support) / Re: [Mod] EXIF 0.3
« on: April 22, 2006, 07:18:27 PM »
HELP!!!
It seems that i am loosing all the EXIF info while auto-resizing or auto-annotation..
What to do??

HELP  :cry:

7
I found a solution for this bug:

in member.php find:
Code: [Select]
  $txt_clickstream = "";
  if ($cat_id && isset($cat_cache[$cat_id])) {
    $txt_clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
  }
  $txt_clickstream .= $lang['user_upload'];

replace with:
Code: [Select]
  $txt_clickstream = "";
  if ($cat_id && isset($cat_cache[$cat_id])) {
    $txt_clickstream .= get_category_path_nohtml($cat_id, 1).$config['category_separator'];
  }
  $txt_clickstream .= $lang['user_upload'];

Hey!
Almost everything works.
Only one little problem: When I click on "UPLOAD IMAGE" my title is something like
Quote
site name | <a href="cattegories.php?cat_id=xx class="clickstream">cattegory name<a href="cattegories.php?cat_id=yy class="clickstream">new

Im sure members.php is modified correctly
 :|


8
I have replaced the original specific category problem is solved ..
but i want the original images to be moved to "big" folder..
how?
v@no?

Hello... anyone??? help pls...

9
Great!!!! working fine... Thanks a lot... v@no
 8)
I've updated my previous post ;) should work now

10
perhaps you added this code below the member.php part that was already exists? can you show your url() function?

Here is my function url():
Code: [Select]
  function url($url, $amp = "&amp;") {
    global $l, $user_info;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];
    $url = str_replace('&amp;', '&', $url);
    if (!defined('IN_CP')) {
      if (strstr($url, 'index.php')) {
        $url = str_replace('index.php', './', $url);
      }
      elseif (strstr($url, 'search.php')) {
        if (strstr($url, 'page=')) {
          preg_match('#page=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('search.php', 'search'.$matches[1], $url);
            $query = str_replace('page='.$matches[1].'&', '', $query);
            $query = str_replace('&page='.$matches[1], '', $query);
            $query = str_replace('page='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('search.php', 'search', $url);
        }
      }
      elseif (strstr($url, 'lightbox.php')) {
        if (strstr($url, 'page=')) {
          preg_match('#page=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('lightbox.php', 'album'.$matches[1], $url);
            $query = str_replace('page='.$matches[1].'&', '', $query);
            $query = str_replace('&page='.$matches[1], '', $query);
            $query = str_replace('page='.$matches[1], '', $query);
            if (!empty($query)) {
                $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('lightbox.php', 'album', $url);
        }
      }

// myMOD upload string
      elseif (strstr($url, 'member.php?action=uploadform'))
      {
        preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
        $url_cat_id = "";
        if (isset($matches[1]))
        {
          $url_cat_id = $matches[1];
        }
        $split = explode('?', $url);
        $url = $split[0];
        $query = @$split[1];
        $url   = str_replace('member.php?action=uploadform', 'upload'.$url_cat_id, $url);
        $query = str_replace('cat_id='.$url_cat_id.'&', '', $query);
        $query = str_replace('&cat_id='.$url_cat_id, '', $query);
        $query = str_replace('cat_id='.$url_cat_id, '', $query);
        if (!empty($query)) {
            $url .= '?' . $query;
        }
      }
// myMOD upload string END

      elseif (strstr($url, 'categories.php')) {
        if (strstr($url, 'cat_id=') && strstr($url, 'page=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches1);
          preg_match('#page=([0-9]+)&?#', $url, $matches2);
          if (isset($matches1[1]) && isset($matches2[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('categories.php', 'c'.$matches1[1].'.'.$matches2[1], $url);
            $query = str_replace('cat_id='.$matches1[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches1[1], '', $query);
            $query = str_replace('cat_id='.$matches1[1], '', $query);
            $query = str_replace('page='.$matches2[1].'&', '', $query);
            $query = str_replace('&page='.$matches2[1], '', $query);
            $query = str_replace('page='.$matches2[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        elseif (strstr($url, 'cat_id=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('categories.php', 'c'.$matches[1], $url);
            $query = str_replace('cat_id='.$matches[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches[1], '', $query);
            $query = str_replace('cat_id='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('categories.php', 'c', $url);
        }
      }
      elseif (strstr($url, 'details.php?image_id=')) {
        if (strstr($url, 'image_id=') && strstr($url, 'mode=')) {
          preg_match('#image_id=([0-9]+)&?#', $url, $matches1);
          preg_match('#mode=([a-zA-Z0-9]+)&?#', $url, $matches2);
          if (isset($matches1[1]) && isset($matches2[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('details.php', $matches1[1].'.'.$matches2[1], $url);
            $query = str_replace('image_id='.$matches1[1].'&', '', $query);
            $query = str_replace('&image_id='.$matches1[1], '', $query);
            $query = str_replace('image_id='.$matches1[1], '', $query);
            $query = str_replace('mode='.$matches2[1].'&', '', $query);
            $query = str_replace('&mode='.$matches2[1], '', $query);
            $query = str_replace('mode='.$matches2[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          preg_match('#image_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('details.php', $matches[1], $url);
            $query = str_replace('image_id='.$matches[1].'&', '', $query);
            $query = str_replace('&image_id='.$matches[1], '', $query);
            $query = str_replace('image_id='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
      }
      elseif (strstr($url, 'postcards.php?image_id=')) {
        preg_match('#image_id=([0-9]+)&?#', $url, $matches);
        if (isset($matches[1])) {
          $split = explode('?', $url);
          $url = $split[0];
          $query = @$split[1];
          $url   = str_replace('postcards.php', 'postcard.img'.$matches[1].'.htm', $url);
          $query = str_replace('image_id='.$matches[1].'&', '', $query);
          $query = str_replace('&image_id='.$matches[1], '', $query);
          $query = str_replace('image_id='.$matches[1], '', $query);
          if (!empty($query)) {
            $url .= '?' . $query;
          }
        }
      }
    }
    if ($this->mode == "get" && strstr($url, $this->session_id)) {
      $url .= strpos($url, '?') !== false ? '&' : '?';
      $url .= SESSION_NAME."=".$this->session_id;
    }
    if (!empty($l)) {
      $url .= strpos($url, '?') ? '&' : '?';
      $url .= "l=".$l;
    }
    $url = str_replace('&', $amp, $url);
    $url .= isset($dummy_array[1]) ? "#".$dummy_array[1] : "";
    return $url;
  }

11
I am having the same problem with ver 1.7.1 ....
i think there is a bug or it is conflicting with upload function.... or [Mod] Search Engine Friendly URLs aka Short URLs

any solution from the gurus.. (vano)..  :wink:

this mod in version 1.7.2 works fine
but then UPLOAD PHOTO  title =
Quote
<a href="./categories.php?cat_id=711" class="clickstream">[18] Âå÷åðèíêè</a> | Çàãðóçèòü ôîòî | Ñîëíå÷íîãîðñêàÿ ôîòîãàëåðåÿ
  :lol:

12
V@no,
 :( Unfortunately this did and did not work also... let me explain...

when i click on upload under any category it shows /member.php?action=uploadform&cat_id=10
but when i manually type upload10 it works... why??  :roll:

the hyperlinks are not changing ... why is that? any clues...  :?:

@himu:
Try this ------- snip snip .....

13
Hey v@no can you help me  :oops:
I was trying this without sucess:

Replace /member.php?action=uploadform with /upload
and Replace member.php?action=uploadform&cat_id=cat_id with /uploadcat_id[/b]

Example: /upload31 (where 31 is the cat id) -- like your site  :wink:

this is what i have done so far:
in .htaccess file (added):
Code: [Select]
RewriteRule ^upload$ member.php?action=uploadform%{QUERY_STRING}
RewriteRule ^upload\.([0-9]+)$ member.php?action=uploadform&cat_id=$1&%{QUERY_STRING}

in sessions.php file (added):
Code: [Select]
      elseif (strstr($url, 'member.php?action=uploadform')) {
        if (strstr($url, 'cat_id=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('member.php?action=uploadform', 'upload'.$matches[1], $url);
            $query = str_replace('cat_id='.$matches[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches[1], '', $query);
            $query = str_replace('cat_id='.$matches[1], '', $query);
            if (!empty($query)) {
                $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('member.php?action=uploadform', 'upload', $url);
        }
      }

What did i do wrong ? :?: :roll:

14
USe the Auto-Image-Resizer select a Category and rezize the Images... (o:
http://gallery.vano.org/en/file39dl

I have replaced the original specific category problem is solved ..
but i want the original images to be moved to "big" folder..
how?
v@no?

15
there is another mod for that...

Thanks! got it:
[MOD] Country flags (based on IP) in whos online in ACP
http://www.4homepages.de/forum/index.php?topic=6709.0

Pages: [1] 2 3