• Signature image v2.3 5 0 5 1
Currently:  

Author Topic: Signature image v2.3  (Read 643016 times)

0 Members and 2 Guests are viewing this topic.

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: Signature image v2.22
« Reply #360 on: January 16, 2009, 04:52:48 PM »
OK now the error message is not the one you see in my last post I delete the header information in signature.php and now it works in IE with http://silent.moonlightonmygrave.de/signature.php and in firefox only if it's integrated into a web side or as forum signature and this is enough cause I don't need to give someone the direct link.

Still the same problem with "Total images" the line goes like this: Images:    (557 new)
but it have to be 70 images that can be viewed by all. Everything else works like it should. It also shows only the 8 categorys users allowed to see (24 I have in total) with the other code you posted

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.22
« Reply #361 on: January 17, 2009, 04:58:23 AM »
Ops, my mistake, sorry.
I've updated my previous post.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: Signature image v2.22
« Reply #362 on: January 17, 2009, 04:48:33 PM »
Yeeeeaah! Thanks so much! That's great!
Can I have it for new images to? Sorry but I really have no idea how to do it myself...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.22
« Reply #363 on: January 17, 2009, 08:18:30 PM »
This should do it:
Code: [Select]
  $sql = "SELECT COUNT(i.image_id) AS total_new_images
          FROM ".IMAGES_TABLE." i
          LEFT JOIN ".CATEGORIES_TABLE." c ON (c.cat_id = i.cat_id)
          WHERE i.image_active = 1 AND i.image_date > ".$new_cutoff." AND c.auth_viewcat < ".AUTH_ACL;
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: Signature image v2.22
« Reply #364 on: January 17, 2009, 08:36:35 PM »
It works perfect! Thanks so much!!!

Offline cliff

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Signature image v2.22
« Reply #365 on: January 31, 2009, 05:01:46 PM »
hmm... Ive installed this mod and sometimes he shows the signature.png and sometime he shows a red X...

Just looking at the signature.php on the server the same... Some times he shows the signature.png and sometimes he shows this:

An unexpected error occured. Please try again later
PNG  IHDRdHU IDATxwGu z*}澝L$HQBBl8w𳽎{%3~恱k1  ь4{:r![[ߩsN:uT] Bg4!K{Ao_: 5^g4 es N"^jhDv*}bbǢLwXa= y |g8څq IK/G>ǎ2`c%q *QuEmԬ~_k_h|+xyRbONB,\\E\RRR@1cfe!Ĉm7(TL\Y)%PJ5oytth`F!Lufш{l@+tBe`X OaDZWs ===o "Lkhf4׎湌Jk 5h!@a v\'\y+PJqΥ@wbRT4IqL)et/B-~_m㻏;r=p3J&C0⸎0X6NM T/M/p5{EJ~haZYiYh>5xOF 4zZvFqkVp;. 4czQ9t:5c u }9nyqWVVDQTV}?!~y2h4mgk#3 7Le|㥨{ Rv]Gɯs?qg;sR۶4}tFL{4 %I1rѐKiA:X;J
(...)

Here is the url http://www.reptipics.de/signature.php

Can someone explain...?!?

GreetZ
cliff


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.22
« Reply #366 on: January 31, 2009, 09:14:57 PM »
login as admin and see if more details about the database error showed.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline cliff

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Signature image v2.22
« Reply #367 on: February 01, 2009, 10:58:05 AM »
Hey Vl@no,,

Ive solved the problem. The --- Online users ----- couldnt get by the 4images tables. They are in the phpbb Forum tables... I comment out the lines and no its running. But without the online user... :(

GreetZ
cliff

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: Signature image v2.22
« Reply #368 on: April 07, 2009, 09:17:01 PM »
Geht das denn auch in einer einfachen Form?
Ich meine als generelles Script, welches mit der Gallery nichts zu tun hat.

Ich versuche das mal zu erklren:

Ich habe 2 gleich Groe Bilder,
diese sollen in den Abstand von 4 Sekunden gewechselt werden.
Die URL sollte zu den jeweiligen Bild ebenfalls gendert werden.

Mehr sollte das dann nicht knnen! Sollte halt auch als Bild ausgegeben werden!

LG
Benny

Offline jopainter

  • Newbie
  • *
  • Posts: 10
  • jopainter
    • View Profile
    • photo : my eyes to the world
Re: Signature image v2.22
« Reply #369 on: April 20, 2009, 12:23:45 AM »
thanks man


Offline harinezumi

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Signature image v2.22
« Reply #370 on: June 17, 2009, 12:13:12 PM »
Hi!
I've got a problem - my signature does not show any pictures, it just gives a standard media pic instead.

[problem resolved, image deleted]


The specificity of my gallery is that it's created for a small community of friends, all categories are visible "only for registered users", may that be the reason?
If that could be fixed, then is it possible to show the latest picture thumb, not a random one?

Config part of the script (no changes were made below this block):

Code: [Select]
// ------- Config -----------
$random_image = 1; //show random image
$random_fast = 1; //if your mysql account doesn't have permission to create/delete temporary tables, set this to 0
$debug = 1; //turning this on, will ignore expiration time, meaning every request will create a new image. change this to 0 before u publish your signature!
$expire = 20; //seconds before image will be expired and recompilled with new random image and information (lower this will encrease server load!)
$type = "png"; //image type: png or jpeg
$quality = "50"; //image quality when used jpeg
define('ROOT_PATH', './'); //path to your 4images root dir with trailing slash! must be ralative ( ./ or ../ or combination of these) and NOT full internet or local (http://example/4images/ or /www/blah/4images/)
$signature_template_dir = "./signatures/"; //directory with signature template images WITH TRAILING SLASH!!!
$signature_template = "signature2.png"; //default signature template image filename
$signature_template_random = 1; //use random template image? (0 = no | 1 = yes)
$path = "/tmp/"; // WRITEBLE dir (chmod 777), where compilled image will be stored (does not requere access from web)
$tmpfname = $path."signature.tmp"; // filename for the compilled image (extension does not metter)
$tmptname = $path."signature.id"; // filename for the file where some extra info will be stored in (image id)
$template = "default"; //name of the template which icons will be used, if thumbnail not found
$sitename = "On-line Gallery Statistics"; //signature header
$fonts_dir = ""; //directory with custom fonts WITH TRAILING SLASH! (leave blank if no fonts)
$fonts = array(); // an array with font names the first number is the number that u can use in $fsize variable, it must be sequenced! and first item must have number 6 or larger!
/*
//an example array:
$fonts = array(
               6  => "micross8px.gdf",
               7  => "micross9px.gdf",
               8  => "micross10px.gdf",
               9  => "micross12px.gdf"
);
*/
$fsize = 2; //font type (1 to 5 for build-in fonts and 6 to XX for your custom fonts (see $font array above)
$offset = 7; //offset from the left, right and bottom, uses for random image and the text (not used if random image disabled)
$offset2 = 99; //extra offset from the left (place where random image will be embeded if its enabled. Not used if random image disabled)
$spacing = 11; //height of each line of text
$start = 21; //offset from top (space where header shows)
$tiny = 9; //an extra space at the begining of each line (needed for offset from the random image space)
$not_in_cat = "0"; //list of categories which should not be included for random image, separated by coma (i.e. "1,2,3,7") "0" - means disabled
$auth = 0; //permission level for auth_viewimage (0 = All, 2 = Members, 3 = Private or 9 = Admin) Refer in /includes/constants.php
$peruser = 1; //alow per user random image (images uploaded by XX user. Usage: signature.php?user=XX)
$noimage = "jpeg.gif"; //icon name if no random image was found
$new_cutoff = 7; //Days when images treated as new
$lang_images = "Images: ";
$lang_users = "Members: ";
$lang_cat = "Categories: ";
$lang_new_user = "Newest member: ";
$lang_online = "Online: ";
$lang_comments = "Comments: ";
// --------- End Config ----------


Many thanks in advance!

« Last Edit: June 17, 2009, 05:01:13 PM by harinezumi »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.22
« Reply #371 on: June 17, 2009, 03:41:39 PM »
It's because you don't allow view images for guests.

to show latest images, replace
Code: [Select]
              ORDER  BY RAND()with:
Code: [Select]
              ORDER  BY i.image_date DESC
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline harinezumi

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Signature image v2.22
« Reply #372 on: June 17, 2009, 03:48:25 PM »
V@no, thank you for such a quick reply! Did I get you right that the only way to solve the problem is to allow guests to see all categories?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.22
« Reply #373 on: June 17, 2009, 04:05:51 PM »
the only way to solve the problem is to allow guests to see all categories?
Correct.
Or remove any authorization check from the signature script, which I don't recommend, just in case you decide create categories accessible by a group of selected members.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline harinezumi

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Signature image v2.22
« Reply #374 on: June 17, 2009, 04:24:21 PM »
V@no, that's exactly what i need - i would like to use this signature as an informer on other closed site, so no security problems will arise.
how can i remove authorization check from the script? and thanks once again for your time!  :D