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

Pages: [1] 2 3 4 5
1
Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: June 09, 2011, 09:52:36 PM »
god idea

tks :) :) :) :) :) :)


Thanks for such a nice MOD.  8)

one request, can we control the number of rows and columns, not from ACP bcoz that changes the whole gallery i want to change number of rows and column for the similar images only..
In my case i've 4 rows with no columns in categories page, but in details page i want to show the similar images in 2 rows and 3 columns.
thanks.

To achive this you have to replace the $config['...']-variables with simple values and change the total numbers of displayed images.

So in details.php and only in the MOD's code find:
<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">
and replace e.g. with:
<table width='50%' border='0' cellpadding='2' cellspacing='4'>
This has to be done at 3 different places. Note: the values given are just examples, you are hard-coding html, adapt it to your needs.


Find:
if ($count == $config['image_cells']) {
Replace with:
if ($count == 2) {

Find:
$leftover = ($config['image_cells'] - $count);
Replace with:
$leftover = ($count);
2 is the number of rows.


At
if ($i_ids 4$i_ids 4;
set the maximum of displayed images. 2 rows and 3 colums will have 2x3=6 images. For your example change it to:
if ($i_ids 6$i_ids 6;

Good luck!

2
Hi Does anyone know how to answer this question? :?

Looking for a player to view videos in the format. Mp4

Thank you for if they can answer





Hello Vano,

Please could you tell how it is possible to use the same player to perform
videos in the format (. mp4)?
Mod: http://www.4homepages.de/forum/index.php?topic=23885.0

Thank you for your attention

How would the file which is inside the media folder?

Example: mp4.html





3
Hello Vano,

Please could you tell how it is possible to use the same player to perform
videos in the format (. mp4)?
Mod: http://www.4homepages.de/forum/index.php?topic=23885.0

Thank you for your attention

How would the file which is inside the media folder?

Example: mp4.html




4
Mods & Plugins (Releases & Support) / Re: [MOD] Left Gallery QuickList
« on: January 30, 2010, 08:05:21 PM »
Budduke Hi, very good this module!

excellent module, I was long looking for something for my site.

Please, how do I display the amount of images that category and if you have new images show (news)?

for exemple(

Cat 1 (165 video)
....Cat 1.1 (65 video) (news)
....Cat 1.2 (100 video) (news)
Cat 2 (458 photo)
....Cat 2(458 photo)



Thank you for your help

5
Vano Hello, thank you again for your great help!

god mod

6
Hello good day!

I would like to make an implementation on my site, is a simple change, but as I am not a guy who dominates php, so I ask for help from you all.

The change would be in order to display the thumb within categories.

Example
When I click on the category of videos I'd like 4images exhibited thumbnail_bit_videos the file (for custom sizes of thumbnail videos)

When I click on the category of pictures I'd like 4images exhibited the thumbnail_bit_photos (custom sizes for thumbnail pictures)

Example 2:
If image_media_file =.flv
response.write (thumbnail_bit_videos)
Else
response.write (thumbnail_bit_photos)
End IF


This is possible, or my logic is wrong?

Thank you all if they can help.



//-----------------------------------------------------
I think the change should be on this page.....................................................................................
//--- Show Images -------------------------------------
//--------------------------------------...................---------------
$site_template->register_vars(array(
  "has_rss"   => true,
  "rss_title" => "RSS Feed: ".format_text($cat_cache[$cat_id]['cat_name'], 2)." (".str_replace(':', '', $lang['new_images']).")",
  "rss_url"   => $script_url."/rss.php?action=images&amp;".URL_CAT_ID."=".$cat_id
));

$num_rows_all = (isset($cat_cache[$cat_id]['num_images'])) ? $cat_cache[$cat_id]['num_images'] : 0;
$link_arg = $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id);

include(ROOT_PATH.'includes/paging.php');
$getpaging = new Paging($page, $perpage, $num_rows_all, $link_arg);
$offset = $getpaging->get_offset();

$site_template->register_vars(array(
  "paging" => $getpaging->get_paging(),
  "paging_stats" => $getpaging->get_paging_stats()
));

$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 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.cat_id = $cat_id AND c.cat_id = i.cat_id
        ORDER BY ".$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);

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

    show_image($image_row);
    $thumbnails .= $site_template->parse_template("thumbnail_bit");

    $thumbnails .= "\n</td>\n";

    $count++;
    if ($count == $config['image_cells']) {
      $thumbnails .= "</tr>\n";
      $count = 0;
    }
  } // end while

  if ($count > 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover > 0) {
      for ($i = 0; $i < $leftover; $i++){
        $thumbnails .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $thumbnails .= "</tr>\n";
    }
  }
  $thumbnails .= "</table>\n";
} //end else
$site_template->register_vars("thumbnails", $thumbnails);
unset($thumbnails);

8
????? help please

9
Rembrandt thank you for your help!
 :lol: :D

Excellent module for use on site

I Love 4images

10
Mods & Plugins (Releases & Support) / [MOD] Latest 5 videos on Home-Site
« on: August 07, 2009, 12:54:46 AM »
Hi good evening, I would like to know how to select which showed in the last 5 home videos sent to the site.

Example: Select from where image_media_file = .flv

I want to display the thumb and the video link to view it.

Somebody could help me please!

11
Hello V@no, how do I change this function?
 
I would like the unregistered user could have access to view the thumbs up and when he click on the thumb to redirect the page to register, php


--------------------------------------



You can try this:

in categories.php find:
$cache_id create_cache_id(

Insert above:
if (!check_permission("auth_viewimage"$cat_id))
{
  
redirect("index.php?template=cat_error");
}


Then create a new template file cat_error.html and save it as templates/<your template>/cat_error.html

12
Mods & Plugins (Releases & Support) / Re: [MOD] Photo Preview Hack
« on: August 03, 2009, 04:12:20 PM »
Tank you Rembrandt!!!!! :P :P :P





Help please!!...

Quote
$t_template .= "<tr align=\"center\" valign=\"top\" style=\"border: 1px solid #004C75; background: #F1F1F1; padding: .1cm\">\n";
    } else {
    $t_template .= "<tr align=\"center\" valign=\"top\" style=\"border: 1px dashed #004C75; padding: .1cm\">\n";

test

mfg Andi

13
Mods & Plugins (Releases & Support) / Re: [MOD] Photo Preview Hack
« on: July 21, 2009, 05:16:54 PM »
Help please!!


this does not work!



Hi richtest,

in details.php
search:
Code: [Select]
    $t_template .= "<td align=\"center\" style=\"border: 1px solid #004C75; background: #F1F1F1; padding: .1cm\">\n";
    } else {
    $t_template .= "<td align=\"center\" style=\"border: 1px dashed #004C75; padding: .1cm\">\n";
replace with:
Code: [Select]
    $t_template .= "<td align=\"center\" valign=\"top\" style=\"border: 1px solid #004C75; background: #F1F1F1; padding: .1cm\">\n";
    } else {
    $t_template .= "<td align=\"center\" valign=\"top\" style=\"border: 1px dashed #004C75; padding: .1cm\">\n";


Kurt

14
podría cambiar esta tendencia a no mostrar la alerta?

Quiero que cuando el usuario hace clic en el pulgar se le redirige a una página register.php.

¿Es posible?

Gracias

15
Hello boys, opening this topic because I'm having trouble using this module.

My site has several videos by category and I am receiving the following error in response to other videos.

<script type='text/javascript' src='swfobject.js'></script>

<div id='mediaspace'>This div will be replaced</div>


<script type='text/javascript'>
  var s1 = new SWFObject('player.swf','ply','470','320','9','#ffffff');
  s1.addParam('allowfullscreen','true');
  s1.addParam('allowscriptaccess','always');
  s1.addParam('wmode','opaque');
  s1.addParam('flashvars','file=<?=urlencode("{media_src}")?>&autostart=true');
  s1.write('mediaspace');
</script>

What is the problem?

Please need help.

Thanks

Pages: [1] 2 3 4 5