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

Pages: 1 [2] 3 4
16
FAQ, Tips / Bad thumbnail quality with GD2
« on: March 08, 2003, 08:35:52 PM »
Try to change
Code: [Select]
define('CONVERT_IS_GD2', 0);
to
Code: [Select]
define('CONVERT_IS_GD2', 1);
in includes/constants.php

17
Plugins / [Plugin] Windows XP Publishing Wizard Integration
« on: March 08, 2003, 04:23:26 PM »
Windows XP offers a nice function for uploading files to a webserver. With this plugin you can use this function and upload images to your categories folders.
» Screenshot

Plugin Installation:

- Create a new directory called plugins in your admin-folder (if it yet does not exist)
- Extract the zip and copy the file xp_publishing_wizard.php to the plugins-directory
- Log in to your Control Panel, a new link should appear in the left navigation frame beneath "PlugIns"

Client-side installation:

- Click on "XP Publishing Wizard" in your Control Panel plugin menu.
- Download here the .reg file for registering your server with the Windows XP Publishing Wizard.
- Save this file on your PC and double-click it to register your server with the Publishing Wizard

How to upload files from your PC:

- In the Windows Explorer, select some files and click "Publish [...] on the web" in the task pane
- After confirming your file selection, your server will show up in the list of services
- Select it, click "Next" and follow the instructions (Login with your administrator username and password)
- Note: The wizard will only upload the files to your server. After that you have to add the images with "Check new images" to your gallery

Download: xp_publishing_wizard.zip

18
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

19
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

20
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

21
Language Packs / MUST READ- Guidelines for posting questions in this forum!
« on: February 03, 2003, 11:31:10 AM »
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

22
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

23
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

24
Please read the guidelines before posting in this forum:
http://www.4homepages.de/forum/index.php?topic=3914.0

Jan

25
This is a must-read for all users posting to the 4images forum, especially if you're looking to get help. A lot of you are posting in a manner that makes it extremely difficult- if not impossible- to respond to. Below are a list of posting guidelines and tips we ask that you please read- and FOLLOW- when asking for help:

1) Type in a subject that summarizes your question!
The fastest way to turn off other members wanting to help you is to type an incomplete or silly subject for your post. Examples of poor subject titles include:

- "Help!"
- "I'm a newbie...please!"
- "Is this possible using 4images?"
- "error"
- "DataBase"

The above subjects either have absolutely nothing to do with the question itself, or are grossly incomplete (ie: "DataBase"). When asking for help, enter a subject that summarizes your question, period! Don't use silly, incomplete, or "bait" subjects.


2) Be descriptive and articulate when asking your question!
Some of you are posting as if we're all psychics, and are supposed to grasp your question with the little or confusing information you've provided in your question. We cannot read your mind, and putting up a post like "Can someone help me with the script?" is not nearly enough information to go by. What exactly do you want to know about this script? Set us up with some crucial background information, what you want to do, and what the problem is. Be concise and precise.

Also when posting, understand that you're trying to convince others to help you. Check for spelling/grammar mistakes, and try and format your question and code in an easily legible manner. Big tip: Use the preview button often.

Bottom line- put yourself in our shoes, and try and phrase the question so it's clear and easy to respond to.


3) Use the search feature often to make sure your question isn't already answered!
The longer this forum has been online, the more solutions it accumulates. Always search past posts first (using the search link to your upper right) to make sure your question isn't already answered. Use 1-2 keywords as the search terms.


4) Be appreciative and follow up when getting a response!
Everyone here is volunteering their time to help out others. The least you can do is be appreciative and follow up when getting a helpful response. If you've solved your problem, let people know so they don't continue spending time on your question. Saying a little "thank you" goes a long way.


5) Reply to the appropriate thread if you have questions regarding MODs
If you have questions regarding a MOD/thread, please DO NOT START A NEW TOPIC, post a REPLY to the MOD/thread.


6) Do NOT send unsolicited PMs (Private Messages) to moderators or administrators
Please do NOT send PMs (Private Messages) with just 4 words: "Can you help me" and a link to the post where you already asked a question. This is just rude and here's why:

Many people on this forum (definitely moderators/administrators) are reading every new post since their last visit. If nobody has replied to your question, that doesn't mean they didn't read it, it just means they don't have an answer. You can expect any such PMs sent to moderators/administrators to be deleted WITHOUT being read.

Also, keep in mind, if you ask for help/support via PM, you are limiting your chances get the answer to that person alone, instead of thousand people who could possibly answer if you'd post your question at the forum.


7) Always mention your 4images version that you are using
Since there are more then one version of 4images and people still using old versions, its a great help to know which version you have question/problem with.
So, either always mention what version do you use or update your forum's profile and insert this information into your signature (the later is preferred). Also, in some cases it could be useful to know more basic information about your server (OS, type of web server (Apache, IIS), PHP version, MySQL version, etc), so if you put all that in your signature, you might get better and faster support and avoid a simple question getting scratched on few pages of the replies.


8) Do NOT "push" your thread if there are no answer to your question
Many people on this forum (definitely moderators/administrators) are reading every new post since their last visit. If nobody has replied to your question, that doesn't mean they didn't read it, it just means they don't have an answer or do not have time rightnow to find an solution for you.

- "push!"
- "up!"
- "noone?"
...etc.

You can expect any such posts to be deleted.


9) Netiquette
Please keep the Netiquette in this forum.
A post begins with salutation, and a post ends with a signature. Especially if you open a new Thread, or if your first post in one Thread.
If you don't do this, don't be upset if you get no answer.

26
Quote
DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY RAND()
You have an error in your SQL syntax near 'RAND()' at line 5
This means that you have a mysql version that lower than required!
RAND() requires MySQL version >= 3.23.23

Solution:

Open "includes/constants.php" and change
Code: [Select]
define('SHOW_RANDOM_CAT_IMAGE', 1);to
Code: [Select]
define('SHOW_RANDOM_CAT_IMAGE', 0);

27
Quote
Warning: Unable to create './../data/media/1/file.gif': No such file or directory in /www/htdocs/4images/includes/upload.php on line 114

Warning: Unable to move '/tmp/phppgy2eW' to './../data/media/1/file.gif' in /www/htdocs/4images/includes/upload.php on line 114

If you add new categories, the script creates folders in "data/media" and "data/thumbnails". The name of the folder is the ID of the category. If you get this error, the script has not created the folder correctly. In this case we are talking about the folder "1":

./../data/media/1/file.gif

Maybe your error message shows you another foldername.

  • Check if the folder "1" exists in "data/media" AND "data/thumbnails"
  • If yes, check the permissions (must be chmod 777). Sometimes it will help to delete the folder and create it again via FTP (don't forget chmod 777 after doing this).
  • If the folder doesn't exists, create it via FTP and chmod 777[/list:u]Some users reported, that this error occures only after adding the first category. For the next categories everythings works.

28
FAQ, Tips / Problems with config.php, installation & database info
« on: December 30, 2002, 04:35:26 PM »
After running install.php, you get the following:
Quote
The install script is unable to write the config file "config.php" to the server. Click the button below to download a copy of the configuration file and upload this file via FTP to the 4images directory. Once this is done you should log in using the admin username and password and visit the Control Panel to check the general configuration for any required changes."

Downloaded Configuration File
You find that your config.php contains only this:
Code: [Select]
<?php 
/************************************************************************** 
* * 
* 4images - A Web Based Image Gallery Management System * 
* ---------------------------------------------------------------- * 
* * 
* File: config.php * 
* Copyright: (C) 2002 Jan Sorgalla * 
* Email: jan@4homepages.de * 
* Web: http://www.4homepages.de * 
* Scriptversion: 1.7 * 
* * 
* Never released without support from: Nicky (http://www.nicky.net) * 
* * 
************************************************************************** 
* * 
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- * 
* bedingungen (Lizenz.txt) für weitere Informationen. * 
* --------------------------------------------------------------- * 
* This script is NOT freeware! Please read the Copyright Notice * 
* (Licence.txt) for further information. * 
* * 
*************************************************************************/ 

$db_servertype 
The config.php file was somehow truncated at line 25.

SOLUTION
Copy config.new.php to config.php.  Open config.php in a text editor and enter the right values for the configuration variables.

Assuming you have the following information:

Database Host = "localhost"
Databaes User Name = "myDbUserID"
Database User Password = "myDbPassword"
Database Name = "myDatabaseName"

Your edited config.php should look like this:
Code: [Select]
<?php 
/************************************************************************** 
* * 
* 4images - A Web Based Image Gallery Management System * 
* ---------------------------------------------------------------- * 
* * 
* File: config.php * 
* Copyright: (C) 2002 Jan Sorgalla * 
* Email: jan@4homepages.de * 
* Web: http://www.4homepages.de * 
* Scriptversion: 1.7 * 
* * 
* Never released without support from: Nicky (http://www.nicky.net) * 
* * 
************************************************************************** 
* * 
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- * 
* bedingungen (Lizenz.txt) für weitere Informationen. * 
* --------------------------------------------------------------- * 
* This script is NOT freeware! Please read the Copyright Notice * 
* (Licence.txt) for further information. * 
* * 
*************************************************************************/ 

$db_servertype "mysql"
$db_host "localhost"
$db_name "myDatabaseName"
$db_user "myDbUserID"
$db_password "myDbPassword"

$table_prefix "4images_";

define('4IMAGES_ACTIVE'1); 

?>
Upload your edited config.php to the 4images directory and proceed to http://www.YourDomain.com/4images

29
FAQ, Tips / Remove the right-click disabler / or remove only for Members
« on: December 12, 2002, 09:17:06 AM »
To completely remove right click popup

Open the header.html template and remove these lines:
4images V1.7 - 1.7.2
Code: [Select]
  function right(e) {
    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }
  document.onmousedown=right;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=right;


4images V1.7.3 - 1.7.6
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");




Right-click only for Guest, not for Members

search
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

replace
Code: [Select]
{if user_loggedout} 
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");
{endif user_loggedout}

Update: 13.06.2008 / Ivan




Right click popup for everyone, but allow right click on input and textarea fields

in header.html template replace
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

With this:
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      msg(e);
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      msg(e);
      return false;
    }
    return true;
  }

  function msg(e)
  {
    var target = window.event ? window.event.srcElement : e ? e.target : null;
    if (target.type != "text" && target.type != "textarea" && target.type != "password")
    {
      alert("© Copyright by <?=str_replace("'","\'", "{site_name}");?>");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = msg;

30
Discussion & Troubleshooting / Setting problem / "Page not found" Problem
« on: October 17, 2002, 09:11:36 PM »
Because of a bug in the new PHP version 4.2.3 the saving of the settings does not work (the problem saving the template folder "default" as "ult").
To fix the problem, download the new settings.php and replace the old file in your admin folder.

Download: settings4.2.3.zip

If you have the "Page not found"-problem after the installation, create the file config.php manually and upload it to your server.
See:
http://www.4homepages.de/forum/viewtopic.php?p=6741#6741
or
http://www.4homepages.de/forum/viewtopic.php?p=7457#7457

Pages: 1 [2] 3 4