vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum+ecDownloads Stats on Signature Image (https://vborg.vbsupport.ru/showthread.php?t=102551)

Mr Chad 12-08-2005 10:00 PM

Forum+ecDownloads Stats on Signature Image
 
If you like it click
https://vborg.vbsupport.ru/


Installation Time: <5 mins
Files: 1
Plugins: 1
VB Version: This actually works on 3.5.0 - 3.5.4 for 3.6.0 - 3.6.4 go here


Description:

This Hack will but your vb Forum stats (i.e. No. of Members, Threads and Posts) on your Signature Image. It uses the layout from sig.jpg, calls the stats from your Databank and creates a new images called signature.jpg

This hack uses the PHP-GD Function, so be shure you have this enabled on your server. If you don?t be shure about this, ask your host or look in your PHP-Info.

Installation Instructions:
  1. Open signature.php in a text editor and set the variables at top according to your requirements (These are settings for stats text placement and with and height of signature image)
  2. Upload signature.php to your forums directory
  3. Open sig.jpg in your favourite Graphics Programm and make a real cool Signature image
  4. Save it with the same name and upload it to your forum directory
  5. Install the plugin and wait 5 mins :)
Examples:
http://the-chad.com/forums352/signature/signature.jpg

http://the-chad.com/forums352/banner.jpg

https://vborg.vbsupport.ru/
FAQ: N/A

If you like it click
https://vborg.vbsupport.ru/

This hack was based on tkeil69575's hack.


To add extra stats look in the signature.php for more info.

HMBeaty 12-08-2005 11:34 PM

Screenshot please?

dieselpowered 12-08-2005 11:36 PM

Ummm there is nothing attached my friend??

singhoo 12-08-2005 11:37 PM

no file to download?

Mr Chad 12-08-2005 11:39 PM

Quote:

Originally Posted by singhoo
no file to download?

added it.

and added a example

and some instructions

dieselpowered 12-08-2005 11:47 PM

Doh there the instructions are :)

Mr Chad 12-08-2005 11:51 PM

Quote:

Originally Posted by xtremeoff-road
Doh there the instructions are :)

lol, sorry never released anything before. (I was adding everything piece by piece)

Zachariah 12-08-2005 11:54 PM

Quote:

Originally Posted by chatbum
lol, sorry never released anything before. (I was adding everything piece by piece)

I rem my 1st time. :rolleyes: :laugh:

I'll take a look

Mr Chad 12-08-2005 11:58 PM

Quote:

Originally Posted by Zachariah
I rem my 1st time. :rolleyes: :laugh:

I'll take a look

lol, thanks

WNxWakko 12-09-2005 01:39 AM

I did everything. The image was created, the 3 lines are on the image, but all data shows 0. I put in my DB username and pass all correctly. Running 3.5.2

Mr Chad 12-09-2005 02:03 AM

did you run the php file? and are you getting any errors?

evenmonkeys 12-09-2005 02:17 AM

I like the hack, but the instructions need to be re-done a bit. There are far too many errors in the installation instructions themselves and it's making it hard to fully understand.

WNxWakko 12-09-2005 02:19 AM

I did run the php manually, it does create the 2nd image. I do get these errors though,

Quote:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /******************/Forum/signature.php on line 55

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /******************/Forum/signature.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /******************/Forum/signature.php on line 62

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /******************/Forum/signature.php on line 64

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /******************/Forum/signature.php on line 69

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /******************/Forum/signature.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /******************/Forum/signature.php:55) in /******************/Forum/signature.php on line 103

evenmonkeys 12-09-2005 02:26 AM

Fatal error: Call to undefined function: imagecreatefromjpeg() in /path/signature.php on line 84

Mr Chad 12-09-2005 02:40 AM

Quote:

Originally Posted by xYarub
Fatal error: Call to undefined function: imagecreatefromjpeg() in /path/signature.php on line 84

let me see.

Do you have GD 2.0 installed?

Mr Chad 12-09-2005 02:47 AM

Quote:

Originally Posted by WNxWakko
I did run the php manually, it does create the 2nd image. I do get these errors though,

it looks like you didnt enter in the right table prefix.

WNxWakko 12-09-2005 04:11 AM

how do I find out the table prefix?

Mr Chad 12-09-2005 04:27 AM

like what are your tables named in your database, i think the standard is 'vb3_' look at one of your tables for example vb3_user

dieselpowered 12-09-2005 02:30 PM

Standard is no table prefix at all :)

You can check your prefix either by going into the db via php my admin or you can go into your config file and looking at what you entered :)

WNxWakko 12-09-2005 08:53 PM

sweet, that was the trick. I had no table prefix defined, it was just "" so now it works perfect.

Mr Chad 12-09-2005 08:59 PM

oh, guess i learned something.

WNxWakko 12-09-2005 09:29 PM

I know you said to put the signature.php in the Forum/ directory, but setting up the cron is not easy for it being in that directory. Just for anyone else to know, you can just put the signature.php file in your includes/cron/ directory and it still works the same without changing any settings. Then you can just use the defaut cron setup.

Here is my working Signature,
http://www.warriornation.net/Forum/i...wakko/sig2.jpg

I do have a question or two.

How did you add the number online bit. Also the info in my sig is not perfectly calculated to what the board says on members, posts and threads. Is it excluding certain usergroups and forums? members are about 20 off, threads are about 3000 off.

Mr Chad 12-09-2005 09:40 PM

Its because its not calling the global.php, so it just goes straight to the database im thinking its adding all the things you deleted. because lets say you make thread 100 and then you delete it, and someone makes another thread its going to be 101 not 100 again. It just pulls the ID number.

WNxWakko 12-09-2005 09:47 PM

hmm ok. I just found the difference in members, Its excluding all that are in the Awaiting Moderation usergroup on my board.

The threads bit is really really far off,
1,357,759 is actual, its about 22,104 off.

Mr Chad 12-09-2005 10:02 PM

Quote:

Originally Posted by WNxWakko
hmm ok. I just found the difference in members, Its excluding all that are in the Awaiting Moderation usergroup on my board.

The threads bit is really really far off,
1,357,759 is actual, its about 22,104 off.

yea it doesnt look at what was deleted.

like make a new thread and look at the thread number, same w/ the post number.

oh and the currently online thing. I made mine up lol, im working on a way to pull it out.

Mr Chad 12-10-2005 03:10 AM

Ok just find:
Code:

$totalposts=number_format($postb['posts']);
and replace with this
Code:

$totalposts=number_format($postb['posts'] - 22640);

Mr Chad 12-10-2005 03:34 AM

im just messin around and i figured our how to call up stats from ecdownloads mod.

Lea Verou 12-10-2005 06:39 AM

Woah I wanted to make this!!
Thanks you saaved me lots of time!!! :D

Mr Chad 12-10-2005 06:46 AM

Quote:

Originally Posted by Michelle
Woah I wanted to make this!!
Thanks you saaved me lots of time!!! :D

lol no problem.

board.trash 12-11-2005 12:16 AM

nice hack, thank you !

can you tell me how can i change the font type?

Mr Chad 12-11-2005 01:36 AM

hmm, thats one thing i was not able to do, ill work on that.

If anyone wants me to tell you how to let it show how many files you have in ecDownloads and how may times they have been downloaded. Just ask.

Mr Chad 12-14-2005 06:03 AM

anyone know how to get the latest member?

Dark Riku 12-15-2005 05:25 PM

Quote:

Originally Posted by chatbum
anyone know how to get the latest member?

Yea, Id also like to know how to add the Latest member.

Stephen3 12-20-2005 08:52 PM

nice~

trancetopia 12-20-2005 09:23 PM

I've been waiting for this, thanks. Works like a charm :)

[high]* trancetopia clicks install[/high]

Mr Chad 12-24-2005 01:21 AM

Ok i did some research. Results are in the hack description.

If you have ecdownloads you will love this.

This will get these stats: total downloads, total downloads downloaded, latest download, Latest Member

Zia 12-24-2005 03:31 AM

umm im kinda confused...does this need sql query...if so..how many sql query it needed?
if this..xtra sql query in every page....won't it slow down the page load?/

Mr Chad 12-24-2005 04:12 AM

no lol... you use the php file to create the sig image. and set the cron to run that file every 15 mins, you use the .jpg for the sig image. so it does a few querys every 15 mins.

Mr Chad 12-25-2005 12:20 AM

Im working on a way to get currently online.

Toneboy 12-29-2005 02:27 PM

Works nicely. How do you change the font & text positioning?


All times are GMT. The time now is 12:47 PM.

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.01367 seconds
  • Memory Usage 1,817KB
  • 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
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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