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

Pages: [1] 2
2
Mods & Plugins (Releases & Support) / Re: [MOD] guestbook
« on: September 08, 2008, 12:10:42 PM »
Bump for my question above...
download Link...

3
Did you add any codes besides the code from the very first post?

Already fix the problem...
but, i can't see this below: 

For visitors with "unknown" or LAN IPs, save this image:  as lan.gif into flags/ folder as well
For visitors with using satelite service, save this image: as a2.gif into flags/ folder.


Any settings to improved here?

4
Mods & Plugins (Releases & Support) / Re: [MOD] Ban v1.7
« on: September 08, 2008, 11:55:14 AM »
hmmm... what's wrong in there?

I have no clue. But I'd guess its your editor? What did you use to edit files?

I am using dreamweaver...

5
Mods & Plugins (Releases & Support) / Re: [MOD] Ban v1.7
« on: September 08, 2008, 11:41:27 AM »
Oh wow, this is a first.
Have you installed any mods before? I'm not sure what to blame, your editor, FTP client or...

All I can suggest is restore your backups and try again.

No, this is my first to do it.
Already restored my back-up?

hmmm... what's wrong in there?

6
Mods & Plugins (Releases & Support) / Re: [MOD] Ban v1.7
« on: September 08, 2008, 08:49:34 AM »
Got an error here installed on 4images 1.7.6:

the errors:
/* MOD BAN START INSERT */ $lang['ban_banned'] = "You've been banned"; /* MOD BAN END INSERT *//* MOD BAN START INSERT */ define("BAN_TABLE", $table_prefix."ban"); define("BAN_LOGS_TABLE", $table_prefix."ban_logs"); define("BAN_IP", 1); define("BAN_HOSTNAME", 2); define("BAN_USERID", 3); define("BAN_NAME", 4); define("BAN_EMAIL", 5); /* MOD BAN END INSERT *//* MOD BAN START INSERT */ function check_ban() { global $user_info, $site_sess, $config, $lang, $site_db, $HTTP_GET_VARS; $types = array("ip", "hostname", "name", "user_id", "email"); if (!$config['ban_update']) { return false; } if ($user_info['user_level'] == ADMIN) { if (!isset($HTTP_GET_VARS['bantest'])) return false; $return = true; foreach ($types as $key) { if (isset($HTTP_GET_VARS[$key]) && $$key = $HTTP_GET_VARS[$key]) $return = false; else $$key = ""; } if ($return) return false; $force = true; } else { $ip = $site_sess->session_info['session_ip']; $email = $user_info['user_email']; $user_id = $user_info['user_id']; $name = $user_info['user_name']; $hostname = ""; $force = false; } $ban = false; $ban_checked = $site_sess->get_session_var("ban_checked"); $ban_userid = $site_sess->get_session_var("ban_userid"); $ban_banned = $site_sess->get_session_var("ban_banned"); if (get_magic_quotes_gpc() != 0) { $ban_banned = stripslashes($ban_banned); } // $ban_banned = stripslashes($ban_banned); //uncomment this line if magic_quotes_gpc is turned on on your server $ban_banned = ($ban_banned) ? unserialize($ban_banned) : ""; if ($force || (!$ban_checked || !$ban_userid || ($ban_userid && $ban_userid != $user_info['user_id']) || ($ban_checked && $ban_checked < $config['ban_update']) || ($ban_banned && $ban_banned['expire'] < time()))) { $query = array(); if (preg_match('/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/', $ip, $ip_chop) == 1) { $query[] = "(type = ".BAN_IP." AND ($ip_chop[1] BETWEEN ip1_start AND ip1_end) AND ($ip_chop[2] BETWEEN ip2_start AND ip2_end) AND ($ip_chop[3] BETWEEN ip3_start AND ip3_end) AND ($ip_chop[4] BETWEEN ip4_start AND ip4_end))"; if ($config['look_hostname'] && !$hostname) { $hostname = @gethostbyaddr($ip); } } if ($hostname) { $query[] = "(type = ".BAN_HOSTNAME." AND ('$hostname' LIKE hostname))"; } if ($email) { $query[] = "(type = ".BAN_EMAIL." AND ('".addslashes($email)."' LIKE email))"; } if ($user_id && $user_id > GUEST) { $query[] = "(type = ".BAN_USERID." AND user_id = ".$user_id.")"; } if ($name) { $query[] = "(type = ".BAN_NAME." AND ('".addslashes($name)."' LIKE name))"; } if (!empty($query)) { $sql = "SELECT id, type, message, date, expire FROM ".BAN_TABLE." WHERE (".implode(' OR ', $query).")"; if ($result = $site_db->query($sql)) { while ($row = $site_db->fetch_array($result)) { $site_sess->set_session_var("ban_banned", addslashes(serialize($row))); if ($row['date'] <= time() && (!$row['expire'] || $row['expire'] > time())) { $ban = $row; break; } } } else { $site_sess->set_session_var("ban_banned", ""); } } $site_sess->set_session_var("ban_checked", time()); $site_sess->set_session_var("ban_userid", $user_info['user_id']); } elseif ($ban_banned && $ban_banned['date'] <= time() && (!$ban_banned['expire'] || $ban_banned['expire'] > time())) { $ban = $ban_banned; } return $ban; } /* MOD BAN END INSERT */
Parse error: syntax error, unexpected '}' in /home/freeads/public_html/includes/sessions.php on line 497

7
Having problem here with the user and visitors online not accurate?
Anyone could help me here to fix this problem?

Attached herewith a print screen for reference, thank you!

8
Discussion & Troubleshooting / Re: query problems with MySQL 5.0.x
« on: September 06, 2008, 02:23:55 AM »
Thanks all already fix my problem with the help of Ivan Works; http://www.4homepages.de/forum/index.php?topic=8987.135

9
Discussion & Troubleshooting / Re: query problems with MySQL 5.0.x
« on: September 05, 2008, 11:57:03 PM »
Actually, i do that already. But, still not working?
Do i have to re install it? What do you think?

In the attached files you don't have it...

Ill' do it again later to fix my problem especially my contact us page since my FAQ page was already working with the help of Admin Nicky, you have both great idea and support.

10
Discussion & Troubleshooting / Re: query problems with MySQL 5.0.x
« on: September 05, 2008, 11:52:55 PM »
hi,

for test, try only with this code in faq.php

Code: [Select]
<?php 
/************************************************************************** 
 *                                                                        * 
 *    4images - A Web Based Image Gallery Management System               * 
 *    ----------------------------------------------------------------    * 
 *                                                                        * 
 *             File: faq.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.                              * 
 *                                                                        * 
 *************************************************************************/ 

$main_template "faq"

define('GET_CACHES'1); 
define('ROOT_PATH''./'); 
define('GET_USER_ONLINE'1); 
include(
ROOT_PATH.'global.php'); 
require(
ROOT_PATH.'includes/sessions.php'); 
include(
ROOT_PATH.'includes/page_header.php'); 

 
//----------------------------------------------------- 
//--- Clickstream ------------------------------------- 
//----------------------------------------------------- 
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>"

//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  
"content" => $content
  
"msg" => $msg
  
"clickstream" => $clickstream
  
"lang_control_panel" => $lang['control_panel'
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>


[EDIT]
and btw. like V@no wrote in his previous post this will solve your issue.

Tried already your code my FAQ page already working now, great help and a big thanks!
Superb support here...

And i'll try @vano's idea too later...

11
Discussion & Troubleshooting / Re: query problems with MySQL 5.0.x
« on: September 04, 2008, 09:56:07 AM »
As it was discribed in this topic, replace
Code: [Select]
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
With
Code: [Select]
        FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

Actually, i do that already. But, still not working?
Do i have to re install it? What do you think?

12
Feedback & Suggestions / Re: next update core features
« on: September 04, 2008, 07:56:19 AM »
Any new update here for donwloads.

13
Mods & Plugins (Releases & Support) / Re: [MOD] guestbook
« on: September 04, 2008, 07:34:44 AM »
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.


Hmmm... 120 days haven't posted a new..
anyway, trying find download here.

The first page are not working anymore?
can anyone give me a link?

14
FAQ, Tips / Re: Remove the right-click disabler / or remove only for Members
« on: September 04, 2008, 07:00:48 AM »
Can a regular user do this things or just only for a member with license?

15
Discussion & Troubleshooting / Re: query problems with MySQL 5.0.x
« on: September 04, 2008, 06:43:50 AM »
Hello and welcome to 4images forum.

faq.php and contact.php are not part of 4images package, you must have made them yourself, and since only they are affected I can assume the problem is in their code.

Either way, this is a weird error. Can you attach faq.php file? (zip it first)

Thanks for the quick reply.
Attached herewith the weird error files.

Thanks...

Pages: [1] 2