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

Pages: [1] 2
1
Discussion & Troubleshooting / Re: Subcategory Dropdown Problem
« on: March 19, 2006, 04:34:55 PM »
Ok, found the bug...
in admin/categories.php find:
Code: [Select]
  $category .= get_category_dropdown_bits($cat_parent_id, 0, $cat_id);Replace with:
Code: [Select]
  $category .= get_category_dropdown_bits($cat_parent_id);

Thanks so much V@no; the annoying hyphens for subcategory under are no longer there! My only problem is, the changes that I make to the category order (if it's a subcategory) are not saved. :(

2
Discussion & Troubleshooting / Re: Subcategory Dropdown Problem
« on: March 18, 2006, 05:05:45 AM »
The problem is, how can you trace a bug if you cant reproduce it? For me fresh v1.7.2 works just fine, yet, I havent tryed upgrade it from previous version...so, if you guys could guide how to reproduce this issue, then we'll talk ;)
As of admin account, well, lets try, maybe I can dig out something from there ;)

Sorry for the delay, V@no! I just got back in town. Anywho, I've set up an account for you at my site and will PM you the details. Hope you can help. :)

3
Discussion & Troubleshooting / Re: Subcategory Dropdown Problem
« on: March 10, 2006, 05:03:02 PM »
I'm also having the same problem. I thought it was just me having the issue. I had some prior simple mods (i.e. more stats) in 1.7.1, so I just uploaded the files listed in the change log. I haven't touched the admin files, though.

Do you need a test logon, V@no?

4
Change it in includes/constants.php

As in just manually change it from 1.7.1 to 1.7.2 in the constants.php, or upload the new one? Sorry if I'm asking dumb questions.  :oops:

5
I just changed only all the files that were in the change log. However, it still says that I have 1.7.1 installed and not 1.7.2. Isn't it supposed to change? Or, what did I do wrong?

6
I just moved my gallery from one server to a new one and re-installed 4images. I want all of my old settings and users set on the new server so I followed the instructions to upload the backup SQL file in phpMyAdmin. However, near the end, I get this error message:

Code: [Select]
Error

SQL query:

CREATE TABLE 4images_categories(
cat_id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
cat_name varchar( 255 ) NOT NULL default '',
cat_description text NOT NULL ,
cat_parent_id int( 10 ) unsigned NOT NULL default '0',
cat_hits int( 10 ) unsigned NOT NULL default '0',
cat_order int( 10 ) unsigned NOT NULL default '0',
auth_viewcat tinyint( 2 ) NOT NULL default '0',
auth_viewimage tinyint( 2 ) NOT NULL default '0',
auth_download tinyint( 2 ) NOT NULL default '0',
auth_upload tinyint( 2 ) NOT NULL default '0',
auth_directupload tinyint( 2 ) NOT NULL default '0',
auth_vote tinyint( 2 ) NOT NULL default '0',
auth_sendpostcard tinyint( 2 ) NOT NULL default '0',
auth_readcomment tinyint( 2 ) NOT NULL default '0',
auth_postcomment tinyint( 2 ) NOT NULL default '0',
sort_order varchar( 5 ) NOT NULL default 'ASC',
sort_field varchar( 20 ) NOT NULL default 'image_name',
PRIMARY KEY ( cat_id ) ,
KEY cat_parent_id( cat_parent_id ) ,
KEY cat_order( cat_order )
) ENGINE = MYISAM DEFAULT CHARSET = latin1

MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 22

My new host (AN Hosting) uses phpMyAdmin 2.6.4.

Please help!

7
V@no, you're a GENUIS! Thank you! *mmwah*  :D

8
This is my header.html template file. There's nothing inside the body tag....at least not that I know of  :oops:

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>>> {site_name} | Part of CS-Media.ORG << </title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="javascript" type="text/javascript">
<!--
  function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by CS-Media.ORG");
      return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
      alert("© Copyright by CS-Media.ORG");
      return false;
    }
    return true;
  }
  document.onmousedown=right;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=right;
// -->
</script>
</head>
<body>

9
If your mysql is version 4.1.7 or older then its a bug:
http://bugs.mysql.com/bug.php?id=6748
contact your hoster and ask them to upgrade their version to v4.1.8 or newer.
Grrr...I just checked and my host (Globat) is using 4.1.7.  :x Stupid Globat! They've got the worst tech support; worthless jerks. Never get hosted with them!  :? If I'm correct, they won't upgrade to v4.1.8 or newer for me. Is there any way around this?  :cry:

10
it sounds to me as the issue when someone gets a link with sessionid attached to it, and that session is still active....
Is there something I can do about that?

Quote
about the thumbnail border: do u have anyting inside <body> tag?
Sorry, but I'm a bit clueless on this.  :oops: You mean the body in the style.css or the home.html, etc. pages?

11
Can you tell me what you altered in functions.php?
Don't think that the MSN browser is the reason. Or maybe she switched the user and got cached pages. Or does she get the profile from an completely different/unknown user?

I altered:
Quote
function check_local_thumb($remote_thumb_file) {
  return !is_remote($local_thumb_file) && strpos($local_thumb_file, '/') !== false && preg_match("#\.[gif|jpg|jpeg|png]+$#i", $local_thumb_file) ? 1 : 0;
}

To this:
Quote
function check_local_thumb($local_thumb_file) {
  return !is_remote($local_thumb_file) && strpos($local_thumb_file, '/') !== false && preg_match("#\.[gif|jpg|jpeg|png]+$#i", $local_thumb_file) ? 1 : 0;
}

The user saw the profile of a complete different/unknown user. She didn't recognize any of the information that was shown. So, it's definitely not something that was cached on her HD.

12
Discussion & Troubleshooting / Help! Bad SQL Query - record changes
« on: April 08, 2005, 12:50:39 AM »
I just installed a fresh 1.7.1 gallery on my site and a few simple mods ([Mod] More Statistics for your visitors, [MOD] Ban v1.6, and [MOD] Batch Copy/Move/Edit Images v3.7.1) but everything's been working fine. That is...until today. When I accessed the page, this error message showed at the top of the page:

Quote
DB Error: Bad SQL Query: SELECT s.session_user_id, s.session_lastaction, s.session_ip, u.user_id, u.user_level, u.user_name, u.user_invisible FROM 4images_sessions s LEFT JOIN 4images_users u ON (u.user_id = s.session_user_id) WHERE s.session_lastaction >= 1112913548 ORDER BY u.user_id ASC, s.session_ip ASC
Record has changed since last read in table 's'

I haven't altered any coding since I did the mods about two weeks ago! I also noticed that the 'Currently active users' statistics are not accurate. It doesn't show my online status nor that of guests. What's wrong? Please help!

Gallery: http://www.cs-media.org

13
Can you create a user with one this happens and send me the login data by PM?
Sorry for the late reply.  :oops: I'm not sure if this is an isolated event that happens or if others have experienced it. But, the person that notified me of the problem just told me that she isn't having any other problems since I altered a line of coding in functions.php that I found in 'BUG FIXES'.

Also, the same user told me that she has MSN so she was using the MSN browser when the errors occurred. When she used the IE browser, she did not have any problems. Is this a problem with the MSN broswer, then?

14
I was notified by several of my forum members that when they entered their username and password to log in, the account that shows up is not theirs but someone else's. Also, they are able to access this other user's account information, including passwords, etc.

I just installed a fresh version of 1.7.1 and the problem is still there. The only mods that I have added are: [Mod] More Statistics for your visitors, [MOD] Ban v1.6, and [MOD] Batch Copy/Move/Edit Images v3.7.1. Other than that, I've just edited the design template for CSS and such.

Also, this is just a minor problem compared to the one above, but I cannot figure out how to change the border links around my image thumbnails to be just black instead of the default blue (new) and maroon (visited). In my CSS I declared:

Code: [Select]
body {
         color: #3A3A3A;
         font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
         font-size: 12px; margin: 0px;
         background-image: url('images/back2.gif');
         
scrollbar-face-color: #DFE2DB;
scrollbar-shadow-color: #F4F5F2;
scrollbar-highlight-color: #ECF0E7;
scrollbar-3dlight-color: #F4F5F2;
scrollbar-darkshadow-color: #CDCECC;
scrollbar-track-color: #F4F5F2;
scrollbar-arrow-color: #F4F5F2;
}

a {
         color: #353535;
         text-decoration: none;
}

a:hover {
         color: #FA3605;
         text-decoration: none;
}

a:visited {
         color: #464646;
         text-decoration: none;
}

hr {
         height: 1px;
         color: #4B4B4B;
}

ul, li, p, td {
         font-size: 11px;
}

.tablehead {
         background-color: #e8e8e8;
         color: #4B4B4B;
         border-bottom: 1px solid #2D2D2D;
}

.tablebottom {
         background-color: #2E2E2E;
         padding: 5px;
         color: #C0C0C0;
         border-bottom: 1px solid #000000;
         border-top: 1px solid #777777;
}

.tablebottom a, .tablebottom a:visited {
         color: #EFEFEF; text-decoration: none;
}

.tablebottom a:hover {
         color: #FF8040;
         text-decoration: none;
}

.bordercolor {
         background-color: #C0C0C0;
}

.tablebgcolor {
         background-color: #EFEFEF;
}

.navbar {
         background-color: #2E2E2E;
         color: #C0C0C0;
         padding: 5px;
         border-bottom: 1px solid #777777;
         border-top: 1px solid #777777;
}

.navbar a {
         color: #EFEFEF;
}

.navbar a:visited {
         color: #EFEFEF;
}

.navbar a:hover {
         color: #FF8040;
}

.row1 {
         background-color: #E9E9E9;
         color: #4B4B4B;
         padding: 2px;
}

.row2 {
         background-color: #E0E0E0;
         color: #4B4B4B;
         padding: 2px;
}

.head1 {
         background-color: #9F9F9F;
         color: #FFFFFF;
         font-size: 11px;
         font-weight: bold;
}

.head1:hover {
         background-color: #9F9F9F;
         color: #FFFFFF;
         font-size: 11px;
         font-weight: bold;
}

.head2 {
         background-color: #838383;
         color: #ffffff;
         font-size: 11px;
         font-weight: bold;
         border-bottom: 1px solid #434343;
         padding: 2px;
         background-image: url('images/cat_ic.gif');
         background-repeat: no-repeat;
         background-position: left;
         padding-left: 17px; }

.title {
         font-family: Arial,Helvetica,sans-serif;
         font-size: 15px;
         font-weight: bold;
         color: #D22006;
}

.clickstream {
         font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
         font-size: 11px;
}

.smalltext {
         font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
         font-size: 10px;
         font-weight: normal;
}

.marktext {
         color: #FF0000;
         background-color: #ffffff;
}

.new {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          font-size: 11px;
          color: #FF0000;
}

form {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          font-size: 11px;
}

.logininput {
          background-color: #F5F5F5;
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #646464;
          font-size: 11px;
          width: 160px;
          border: 1px inset #F5F5F5;
          padding: 2px;
          margin-left: 4px;
}

.searchinput {
          background-color: #FFFFFF;
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #0f5475;
          font-size: 11px;
          WIDTH: 130px;
}

.textarea {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #0f5475;
          font-size: 11px;
          width: 230px;
}

.input {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #0f5475;
          font-size: 11px;
          width: 230px;
}

.select {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #0f5475;
          font-size: 11px;
}

.setperpageselect {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #0f5475;
          font-size: 11px;
}

.categoryselect {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          color: #0f5475;
          font-size: 11px;
}

.dropdownmarker {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          background-color: #EEEEEE;
          color: #136c99;
          font-size: 11px;
}

.button {
          font-family: Tahoma,Verdana,Arial, Helvetica, sans-serif;
          background-color: #F3F2F2;
          color: #555;
          border: 1px border: 1px #000000;;
          font-size: 10px;
          font-weight: bold;
}

.catbgcolor {
          background-color: #EFEFEF;
}

.maincat {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          font-size: 11px;
          font-weight: bold;
}

.subcat {
          font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
          font-size: 10px;
          font-weight: bold;
}

.imagerow1 {
          color: #4B4B4B;
          padding: 7px;
}

.imagerow2 {
          background-color: #EFEFEF;
          color: #4B4B4B;
}

.commentrow1 { background-color: #e1e1e1; color: #4B4B4B; }

.commentrow2 { background-color: #efefef; color: #4B4B4B; }

.commentspacerrow { background-color: #d1d1d1; color: #4B4B4B; }

.commenttextarea { font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; color: #0f5475; font-size: 11px; width: 270px; }

.commentinput { font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; color: #0f5475; font-size: 11px; width: 270px; }

.pic {
             filter: progid:DXImageTransform.Microsoft.Shadow(color=#000000,direction=135, strength=1)    progid:DXImageTransform.Microsoft.Alpha(opacity=100);
             border: 0;
}

.okvir {
             width: 760px;
}

.left {
             background-color: #CFCFCF;
}

.thumb {
             border: 1px dotted #000000;
             cursor: hand;
             height: 200px;
             background-color: #F5F5F5;
}

.thumb2 {
             border: 1px solid #000000;
             background-color: #E0E0E0;
             height: 200px;
}

#categories a {
             display: block;
             padding-left: 7px;
             padding-top: 1px;
             padding-bottom: 1px;
             color: #172033;
             padding-right: 3px;
             border: 1px solid #CFCFCF;
}

#categories a:hover {
             background-color: #E2E2E2;
             color: #C02105;
             text-decoration: none;
             border: 1px solid #9A9A9A;
}

.main {
             border-bottom: 1px solid #000000;
             border-top: 1px solid #000000;
}

.box_back {
           color: #4B4B4B; padding: 2px;
}


Please help because I really don't know what's the problem.  :cry:

Forgot to post my gallery links:   :oops:
NEW: http://www.cs-media.org/gallery2  ----> new installation
OLD: http://www.cs-media.org/gallery ---> LOTS of problems here

15
Discussion & Troubleshooting / Re: order category by name
« on: April 02, 2005, 03:11:47 AM »
Is there a way to sort only subcats automatically?

I've also been searching for this solution but haven't been successful. :( Please help!

Pages: [1] 2