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 - Sun Zaza

Pages: 1 2 3 4 [5] 6 7
61
Hi,

I have a serious problem with my gallery.
I will explain:

I have 2 galleries online:

website1 & website2

Because I did a lot improvment in website1, I wanted to use all the new changing on website2.

I uploaded all the files and folders of website1 to the website2 (Except Data folder). Off course I updated the config.php.


I got the website2 to work, but I cannot see any images on the gallery. 4images cannot read the images & the category table. The rest yes. Check please the stats mod:

Stats
Total images: 0
Total categories: 0
Total users: 2086
Total Hits: 640523
Total comments: 179
Total votes: 1823
Total Downloads: 3809

How can I solve this problem.

Many thanks in advance for any support from you guys.

62
Hello,

I have an additional page with all the images of my gallery from all the categories. I call it: ImagesList.

I already have the imageslist_sort_dropdown_form and it working very fine.

But I have a problem with: {paging} and {paging_stats}. It doesn't work at all.

Because I am not a programmer, I tried to see how the paging on the category page works. This is my code:

Code: [Select]
<?php
$main_template 
'videolist';


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



//-----------------------------------------VideoList--------------------------------------------------------------------
$additional_sql "";
  
$additional_sql_array = array();
  if (isset(
$additional_user_fields) && is_array($additional_user_fields) && !empty($additional_user_fields)) {
      foreach (
$additional_user_fields as $key => $val) {
          
$additional_sql ", u." $key;
          
$additional_sql_array[] = $key;
      }
  }
$additional_sql "";
if (!empty(
$additional_image_fields)) {
  foreach (
$additional_image_fields as $key => $val) {
    
$additional_sql .= ", i.".$key;
  }
}
 



//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

$order_by "image_hits $sort_order";
  
$sql "SELECT COUNT(image_id) AS images
            FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
            WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN ("
.get_auth_cat_sql("auth_viewimage").") 
            
            "
;
   
$result $site_db->query_firstrow($sql);
   
$num_images $result['images'];
   
$site_db->free_result();
   
$num_rows_all = (isset($num_images)) ? $num_images 0;
   
$link_arg $site_sess->url(ROOT_PATH."videolist.php?action=hits");
   include_once(
ROOT_PATH.'includes/paging.php');

   if (
$num_images >= $max_picture) { 
      
$num_images $max_picture
   }
   else { 
        
$num_images == $result['images']; 
   }

   
$getpaging = new Paging($page$picture_per_page$num_images$link_arg);
   
$offset $getpaging->get_offset();
   
$site_template->register_vars(array(
      
"paging" => $getpaging->get_paging(),
      
"paging_stats" => $getpaging->get_paging_stats()
   ));

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++






$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_speler, i.image_youtube, 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, i.image_postcards".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email")."
        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.cat_id IN ("
.get_auth_cat_sql("auth_viewcat").")
GROUP BY i.image_id
ORDER BY "
.$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort']."
        LIMIT 
$offset$perpage";


   
$result $site_db->query($sql); 
$num_rows $site_db->get_numrows($result);





if (!
$num_rows)  { 
   
$videolist "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\"><tr><td>".$lang['geen_events']."</td></tr>"

else  {
    
$videolist "<table class=\"head2\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
    <tr>
    <td></td>
    <td><b>Thumb</b></td>
    <td><b>Naam</b></td>
    <td><b>Speler</b></td>
    <td><b>Categorie</b></td>
    <td><b>Duur</b></td>
    <td><b>Bekeken</b></td>
    </tr>
    "
;
   
   
   
$i 01;
   while (
$image_row $site_db->fetch_array($result)){  
  

   
   
$videolist .= "<tr>

   <td>"
.$i++."</td>
   <td><a href=\""
.$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"><img src=\"data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file']."\" width=\"48\" height=\"32\" border=\"0\"/></td>
   <td><a href=\""
.$site_sess->url(ROOT_PATH."details.php?image_id=".$image_row['image_id'])."\">".$image_row['image_name']."</a></td>
      <td>"
.$image_row['image_speler']."</a></td>

   
   <td><a href=\""
.$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\">".format_text($cat_cache[$image_row['cat_id']]['cat_name'])."</a></td>
   
   <td><b>"
.$image_row['image_duration']."</b></td>
   <td>"
.$image_row['image_hits']."</td>
   
   
</td></tr>

   "
;                   
}      

  
$videolist .= "</table>\n";
  
$site_template->register_vars("videolist"$videolist); 
unset(
$videolist);
//---------------------------------------------------------------------------- 
  
 

 
 

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



//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------





$site_template->register_vars(array(
  
"clickstream" => $clickstream,
  
"user_name" => $user_row[$user_table_fields['user_id']],
  
"lang_title_videolist_images" => $lang['title_videolist_images'],
   
"cat_name" => format_text($cat_cache[$cat_id]['cat_name'], 2),

));
$site_template->print_template($site_template->parse_template($main_template));

include(
ROOT_PATH.'includes/page_footer.php');

?>



Could anyone help me please? I really gave it a try for more that 6 hours.


I appreciate any help,


63
Discussion & Troubleshooting / Problem with {thumbnail} on the details.html
« on: December 16, 2008, 09:22:44 PM »
Hello,

I have a problem with the {thumbnail} on the details.html.

The thumb appears without the Border colour I set up for all the thumbnail on my site. That means I have for example a Border colour RED for all the thumb, but only {thumbnail} appears with a black border color.

How can I solve this very old issue?

Thanks in advance,

64
Hello,

How can add the shadow effect on the Next/Previous thumbnails in details.html?


I already use this shadow mod on my site:

http://www.4homepages.de/forum/index.php?topic=5106.0

But it does not effect the Next/Previous thumbnails in details.html.

I appreciate any help,

65
Hi,

I am wandering if someone knows how to add for example image_name on the thumbnail.

On youtube thumb you find always the video-run-time in the right bottom corner.

I looked in the youtube code and I find this code:

Code: [Select]
<DIV class=video-time><SPAN
      id=video-run-time-l42kAtvetMI>....

Have anyone any Idea how to do that? I believe they are using a javascript code, I am not sure.

Many thanks in advance,

66
Hi all,

I have a request:

I have an additional page on my gallery with a list of all the images. Something like:

Image name          Description          hits          Category

I have only a problem with the Category name. I am getting only one category name.

This is the code of category:
Code: [Select]
<td><a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\">".format_text($image_row['cat_name'])."</a></td>
Can you help please?

Here is the code of the additional  page:


Code: [Select]
<?php
$main_template 
'videolist';


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

//-----------------------------------------VideoList--------------------------------------------------------------------
$additional_sql "";
  
$additional_sql_array = array();
  if (isset(
$additional_user_fields) && is_array($additional_user_fields) && !empty($additional_user_fields)) {
      foreach (
$additional_user_fields as $key => $val) {
          
$additional_sql ", u." $key;
          
$additional_sql_array[] = $key;
      }
  }
$additional_sql "";
if (!empty(
$additional_image_fields)) {
  foreach (
$additional_image_fields as $key => $val) {
    
$additional_sql .= ", i.".$key;
  }
}
 

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, c.cat_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, i.image_postcards".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email")."
        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.cat_id IN ("
.get_auth_cat_sql("auth_viewcat").")
GROUP BY i.image_id
ORDER BY "
.$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort']."
"
;
        
$result $site_db->query($sql); 
$num_rows $site_db->get_numrows($result);



if (!
$num_rows)  { 
   
$videolist "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\"><tr><td>".$lang['geen_events']."</td></tr>"

else  {
    
$videolist "<table class=\"head2\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
    <tr><td><b>Naam</b></td><td><b>Berwerekn</b></td><td><b>Verwijderen</b></td><td><b>Categorie</b></td><td><b>Duur</b></td><td><b>Youtube</b></td><td><b>Bekeken</b></td></tr>
    "
;
   
   
   
$i 1;
   while (
$image_row $site_db->fetch_array($result)){  
  

   
   
$videolist .= "<tr><td valign=\"top\" class=\"sortable\">".$i++."- <a href=\"".$site_sess->url(ROOT_PATH."details.php?image_id=".$image_row['image_id'])."\">".$image_row['image_name']."</a></td><td valign=\"top\"><a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=images.php%3Faction%3Deditimage%26amp%3Bimage_id%3D".$image_row['image_id'])."\" target=\"_blank\">Bewerken</a></td><td><a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=images.php%3Faction%3Dremoveimage%26amp%3Bimage_id%3D".$image_row['image_id'])."\" target=\"_blank\">Verwijderen</a></td>
  <td><a href=\""
.$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\">".format_text($image_row['cat_name'])."</a></td><td><b>".$image_row['image_duration']."</b></td><td><a href=\"".$site_sess->url("http://nl.youtube.com/watch?v=".$image_row['image_youtube'])."\" target=\"_blank\">".$image_row['image_youtube']."</td><td>".$image_row['image_hits']."</td>
   
   
</td></tr>
   "
;                   
}      

  
$videolist .= "</table>\n";
  
$site_template->register_vars("videolist"$videolist); 
unset(
$videolist);

?>

//----------------------------------------------------------------------------

67
Discussion & Troubleshooting / Add Admin_links under the thumbnail
« on: December 03, 2008, 11:14:32 AM »
Hi,

How can I add Admin_links in the thumbnail? I used {admin_links} under the thumbnail_bit.html, but without success.

I appreciate any help.


68
Hi,

I have already this field on my database: image_hot. I added it with this code: (ALTER TABLE 4images_images ADD image_hot TINYINT(1) DEFAULT '0' NOT NULL).

I want to have a button on my details page, so when the user like a picture, he can click on this button.

All what I want is when the user click on the button, the field image_hot will get a 1 (Instead of 0).

I know it is easy to code it, but I couldn't. :oops:

Any help is appreciated.

Many thanks in advance,

69
Hello,

My 4images site is hacked for more than 4 times in 2 months.

How can I protect my site? I do not have a lot of mods on my site. I tried also a new 4images site, but I got hacked again.


Any tips and advises are appreciated.

Thanks in advance,

70
Hello,

How can I make the upload URL (http://www.site.com/pic.jpg) in the admin (Add image) as default?

Because for some reasons I upload always the same pic to my gallery (My gallery is only for Youtube video), I want to make the upload URL as default.

Please see the attachemt to understand what I mean.

Many thanks in advance,

Cruxy

71
Hi,

In my gallery I have an additional filed {image_youtube} (Youtube mode). That means that the users can submit an Youtube code to my gallery.

How can I make sure that nobody can submit a duplicate code in member_uploadform.html. I mean that the user will get an error when he try to submit a duplicate code.

Many thanks in advance,

Cruxy

72
Discussion & Troubleshooting / Upload media OPTIONAL
« on: November 21, 2008, 10:51:59 AM »
Hi,

I am using my galery only for YouTube videos, so I do not need to upload any media to my galery except the thumb.

I want to make uploding the media Optional. (Afterwards I will delete it from the upload page).

How can I do that please?

Any help is appreciated.

73
Hi,

I got in all the pages of my gallery this error:

Parse error: syntax error, unexpected '$' in /hsphere/local/home...../.../..


I am sure that I did not change anything.

My 4images version is: 1.7.4
PHP version is: 4.4.8


I really need help please.


Many thanks in advance,

Cruxy


74
Hi,

How can I have a BBCODE editor (for comments) like on the site of mawenzi?

Check this example:
http://klick.kl.funpic.de/details.php?image_id=3857

Any help or idea's?
Cruxy

75
Hi everybody,

How can I use the search function on my gallery to search only in the name of the images?

For example:

I want all the image which the word 'RONALDINHO' exist only in the image name.

Thank you in advance,
Cruxy

Pages: 1 2 3 4 [5] 6 7