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, 45 guest(s) and 2 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
anthonyaykut
Lieutenant
Lieutenant


Joined: Mar 26, 2003
Posts: 182

Location: Europe

PostPosted: Thu Apr 01, 2004 3:00 am Reply with quoteBack to top

Do you guys know where I can supress the extra space(s) after the sig??

If you have a look at my test here:

http://www.frame4.com/php/sutra117.html#117

there is an extra space (or two) after the sig that I would like to take out (just compare it to my sig here).

TIA
Anthony

_________________
Image
Find all posts by anthonyaykutView user's profileSend private messageSend e-mailVisit poster's website
ChadK
Sergeant
Sergeant


Joined: Mar 26, 2004
Posts: 75


PostPosted: Thu Apr 01, 2004 6:08 am Reply with quoteBack to top

Something strange I noticed on my site (beta NC). If you already have a sig with an IMG tag and you edit it (removing the hex codes it adds to it) then your sig won't work, it will just display the img tags. You have to remove everything from your sig, update the profile then edit the sig again and enter your img tags for it to work. I don't know what those codes are but if you remove them it won't display your sig.

I also had trouble getting it to take my image and I could only get it to work if I submitted my profile from one or the other profile pages but I can't remember if it was the one in the forums or the one on the nuke portal that I had to edit. Two places to edit profiles sucks.

_________________
Image
Find all posts by ChadKView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Thu Apr 01, 2004 7:52 am Reply with quoteBack to top

Wouldn’t you know it! All the mucking around to get my SIG to work in 2.07 *I upgraded to 2.08 and still no sig!

Now I remember after reading the last post how I got it to work in Nukecops and NOT my page.

1. Go to “Your Account” in nuke. Remove your Signature.
2. Go to forms
3. Go to Profile and reinstall the code.

Thanks again! I thought I did that once already and it was NOT working. I did it a third time with the hacks and its working!

GREAT!

_________________
Image
Find all posts by twelvesView user's profileSend private messageVisit poster's website
anthonyaykut
Lieutenant
Lieutenant


Joined: Mar 26, 2003
Posts: 182

Location: Europe

PostPosted: Sun Apr 04, 2004 11:35 pm Reply with quoteBack to top

Anyone that can help me with my problem? I thought since some of the people here know quite a bit about sigs, they would know an answer for this one as well Wink

TIA
Anthony
Find all posts by anthonyaykutView user's profileSend private messageSend e-mailVisit poster's website
ChadK
Sergeant
Sergeant


Joined: Mar 26, 2004
Posts: 75


PostPosted: Mon Apr 05, 2004 4:21 am Reply with quoteBack to top

anthonyaykut: Make sure you don't have any spaces after the sig on that site... I mean, if you have an image tag, be sure it's all on one line and there are no spaces. If you use tables or something make sure there are no carriage returns/new lines in it anywhere as those throw off the output as well.
It might help if you posted your signature.php file

_________________
Image
Find all posts by ChadKView user's profileSend private messageVisit poster's website
anthonyaykut
Lieutenant
Lieutenant


Joined: Mar 26, 2003
Posts: 182

Location: Europe

PostPosted: Mon Apr 05, 2004 4:54 am Reply with quoteBack to top

ChadK :

I do not have any spaces after the img tag - its all on one line. I am thinking it has more to do with either my tpl file(s) or the theme css(?) but I am not sure where to look. Anyway, here's my signature.php (taken from this thread):

Code:

<?php
require_once("mainfile.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+210;
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
ImageString($im, 3, 91, 2, "Statistics for $sitename", $tc);
ImageString($im, 2, 91, 15, "Nuke Version: $Version_Num", $tc);
ImageString($im, 2, $leerzeichen, 15, "phpBB Version: $version", $tc);
ImageString($im, 2, 91, 25, "Members: $total_users", $tc);
ImageString($im, 2, $leerzeichen, 25, "Online: $logged_online", $red);
ImageString($im, 2, 91, 35, "Total Posts: $total_posts Posts in $total_topics Topics", $tc);
ImageString($im, 2, 91, 45, "Newest Member: $newest_user", $tc);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?>
Find all posts by anthonyaykutView user's profileSend private messageSend e-mailVisit poster's website
maestro
Nuke Soldier
Nuke Soldier


Joined: Aug 01, 2003
Posts: 20


PostPosted: Thu Apr 08, 2004 12:14 pm Reply with quoteBack to top

hey you guys rock! Very Happy

_________________
Image
http://www.vampyres.tk
Find all posts by maestroView user's profileSend private messageSend e-mailVisit poster's websiteICQ Number
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Thu Apr 08, 2004 5:25 pm Reply with quoteBack to top

Dag gum it. I guess I'm gonna have to spruce mine up a bit now

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
np6s4x
Corporal
Corporal


Joined: Feb 08, 2004
Posts: 68


PostPosted: Thu May 20, 2004 3:08 pm Reply with quoteBack to top

thx, for this great thread, got it all working, but there's just two little things i'm wondering about that i see in some people's:

1. this line: "We received xxxxxx page views since xx, xx, xxxx"

and

2. Online now(xx): x members and x visitors.

i was wondering how i could add those lines to it, thx Smile

edit: nm, figured it out, thx Very Happy

(it's of course not live)

Image

though i removed the logo, and sitename, since if u were to type in the sitename on google, it's generally the 1st, or 2nd one, and would kinda like to be able to control where people come from, lol (though already been indexed by both yahoo, and google)
Find all posts by np6s4xView user's profileSend private message
ChadK
Sergeant
Sergeant


Joined: Mar 26, 2004
Posts: 75


PostPosted: Wed Jun 16, 2004 11:04 am Reply with quoteBack to top

Mine used to work but one day it just stopped... ?
http://www.nukecops.com/postp131608.html#131608

_________________
Image
Find all posts by ChadKView user's profileSend private messageVisit poster's website
AlBaloushi
Nuke Soldier
Nuke Soldier


Joined: Feb 20, 2004
Posts: 15

Location: U.A.E

PostPosted: Wed Jun 30, 2004 4:32 am Reply with quoteBack to top

i am trying that also since 4 days but cant get the pic it always shows me that red X and i have GD installed in my web server

GD Library Information
GD Version bundled (2.0.23 compatible)
FreeType Support Yes
T1Lib Support No
GIF Read Support Yes
GIF Create Support No
JPG Support Yes
PNG Support Yes
WBMP Support Yes
XBM Support Yes



so can any like to help me i have put that sig file in my root the address is www.uaedrag.com/signature.php

_________________
Image
Find all posts by AlBaloushiView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
AlBaloushi
Nuke Soldier
Nuke Soldier


Joined: Feb 20, 2004
Posts: 15

Location: U.A.E

PostPosted: Wed Jun 30, 2004 4:38 am Reply with quoteBack to top

and i am useing phpBB 2.0.5
Code:
<?php

/**********************************************************************/
/* phpBB2 Dynamic Statistics Signature                               */
/* ============================================ */
/*                                                                      */
/* by thainuke / webmaster@thainuke.net                           */
/* http://www.thainuke.net :: PHP-Nuke Thailand               */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/************************************************************************/

// FI Subsilver
require_once("mainfile.php");
global $prefix, $startdate, $db;

list($count) = $db->sql_fetchrow($db->sql_query("SELECT count FROM ".$prefix."_counter WHERE type='total' AND var='hits'"));
list($sitename) = $db->sql_fetchrow($db->sql_query("SELECT sitename FROM ".$prefix."_config"));
list($overall) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$prefix."_users"));
list($lastuser) = $db->sql_fetchrow($db->sql_query("SELECT username FROM ".$prefix."_users order by user_id DESC limit 0,1"));
list($member_online_num) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$prefix."_session WHERE guest = 0"));
list($guest_online_num) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$prefix."_session WHERE guest = 1"));
$who_online_num = $guest_online_num + $member_online_num;
$image = "signature.png";
$im = imagecreatefrompng($image);
$tc = ImageColorAllocate ($im, 5, 50, 250);  // Blue
$now = date("M d,Y H:i:s");
$red  = ImageColorAllocate ($im, 255, 0, 0);
$j = strlen($lastuser);
$space = $j*6+240;
ImageString($im, 3, 140, 5, "$sitename Live! $now", $tc);
ImageString($im, 2, 140, 17, "We received $count page views since $startdate.", $tc);
ImageString($im, 2, 140, 30, "Total Members: $overall", $tc);
ImageString($im, 2, $space, 30, "Latest: $lastuser", $red);
ImageString($im, 2, 140, 40, "Online Now($who_online_num): $member_online_num members and $guest_online_num visitors.", $tc);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);

?>



and this is the code that i am useing i have tried many other code that ppl posted before but most of them giving me some erros in some lines.

and if u have a better one then this and working also then plz can u post it over here so that i can also use it thanks.

_________________
Image
Find all posts by AlBaloushiView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Akaveli
Captain
Captain


Joined: Jan 03, 2004
Posts: 501


PostPosted: Sat May 14, 2005 1:04 pm Reply with quoteBack to top

Thanks for this one!
Find all posts by AkaveliView user's profileSend private message
McKooter
Sergeant
Sergeant


Joined: Nov 22, 2003
Posts: 101


PostPosted: Wed May 25, 2005 7:45 pm Reply with quoteBack to top

ive been working on destroying this script for a day now and have managed to mess it up. (using telli's) posted

now i have a simple request, lets say i wanted to show the last banned ip address, how would i do that? what modifications and how do i pull the data,

(note, thats not specifically the thing i need but i think i can customize it much more once i figure out how to pull data and assign it to variables a bit better)

and if you put up a solution if you could let me know what table and what field your pulilng from so i can easily see where to change it to suit me.

Thanks so much, i know if i get this ill be able to cusomize it much better to my liking
Find all posts by McKooterView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Thu May 26, 2005 2:13 am Reply with quoteBack to top

Hello......if you want an example rather than exact code, why not use the "example" that exists in the signature already?

Pulling data from the database is pulling data from the database regardless of you reading it here or in your own script.

If you want something specific then we could give you a little bit more help Smile

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
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
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.299 Seconds - 292 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::