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
16
Mods & Plugins (Releases & Support) / Re: [MOD] Photo Preview Hack
« on: July 10, 2009, 10:20:26 PM »
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

17
Hello guys, 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

18
Mods & Plugins (Releases & Support) / Re: [MOD] Photo Preview Hack
« on: March 22, 2009, 10:34:32 PM »
Hello people, it is possible to display the thumbnails of images in vertical format as example below?

Thanks for the help



Example:

ThumbThumb
ThumbThumb
ThumbThumb
ThumbThumb
ThumbThumb

19
Mods & Plugins (Releases & Support) / Re: [Mod] User upload limits
« on: October 08, 2008, 10:30:18 PM »
do not get it could give an example of how to do this in the source code? :wink:

20
Hello, someone could help me, I would like to add index.php page in a new code to display only the photos a new category of Specifies example: select * from 4images_images where cat_id = 'x'

In other words I want to put more pictures on the main page, but it has to be a specific category.

Or maybe change this code to display only the category chosen

Who knows how to do this?

I am grateful for the help
 :lol:

//-----------------------------------------------------
//--- 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;
  }
}
$num_new_images $config['image_cells']*3;
$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.image_date >= "
.(time() - 60 60 24 $config['new_cutoff'])."
ORDER BY RAND()
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);

21
Thank you for your Vano always help.  :D

It was great!! :P :thumbup:

22
Mods & Plugins (Requests & Discussions) / Re: Mod More thumb in details.php
« on: September 25, 2008, 02:12:29 AM »
Thank you all, I used the module below and it worked. :lol:

23
Hello Vano thanks for your help!
Tackling the mine site with your help.


In the same module is possible I use a function that validate the user's character?
Example 1: ok paulobrasil can record in the database
Example 2: paulo&brasil (& invalid characters) do not let record in the database

24
Hello boys, I would like to know if a module where I can control the amount of letters that the user types in time to make him the register on the site.
Example: the user would have to enter at least 5 letters to make the register and no more than 12 letters.

25
Mods & Plugins (Requests & Discussions) / Mod More thumb in details.php
« on: September 18, 2008, 08:00:34 PM »
Hello someone knows where I used the module on this site.
I want to display 4 thunb page in detail below the photo.

Example: http://souwar.yaacoub.com/details.php?image_id=35748

26
Assuming you are using 4images v1.7.2 or newer. In login.php find:
Code:
  if ($site_sess->login($user_name, $user_password, $auto_login)) {

Insert BELOW:
Code:
    redirect($site_sess->url(ROOT_PATH."member.php?action=editprofile"));
------------------------------------------------------------------------------------------------------------------------------------------------
Hello Vano you for this module, it will be very useful for users of my country because the laws.

I need one more help to implement more about this module.
I use version 1.7.6

I need that after the user login it is redirected to a page with some information, after he read this page and agree he should click button agreeing with what this writing there.

When they click on the site will update the table "4images_user" with information on more in a field that created called "user_communicate" after this he would be redirected to index.php.
Next visit the user back to the site, where the "user_communicate" is marked with "yes" he vera again this message.

Example: If the same field user_communicate yes, redirect index.php
if not redirect page_communicate.php and update table 4iamges_users September field user_communicate "yes" or "no"


This is possible?  :D

I am grateful for the help.

27
Mods & Plugins (Requests & Discussions) / Re: Mod Limit of comment by photos
« on: September 16, 2008, 09:16:40 PM »
Vano once again thanks for your excellent help.  :D

I apologise for using the same topic to two questions.  :oops:

 :idea:
I will create a new topic for this question, this module will be very good
to the laws of my country.

28
Mods & Plugins (Requests & Discussions) / Re: Mod Limit of comment by photos
« on: September 16, 2008, 07:12:35 PM »
Vano!

Thank you for help.

You are a great staff, his heart is very good.

I will take this same topic and asks you if it is possible the following configuration.

I like that after making the user log into the site, they were directed to the page of member_edite_profile.

Is it possible?

29
Mods & Plugins (Releases & Support) / Re: [Mod] User upload limits
« on: September 15, 2008, 08:18:05 PM »
sorry, localhost is your local computer's address, only you, can access it. Provide a screenshot.

Hello Vano.

See the screen below!
I am with the module installed and it does not work properly in version 1.7.6.

This will only work if I choose a category prior to upload.

30
Mods & Plugins (Requests & Discussions) / Mod Limit of comment by photos
« on: September 15, 2008, 07:04:52 PM »
Hello boys!
I am stating put a limit on comments by photos.
This would be possible?

EX: for each photo posted in the gallery it would have a limit of 25 comments, after 25 comments would not be possible to make more comments on the picture.

I am grateful if they can help.
 :D

Pages: 1 [2] 3 4 5