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

Pages: 1 [2] 3 4 5 6
16
Find:
"media_src" => $media_src

replace:
"media_src" => substr($media_src, 1, (strlen($media_src)-1))

which file is this located in?

17
in templates/default/media/jpg.html

replace the code with this...

Kurt

Trying to use phpthumbs, but no luck..

I have the  phpthumbs directory in the root and 4images running in root/4_images right now.. - I  edited the jpg.html file in my media directory for my template with:

 <img src="/4_images/phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />


I have thumbs, but no images are showing.  should the phpthumbs/ above be something like ../phpthumbs/ ??


I am getting this error:  "//4_images/phpThumb/./data/media/22/(anyfilename).jpg" does not exist.

If I remove the '/', it shows nothing, just a filename

18
Figure it out?  I inserted the: <img src="phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />   

in the jpg.thml file as stated in some other threads, but cannot get it to show an image right now, but the thumbs are showing..


19
Trying to use phpthumbs, but no luck..

I have php thrumbs in my  /4_images directory, and edited the jpg.html file in my media directory for my template with:

 <img src="phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />

I have thumbs, but no images are showing.  should the phpthumbs/ above be something like ../phpthumbs/ ??

I cannot fine the media_src+$media_src as mentioned assuming it is in the details.html page of course.  Any help would be appreciated!



20


Here the code for the media/jpg.html:
Code: [Select]
<img src="./phpthumb/phpThumb.php?src={media_src}&w=800&h=600" border="0" alt="{image_name}" />
Size is here: 800x600


Kurt

what do I do with this code?

21
So, does anyone have a mod they found that automatically does this, ...

... yes ...
... but it seems, that my links are not from interest for you ... but this is my last hint ...
1. vers. : one image upload via ftp and 3 images are in your gallery (thumbnail, medium, original) by using checkimages in ACP ...
2. vers. : one image upload via uploadform in your gallery and 3 images are in your gallery (thumbnail, medium, original) ...
3. you can use 1.vers. and 2.vers. ... I do it ... and everyone can test it ...
4. you can show the large / original image in a extra window or use it for the download ...
5. and there are some more options ...
... end ...


I understand what you are saying I think.  You use 2 mods to accomplish your task, correct?

I use a upload mod that you can allow original images saved in 'big' folder..  This might be the same thing..

How about this:  When the details page loads the image, search to see if the same named image is in the 'big' folder, if so,  allow a 'display large image' clickable link right below the details image?  If not, no link will be show below the image. How easy would that search be to set up?

22
I like this MOD, however, a user can add a new category to ANY user and not just themselves. Also, they are unable to delete their sub-category if they decide they no longer want it. Am I right?

Melissa

Can you limit the creation of categories in one main category only, such as 'user galleries',and the users create sub categories ONLY in that category?

23
I have been trying to tweak it so it shows within the link code:  Browse and Host your images as skidpics.com

I have been trying to tweak it, but cannot get the coding right..



</a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>

I would figure we add it after the initial hotlink code..  or even can create a new variable to be included in the linking?

Here is a non working sample added to one of the variables:
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";</a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>

So, in the end, it would appear for an image code like this:
<a href="http://skidpics.com/albums/Outdoor/Sunset/normal_plages.jpg"><img src="http://skidpics.com/albums/Outdoor/Sunset/thumb_plages.jpg" alt="No Title" /></a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>


24
Mods & Plugins (Requests & Discussions) / Re: User Online in categories?
« on: October 10, 2007, 08:43:36 PM »
do u mean something like "Users browsing this category:"?

I would like this, which will show next to the category name. 

25
Mods & Plugins (Requests & Discussions) / Re: last images viewed
« on: October 10, 2007, 03:11:22 PM »
Thunderstrike, you seriously rock!  Thanks soooo Much!!!

How's it going on getting that template for installing plugins globally, rather than editing all the code?

26
Mods & Plugins (Requests & Discussions) / Re: last images viewed
« on: October 10, 2007, 06:41:31 AM »
Got it figured out - I just compared the code to the random block I have running - leave the table fields as they are listed in the index.php file.

How many last image views are there supposed to be?  I am just showing one..

27
Mods & Plugins (Requests & Discussions) / Re: last images viewed
« on: October 10, 2007, 05:47:10 AM »
My index file entry is throwing it off - making it not work, nor anything showing.  I entered the following as stated:

Quote
//-----------------------------------------------------
//--- Last viewed 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." i,  ".CATEGORIES." c)
        LEFT JOIN ".USERS." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE c.cat_id = i.cat_id AND i.image_active = 1 AND (i.cat_id NOT IN (".get_auth_cat_sql("auth_viewimage", "NOTIN").", ".get_auth_cat_sql("auth_viewcat", "NOTIN")."))
        ORDER BY i.image_date_lastview DESC
        LIMIT 1

        ";

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

if (!$num_rows)  {

  $last_viewed_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $last_viewed_images .= $lang['no_lastviewed_images'];
  $last_viewed_images .= "</td></tr></table>";
}
else {

  $last_viewed_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count = 0;
  $bgcounter = 0;
  $admin_links = "";
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $last_viewed_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }

    $is_image_owner = ($image_row['user_id'] > USER_AWAITING && $user_info['user_id'] == $image_row['user_id']) ? 1 : 0;
    if ($user_info['user_level'] == ADMIN) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&image_id=".$image_row['image_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&image_id=".$image_row['image_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
    } elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editimage&amp;".URL_IMAGE_ID."=".$image_row['image_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removeimage&amp;".URL_IMAGE_ID."=".$image_row['image_id'])."\">".$lang['delete']."</a>";
        unset ($is_image_owner);
    }
    $last_viewed_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">" . ((isset($admin_links)) ? $admin_links  : "") . "\n";

    show_image($image_row);

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

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

$site_template->register_vars("last_viewed_images", $last_viewed_images);
unset($last_viewed_images);

I am assuming I change the database settings above as they are in bold: image table, categories and users??

In my phpmyadmin listing, I have 4images_images, 4images_categories and 4images_users showing on the right column.  Am I to use the 4images prefix, or cut that off, since that is the actual DB name?

28
Mods & Plugins (Requests & Discussions) / Modifying top.php or top.html
« on: October 09, 2007, 05:39:51 PM »
How can we modify top.php or top.html to display image thumbs instead of a listing?

29
The above mentioned links are down.  Can someone tell me where they were moved to?

Intermediate images are good, if you are using them to post to forums via hotlinks..  The thumb is usually too small, and depending on your settings, the actual image way too big for lets say myspace.  A smaller intermediate would work better for forum postings, etc.. 


30
Mods & Plugins (Requests & Discussions) / last images viewed
« on: October 09, 2007, 05:47:43 AM »
How can I add last viewed images to the main page?  Is there a variable for this, is so, what is it?  I can use the random bloack and change the variable to display the last image viewed...

Pages: 1 [2] 3 4 5 6