vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - ForumSig 1.0 (https://vborg.vbsupport.ru/showthread.php?t=127076)

Tuga?? 10-27-2006 04:07 PM

Quote:

Originally Posted by DavutPasha
I added some extra lines. You can see my signature.

* Server Load
* Server Uptime
* Server Activity

I want to share my own codes with you..

PHP Code:

// information about server activity
$sunucu = @fsockopen(localhost80);
if (
$sunucu) {
$sunucudurumu .= "ACTIVE";
}
else {
$sunucudurumu .= "INACTIVE";
}

// Uptime and Server Load istatistics
$uptimekaydi trim(exec("uptime"));
if (
$uptimekaydi) {
if (
preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/"$uptimekaydi$uptime)) {
$kullanicilar[0] = $uptime[1];
$kullanicilar[1] = $uptime[2];
$suankiyuk $uptime[3];
$yukleme15 $uptime[4];
$yukleme30 $uptime[5];
}
} else {
$kullanicilar[0] = "Mevcut degil";
$kullanicilar[1] = "--";
$suankiyuk "Mevcut degil";
$yukleme15 "--";
$yukleme30 "--";
}
$uptime shell_exec("cut -d. -f1 /proc/uptime");
$gun floor($uptime/60/60/24);
$saat $uptime/60/60%24;
$dakika $uptime/60%60;
$saniye $uptime%60

you can add this informations like this;

PHP Code:

$information1 "DAVUTPASHA.COM HAS $suankiyuk SERVER LOAD AND ALSO";
$information2" WE HAVEN'T HAD ANY PROBLEM ABOUT $gun DAYS $saat:$dakika:$saniye SECONDS.";

imagestring($im24192"SERVER ACTIVITY: " $sunucudurumu$text_color);
imagestring($im2516$information1$text_color);
imagestring($im2529$information2$text_color); 


Main codes are in Turkish. I translated them to English. You can translate other words.

See my sig: http://www.davutpasha.com/imzam.php

hi mate i have one imagem like you can please help me wath i put inside off the sign.php

http://cracktugateam.com/forum/sig.php

i insert the image in anex.

Thank you

Jaxx 11-04-2006 06:14 PM

*edited*

Figured it out.

Thanks for the mod.

Riku Yuizaki 11-05-2006 12:02 AM

Nice mod, I made one like this as well, its awesome, you can display pretty much anything you want on it, you can do stuff like this even:

https://vborg.vbsupport.ru/
not one query used anywhere in it!

Shouzen 11-07-2006 05:33 PM

How do i make it work like that?
how do i make a .htaccess file?

Tuga?? 11-07-2006 05:37 PM

http://cracktugateam.com/forum/sig.php

work fine now;)

zompus 11-08-2006 08:26 PM

Wont work for me, prolly because i got vbseo installed... doubleyellowcard.com/sig.php

zompus 11-08-2006 08:38 PM

anyone got any suggestions on what i can do?

zompus 11-09-2006 12:59 AM

hmmm?

kg4mxz 11-09-2006 01:08 AM

Sorry, don't have vBSEO so I have no idea (I am accepting donations :D )

ashley53680 11-18-2006 03:26 AM

Worked perfectly! I just quickly did a base and uploaded things. Took less then 3 minutes from start to finish. :)

sduckie2k5 11-19-2006 11:51 AM

Works great, thanks!

TRR 12-01-2006 10:53 AM

Quote:

Originally Posted by optrex (Post 1079918)
can you tell me how I would set this cron job up - to update every 15 mins and output a jpg?

Same here

MaestroX 12-08-2006 12:09 PM

I've installed this fine hack but my only concern is that when I view "who's online" there seems to be an awfull lot of people (and spiders) on the actual php page of the image. Its strange cause my .htaccess rewrites them to a .png file. Should I be worried?

organik81 12-08-2006 01:16 PM

THNX

http://www.dunyaforum.com/forum/imza.php

Tbadl 12-08-2006 02:28 PM

nice work

I will try to add to it ArabicGD

Xoxideforums 12-19-2006 12:27 AM

I understand how to change the font size. But how the heck do you change font style like this person did?

And I'm also interested in setting up a cron so I can use an image that gets updated.

Quote:

Originally Posted by Riku Yuizaki (Post 1110926)
Nice mod, I made one like this as well, its awesome, you can display pretty much anything you want on it, you can do stuff like this even:

https://vborg.vbsupport.ru/
not one query used anywhere in it!


zompus 01-22-2007 09:42 PM

This don't work with VBSeo!

Check: http://doubleyellowcard.com/sig.php - blank.

Riku Yuizaki 03-19-2007 12:38 AM

Woah, completely forgot about this...

To use different style fonts, refer to http://us3.php.net/manual/en/function.imagettftext.php

SLY LS1 10-06-2007 10:38 AM

Quote:

Originally Posted by Riku Yuizaki (Post 1110926)
Nice mod, I made one like this as well, its awesome, you can display pretty much anything you want on it, you can do stuff like this even:

http://www.rpgpalace.net/sakura/sakura_banner_05.png
not one query used anywhere in it!

Can you share some of the code, I like the members online bit

Cheers

SLY LS1 10-06-2007 11:50 AM

Ok heres how to add some others for those who dont know how

Members Online:

PHP Code:

//Members Online//
$datecut TIMENOW $vbulletin->options['cookietimeout'];
$guestsarry $vbulletin->db->query_first("SELECT COUNT(host) AS sessions FROM " TABLE_PREFIX "session WHERE userid = 0 AND lastactivity > $datecut");
$membersarry $vbulletin->db->query_read("SELECT DISTINCT userid FROM " TABLE_PREFIX "session WHERE userid <> 0 AND lastactivity > $datecut");
$guests intval($guestsarry['sessions']);
$members intval($vbulletin->db->num_rows($membersarry));
$online $guests $members

And add this to get it to show:

PHP Code:

imagestring($im210030"Members Online: " $online$text_color); 

and another

Newest User:

PHP Code:

//newest User//
$newuser $vbulletin->db->query_first("SELECT username AS newuser FROM " TABLE_PREFIX "user ORDER BY userid DESC LIMIT 1");
$newuser $newuser['newuser']; 

And add this to get it to show:

PHP Code:

imagestring($im223030"Newest Members: " $newuser$text_color); 


Hengest 10-06-2007 07:10 PM

Quote:

Originally Posted by Qwest (Post 1080171)
Hey guys.

For those of you complaining about forums not accepting sig.php as an image. Simply add this code to a .htaccess file and place it in the same directory as base.png and sig.php

Code:

RewriteEngine on
RewriteRule ^base.png$ sig.php

Then just link to base.png and Apache will automatically use sig.php

I tried this but when linking to the .png that is all I get, ie. not linking to the php. Any ideas or suggestions?


All times are GMT. The time now is 10:05 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.01318 seconds
  • Memory Usage 1,791KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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