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

Pages: 1 [2] 3 4
16
Good day to all.

All work fine, but show me next error: Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in C:\Users\***\Desktop\Server\root\global.php on line 28

I can`t join to my admin control panel..

Thanks!

17
Discussion & Troubleshooting / How users cheat view on his photos???
« on: January 21, 2011, 08:06:17 PM »
Very very important question... How users cheat view on his photos on my gallery??? Is there any protection???

Many thanks

18
If any one have the same problem, (Fatal error: Cannot redeclare geoip_country_code_by_name() in)

Use this topic for resolve your problem  :wink:

19
Programming / How to except from index?
« on: December 02, 2010, 04:06:50 PM »
What i need to do, that to exept from robots scan, and sitemap generation, urls? (i.e. postard pages)?

Thanks!

20
Programming / How can i get logged in name
« on: November 07, 2010, 10:07:50 AM »
Help me please. I need to do $user_name that to show current user name from DB. How can i extract this? Many thanks

21
Hello. I need little mod, that to users may send e-mail to images owners, from details page. This mod must be same on MOD Contact Form.

If this is not difficults, help me to do this.

Many Thanks!

22
Discussion & Troubleshooting / Search request doesn`t give results
« on: October 24, 2010, 09:15:24 AM »
Hello,

Why search request doesn`t give me results if additional field have this value: Minneapolis (St. Paul Int.) (Wold-Chamberlain Field) (MSP/KMSP)
If field too short, work fine

In my constants.php set:

Code: [Select]
define('MAX_SEARCH_KEYWORD_LENGTH', 900);
thanks

23
Discussion & Troubleshooting / Error in lightbox page
« on: October 17, 2010, 12:23:37 PM »
I got next error:

An unexpected error occured. Please try again later.

Code: [Select]
Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_active, i.image_media_file, i.image_thumb_file, c.cat_name, u.user_name
        FROM (5images_images i,  5images_categories c)
        LEFT JOIN 5images_users u ON (u.user_id = i.user_id)
        WHERE image_active = 1 AND image_id IN () AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0)
        ORDER BY image_date DESC, i.image_id DESC
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 ') AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0)
        ORDER BY image_date DE' at line 4

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Users\Andrew\Desktop\skyphotos.local\www\includes\db_mysql.php on line 116

This is line in lightbox:

  $sql "SELECT 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".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
          FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
          LEFT JOIN ("
.USERS_TABLE." u) ON (".get_user_table_field("u.""user_id")." = i.user_id)
          WHERE i.image_active = 1 AND i.image_id IN (
$image_id_sql) AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat""NOTIN").")
          ORDER BY i."
.$config['image_order']." ".$config['image_sort'].", i.image_id ".$config['image_sort']."
          LIMIT 
$offset$perpage";
  
$result $site_db->query($sql);
  
$num_rows $site_db->get_numrows($result);


This is line in db_mysql:

  function get_numrows($query_id = -1) {
    if (
$query_id != -1) {
      
$this->query_id $query_id;
    }
    return 
mysql_num_rows($this->query_id);
  }


What is the problem?

24
Mods & Plugins (Requests & Discussions) / Today total hits
« on: October 13, 2010, 03:53:49 PM »
Good evening...

Is it possible to set time in this code, that to show today total hits?

$sql "SELECT SUM(image_hits) AS summ
    FROM "
.IMAGES_TABLE;
$row $site_db->query_firstrow($sql);
   
4.  
$sum 
= (isset($row['summ'])) ? $row['summ'] : 0;
$total_hits_today "<B> ".$row['summ']."</B>\n";

$site_template->register_vars("total_hits_today"$total_hits_today);
unset(
$total_hits_today);


I think, that we need to add a new field to the DB?

May anyone help me with this? Many thanks!

25
Discussion & Troubleshooting / 1.7.8 Problems
« on: October 12, 2010, 12:49:59 PM »
Hi... After updating to 1.7.8 i have this errors:

I have installed this: http://www.4homepages.de/forum/index.php?topic=26833.0 After migration keywords, all spaces changed by "," - How to fix this???? How to do spaces instead "," again?

Please help me!!!! What to do???



26
Discussion & Troubleshooting / I got error. What to do??
« on: October 10, 2010, 10:07:28 PM »
Hi to all...

When i do rebuild search index, thiss give me many many errors..

Code: [Select]
Processing image Russia, ID 9 ...
DB Error: Bad SQL Query: INSERT INTO 5images_wordmatch (image_id, word_id, name_match, desc_match, keys_match, reg_match, airline_match, military_match, city_match, serial_match, country_match, aircraft_match, aircraftname_match, cityalt_match, aircraftnamealt_match, airlinealt_match) SELECT DISTINCT 9, word_id, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 FROM 5images_wordlist WHERE word_text = 'Russia'
Duplicate entry '9-137' for key 1

This error was shawn after installation MODs exif and iptc... Now i delete this mods, but error not solved! What to do? Help please!

27
Mods & Plugins (Requests & Discussions) / Is it MOD? or...
« on: September 25, 2010, 02:16:51 PM »
Please look on the member "Vincent" signature. Is this a MOD? If yes, what`s name of this MOD? http://www.4homepages.de/forum/index.php?action=profile;u=5907

Thanks

28
Templates & Styles (Requests & Discussions) / Help me to hide field
« on: September 22, 2010, 03:28:55 PM »
Hi all.

I need to hide this field from users. Only show for Admins. How to do it?

Code: [Select]
                            {if admin}
                            <tr>
                         <td valign="top" align="left" bgcolor="#e7e7e7"><font size="2" face="verdana"><b>{lang_keywords_textarea}</b></font><br><font size="1" face="arial">{lang_type_keywords}</font></td>
                             <td align="left" bgcolor="#e7e7e7"><table border="0" cellpadding="2" cellspacing="0"><tr><td><font size="1" face="verdana"><textarea name="image_keywords" style="font-family: Verdana,Helvetica,Arial; font-size: 8pt; width: 200px; height: 50px;">{image_keywords}</textarea></font></td></tr></table></td>
                            </tr>
                            {endif admin}

This is not work!

29
Programming / How to delete path of the link??
« on: September 20, 2010, 08:44:15 AM »
Hi all. Full size of image is not showing for all. Right click and properties show link as: http://mydomain/photo/russia/224th-flight-unit//data/media/1/1d79652285a7e29009bad34a28ca0f6a.jpg
How can i delete path "photo/russia/224th-flight-unit/". Which file i need to change?

Many thanks!

30
Programming / Help me with code please...
« on: September 15, 2010, 06:33:11 PM »
Good day

I have this code

	
$sql "SELECT SUM(image_hits) AS sum 
          FROM "
.IMAGES_TABLE;
  
$row $site_db->query_firstrow($sql);

  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_hits "".$lang['total_hits']."<B> ".$row['sum']."</B>\n";
  
  
$site_template->register_vars("total_hits"$total_hits);
unset(
$total_hits);


But this code extract hits from all database... I need to extract total hits of one user.

Pages: 1 [2] 3 4