vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Signature Stats v3.04 (https://vborg.vbsupport.ru/showthread.php?t=65361)

Meltingfire 08-12-2004 04:23 PM

Quote:

Originally Posted by Natch
This issue occurs for some but not others - I'm wondering if it could be related to a permissions issue - maybe the guest (the cron job) doesn't have permissions to access those tallies...

Strange, well then i have to add it to the cronjob in the OS instead...

kingady 08-18-2004 01:10 PM

nice, im gonnaa do this right now

oldfan 08-20-2004 12:18 AM

I seen someone with "newest member" on his ?
Did I miss some code?

Natch 08-20-2004 06:11 AM

Nope - that's a customisation: you can in this script pull in any data you like, and output it to the image.

DWard 08-20-2004 09:08 AM

Show newest user in Signature Stats
This will show you how to display the newest user in your signature image

Open your signature.php file and Find:
Code:

        $totalonline = $numberregistered + $numberguest;
Below that, add:
Code:

// GETTING NEWEST USER
     
        $newestuser = $DB_site->query("SELECT username FROM " . TABLE_PREFIX . "user AS user ORDER BY userid DESC LIMIT 1");
              $nuser = mysql_result($newestuser,0);

Then your $output string should be a little like this (look for bold text):
Code:

$output = "MEMBERS: $numbermembers THREADS: $totalthreads POSTS: $totalposts ONLINE: $totalonline NEWEST USER: $nuser";
If you have any problems, just reply in this thread :)

oldfan 08-20-2004 02:28 PM

thanks DWard

DWard 08-20-2004 04:07 PM

No worries! If anybody needs something else in their signature, contact me and I'll get on it :D

oldfan 08-20-2004 04:10 PM

here's a shot in the dark...
i have a BitTorrent tracker intergrate into my vB3 and I have the stats output in my forum index.
Is it possible to add this to the signature too?

http://bbs.metallifukinca.com/index.php?
the tracker stats are bellow then forums.


thanks

DWard 08-20-2004 05:52 PM

It may be, could you send me a screenshot of the table your stats are being read from?

joergh 08-21-2004 08:58 PM

Quote:

Originally Posted by Big Kahuna
The reason the bad graphic in the above post now looks good is that I found the answer on the F5hosting forum.

For those others of you who have been waiting days for the detailed answer on how to make the washed out graphics work -- the answe is (drum roll)

The image you are using has more than 256 colours so the method in the hack will never work. The function they should have used to create the initial image is imagecreatetruecolor and not imagecreate, so if you replace the line

Code:

$img = imagecreate($width,$height);
with

Code:

$img = imagecreatetruecolor($width,$height);
it should work.

Great! Thank you so much , I tried everything before i found your post!

joergh


All times are GMT. The time now is 03:15 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.01495 seconds
  • Memory Usage 1,741KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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