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

Pages: 1 [2]
16
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: July 11, 2006, 02:42:37 AM »
Can someone please help me figure out how to make this work in details.php?

See my post above.  I can't figure out how to randomize the pics without randomizing the main photo on the page.   :?

Thanks guys.

17
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: July 11, 2006, 02:39:12 AM »
Ok I have tried everything to get this to work lol. I am not that great at coding can some one help me fix these tables
Follow the KISS rule on this.  You're making it too hard.  :)  The *easiest* way to do what you want is simply edit your home.html template.  Insert something like this right after your New Images table in home.html:
Code: [Select]

<br />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td>   
       <table width="100%"  border="0" align="center" cellpadding="4" cellspacing="0">
        <tr>
          <td class="head1">Random Pictures</td>
        </tr>
       </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td>{random_images}</td>
        </tr>
        </table>
     </td>
    </tr>
</table>
You will have to tweak the padding and spacing and width settings to fit perfectly, but if you're trying to accomplish this by editing index.php, you're making it too hard.   :wink:

18
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: July 08, 2006, 03:53:52 PM »
I have a question, I installed this mod on my site and it works well. The only thing I noticed is the area where is says (random Image) does not look like the box above it where it says (new Images) its a little different in size. Did I miss something or is this how its supposed to be?

www.vistawallpapers.ws
Your NEW IMAGES table looks like this:
Code: [Select]
   
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="head1" valign="top">New images</td>
</tr>
</table>

Your RANDOM IMAGES is wedged between table tags, like this:
Code: [Select]
</td>
</tr>
</table>
Random Images
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr class="imagerow1">
<td width="34%" valign="top">
Construct your RANDOM IMAGES table the same way you did the NEW IMAGES table and you'll be set.

=========
NOW... Can anyone help me with my question above?  I really need to display random images in display.php without randomizing the main image.  Please...  :)

19
Hi there,

i've used this mod now for some months without any issues. I've used the Text-Annotation only. Today i wanted to change it to the Image-Annotation.
I made a Logo, saved it as .png on my server and configured the mod.

When i upload a picture now, there is now annotation added. If I use the BatchAnnotate in Admin CP it say that the picture has successfully annotated, but i still can't see the logo...


What did I wrong?

Regards
Just out of curiosity, did you double-check your transparency settings?  If the image is too transparent, you might not be seeing it...  Just a thought. 

BTW... Anyone have an answer to my earlier question?
Quote
Just looking for clarification.

When using this mod along with V@no's Check New Images mod (http://www.4homepages.de/forum/index.php?topic=4754.0) and Show Original Image mod (http://www.4homepages.de/forum/index.php?topic=3236.0), I'm seeing that only the thumbs and the "detail" pictures are being watermarked.  The "BIG" pictures are not.  Is this the way it is supposed to work "out of the box"?  Is there any way to also watermark the "BIG" photos?  Thanks!

20
Hey guys... I've been playing around with this quite a bit and LOVE IT!  But I'm curious what would have to be done to make this work on the ecard pages?  I've added the details.html stuff into the postcards templates, and can't get it to work.  Any ideas what I'm missing?

21
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: July 05, 2006, 07:03:10 AM »
I absolutely love this mod!  Thanks to everyone who has worked to build and support it.

I have a seemingly simple question about how to include random images on details.php.  I already have it working on index.php and categories.php, but details.php is giving me trouble.  Here's the code I've pasted into details.php:
Code: [Select]
//------------------------------------
//------- Random Images --------------
//------------------------------------
$num_new_images = 10;
$cat_in = array(119,112); //list of category ids // *** TO FILTER RANDOM IMAGES ***

$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 IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ",$cat_in).")
       ORDER BY RAND()
       LIMIT $num_new_images";
// end new
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
$random_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
//  $random_images .= $lang['no_new_images'];
$random_images .= "</td></tr></table>";
}
else  {
$random_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++ % 2 == 0) ? 1 : 2;
     $random_images .= "<tr class=\"row1\">\n";
   }
   $random_images .= "<td width=\"".$imgtable_width."\">\n";

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

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


$site_template->register_vars("random_images", $random_images);
unset($random_images);
The problem is that the code randomizes all the photos and then displays the wrong primary image... {image}.  The random pics show up just perfectly, but the {image} is also randomized.

I'm a total PHP hack (very dangerous)  8O, and I've tried many things to fix it, but without any luck so far.

Any ideas how to make this mod compatible with details.php?

22
Just looking for clarification.

When using this mod along with V@no's Check New Images mod (http://www.4homepages.de/forum/index.php?topic=4754.0) and Show Original Image mod (http://www.4homepages.de/forum/index.php?topic=3236.0), I'm seeing that only the thumbs and the "detail" pictures are being watermarked.  The "BIG" pictures are not.  Is this the way it is supposed to work "out of the box"?  Is there any way to also watermark the "BIG" photos?  Thanks!

Pages: 1 [2]