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

Pages: [1] 2 3 4 5
1
works well in IE, but opens a local page in Firefox -

does anyone know why?

thanks in advance -

2
Mods & Plugins (Releases & Support) / Re: [MOD] RSS Feed 0.1
« on: March 09, 2006, 10:47:36 PM »
HA HA! HO HO! :D  i fixed it -

simply move the {description} tag inside the CDATA tag, as mentioned earlier in this thread - -

Magpie likes it, Feedburner[/url] likes it -

the only change is in rssitem.html (mine looks like this - yours may be different):
Code: [Select]
<item>
  <title>{category}/{title}</title>
 <link>
  {link}
</link>
<description>
<![CDATA[{thumbnail}
{description}]]>   
  </description>
</item>

 :mrgreen:

3
Mods & Plugins (Releases & Support) / Re: [MOD] RSS Feed 0.1
« on: March 03, 2006, 02:13:15 AM »
way back on page 1 of this thread, I asked about removing " ' ", " & ", " ; " , etc., characters and got this reply:

Quote
"description" => stripslashes($image_row["image_description"])

this should work (not tested).

it didn't work  :?

Can anyone suggest a fix for this - some kind of character substitution like
Code: [Select]
In includes/templates.php find:
Code:
    error_reporting($old);
Insert below:
Code:
    $str = preg_replace(
            "/<!--\\\\ open tag (.+) \\\\-->(.*)<!--\\\\ close tag \\\\-->/siU",
            "<?\\1\\2?>",
            $str
    );

Then find:
Code:
    // Compile variables in PHP code
Insert above:
Code:
    $template = preg_replace(
            "/<\?+((?!php )(?!=)(?! ).+ )(.*)\?+>/siU",
            "<!--\\\\ open tag \\1 \\\\-->\\2<!--\\\\ close tag \\\\-->",
            $template
    );

?  Any time a user uses one of those characters in their image description while uploading, it craps out the feed....

Thanks -

4
hi -

i'd like to be able to add a comments section to an entire category instead of just on individual images - is this easy?

I've tried imply adding the comment_form to my categories.html template, but there's obviously much more that needs doing.  any quick pointers in the right direction would be helpful - thanks!

5
Mods & Plugins (Requests & Discussions) / Re: The picture hits
« on: November 08, 2005, 08:42:38 PM »
you're also possibly logged in as Admin - logout, and you're page refreshes will count (Admin hits don't count!)

6
Mods & Plugins (Requests & Discussions) / Re: "universal" templates?
« on: October 04, 2005, 10:40:59 PM »
 :D :D :D :D :D :D :wink:

I'll try it out tonight - must have missed it in my searches - -

thanks!

7
Mods & Plugins (Requests & Discussions) / "universal" templates?
« on: October 04, 2005, 07:29:06 PM »
hi - another request....

on my site, I have several different templates working - users can choose which one they want (great MOD - http://www.4homepages.de/forum/index.php?topic=6220.0 )

the one bad thing about multiple templates is uploading multiple copies of the same file- - I have one called "Challenge.html", for example, that I have to upload to each of the different template folders, even though it's the same file for all.

On my site, the only template files that are different from each other are home.html and the css & images.

is there a way to make "universal" template blocks (memberlogin.html, uploadform.html, etc. etc.) that can be called by every template, so a simple update doesn't mean changing many files? in other words, a separate template folder for blocks that are the same in every template, and separate template folders for the ones that are unique (home.html, styles, images...)?

Many thanks -

8
Mods & Plugins (Releases & Support) / Re: [Mod] Image Annotation (Watermark)
« on: September 16, 2005, 07:44:55 PM »
Quote
When I do a direct upload I also get no change in my images. Auto Thumbnail is set to ON.

Any ideas what's going on?

make sure, in ACP under Annotation Settings,  "Use auto images annotation on image upload" is set to "Yes" before batching - that should do it.  It needs to be set to Yes even for batch annotation.

9
Quote
As for the activate image, I do not use this feature personally

i don't either - I just leave it ticked on all the time.   For a MOPD like this, though, it could be a place to start looking... :?:

10
hmm.....

it really wouldn't matter what the time it is at a certain user's place - just x+ days from time of upload.

So, as I understand it, an Admin could add an image like normal (this would be an Admin job only, where images can only be added - or images in certain categories could be added - only by an Admin. Otherwise, users would wonder "where's my image?")

An extra box in the Admin panel, near "Activate Image" could have a box telling the db to "activate the image in xxx days" - 3 days, 10 days, 160 days - whatever.  It could be subroutine of the activate function.

....but I'm not gonna code it....   :wink:

11
English translation of category_list_table.php:

Code: [Select]
<?php 
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *    Scriptversion: 4images 1.7                                          *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *              Web: http://www.4homepages.de                             *
 **************************************************************************
 *             File: detail_list_table.php                                *
 *           Autor : www.detlev-kostka.de                                 *
 **************************************************************************
 *    Diese Datei ist nicht Bestandteil des Ursprungscipts !              *
 *    Sie wurde für www.detlev-kostka.de zur erweiterten Verwendung       *
 *    des 4image-Gallery-Management-Systems erstellt.                     *
 *************************************************************************/

// Als gesicherte Datei angelegt !
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

//---------------------------------------------------------------
//-- Auskommentieren, wenn nur reg.User die Liste sehen sollen --
//---------------------------------------------------------------

//if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {
//  show_error_page($lang['no_permission_sitemap']);
//  exit;
//}

//----------------------------------------------------------------
//-- Kategorie-Liste eingebaut am 09.07.2005 ---------------------
//----------------------------------------------------------------

function get_category_html_bits($cat_id 0$cid 0$depth 1) {
  global $site_db$html_cat_cache$cat_cache$new_image_cache$site_sess;

  if (!isset($html_cat_cache[$cid])) {
    return "";
  }
  $category_list "";

  foreach ($html_cat_cache[$cid] as $key => $category_id) {
    $cat_num_new = (isset($new_image_cache[$category_id])) ? $new_image_cache[$category_id] : 0;

    if (check_permission("auth_viewcat"$category_id)) {
      if ($depth 1) {
      $category_list .= " ";
      }
      else {
      $category_list .= "<br>";
      }
      $category_list .= str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"$depth 1)."<img src=\"".get_gallery_image("node_last.gif")."\" alt=\"\">\n";
      if ($depth 1) {
            if ($cat_num_new 0) {
            $category_list .= "<img src=\"".get_gallery_image("folder_sl_new.gif")."\" alt=\"New Images in this Category\"><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\"><small>".$cat_cache[$category_id]['cat_name']."</a> ... [ Images: ".$cat_cache[$category_id]['num_images']." ; <span style=\"color:#FF0000;\">New Images: <b>".$cat_num_new."</b></span> ; Hits: ".$cat_cache[$category_id]['cat_hits']." ]</small><br />";
            }
            else {
            $category_list .= "<img src=\"".get_gallery_image("folder_sl.gif")."\" alt=\"\"><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\"><small>".$cat_cache[$category_id]['cat_name']."</a> - [ Images: ".$cat_cache[$category_id]['num_images']." ; Hits: ".$cat_cache[$category_id]['cat_hits']." ]</small><br />";
            }
      }
      else {
            if ($cat_num_new 0) {
            $category_list .= "<img src=\"".get_gallery_image("folder_new.gif")."\" alt=\"New Images in this Category\"><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</a><small> - Main Category - [ Images: ".$cat_cache[$category_id]['num_images']." ; <span style=\"color:#FF0000;\">New: <b>".$cat_num_new."</b></span>; Hits: ".$cat_cache[$category_id]['cat_hits']." ]</b><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$cat_cache[$category_id]['cat_description']."</small><br>";
            }
            else {
            $category_list .= "<img src=\"".get_gallery_image("folder.gif")."\" alt=\"\"><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</a><small> - Main Category - [ Images: ".$cat_cache[$category_id]['num_images']." ; Hits: ".$cat_cache[$category_id]['cat_hits']." ]</b><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$cat_cache[$category_id]['cat_description']."</small><br>";
            }
      }
      $category_list .= get_category_html_bits($cat_id$category_id$depth 1);
    }
  }
  unset($html_cat_cache[$cid]);
  return $category_list;
}

?>


Cheers!

13
Quote
- where to add a <P> between the major categorie?

I'd like this as well!

Also, mawenzi, I like the detail_list.php you have - - any way for you to share that code as well?   :D

14
*UPDATE*

Apparently it's all about permissions - changed index.php to 755 from 777 - - everything's back in order..... for now.. :?

15
Quote
why dont they just change every single file under your account to your account? I dont think u can do anything through ftp without ssh access.

I think I'm changing hosts. Lots of problems lately with uptime with this one.

=>*EDIT: The sub-pages are working (i.e., this one for a specific category ) but the "main" pages alone aren't: index.php, categories.php &  details.php - I just get the 500 code - - any quick thoughts?
 I'm running this as a sub-domain off my main site - would that make any difference?

thanks -  :?

Pages: [1] 2 3 4 5
Post your comments here