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

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

0 Members and 1 Guest are viewing this topic.

Offline Heinrich-Uwe

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • Oberlausitz Digital Foto- Reviews
Re: Signature image v2.22
« Reply #285 on: July 24, 2006, 01:19:34 PM »
bekomme fehler anzeige
im Browser

Security violationSecurity violationSecurity violation
Fatal error: Cannot instantiate non-existent class: db in /home/virtual/netz-effect.net/public_html/fotoheinrich/signature.php on line 132

scheint er kann auf die datenbank nicht zugreifen ??? warum hat einer eine idee

Danks

Offline Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: Signature image v2.22
« Reply #286 on: August 01, 2006, 12:16:54 PM »
ich hab da auch ein problem...

wenn ich die signature.php aufrufe, erscheint "Die Grafik "http://alkoven.al.funpic.de/signature.php" kann nicht angezeigt werden, weil sie Fehler enthält."
vielleicht kann mir jemand einen tip geben ;)

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 #287 on: August 01, 2006, 03:32:27 PM »
the directory set in $path variable is not accessible by your signature.php, syou you'll need create a new folder "tmp" in the same directory where signature.php is, make sure its CHMOD 777. Then use this line:[qcode]$path = "./tmp/"; // WRITEBLE dir (chmod 777), where compilled image will be stored (does not requere access from web)
[/qcode]
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 Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: Signature image v2.22
« Reply #288 on: August 01, 2006, 05:24:06 PM »
great... thank you very much!!!

Offline Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: Signature image v2.22
« Reply #289 on: August 03, 2006, 01:04:17 PM »
jetzt hätte ich noch 2 fragen:
wie und wo kann ich den link auf meine galerie ( http://fryz.fr.funpic.de/4images ) einfügen?
wie kann ich die angezeigte schriftfarbe ändern?

Danke :)

Offline Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: Signature image v2.22
« Reply #290 on: August 05, 2006, 11:31:52 AM »
ich stell mich wirklich zu doof an...
wenn ich diese .htaccess erstelle und in das verzeichnis kopiere, geht gar nicht mehr. beim aufrufen der seite oder er signature.php...  erscheint nur eine fehlerseite. egal welche art von .htaccess ich verwende :(




In case a forum where u are trying show your signature image does not support images with .php extension or u simply would like have signature.png instead of signature.php then chose one of the following methods:

1) this method require Apache webserver with mod_rewrite enabled
create .htaccess file with this code:
Code: [Select]
RewriteEngine On
#RewriteBase /
RewriteRule ^signature\.png$ signature.php?%{QUERY_STRING}
RewriteRule ^go$ signature.php?go=1&%{QUERY_STRING}
upload it to the same directory where your signature.php file is.

to test it type in your browser: http://<youraddress>/signature.png
it should show u your signature. Then type: http://<youraddress>/go
it should redirect u to the image/category of the last random image showed in the signature (asuming its enabled)

2) this method require Apache webserver

create .htaccess file with this code:
Code: [Select]
<Files signature.png>
AddType application/x-httpd-php .png
</Files>
upload it to the same directory where your signature.php file is.
Rename your signature.php to signature.png
to test it type in your browser: http://<youraddress>/signature.png
To redirect to the last random image showed in the signature use: http://<youraddress>/signature.png?go=1

3) I'm not quet sure what kind of server/confguration this method required, so try it and see if it works for u

user url like this: http://<youraddress>/signature.php/sig.png

sig.png could be any name u want.

To redirect to the last random image showed in the signature use: http://<youraddress>/signature.png?go=1


Offline commode59

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Signature image v2.22
« Reply #291 on: August 08, 2006, 12:18:23 AM »
merci beaucoup pour ce code, très beau travail  :mrgreen:

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Signature image v2.22
« Reply #292 on: August 12, 2006, 05:15:29 PM »
hi v@no! i have the next error:
Code: [Select]
An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

maybe it is because i didn´t install GD v2.x but i thougth that 4images 1.7.3 have it because in ACP my thumbnails is making with GD... where can i find this program or script? i´m searching in google but i don´t find it..
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline annam

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Signature image v2.22
« Reply #293 on: August 31, 2006, 12:51:37 PM »
Hi. Is it possible to change the signature.php in any way so that I can publish on the frontpage of my joomla site?
I just wanted the thumbnail to show, not the details of the forum :)
Could anyone here please give me some light?
Thank you!

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 #294 on: August 31, 2006, 03:18:05 PM »
we have a mod for that "[mod] random image" :?
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 e-trader_2002

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Bildergallery braucht Hilfe mit $new_cutoff
« Reply #295 on: September 14, 2006, 11:16:41 PM »
hallo zusammen,
ich benutze diesen mod schon länger

1.) doch bin ich mit der neuen bilder abfrage nicht zufrieden
ich möchte gerne die new_cutoff wie im acp

// --- Total new images -----
  $new_cutoff = 45; // oder $config['new_cutoff']; | Anzahl neue Bilder im ACP
  $new_cutoff = time() - 60 * 60 * 24 * $new_cutoff;

wenn ich dies wie oben benutze, funktioniert dies einwandfrei.
aber wenn es $new_cutoff = $config['new_cutoff']; werden die neuen bilder mit (0 new) angezeigt!
ich habe dies auch in der statistik eingebaut und dort funktioniert es einwandfrei

...

danke für die hilfe

danke für die antwort

Hi ivan,

I just solved your problem #1 (How to use the value $new_cutoff from ACP in signature.php):

Step 1: Find in signature.php:

[qcode]
// --- Total users -----
  $sql = "SELECT COUNT(*) AS total_users
          FROM ".USERS_TABLE."
          WHERE user_level > ".USER_AWAITING;
  $row = $site_db->query_firstrow($sql);
  $show['total_users'] = $row['total_users'];
[/qcode]

Insert above:

[qcode]
// --- new_cutoff -----
  $sql = "SELECT setting_value
          FROM ".SETTINGS_TABLE."
          WHERE setting_name = 'new_cutoff'";
  $row = $site_db->query_firstrow($sql);
  $show['new_cutoff'] = $row['setting_value'];
 
[/qcode]

Step 2: Find in signature.php:

[qcode]
// --- Total new images -----
  $new_cutoff = time() - 60 * 60 * 24 * $new_cutoff;
  $sql = "SELECT COUNT(*) AS total_new_images
          FROM ".IMAGES_TABLE."
          WHERE image_active = 1 AND image_date > ".$new_cutoff;
  $row = $site_db->query_firstrow($sql);
  $show['total_new_images'] = $row['total_new_images'];
[/qcode]

and change it to:

[qcode]
// --- Total new images -----
  $new_cutoff = time() - 60 * 60 * 24 * $show['new_cutoff'];
  $sql = "SELECT COUNT(*) AS total_new_images
          FROM ".IMAGES_TABLE."
          WHERE image_active = 1 AND image_date > ".$new_cutoff;
  $row = $site_db->query_firstrow($sql);
  $show['total_new_images'] = $row['total_new_images'];
[/qcode]

It works fine with my signature.php and I hope it will help you too.

Greetings

e-trader_2002
A hobby is a great way to spent time you actually don't have! :wink:


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 #296 on: September 15, 2006, 01:59:31 AM »
very good :)

just a little change could save you from needing step 2:
instead of
Code: [Select]
  $show['new_cutoff'] = $row['setting_value'];use
Code: [Select]
  $new_cutoff = $row['setting_value'];no need step 2 anymore ;)
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 Sternie

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Signature image v2.22
« Reply #297 on: September 18, 2006, 10:59:58 PM »
Kann mir das bitte mal jemand verdeutschen :(

ich habe es eigentlich alles soweit hinbekommen, bis auf das wechselnde Bild in der Signatur. Es wird immer das von mir angegebene Bild genommen für: kein gefundenes Bild.

Ich bin ehrlich gesagt schon an Schritt 2 mit meinem englisch gescheitert. Ich weiß z.B. nicht, ob es reicht nur einen neuen Ordner signatures anzulegen oder ob da noch Unterordner wie tmp angelegt werden müssen.  :roll:

Wäre es nicht möglich im ersten Post für Englisch-Nieten wie mich auch eine deutsche Anleitung hinzuzufügen?

Offline e-trader_2002

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
What's wrong with with my signature in this forum?
« Reply #298 on: September 19, 2006, 01:04:58 PM »
Hi,

what's wrong with with my signature in this forum?
URL- and image-link are working but instead of the image itself the HTML-Code is displayed. You can see the result below.

Please give me a hint.

Thanks

e-trader_2002
A hobby is a great way to spent time you actually don't have! :wink:


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 #299 on: September 19, 2006, 01:26:20 PM »
no offence, but with 40 posts of yours you still didnt notice such feature on this forum as BBCode?

http://www.4homepages.de/forum/Themes/default/help/posting.english.html#bbcref
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)