Author Topic: [Mod] New images since last visit  (Read 56069 times)

0 Members and 1 Guest are viewing this topic.

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New images since last visit
« Reply #30 on: April 25, 2006, 10:07:47 PM »
I have the same error when I click on all member images from his profile ..

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New images since last visit
« Reply #31 on: April 26, 2006, 12:10:38 AM »
Let me guess: first step, you commented out BOTH lines instead of just the ONE instructed?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New images since last visit
« Reply #32 on: April 26, 2006, 02:55:36 AM »
this is the error
Parse error: parse error, unexpected $ in /home/emarati/public_html/gallery/search.php on line 337

and this is the change in the file :

$main_template = 'search';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
if (isset($HTTP_POST_VARS['search_new_images']) || isset($HTTP_GET_VARS['search_new_images'])) {
//$search_new_images = 1;
$search_new_images = (isset($HTTP_POST_VARS['search_new_images'])) ? trim($HTTP_POST_VARS['search_new_images']) : urldecode(trim($HTTP_GET_VARS['search_new_images']));
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/search_utils.php');

$org_search_keywords = $search_keywords;
$org_search_user = $search_user;

if (isset($HTTP_GET_VARS['search_terms']) || isset($HTTP_POST_VARS['search_terms'])) {

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [Mod] New images since last visit
« Reply #33 on: April 26, 2006, 05:46:40 AM »
i have the same as above
i think the lines under include(ROOT_PATH.'global.php'); mus be somwhere else but i don't know where  :roll:



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New images since last visit
« Reply #34 on: April 26, 2006, 10:12:29 AM »
and did you have
Code: [Select]
if (isset($HTTP_POST_VARS['search_new_images']) || isset($HTTP_GET_VARS['search_new_images'])) {in search.php at all?
in v1.7.2 this line was moved into global.php. If that is the case, I dont know why would you add it, because there is nothing sais about adding it, correct?

P.S. I've added a little note in the original post, for these who is using v1.7.2 or newer ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New images since last visit
« Reply #35 on: April 26, 2006, 05:17:33 PM »
ok .. done .. and that was OK

but still the first problem

I found it .. I was searching with a space before the line ..

ok I did every thing .. but the link doesn't appear

this is the link :
&raquo; <a href="{url_new_images_last}">{lang_new_images_last}</a><br />
I put it in the userlogininfo template

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [Mod] New images since last visit
« Reply #36 on: April 26, 2006, 08:26:40 PM »
and did you have
Code: [Select]
if (isset($HTTP_POST_VARS['search_new_images']) || isset($HTTP_GET_VARS['search_new_images'])) {in search.php at all?
in v1.7.2 this line was moved into global.php. If that is the case, I dont know why would you add it, because there is nothing sais about adding it, correct?

P.S. I've added a little note in the original post, for these who is using v1.7.2 or newer ;)

It is working perfect thanks V@no  :lol: :D



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New images since last visit
« Reply #37 on: April 27, 2006, 01:06:42 AM »
ok I did every thing .. but the link doesn't appear

this is the link :
» <a href="{url_new_images_last}">{lang_new_images_last}</a><br />
I put it in the userlogininfo template
check changes in page_header.php and main.php language file.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New images since last visit
« Reply #38 on: April 27, 2006, 03:15:09 AM »
the  page_header.php wasn't changed carefully

thank you V@no

Offline tansamalaja

  • Full Member
  • ***
  • Posts: 185
    • View Profile
Re: [Mod] New images since last visit
« Reply #39 on: May 22, 2006, 10:56:37 AM »
I get all the new pics, not only the new pics since last visit.
I logged out and  in and the result is the same. (v.1.7.1)

In which file could be the mistake located?

In my new Galerie (vv.1.7.2) everything is alright.

Offline tansamalaja

  • Full Member
  • ***
  • Posts: 185
    • View Profile
Re: [Mod] New images since last visit
« Reply #40 on: June 01, 2006, 07:37:00 PM »
Any idea?

Offline Ch*yeuk

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] New images since last visit
« Reply #41 on: July 14, 2006, 10:47:15 PM »
Nice mod, I've installed it and it works pefectly!

Offline tansamalaja

  • Full Member
  • ***
  • Posts: 185
    • View Profile
Re: [Mod] New images since last visit
« Reply #42 on: July 31, 2006, 04:54:13 PM »
I found it by myself:

If you've updated to 1.7.2 you should change the global.php as demanded in the instruction... :oops:
I started with 1.7.1 an did the changes in the search.php...

Quote
search.php (if you are using 4images v1.7.2 or newer, the following two changes must be done in global.php instead)

rinaldos

  • Guest
Re: [Mod] New images since last visit
« Reply #43 on: February 18, 2007, 03:06:12 PM »
Hello at all.
This mods works, but now (I do not know why) i see no new pictures :-(

When i click new pictures, or new pictures since last visit, is see that there are 115 new pictures. But the thumbnails are not displayed :-(

Where I have to look for the error.

---german
Seit kurzer Zeit sehe ich nicht mehr die Thumbnails in der suche. Er zeigt mir zwar an, das so und so viele Bilder neu sind, aber die Bilder werden nicht mehr angezeigt. Wo müsste ich denn schauen, damit ich das wieder hinbekomme?

http://rinaldos.homeip.net/Galerie/search.php?search_new_images=1


Gruß
Ingo


rinaldos

  • Guest
Re: [Mod] New images since last visit
« Reply #44 on: February 18, 2007, 07:41:39 PM »
Habe das Problem fast gelöst. Die original search.php genommen und den MOD neu eingebaut. Nun zeigt er zwar nicht mehr die neuen Bilder an, aber immerhin bringt er schon wieder Ergebnisse und zeigt mir die letzten Bilder seit dem Besuch an :-)

Gruß
Ingo

 

Post your comments here