Forum is shutting down, join us on Discord.

- No new threads can be created
- Shoutbox has been disabled
- All chat/support/market will be on Discord
- if you have a special status on forum (ie: staff, legendary user, etc), then PM Phoenix on forum with your Discord name to reclaim your status on Discord
See you all on Discord!


  
Go Back   Twilight MU Online Forum > Community > Programming Section

Programming Section All programming related stuff goes here.


Welcome to the Twilight MU Online Forum forums.

You are currently viewing our boards as a guest which gives you limited access. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

After registering you will receive an email with a confirmation link that you will need to click in order to activate your forum account.

NOTE: It's recommanded that you use on forum a different username and password than the game username and password.

If you have any problems with the registration process or your account login, please contact contact us.

 
 
Thread Tools Display Modes

[Add] Dynamic signature, online+elite
Old 01-02-2009   #1
albsky
I'm speshul x_X

 
albsky's Avatar
 
InGame Character:
My Mood:
albsky is offline
Points: 9,407, Level: 41
Points: 9,407, Level: 41 Points: 9,407, Level: 41 Points: 9,407, Level: 41
Level up: 80%, 93 Points needed
Level up: 80% Level up: 80% Level up: 80%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Rank: Platinum Member
Join Date: Jun 2008
Rep: albsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud ofalbsky has much to be proud of
Rep Power: 221
Casino Cash: 5538
Default [Add] Dynamic signature, online+elite

At first, this is just an addition to Quest's Dynamic Signature Guide

Ok, this is for real PHP noobs who have just started with PHP or just created a dynamic signature.
In the guide, the copy and paste parts don't include Elite resets and online status.
I'll share my codes for these things with some funny extra things on it.

Elite reset;

Code:
if ($results1[3][0]==0){
imagestring($im , $font , 159 , 32, "NO" , $textcolor );
}
else{
imagestring($im , $font , 159 , 32, "Yes" , $textcolor4  );
}
You see I started an 'if, else' statement there.
I always do it as; Elite? No, yes.
If The elite row = '0' then display 'NO'.
And vice versa.

Online Status;

Code:
if ($results0[1][0]=="Online"){
imagestring($im, $font, 257, 26, "Online", $textcolor2);
}
else{
imagestring($im, $font, 257, 26, "Offline", $textcolorRED);
}
Again if else statement.
To get it offline and online.
I hope this helped you guys out a bit and maybe you learned a bit from it as well

Quest's Dynamic Signature Guide
Use it, USE IT!
__________________
-----

 
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -5. The time now is 08:12 AM.



vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright ©2006 - 2019 Twilight MU. All Rights Reserved