• [MOD] Media sites v1.11.1 (2010-12-22) 5 0 5 1
Currently:  

Author Topic: [MOD] Media sites v1.11.1 (2010-12-22)  (Read 349360 times)

0 Members and 2 Guests are viewing this topic.

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #75 on: July 15, 2009, 06:40:04 PM »
What I mean is that you change the thumbail youtube.gif, and others. Gif, as shown by thumbail website youtube.
Youtube.gif appears not, but a photo of the video in thumbail.

Link Photo:
http://img80.imageshack.us/img80/1613/fullposteo.jpg

Ah vice versa, I guess  8)

The thumbnails don't appear, instead the standard-Gifs represents the video.

Hmm... Actually I don't know! Do the specified folders have the correct CHMOD-rights?

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #76 on: July 15, 2009, 06:42:39 PM »
Look new image

http://img212.imageshack.us/img212/8717/videosandimages.jpg

Do you understand me?

HELP!!!!!!!!!!!!!

Who help me? Attached files, plis..! :(
« Last Edit: July 16, 2009, 12:52:29 AM by neverkas »
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #77 on: July 16, 2009, 05:00:39 AM »
Since version 1.5 the mod automatically creates thumbnails for newly added media sites, but only via members' upload form.
« Last Edit: July 16, 2009, 06:49:10 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #78 on: July 16, 2009, 05:10:54 AM »
I did version v1.5.6 new
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #79 on: July 16, 2009, 05:27:09 AM »
No, he tried to say, that thumbnails will be created ONLY via the member's uploadform, NOT via the admin-panel.... and everything SINCE version 1.5.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #80 on: July 16, 2009, 06:56:09 AM »
No, he tried to say, that thumbnails will be created ONLY via the member's uploadform, NOT via the admin-panel.... and everything SINCE version 1.5.
They didn't even mention ACP
from member's upload form it's working fine, you can test it here
« Last Edit: July 16, 2009, 09:01:59 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #81 on: July 16, 2009, 03:18:20 PM »
V@no help, please.  :D
My problem is:
* In {new_images} doesn't appears the new photos.
* In {new_images2} appears the new photos and videos



I have put the number 3 in ACP, of the modification "admin/setting.php" and  "lang/spanish/admin.php"


I wont it to appear like this:
{new_images} only photos
{new_images2} only videos

I have modified the file "Index.php", because "Schnick und Schnack" code is going well.
I have the same but mine doesn't function well, whats the problem?

My index.php  original modified width http://www.4homepages.de/forum/index.php?topic=25131.0
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: index.php                                            *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.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.                              *
 *                                                                        *
 *************************************************************************/

$templates_used 'home,category_bit,whos_online,thumbnail_bit';
$main_template 'home';

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/stats.php'); 
$user_access get_permission();

if (isset(
$HTTP_GET_VARS['go']) || isset($HTTP_POST_VARS['go'])) {
  
$template = (isset($HTTP_GET_VARS['go'])) ? get_basefile(stripslashes($HTTP_GET_VARS['go'])) : get_basefile(stripslashes($HTTP_POST_VARS['go']));
  if (!
file_exists(TEMPLATE_PATH."/".$template.".".$site_template->template_extension)) {
    
$template "";
  }
  else {
    
$main_template $template;
  }
}
else {
  
$template "";
}
include(
ROOT_PATH.'includes/page_header.php');

if (!empty(
$template)) {
  
$clickstream "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_"" "ucfirst($template));
  
$site_template->register_vars("clickstream"$clickstream);
  
$site_template->print_template($site_template->parse_template($main_template));
  include(
ROOT_PATH.'includes/page_footer.php');
}

$cache_id create_cache_id(
  
'page.index',
  array(
    
$user_info[$user_table_fields['user_id']],
    isset(
$user_info['lightbox_image_ids']) ? substr(md5($user_info['lightbox_image_ids']), 08) : 0,
    
$config['template_dir'],
    
$config['language_dir']
  )
);

if (!
$cache_page_index || !$content get_cache_file($cache_id)) {
// Always append session id if cache is enabled
if ($cache_page_index) {
  
$old_session_mode $site_sess->mode;
  
$site_sess->mode 'get';
}

ob_start();

//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
$categories get_categories(0);
if (!
$categories)  {
  
$categories $lang['no_categories'];
}
$site_template->register_vars("categories"$categories);
unset(
$categories);

//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"has_rss"   => true,
  
"rss_title" => "RSS Feed: ".format_text($config['site_name'], 2)." (".str_replace(':'''$lang['new_images']).")",
  
"rss_url"   => $script_url."/rss.php?action=images"
));

$imgtable_width ceil(intval($config['image_table_width']) / $config['image_cells']);
if ((
substr($config['image_table_width'], -1)) == "%") {
  
$imgtable_width .= "%";
}

$additional_sql "";
if (!empty(
$additional_image_fields)) {
  foreach (
$additional_image_fields as $key => $val) {
    
$additional_sql .= ", i.".$key;
  }

$sql "SELECT  setting_value as cat_rand_pic FROM ".SETTINGS_TABLE." WHERE setting_name = 'cat_rand_pic'";
    
$result $site_db->query($sql); $row mysql_fetch_object($result);
      
$cat_in $row->cat_rand_pic;
$cat_total str_replace(",","','",$cat_in);
//--------------------------------------- Start Total Hits Foto --------------------------------------------------
  
$sql "SELECT SUM(image_hits) AS sum
             FROM "
.IMAGES_TABLE."
             WHERE cat_id IN ('
$cat_total')";
  
$row $site_db->query_firstrow($sql);
  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_hits_foto "".$lang['total_hits_foto']."<B> ".$row['sum']."</B>\n";
  
$site_template->register_vars("total_hits_foto"$total_hits_foto);
//--------------------------------------- End Total Hits Foto -------------------------------------------------- 
$sql "SELECT SUM(image_hits) AS sum
            FROM "
.IMAGES_TABLE."
            WHERE cat_id NOT IN ('
$cat_total')";
  
$row $site_db->query_firstrow($sql);
  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_hits_video "".$lang['total_hits_video']."<B> ".$row['sum']."</B>\n";
  
$site_template->register_vars("total_hits_video"$total_hits_video);
//--------------------------------------- End Total Hits Video --------------------------------------------------
$num_new_images $config['image_cells'];
$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 c.cat_id = i.cat_id AND i.cat_id NOT IN ("
.get_auth_cat_sql("auth_viewcat""NOTIN").")AND i.cat_id IN (".$cat_in.")
        ORDER BY i.image_date DESC
        LIMIT 
$num_new_images";
$result $site_db->query($sql);
$num_rows $site_db->get_numrows($result);

if (!
$num_rows)  {
  
$new_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  
$new_images .= $lang['no_new_images'];
  
$new_images .= "</td></tr></table>";
}
else  {
  
$new_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){
    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$new_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    
show_image($image_row);
    
$new_images .= $site_template->parse_template("thumbnail_bit");
    
$new_images .= "\n</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$new_images .= "</tr>\n";
      
$count 0;
    }
  } 
// end while

  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$new_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$new_images .= "</tr>\n";
    }
  }
  
$new_images .= "</table>\n";
// end else

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

//--------------------------------- Start cat select pic2 ---------------------------------
//$num_new_images = $config['image_cells'];

$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 c.cat_id = i.cat_id AND i.cat_id NOT IN ("
.get_auth_cat_sql("auth_viewcat""NOTIN").")AND i.cat_id NOT IN (".$cat_in.")
        ORDER BY i.image_date DESC
        LIMIT 
$num_new_images";
$result $site_db->query($sql);
$num_rows2 $site_db->get_numrows($result);

if (!
$num_rows2)  {
  
$new_images2 "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  
$new_images2 .= $lang['no_new_images'];
  
$new_images2 .= "</td></tr></table>";
}
else  {
  
$new_images2 "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){
    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$new_images2 .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$new_images2 .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    
show_image($image_row);
    
$new_images2 .= $site_template->parse_template("thumbnail_bit");
    
$new_images2 .= "\n</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$new_images2 .= "</tr>\n";
      
$count 0;
    }
  } 
// end while

  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$new_images2 .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$new_images2 .= "</tr>\n";
    }
  }
  
$new_images2 .= "</table>\n";
// end else

$site_template->register_vars("new_images2"$new_images2);
unset(
$new_images2);
//--------------------------------- End cat select pic ---------------------------------

$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream
));
$site_template->print_template($site_template->parse_template($main_template));

$content ob_get_contents();
ob_end_clean();

if (
$cache_page_index) {
  
// Reset session mode
  
$site_sess->mode $old_session_mode;

  
save_cache_file($cache_id$content);
}

// end if get_cache_file()

echo $content;

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

   
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #82 on: July 16, 2009, 04:59:02 PM »
Unless you place your videos in a separate category there is no way of knowing if an item is actually an image or a video.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #83 on: July 17, 2009, 02:21:53 PM »
???
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #84 on: July 19, 2009, 03:38:56 AM »
Neverkas, I've alread told you, that "{new_images2}" (the "newest videos"-box in the home) has nothing to do with the v@no's script. Instead it's a tiny modification from rembrandt, and so far as I know, he tried to help you many times and made wright decisions. Here there's noone speaking VERY good english, but yours is really really bad. We would like to help you, but you need the basic "english" vocabulary and a tiny understanding of php. It's nothing personal or against you, but please take a minute to think about it.

@V@no Do you know how to add a german MTV Video?
« Last Edit: July 19, 2009, 05:13:31 PM by Schnick und Schnack »

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #85 on: July 20, 2009, 03:18:48 AM »
I understand php time not long ago I understand but it. If I am writing here, because V@NO knows much and wanted that it help me. Which is the problem?

That can only by written by IM ( Personal Message )  :wink:
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #86 on: July 20, 2009, 03:32:10 AM »
@neverkas:
You'll need create a separate category with your media site videos. That is the only way you can have video-only section.


@V@no Do you know how to add a german MTV Video?
Link please
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #87 on: July 20, 2009, 04:28:44 AM »

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #88 on: July 20, 2009, 08:24:07 AM »
hey,,this is a graet mod... but can we add our own video player to this and cant we host the vdieos in our site and play it using the vidoe player///

that will be cooll... we can uplod videos from the admin panel and users can viwe it.just like a music sharing web site... and the uer can either download it in HD , or smaller format..

what you guys think ab this ?
I'm Back :)

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #89 on: July 20, 2009, 10:59:34 PM »
Ok, I dont need that :?
You can changed the flash player?
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!