You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 267 guest(s) and 70 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - sig generator for my site [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
viperxp45
Lieutenant
Lieutenant


Joined: Jun 07, 2003
Posts: 155


PostPosted: Sat Feb 21, 2004 11:23 am Reply with quoteBack to top

Iam looking for a php script / module that i can add to my php6.5 forum.. were members can make a signature from.. i dont kmow the correct term. but i have found it on alot of sites .. mainly clan fan sites.. any help? would be appreciated in advance.. thank you!!!
viperxp45@msn.com Very Happy
Find all posts by viperxp45View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
Stephen2417
Major
Major


Joined: Dec 26, 2003
Posts: 1135

Location: Bristolville, OH (US)

PostPosted: Sat Feb 21, 2004 11:42 am Reply with quoteBack to top

Here is something similar to what you are asking about:

http://www.codezwiz.com/modules.php?name=XARA

I think that you can alos download it on theyr site.
Find all posts by Stephen2417View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Sat Feb 21, 2004 11:52 am Reply with quoteBack to top

Hello,

Are you referring to a signature image like this? Image
where your forum info will be displayed inside the image?
Find all posts by foxyfemfemView user's profileSend private message
viperxp45
Lieutenant
Lieutenant


Joined: Jun 07, 2003
Posts: 155


PostPosted: Sat Feb 21, 2004 5:55 pm Reply with quoteBack to top

yes .and ty u all for ur reply.. but yes .can u help
Find all posts by viperxp45View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Sat Feb 21, 2004 9:34 pm Reply with quoteBack to top

Hello,

(1) Copy the above image to your images directory. This image should be named signature.png

(2) Add this file signature.php to your modules/Forums directory.
Code:
<?php

define('IN_PHPBB', true);
$phpbb_root_path = 'modules/Forums/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
$sql = "SELECT u.username, u.user_id, s.session_logged_in, s.session_ip
   FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
   WHERE u.user_id = s.session_user_id
      AND s.session_time >= ".( time() - 3600 ) . "
      $user_forum_sql
   ORDER BY u.username ASC, s.session_ip ASC";
if( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
}

$logged_online = 0;

$prev_user_id = 0;

while( $row = $db->sql_fetchrow($result) )
{
   // User is logged in and therefor not a guest
   if ( $row['session_logged_in'] )
   {
      // Skip multiple sessions for one user
      if ( $row['user_id'] != $prev_user_id )
      {
            $logged_online++;
      }

      $prev_user_id = $row['user_id'];
   }
}

$image = "images/signature.png";
$im = imagecreatefrompng($image);
$tc  = ImageColorAllocate ($im, 0, 0, 0);
$red  = ImageColorAllocate ($im, 255, 0, 0);
$version = '2'.$board_config['version'];
$sitename = $board_config['sitename'];
$total_users = get_db_stat('usercount');
$total_posts = get_db_stat('postcount');
$total_topics = get_db_stat('topiccount');
$j = strlen($total_users);
$leerzeichen = $j*6+237;
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
ImageString($im, 3, 148, 2, "Statistics for $sitename", $tc);
ImageString($im, 2, 148, 15, "phpBB Version: $version", $tc);
ImageString($im, 2, 148, 25, "Members: $total_users - ", $tc);
ImageString($im, 2, $leerzeichen, 25, "Online: $logged_online", $red);
ImageString($im, 2, 148, 35, "Total Posts: $total_posts Posts in $total_topics Topics", $tc);
ImageString($im, 2, 148, 45, "Newest Member: $newest_user", $tc);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?>


(3) Add this to your signature on any phpbb/nukebb forum [ img=http://www.yourdomain.com/modules.php?name=Forums&file=signature[ /img] Note: I added a space between img & /img make sure there is no space when you add it to your signature.

_________________
If you shoot for the moon and miss, you'll still be amongst the stars.
Find all posts by foxyfemfemView user's profileSend private message
viperxp45
Lieutenant
Lieutenant


Joined: Jun 07, 2003
Posts: 155


PostPosted: Sun Feb 22, 2004 2:57 pm Reply with quoteBack to top

thank you i will try this code ...u guys are very nice ..thanks !!!!
Find all posts by viperxp45View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
viperxp45
Lieutenant
Lieutenant


Joined: Jun 07, 2003
Posts: 155


PostPosted: Sun Feb 22, 2004 3:21 pm Reply with quoteBack to top

well still working to get that code to work .. but can u check this link ..here will give a idea what iam trying to do ..
http://www.crazydogsworld.com/modules.php?name=Graphics_Shop&file=sig
Find all posts by viperxp45View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
viperxp45
Lieutenant
Lieutenant


Joined: Jun 07, 2003
Posts: 155


PostPosted: Tue Feb 24, 2004 9:51 am Reply with quoteBack to top

Sad well i tried the code and iam not able to get it to work ..but after reading this post over and over i think foxfemfem that its really not what iam looking for , but the link i have provided on my last post is more what iam trying to get results for ,,, anyway thank you ..but still searching for a mod,hack,or a way a member can go to select a templet wich i can provide , that will make them a sig ...they will just click on a few buttons and whala! there sumital will send it to me then i will actully make it .with the templet they chose and text they provide... then i will host it on my site and post the code for them to use...
Find all posts by viperxp45View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Tue Feb 24, 2004 11:14 am Reply with quoteBack to top

Hello,

I visited your site. I don't think you need a mod nor a hack, you need a complete program to do what you want. If, I'm not mistaken. You want to offer an image for the user's signature that you generate for them based on the information they give you? Uhm, you need a coder to code you a program that does that and a coder I'm not Laughing

_________________
If you shoot for the moon and miss, you'll still be amongst the stars.
Find all posts by foxyfemfemView user's profileSend private message
viperxp45
Lieutenant
Lieutenant


Joined: Jun 07, 2003
Posts: 155


PostPosted: Tue Feb 24, 2004 10:12 pm Reply with quoteBack to top

well thank you so much for the reply .. i was thinking that, but really didnt know. also thumbs up that sig u have is realy cool too ...i just couldnt get mine working,,,uploaded the image,and made a signature.php and put into the fourms directory but as my luck ...Sad hehe but thanks have a very nice day ... Very Happy
Find all posts by viperxp45View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Tue Feb 24, 2004 10:48 pm Reply with quoteBack to top

viperxp45 wrote:
well thank you so much for the reply .. i was thinking that, but really didnt know. also thumbs up that sig u have is realy cool too ...i just couldnt get mine working,,,uploaded the image,and made a signature.php and put into the fourms directory but as my luck ...Sad hehe but thanks have a very nice day ... Very Happy



Put the signature.php in your main root next to the config.php Wink

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
echostorm
Nuke Soldier
Nuke Soldier


Joined: Oct 13, 2003
Posts: 33


PostPosted: Wed Feb 25, 2004 1:36 am Reply with quoteBack to top

Hi Telli, can you please tell me step by step how to do that? are you changing something in the code? I tried as you said with no results, I know I am missing a step here. Thanks.
Find all posts by echostormView user's profileSend private message
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Wed Feb 25, 2004 1:51 am Reply with quoteBack to top

save this as signature.php and upload into your root directiory next to your config.php put the signature.png into your root/images folder.

Code:
<?php
$phpbb_root_path = 'modules/Forums/';

define('IN_PHPBB', true);
include ('config.php');
include ('db/db.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
$sql = "SELECT u.username, u.user_id, s.session_logged_in, s.session_ip
   FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
   WHERE u.user_id = s.session_user_id
      AND s.session_time >= ".( time() - 3600 ) . "
      $user_forum_sql
   ORDER BY u.username ASC, s.session_ip ASC";
if( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
}

$logged_online = 0;

$prev_user_id = 0;

while( $row = $db->sql_fetchrow($result) )
{
   // User is logged in and therefor not a guest
   if ( $row['session_logged_in'] )
   {
      // Skip multiple sessions for one user
      if ( $row['user_id'] != $prev_user_id )
      {
            $logged_online++;
      }

      $prev_user_id = $row['user_id'];
   }
}

$image = "images/signature.png";
$im = imagecreatefrompng($image);
$tc  = ImageColorAllocate ($im, 0, 0, 0);
$red  = ImageColorAllocate ($im, 255, 0, 0);
$version = '2'.$board_config['version'];
$sitename = $board_config['sitename'];
$total_users = get_db_stat('usercount');
$total_posts = get_db_stat('postcount');
$total_topics = get_db_stat('topiccount');
$j = strlen($total_users);
$leerzeichen = $j*6+237;
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
ImageString($im, 3, 148, 2, "Statistics for $sitename", $tc);
ImageString($im, 2, 148, 15, "phpBB Version: $version", $tc);
ImageString($im, 2, 148, 25, "Members: $total_users - ", $tc);
ImageString($im, 2, $leerzeichen, 25, "Online: $logged_online", $red);
ImageString($im, 2, 148, 35, "Total Posts: $total_posts Posts in $total_topics Topics", $tc);
ImageString($im, 2, 148, 45, "Newest Member: $newest_user", $tc);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?>


Then to view it just type in the URL to the script

http://codezwiz.com/signature.php

Telli

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
echostorm
Nuke Soldier
Nuke Soldier


Joined: Oct 13, 2003
Posts: 33


PostPosted: Wed Feb 25, 2004 10:44 am Reply with quoteBack to top

Thank you Telli and foxyfemfem, It works this way for me but not the other? I think my site is possessed. Neutral
Find all posts by echostormView user's profileSend private message
ryan1918
Sergeant
Sergeant


Joined: Aug 16, 2003
Posts: 144


PostPosted: Wed Feb 25, 2004 6:39 pm Reply with quoteBack to top

test
Find all posts by ryan1918View user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.100 Seconds - 323 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::