vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Forum stats on signature image (https://vborg.vbsupport.ru/showthread.php?t=50848)

tkeil69575 03-27-2003 07:20 AM

PHP Code:

imagejpeg($img"./$ausgabedatei",$komprimierung100); //last # is the quality of jpeg 

mr_e it would be wrong to replace it with the above code because $komprimierung is the variable for quality of the jpeg which is defined at the top of the file :)

Disturbed 03-27-2003 08:40 AM

Quote:

Today at 12:38 AM N!ck said this in Post #26
GRRRRRRRRRRRR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Btw, it's not smart to call global.php. You're going to have all kinds of illegitimate guests.

And filburt1, I'm sorry. It appears I caused a domino effect, and now everyone will have one of these things. I didn't share though (except for with Overgrow, which I don't regret). I promise.


heh '100% original coding (and proudly not shared)' :rolleyes:

thanks for sharing tina, will use it, not here though :)

barny 03-27-2003 09:20 AM

got a error when i run signature.php:

http://www.ovsc.de/forums/signature.php

gd2 install:

http://www1.ovsc.de/system/info.php

mforster 03-27-2003 10:39 AM

Coolies - definately one I'll use when I get more than 9 members :p

N!ck 03-27-2003 12:25 PM

Quote:

Today at 01:59 AM Kars10 said this in Post #40



Whats the Problem with that?? This hack here is orginal coding by Tina and not by Filburt1. Filburts is other code.

So cool down.

Kars ;)


It just bothers me that I seem to have caused filburt1's unique sig to become...um...not unique. I thought it was harmless when I made myself one, but now I think that it only continued to draw more attention to the concept that way. And now this...

Kars10 03-27-2003 01:11 PM

Quote:

Today at 15:25 N!ck said this in Post #45



It just bothers me that I seem to have caused filburt1's unique sig to become...um...not unique. I thought it was harmless when I made myself one, but now I think that it only continued to draw more attention to the concept that way. And now this...

I hope that every hacker thinks that way now, than the great community ?vB.org dies on that.
Yes, why sharing hacks here?? Let us stop this now.
Every hack should be unique... :mad:

Sorry N!ck but thats childish

Kars

Overgrow 03-27-2003 01:43 PM

If someone asks you not to give out their code, you should respect their wishes. All N!ck was doing was confirming for filburt that he did not give out his code. Same here, N!ck, I did not release that code to anyone.. more than a few asked and I said please check with N!ck as it's his and he has given my code the same respect.

It's not a big deal.. it doesn't take a brain surgeon to write the hack, but it was a great original idea-- credit to filburt.

Cheers~

Smoothie 03-27-2003 01:49 PM

having all these damn signatures here slows this thread down to a crawl....

NuclioN 03-27-2003 01:57 PM

I've tried to install this but i can't set a cronjob although i have permission to do it. I use Putty to connect but the line of code to make a cron is not enough it seems. How to proceed from scratch in Putty to set this cronjob?

Overgrow 03-27-2003 02:02 PM

>>having all these damn signatures here slows this thread down to a crawl....

ahaha yea, now we're not only dependent on vB.org's server response but everyone else's.

Dean C 03-27-2003 03:20 PM

Nice hack - thanks for releasing :)

- miSt

Dan 03-27-2003 04:11 PM

feh...... my server doesn't let me do cronjobs and that fake cron thing won't work for some reason

/me tried for 5 hours to set it up and gives up.

Nice hack anyways....

Overgrow 03-27-2003 04:41 PM

I don't have mine cronned yet.. just run the php script every once in a while. Won't be instant updates but no big deal.

You could also do something like this at the top of global:

PHP Code:

if (mt_rand(1,500)=='42' or $updatesigstats!=''){
  require_once(
'/home/yourdir/sigstats.php'); // the full script name of your sig updater


About once in every 500 page views, it will update the signature stats. Or you can attach "&updatesigstats=on" to any URL and have it run the script as well.

Fi_InCogNiTo 03-27-2003 05:12 PM

Can someone send me the code to make this do:

Just gather the amount of posts in only one forum for one user?

*example: I want a sig to let people know how many posts are in my news forum just by me.

GoTTi 03-27-2003 05:30 PM

I dont understand, i have the recent version of PHP installed (4.3.1) and GD 2.0 or higher is not on my server!

I requested it be installed.

Mr L 03-27-2003 10:12 PM

Good hack, but the Cron job does not work, yet if I run it manually it is fine.

Can anybody confirm if they have it running via a Cron job and also if they modified the code?

Thanks.

Shepski 03-28-2003 08:53 AM

great hack but does anyone know how to get the thing to run on an NT server. fakecron doesnt seem to do it.

Edit: found it in the scheduler althought it isnt very obvious :(

TheEDIGuy 03-28-2003 10:20 AM

I have it running on a cron, works perfectly.

Mr L 03-28-2003 10:52 AM

Quote:

Today at 12:20 PM TheEDIGuy said this in Post #58
I have it running on a cron, works perfectly.
Ok, so it must be my setup.

Did you have to give any additional permissions to the .php to run as a Cron and could you tell me what directory you put it in please?

Currently mine is running in /forums/ and works when manually executed but not as a Cron job. However I have other Cron jobs setup and working such as ones for Hivemail.

Thanks.

squawell 03-28-2003 12:21 PM

i have a question...

when i add a new variable but it did not show up??why??

where do i doing wrong?

Velocd 03-28-2003 04:15 PM

Quote:

>>having all these damn signatures here slows this thread down to a crawl....

ahaha yea, now we're not only dependent on vB.org's server response but everyone else's.
Maybe Filburt?s version where the image is outputted through running the script, but this hack simply saves the outputted image in a directory as a JPG so you can link to it as you would a regular signature image, so there should be no dependency on anyone?s server response, nor that much of a slow down (except for the kilobytes each signature takes of course).

limey 03-28-2003 04:34 PM

Nice hack, I like it. Need to get my cron in order will try overgrow's addon.

Fi_InCogNiTo 03-28-2003 04:43 PM

Quote:

Yesterday at 02:12 PM Fi_InCogNiTo said this in Post #54
Can someone send me the code to make this do:

Just gather the amount of posts in only one forum for one user?

*example: I want a sig to let people know how many posts are in my news forum just by me.


NuclioN 03-28-2003 04:47 PM

Warning: imagecreatefromjpeg: Unable to open './forum/images/signature/sig.jpg' for reading

Fi_InCogNiTo 03-28-2003 04:49 PM

Quote:

Today at 01:47 PM NuclioN said this in Post #64
Warning: imagecreatefromjpeg: Unable to open './forum/images/signature/sig.jpg' for reading
Try checking the way you named the directory it's calling for. It's spelled "signatur" in the php file ;)

base 03-28-2003 05:38 PM

also remember to set the proper permissions for the 'signatur' folder - chmod 777 i think it was

Fi_InCogNiTo 03-28-2003 06:01 PM

I'm having a strange problem

Ever since I added this hack, my who's online has been showing 2 guests with almost the same ip(last number is dif in IP). They are always creating a new thread, even though there is never a new thread created, and they are on 24/7.

Screenshot attached :confused:

wooolF[RM] 03-28-2003 08:47 PM

]uhm.. what about protecting the folder where signature.jpg is? it is chmodded 777 and anyone can do evil things with it...

BTW, great hack :)

Link14716 03-28-2003 09:18 PM

wooolF, try this:
PHP Code:

$text "$numbermembers$totalthreads$totalposts"


NuclioN 03-28-2003 09:27 PM

I can't get this to work :(
These are the path"s:

$zeilenabstand = 15; //Line spacing of stats text
$vorlagedatei = "forum/images/signatur/sig.jpg"; //Relative path to underlying signature image
$ausgabedatei = "forum/images/signatur/signature.jpg"; //Relative path and Name to new signature image with stats

error in attach

wooolF[RM] 03-28-2003 09:27 PM

]oh... thnx for the answer... I allready fixed it by defining line spacing as 0 :)

PHP Code:

$zeilenabstand 0//Line spacing of stats text 

thnx alot anyway!

GoTTi 03-28-2003 09:28 PM

Nuc, i got same error, its from not having the GD2 installed on your server

Souli 03-28-2003 09:28 PM

Sehr nette Idee - funktioniert einwandfrei

--------------------------------------------------------

Nice Idea - works perfectly !

NuclioN 03-28-2003 09:34 PM

Quote:

Today at 11:28 PM Da_GoTTi said this in Post #72
Nuc, i got same error, its from not having the GD2 installed on your server
Tnx Da_Gotti, we've a very lazy sysop. I'll kill him. :D

wooolF[RM] 03-28-2003 09:40 PM

]here's example of my signature ;)

NuclioN 03-28-2003 09:58 PM

You're evil wooolf :p Nice work!

wooolF[RM] 03-28-2003 10:08 PM

]thanx mate! :D btw, I am evil ;)
My title on my forum is Evil Admin ;) :bunny:

TheEDIGuy 03-28-2003 11:25 PM

Quote:

Today at 07:52 AM HLodder said this in Post #59


Ok, so it must be my setup.

Did you have to give any additional permissions to the .php to run as a Cron and could you tell me what directory you put it in please?

Currently mine is running in /forums/ and works when manually executed but not as a Cron job. However I have other Cron jobs setup and working such as ones for Hivemail.

Thanks.

Just like the instructions said, although I need to use the php in mine.

0,15,30,45 * * * * php /mypathfromroot/www/forums/signatur/signature.php

Mr L 03-28-2003 11:45 PM

Damn, my bad!

It was the leading PHP that I did not have in my entry. I must have read those instructions several times but could not see the wood for the trees.

Thank you.

Chris Gwynne 03-28-2003 11:51 PM

Question: Could I have the sig files on one site; the folder, images and php file. And have the cron job on another?

Am I able to call it and it work?

Thanks :)


All times are GMT. The time now is 04:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01869 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete