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
31
Ahh - thanks, Chris - you found the rss mod I'm using!

http://www.4homepages.de/forum/index.php?topic=8240.0

So can anyone help with "hard-coding" this RSS  to a special category template?   Thanks!

32
Quote
Whenever I try to use these I literally just get %N %D (for example) instead of the variable.

me too - are you using IM?  i think the variables aren't being parsed quite right, but I'm still messing with it.

The way IM is working, I might just post a complete MOD to this MOD with some different variations....

33
<bump>

Quote
because some code from global.php has to move into /includes/sessions.php

this messes up this RSS MOD - and I apologise, but I can't recall the original author and the thread hasn't been recovered from a cache  :(

any ideas how to get that template info back into this rdd feed?  thanks - -   :wink:

34
no, mine's a new question - - how to get the RSS mod know where to find the correct template after installing this one - -

you should try this MOD instead - I'm also using it for different category templates, and it works well -

http://www.4homepages.de/forum/index.php?topic=1847.0

be sure to read all the way through the posts - like I said, I have it working on my site just fine  8)

35
this works pretty well - except for a single conflict with an old rss mod I installed - here's the error I get:
Code: [Select]
Fatal error: Call to a member function register_vars() on a non-object in /blah/blah/blah/rss.php on line 38

line 38 is here:
Code: [Select]
  $site_template->register_vars(array(

and the complete rss.php code is this (rather short):
Code: [Select]
<?
//*************************************************
 /* RSS Feed for 4images                          *
 * beta 0.1                                      *
 */

//------------ CONFIG ----------------------------

$num_new_images = 10;
/*
 u can uncomment this, if you want to use config variables from 4images config
 $num_new_images = $config['image_cells'];
*/

//because we have no session here, we have to hardcode this values
define('SCRIPT_URL', 'http://digiart.graficalicus.com'); //no trailing slash
define('LANGUAGE', 'en-us');

define('ROOT_PATH', './');

//----- END CONFIG--------------------------------------------

include(ROOT_PATH.'global.php');
$main_template = 'rss';



$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, c.cat_name
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
$format="Y-m-d\TH:i:s+00:00"; //the time format for rss date
while($image_row = $site_db->fetch_array($result)){
  $site_template->register_vars(array(
      "title" => $image_row["image_name"],  
      "description" => $image_row["image_description"],
      "category_domain" => SCRIPT_URL."/categories.php?cat_id=".$image_row["cat_id"],
      "category" => $image_row["cat_name"],
      "link" => SCRIPT_URL."/details.php?image_id=".$image_row["image_id"],
      "date" => format_date($format,$image_row["image_date"]),
      ));
  $new_images.=$site_template->parse_template("rssitem");
 }

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(
      array(
    "ctitle" => $config['site_name'],
    "clink" => SCRIPT_URL,
    "cdescription" => $config['site_name']." Last 5 images",
    "language" =>LANGUAGE,
    "ititle" =>"digiart galleries at the graficalicus workshop",    
    "iurl" => SCRIPT_URL."/digiart-graf_banner.gif",
    "ilink" => SCRIPT_URL,
    "items" => $new_images,  
    )
      );
header("Content-type: text/xml");
$site_template->print_template($site_template->parse_template($main_template));
?>

when the references to site template are removed, the rss feed can't figure out what rss template to use - - how can I tell it where to look for it?

thx - -

36
Quote from: bibabobu
i get no errors or i can't see them.
but i know that there is an opportunity to change something in the code to see errors.



try -
Code: [Select]
uncomment this line in global.php:
Code:
//error_reporting(E_ALL);(assuming u are using v1.7.1)

in v1.7 insert below the existing error_reporting line this:
Code:
error_reporting(E_ALL);

37
Plugins / Re: [Plugin] Notepad in Control Panel
« on: May 23, 2005, 03:52:44 PM »
no problems installing/using this MOD - thx!

[BTW - I use it to keep notes to myself of things that need doing every time I run an image challenge - stuff like which files to update, which images to move, what templates to change.
I also use it to keep general notes about MODs I want to try, what things i need to change, snippets of code I want to keep, some IPs and/or users to watch, etc. -
Very handy, since I forget things a lot!]


38
there's a path problem somewhere when using IM -I'm having the same problem, too -

I haven't been into the code yet, but take a look & noodle about with the path here (save a backup first!!):

includes/annotation.php:

Code: [Select]
if ($ann_tool == "im") {

if ($use_image) {
   $command = $convert_options['convert_path']." -quality ".$ann_image_quality." -draw \"image CopyOpacity $h_offset,$v_offset 0,0 $ann_embed_image\" \"$ann_src\" \"$ann_dest\"";
   system($command);

look at the "$ann_src\"  - instead of making it a variable ($ann_src), try making it an absolute link (assuming your watermark image won't change - if your watermark image changes, you'll have to change this code again as well - - )

Just an idea -- it's what I'll try next......

39
Quote
i ve made the image_tester.php test and it showed a black square with white "this is a test" text on it.
so i think everything has to work. doesn`t it?

 :D  it works!

Quote
but if i adjust in the settings to implement an watermark image (logo-gd.png in root directory), so i cannot see anything after direct uploading
WHY???

are you using IM for images in your ACP?  I am, too, and I'm having the same problem - - something with the path I haven't figured out yet....

For now, if you need to annotate many images, text annotation is the way to go  (at least until IM patch gets worked out - - I'm working on it, too....  :?)

Quote
And also the batch annotate function doesn´t work for me. what i´m doing wrong???

Batch was kind of weird to figure out, but here's what I did:
  • in your ACP, under "Annotation Settings" - "Use auto images annotation on image upload" - turn ON
  • Annotation mode:  text
  • Annotation text:  type in what you want to appear (Shortcuts - "%D", "%S", etc. - aren't working yet with IM)
  • the font path must be just like the test php file (copy & paste directly from that)
  • make your other text settings, as well as positioning
  • Click "Save changes" at the bottom

Next, go to Batch Annotations in the ACP -
  • select the category you want to annotate first (you can only do one category at a time)
  • Select how many images to do at a time (you MUST do more than 1 image at a time or nothing happens... :?)
  • Input the image ID# to start with
  • automatically continue to the next ones, or wait for a click from you? Choose Yes or No
  • Click "Submit" at the bottom, and it should take off and watermark the images you told it to do

I'm still messing with some of the IM settings - I'll post more solutions as soon as I get something working, but it may be a few days.... :(   hold tight....

Good Luck!

40
Ooops - - -

also 2 other small things:
  • I can't find where to change the opacity of the text - image, yes, text, no - -
  • the text annotation options (%N, %B, %S, etc.) don't seem to work - they actually print the code - %B  %S  %T.... instead of username, date, line break, etc. - -  :?:

thanks one thousand times :!:

41
and another question - -

Quote from: V@no
Quote from: ksk
there is like a link in uploadform template html

[ ]Add watermark
The text will be embeded in the bottom-right corner of the image

where?
it was not supposed to be for "any" categoryes...only owners of "Member Personal Category" can chose add or not the watermark when uploading in their categories...


so how would this be added as an upload option?   :D

42
OK - I'll try - -   <click  click clickity-click (dang!) <ctrl>+<Z> - drag....  click click....

cool! Little flags appear!

thanx v@no! That was it!

(Boys & girls - pay attention to ASCII or Binary when uploading stuff!)

43
total messages:

Code: [Select]
Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 5 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416

 :?:    this one's beyond my know-how...   :?

44
Code: [Select]
Notice: Uninitialized string offset: 0 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 1 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 2 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 3 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401

Notice: Uninitialized string offset: 4 in /home/grafical/public_html/digiart/includes/geoip.inc on line 401
 etc......

and also
Code: [Select]
Fatal error: error traversing database - perhaps it is corrupt? in /home/grafical/public_html/digiart/includes/geoip.inc on line 416
line 401 (and above/below:

Code: [Select]
$x = array(0,0);
    for ($i = 0; $i < 2; ++$i) {
      for ($j = 0; $j < $gi->record_length; ++$j) {
        [b]$x[$i] += ord($buf[$gi->record_length * $i + $j]) << ($j * 8);  [/b] // <=THIS IS LINE 401
      }
    }

investigating geoip.inc now......   but any ideas right off?  thx...

45
first off - I'm running 1.7.1, linux, GD 2.0.12, using IM to create thumbs, etc. etc - -

this works great for text annotation, but I can't get image annotation to work - - -  no worries, though -

I can actually help a bit for a few of the reoccuring problems (I printed out this thread - 67 pages! - and read it while sitting on the deck this afternoon!)


Quote
but in acp i get only a white screen and no error messages.

this is from V@no from another thread:
Quote from: V@no
blank page? want to see the error messages?
uncomment this line in global.php:
Code:
//error_reporting(E_ALL);(assuming u are using v1.7.1)
in v1.7 insert below the existing error_reporting line this:
Code:
error_reporting(E_ALL);


Quote
So can someone help me...? Or just say what the problem is?

did you create & run the test php file from the instructions?  if not, download it from this post (see below for link) - I made it a php for you -

You'll need to edit this file a bit - here's how:
find
Code: [Select]
/home/public_html/arial.ttf
and change it to be the exact path and font name where your font - (the *.ttf file you want to write on your images with) - is stored. If you want to use Tahoma.ttf, for example, open Windows/FONTS on your system. locate tahoma.ttf and upload it to the root of your site - or wherever you want to store your fonts. This could be another folder called "fonts", for example. If you choose to use the default Arial.ttf, make sure it's uploaded to the folder you designate.

Open your site's control panel - you probably have one somewhere (I use cPanel) - and hunt around in all the menus and such for something that says "WWW directory" and/or "root directory" - this will show you what the path in this file (and in the ACP areas that need a path) should be. Mine, for example, is "/home/graf/public_html" - yours will be similar.  If you can't find it there in your site's control panel, use the FTP address where you upload your files. If you can't find it there, ask your host what it is - even if you don't know what you're talking about, they'll know, so just copy down exactly what they tell you.

Once you have the root directory path (or "WWW directory" path - whatever your host calls it - ) paste it into the script above - and upload to your site's root. Run it -  type into your browser "http://www.my_big_dotcom.com/image_tester.php" - - substitute your site URL for what I put in there (hopefully I didn't HAVE to type that last bit, but....)

Did you see something like this: graffi's font test for watermarking ? I'm using a retro-style font set at 9 pts - white on a black BG in a 240px wide box.

If you did, the script works, your site works, everything is OK - you just have to debug what you did wrong in typing one of the paths in the annotation settings panel.

If you CAN'T see anything, or get an error message of some sort, you're probably out of luck with this MOD, assuming you got your paths right in the tester script - -

If you're testing this MOD in batch mode, be sure to be editing more than one image (trying it out on just one image at a time won't work, for some weird reason) and that uploading is turned ON - - otherwise, you'll get nothing.

If you'd like to change the transparency of TEXT annotation, I'll have a fix for that later -

hope this helps - -



 

Pages: 1 2 [3] 4 5