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.


Topics - himu

Pages: [1]
1
Guys...
How to update from 1.7.1 to 1.7.2 with all the following fixes and mods installed?  :?: :?

Quote

Security Pathces & Bug Fixes:
 -----------------------------
1. [1.7 / 1.7.1] Security fix in sessions.php
   http://www.4homepages.de/forum/index.php?topic=8288
   
2. [1.7 / 1.7.1] Security fix in search.php and register.php
   http://www.4homepages.de/forum/index.php?topic=10921.0
   
3. [1.7 / 1.7.1] MySQL v4.1 = ACP doesnt show database size
   http://www.4homepages.de/forum/index.php?topic=8458.0
   
4. [1.7.1] Conditional tags inside other conditional tags + {ifno ...}{endifno ...}
   http://www.4homepages.de/forum/index.php?topic=7493.0
   
5. [1.7 / 1.7.1] Security fix in index.php
   http://www.4homepages.de/forum/index.php?topic=11855.0
   
   Mods:
   -----
6.  [Mod] Disable right click on images only
    http://www.4homepages.de/forum/index.php?topic=4236.0
   
7.  [MOD] Batch Copy/Move/Edit Images v3.7.2
    http://www.4homepages.de/forum/index.php?topic=6759.0
   
8.  [Mod] Display random images on homepage, if no new images
    http://www.4homepages.de/forum/index.php?topic=4010.0
   
9.  Random pictures
    http://www.4homepages.de/forum/index.php?topic=4259.0
   
10. [MOD] Photo Of The Day
    http://www.4homepages.de/forum/index.php?topic=3529.0
   
11. [Mod] Add/Remove image to/from lightbox without page refresh
    http://www.4homepages.de/forum/index.php?topic=5321.0
   
12. [Mod] Image Annotation (Watermark)
    http://www.4homepages.de/forum/index.php?topic=3808.0
   
13. [MOD] Votes saved in DB (A version + additional changes)
    http://www.4homepages.de/forum/index.php?topic=6123.0
   
14. [MOD] speed for random images !!! :D
    http://www.4homepages.de/forum/index.php?topic=8239.0
   
15. [MOD] Auto-Thumbnailer v2.2.1
    http://www.4homepages.de/forum/index.php?topic=6921.0
   
16. How can I show more new images on home page? 
    http://www.4homepages.de/forum/index.php?topic=8946.0
   
17. Abgerundete Bilderboxen
    http://www.4homepages.de/forum/index.php?topic=9696.msg46668#msg46668
   
18. [MOD] Check new images in ALL categories v2.10.5
    http://www.4homepages.de/forum/index.php?topic=4754.0
   
19. Show a thumbnail instead of a folder icon next to category
    http://www.4homepages.de/forum/index.php?topic=6675.0
   
20. [Mod] Toplist altered
    http://www.4homepages.de/forum/index.php?topic=2544.0
   
21. [Mod] More Statistics for your visitors
    http://www.4homepages.de/forum/index.php?topic=3303.30
   
22. [Mod] Most Ever Users Online v2 (23-01-2005)
    http://www.4homepages.de/forum/index.php?topic=7290.0
   
23. [MOD] Apply permission to sub-categories from their parent category
    http://www.4homepages.de/forum/index.php?topic=7643.0
   
24. [Mod] Auto image resize on upload. (updated 19/09/04)
    http://www.4homepages.de/forum/index.php?topic=7700.0
   
25. Simplifying Image Upload
    http://www.4homepages.de/forum/index.php?topic=5750.0
   
26. [MOD] Registration with security code validation v1.0
    http://www.4homepages.de/forum/index.php?topic=10200.0
   
27. [MOD]country flags of your visitors in "Who's online?" in home page
    http://www.4homepages.de/forum/index.php?topic=7831.0
   
28. [Mod] Show original image in new window by clicking on image
    http://www.4homepages.de/forum/index.php?topic=3236.0
   
29. [Mod] bbcode Smileys
    http://www.4homepages.de/forum/index.php?topic=6646.0
   
30. [MOD] Categories upload dropdown form
    http://www.4homepages.de/forum/index.php?topic=7722.0
   
31. [MOD] Email image validation results to the user v2
    http://www.4homepages.de/forum/index.php?topic=8286.0
   
32. [MOD] Universal Paging Class v1.1
    http://www.4homepages.de/forum/index.php?topic=6926.0
   
33. [MOD] Dynamic Page Title for v1.7 & v1.7.1
    http://www.4homepages.de/forum/index.php?topic=6613.0
   
34. [MOD] Last comments v1
    http://www.4homepages.de/forum/index.php?topic=7848.0
   
35. [MOD] Logout from ACP (Admin Control Panel)
    http://www.4homepages.de/forum/index.php?topic=6593.0
   
36. [MOD] Ban v1.6.2 
    http://www.4homepages.de/forum/index.php?topic=7066.0
 
   Plugins:
   --------
37. [Plugin] Batch Import
    http://www.4homepages.de/forum/index.php?topic=2164.0
   

2
Templates & Styles (Requests & Discussions) / Image Upload Preview
« on: February 23, 2006, 05:43:52 AM »
Here is a little java trick i found at V@no's gallery .. which i did not find in the forum..
later managed to incorporate it with my site...  :wink:

When you choose a file to upload you can see a preview of the file before submit.

-----------------------------------------------
Files to edit: only two
template/{your_template}/header.html
template/{your_template}/member_uploadform.html

-----------------------------------------------

Step 1
Open template/{your_template}/header.html

Insert above</head> :
Code: [Select]
<script type="text/javascript">
<!-- Begin
/***** CUSTOMIZE THESE VARIABLES *****/
  // width to resize large images to
var maxWidth=150;
  // height to resize large images to
var maxHeight=150;
  // valid file types
var fileTypes=["bmp","gif","png","jpg","jpeg"];
  // the id of the preview image tag
var outImage="previewField";
  // what to display when the image is not valid
var defaultPic="spacer.gif";

/***** DO NOT EDIT BELOW *****/

function preview(what){
  var source=what.value;
  var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
  for (var i=0; i<fileTypes.length; i++) if (fileTypes[i]==ext) break;
  globalPic=new Image();
  if (i<fileTypes.length) globalPic.src=source;
  else {
    globalPic.src=defaultPic;
    alert("THAT IS NOT A VALID IMAGE\nPlease load an image with an extention of one of the following:\n\n"+fileTypes.join(", "));
  }
  setTimeout("applyChanges()",200);
}
var globalPic;
function applyChanges(){
  var field=document.getElementById(outImage);
  var x=parseInt(globalPic.width);
  var y=parseInt(globalPic.height);
  if (x>maxWidth) {
    y*=maxWidth/x;
    x=maxWidth;
  }
  if (y>maxHeight) {
    x*=maxHeight/y;
    y=maxHeight;
  }
  field.style.display=(x<1 || y<1)?"none":"";
  field.src=globalPic.src;
  field.width=x;
  field.height=y;
}
// End -->
</script>

Step 2
Open template/{your_template}/member_uploadform.html

Find:
Code: [Select]
  <span class="smalltext">
  {lang_max_filesize}<b>{max_media_filsize}</b><br />
  {lang_max_imagewidth}<b>{max_media_imagewidth}</b><br />
  {lang_max_imageheight}<b>{max_media_imageheight}</b><br />

Insert below:
Code: [Select]
  <img alt="Image preview here" id="previewField" src="{template_url}/images/spacer.gif"><br />
Step 2.1
Find:
Code: [Select]
  <input type="file" name="media_file" class="input" /><br />
Replace with:
Code: [Select]
  <input type="file" name="media_file" onchange="preview(this)" class="input" /><br />

You can customize some of the variables at Step 1
between /***** CUSTOMIZE THESE VARIABLES *****/ and /***** DO NOT EDIT BELOW *****/

That's it. Enjoy...  :D

This is my first topic post.. hope i did not make any mistakes..

Lastly Thanks V@no.

3
Mods & Plugins (Requests & Discussions) / MOD category/type Guide
« on: February 08, 2006, 05:07:46 PM »
To all the Gurus in the house...  8)

Is there a guide to which MODs (types of MODs) to install first other than the bug fixes??
Just a general guideline for the newbies in the house..   :?
There are a lot of MODs in the forum which are not updated for version 1.7.1 in the first screen.. which makes it difficult to debug even for a PHP knowledgeable user.
I understand that it is wise to select the prefered Template before chooseing the MODs.

Also, is there a guide to 4image structure like Chris's How is the default "style.css" stylesheet used? http://www.4homepages.de/forum/index.php?topic=5702.0

4
Help anyone,
my "Previous image:" "Next image:" is not showing up..
checked the main.php function.php and details.html
everything seems to be ok.

any ideas?

Pages: [1]