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

Pages: 1 2 [3] 4 5 6 7 ... 91
32
SUMMARY

When selecting a new value for "Images Per Page", the value is only stored for the current session. If you close your browser and then open it again to the 4images site, the value you previously selected is forgotten. Only the default setting from the admin control panel is used.

This mod stores the value the user selects in a cookie so that on subsequent visits the "Images Per Page" is restored to the previously chosen setting.

COMMENTS

I chose to use a cookie and not make this part of the user's control panel for a simple reason. Many users, including me, access the same 4images web site from different computers and using monitors with different resolutions. A cookie lets me customize the "Images Per Page" to each monitor.

INSTRUCTIONS

Open includes/page_header.php and locate this block of code:
Code: [Select]

//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
if (isset($HTTP_POST_VARS['setperpage'])) {
  $setperpage = intval($HTTP_POST_VARS['setperpage']);
  if ($setperpage) {
    $site_sess->set_session_var("perpage", $setperpage);
    $session_info['perpage'] = $setperpage;
  }
}

if (isset($session_info['perpage'])) {
  $perpage = $session_info['perpage'];
}
else {
  $perpage = ceil($config['default_image_rows'] * $config['image_cells']);
}


REPLACE it with this block:
Code: [Select]

//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
if (isset($HTTP_POST_VARS['setperpage'])) {
  $setperpage = intval($HTTP_POST_VARS['setperpage']);
  if ($setperpage) {
    $site_sess->set_session_var("perpage", $setperpage);
    $session_info['perpage'] = $setperpage;
    $site_sess->set_cookie_data("perpage", $setperpage);
  }
}

if (isset($session_info['perpage'])) {
  $perpage = $session_info['perpage'];
}
else if($site_sess->read_cookie_data("perpage")) {
  $perpage = $site_sess->read_cookie_data("perpage");
  $site_sess->set_session_var("perpage", $perpage);
  $session_info['perpage'] = $perpage;
}
else {
  $perpage = ceil($config['default_image_rows'] * $config['image_cells']);
  $site_sess->set_cookie_data("perpage", $perpage);
}


That's it. Enjoy!

If you would also like to make the "Images Per Page" a jump menu, please see this post: http://www.4homepages.de/forum/index.php?topic=3815.0

33
Chit Chat / Re: My style - rsphotos
« on: May 27, 2005, 02:46:10 PM »
No it's not because you REMOVED the copyright notice which is in violation of the license agreement.  Yes, you kept the link back but the terms state you must also keep the copyright.

Quote
    Please note that the following copyright notice
    MUST be displayed on each and every page output
    by 4images. You may alter the font, colour etc. but
    you CANNOT remove it, nor change it so that it be,
    to all intents and purposes, invisible. The hyperlink
    http://www.4homepages.de must also remain intact.
    These conditions are part of the licence this software
    is released under. See the Licence.txt file for
    more information.
// -->
<p align="center">
  Powered by <b>4images</b> 1.7.1  <br />
  Copyright &copy; 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>

34
Discussion & Troubleshooting / Re: Voting problem
« on: May 27, 2005, 02:39:54 PM »
This error is already covered in the Error Messages forum.  Go read that.

35
Basic HTML editing is an assumed skill.  How you choose to tailor your HTML tables, etc. is entirely up to you.  Like you said, just try it

36
Open details.php and find this near the very bottom:
Code: [Select]
$clickstream .= $image_name."</span>";
Change it to:
Code: [Select]
//$clickstream .= $image_name."</span>";
$clickstream .= "</span>";

37
Chit Chat / Re: PHP Editor?
« on: May 26, 2005, 02:42:35 PM »
I don't doubt it but I couldn't find the link.  :)

38
Maybe it's from a mod you installed?  In 3 years, I've never heard of this problem before.

39
Chit Chat / Re: PHP Editor?
« on: May 26, 2005, 02:49:58 AM »
For english, the web/download link is: http://www.mpsoftware.dk/phpdesigner.php

40
Mods & Plugins (Requests & Discussions) / Re: Display image URL
« on: May 24, 2005, 07:07:37 PM »
Yep, that's correct and it goes in details.html NOT details.htm

41
Mods & Plugins (Requests & Discussions) / Re: [mod] Hi-Res pictures
« on: May 24, 2005, 02:50:20 PM »
I don't have time to provide free consulting today but I can tell you the "problem" is that you need to modify the code that takes care of editing the image.  And that code is not in what you posted here.  Try admin/images.php

42
Okay, I see now.

Then you should not start a new topic. Instead, please reply to the mod thread. That way you get the attention of those who use the Notify me when a reply is posted option and it keeps all related information in one place for people who search the forums.

I think the solution is going to involve a minor change in that mod.

43
Mods & Plugins (Requests & Discussions) / Re: [mod] Hi-Res pictures
« on: May 23, 2005, 03:47:50 PM »
Please do not double post.  I've deleted your other post topic.

44
Glad to hear it.  In the future, please read MUST READ- Guidelines for posting questions in this forum! before posting again.  Your subject didn't help anyone here ;)

45
Personally I've never heard of it.

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