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, 46 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Fix Your Signature [ ]
 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
eaglewing
Private
Private


Joined: Oct 19, 2004
Posts: 48


PostPosted: Fri Jan 07, 2005 4:55 am Reply with quoteBack to top

BrainSmashR wrote:
If your signature is posting the code instead of the image, please use the following link and edit your forum preferences instead of Your Account preferences.

http://nukecops.com/modules.php?name=Forums&file=profile&mode=editprofile


Basically, EVERYTHING works better if done from the FORUM profile instead of the Account Profile, so I just redirected the 'Account Info' button to point to their forum profile and no more EMAILS about cant accesss the forums after a unsername change or password change either.....seems theres a BUG in the Account profile not sending out the EMAIL for activation or something.
Find all posts by eaglewingView user's profileSend private message
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Fri Jan 07, 2005 2:30 pm Reply with quoteBack to top

eaglewing wrote:

Basically, EVERYTHING works better if done from the FORUM profile instead of the Account Profile, so I just redirected the 'Account Info' button to point to their forum profile and no more EMAILS about cant accesss the forums after a unsername change or password change either.....seems theres a BUG in the Account profile not sending out the EMAIL for activation or something.


Forums is just a module of PHP-Nuke, forum's profile is for forums only, the rest of PHP-Nuke uses Your_Account's profile. We need to fix the problem instead of giving each other "work arounds". The Your_Account could be most powerful than you could ever think. CNB YA is a good example.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Tue Jan 18, 2005 4:56 am Reply with quoteBack to top

How to post your Dynamic Signature on sites that do not allow php images using Custom 404

Just add the following code to your root .htaccess file, and edit as needed. Signature3.php is also located in my root.

Code:

ErrorDocument 404 /signature3.php


Then link your signature to an image on your server that does not exist, like brainsmashr.com/signature.gif

Image

I have read of another method using Rewrite in the .htaccess, but I was unsuccessful in getting that method to work. I know for a FACT the above method works.

_________________
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
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Wed Jan 19, 2005 4:06 am Reply with quoteBack to top

Well, that way has some errors. Basically your signature will show on every error.

So I started playing with the Rewrite method and figured out why it wouldn't work for me before.

Code:

RewriteEngine  on
RewriteRule    signature\.gif /signature3.php


Remove the custom 404 and add the above to your .htaccess, editing as needed

The first slash is to escape the period. The second slash is to tell the rewrite to look in the root for signature3.php.

NOW my signature only appears when I call signature.gif (which STILL does not exist) instead of appearing on every 404 error

_________________
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
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Sat Jan 22, 2005 6:35 am Reply with quoteBack to top

Not very complicated, but I changed my signature to 2 images.

Click the left side to join Team Nukecops, click the right side to visit BrainSmashR.com!!!

_________________
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
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Mon Jan 24, 2005 3:10 am Reply with quoteBack to top

BrainSmasher, how did you make your signature? I want to make a similar signature like yours.

Is the info auto update in your sig?
Find all posts by GinzaView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Mon Jan 24, 2005 4:29 am Reply with quoteBack to top

Yes, it's called a Dynamic Signature, and it updates automatically.

Some version of my signature file is posted on this thread, just go back a couple of pages to find it.

Then I just duplicated my signature and assoicated images, changed the relavent names, then commented out the content I did not want to appear in each signature......and voila.

My signature is actually 2 different images linked to different addresses, I simply edited them so they would appear as 1.

_________________
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
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Mon Jan 31, 2005 3:29 am Reply with quoteBack to top

I went thru them but still i am clueless. I check the bbcode.php file aswell and i dont seems to have a similar line.

Can you make one for me?
Find all posts by GinzaView user's profileSend private message
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Mon Jan 31, 2005 3:34 am Reply with quoteBack to top

What i mean is give me a sample or a step by step tutorial.
Find all posts by GinzaView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Mon Jan 31, 2005 4:48 am Reply with quoteBack to top

Terribly sorry, I guess I removed the code I refered you to sometime in the past.

Here is my signature file, edit as you see fit. However, I'll warn you now that the code looks like crap and I've commented a ton of stuff out. Also, I'll just post the side with my website data. It's the exact same code i use for the SETIBoinc side of my signature, but it uses a second image and has different stuff commented out. No since trying to make it harder on you than it has to be.

Save the following code as signature.php, edit as needed, then upload to your root directory.

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);

$sql = "SELECT uname FROM $user_prefix"._users." ORDER BY uid DESC LIMIT 0,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$lastuser = $row[uname];
$numrows = $db->sql_numrows($db->sql_query("SELECT uid FROM $user_prefix"._users.""));

$sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
$result = $db->sql_query($sql);
$member_online_num = $db->sql_numrows($result);
$who_online_now = "";
$i = 1;
while ($session = $db->sql_fetchrow($result)) {
    if (isset($session["guest"]) and $session["guest"] == 0) {
        if ($i < 10) {
            $who_online_now .= "0$i:&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$session[uname]\">$session[uname]</a><br>\n";
        } else {
            $who_online_now .= "$i:&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$session[uname]\">$session[uname]</a><br>\n";
        }
        $who_online_now .= ($i != $member_online_num ? "  " : "");
        $i++;
    }
}
$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));

$who_online_num = $guest_online_num + $member_online_num;
$ip_address = $_SERVER['REMOTE_ADDR'];

//Megabyte
$statspath2 = "http://setiweb.ssl.berkeley.edu/userw.php?id=712168";

$stats2 = file_get_contents("$statspath2"."$id2");
$stats_array2 = explode("<br/>",$stats2);

for($i=0;$i<sizeof($stats_array2);$i++) {
   $stats_array2[$i] = strip_tags($stats_array2[$i]);
}

$project2 = $stats_array2[0];
$username2 = substr($stats_array2[2],4);
$tot_credit2 = substr($stats_array2[4],14);
$avg_credit2 = substr($stats_array2[5],14);
$teamname2 = substr($stats_array2[7],6);
$team_tot_credit2 = substr($stats_array2[8],14);
$team_avg_credit2 = substr($stats_array2[9],14);



$titeldata2 = strlen($username2) * imagefontwidth(1);
if(strlen($username2) > 15) {
   $username = substr($username2,0,12)."...";
   $titeldata = strlen($username2) * imagefontwidth(1);
}
$tot_creditdata2 = strlen($tot_credit2) * imagefontwidth(1);
$avg_creditdata2 = strlen($avg_credit2) * imagefontwidth(1);
$teamdata2 = strlen($teamname2) * imagefontwidth(1);
if(strlen($teamname2) > 19) {
   $teamname2 = substr($teamname2,0,16)."...";
   $teamdata2 = strlen($teamname2) * imagefontwidth(1);
}
$team_totdata2 = strlen($team_tot_credit2) * imagefontwidth(1);
$team_avgdata2 = strlen($team_avg_credit2) * imagefontwidth(1);
//Megabyte end

$statspath = "http://setiweb.ssl.berkeley.edu/userw.php?id=305369";

$stats = file_get_contents("$statspath"."$id");
$stats_array = explode("<br/>",$stats);

for($i=0;$i<sizeof($stats_array);$i++) {
   $stats_array[$i] = strip_tags($stats_array[$i]);
}

$project = $stats_array[0];
$username = substr($stats_array[2],4);
$tot_credit = substr($stats_array[4],14);
$avg_credit = substr($stats_array[5],14);
$teamname = substr($stats_array[7],6);
$team_tot_credit = substr($stats_array[8],14);
$team_avg_credit = substr($stats_array[9],14);



$titeldata = strlen($username) * imagefontwidth(1);
if(strlen($username) > 15) {
   $username = substr($username,0,12)."...";
   $titeldata = strlen($username) * imagefontwidth(1);
}
$tot_creditdata = strlen($tot_credit) * imagefontwidth(1);
$avg_creditdata = strlen($avg_credit) * imagefontwidth(1);
$teamdata = strlen($teamname) * imagefontwidth(1);
if(strlen($teamname) > 19) {
   $teamname = substr($teamname,0,16)."...";
   $teamdata = strlen($teamname) * imagefontwidth(1);
}
$team_totdata = strlen($team_tot_credit) * imagefontwidth(1);
$team_avgdata = strlen($team_avg_credit) * imagefontwidth(1);


// get the forum_ids which aren't allowed
   $sql = "SELECT forum_id
      FROM ". FORUMS_TABLE ."
         WHERE auth_view >= 3";
       
   $result = $db->sql_query($sql);
   if( !$result )
   {
      message_die(GENERAL_ERROR, "Could not get forum_ids", "", __LINE__, __FILE__, $sql);
   }
      while ( $row = $db->sql_fetchrow($result))
   {
      $forum_ids[] = $row['forum_id'];
   }
   if ($forum_ids[0] != '')
   {
   $forum_ids = implode(" AND forum_id != ",$forum_ids);
   $forum_ids = "forum_id != " . $forum_ids ;
   $sql = 'SELECT max(topic_id)
      FROM ' . TOPICS_TABLE . '
          WHERE ' . $forum_ids;
   }
   else
   {
   $sql = 'SELECT max(topic_id)
      FROM ' . TOPICS_TABLE;
   }

if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Couldn\'t retrieve max of Topic_id data', '', __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result))
{
   $max_topic_id = $row['max(topic_id)'];
}
$sql = 'SELECT topic_title
FROM ' . TOPICS_TABLE . '
WHERE topic_id = ' . $max_topic_id;

if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Couldn\'t retrieve Topic_id data', '', __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result))
{
   $latest_topic = $row['topic_title'];
}
$result=mysql_query("select * from $prefix"._downloads_downloads."");
    $numrows =mysql_num_rows($result);

$sql = "SELECT lid, title, hits
FROM $prefix"._downloads_downloads." order by date DESC limit 0,1";

if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Couldn\'t retrieve newest of Download', '', __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result))
{
   $downloadtitle = $row['title'];
}



$version = '2'.$board_config['version'];
$description = $board_config['site_desc'];
$image = "images/signature.png";
$im = imagecreatefrompng($image);
$tc  = ImageColorAllocate ($im, 255, 255, 255);
$red  = ImageColorAllocate ($im, 255, 0, 0);
$blue  = ImageColorAllocate ($im, 0, 0, 255);
$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+95;
$j2 = strlen($latest_topic);
if ($j2>48)
{
   $words = explode (" ", $latest_topic);
   $text = '';
   $latest_topic = '';
   for($i=0;strlen($text) < 42;$i++)      {
      $text = $text . $words[$i] . " ";
      }
   $latest_topic = str_replace($words[$i-1],"...",$text);
}
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
//ImageString($im, 3, 120, 1, "$sitename", $red);
//ImageString($im, 2, 75, 10, "$description", $tc);
ImageString($im, 2, 5, 25, "Users:", $tc);
ImageString($im, 2, 48, 25, "$total_users", $red);
ImageString($im, 2, 75, 25, "Online:", $tc);
ImageString($im, 2, $leerzeichen, 25, " $who_online_num", $red);
ImageString($im, 2, 135, 25, "Newest:", $tc);
ImageString($im, 2, 177, 25, "$newest_user", $red);
ImageString($im, 2, 5, 45, "Last Post:", $tc);
ImageString($im, 2, 70, 45, "$latest_topic", $red);
ImageString($im, 2, 5, 35, "Forum Posts:", $tc);
ImageString($im, 2, 85, 35, "$total_posts", $red);
ImageString($im, 2, 113, 35, "in", $tc);
ImageString($im, 2, 130, 35, "$total_topics", $red);
ImageString($im, 2, 153, 35, "Topics", $tc);
//ImageString($im  2, 150, 45, "$numviews[0]", $red);
//ImageString($im, 2, 190, 45, "views", $tc);
//ImageString($im, 2, 5, 55, "Downloads:", $tc);
//ImageString($im, 2, 75,60, "$numrows", $red);
//ImageString($im, 2, 93, 60, "Newest:", $tc);
//ImageString($im, 2, 140, 60, "$downloadtitle", $red);
//ImageString($im, 2, 141, 40, "Nuke Version:", $tc);
//ImageString($im, 2, 225, 40, "7.5", $red);
//ImageString($im, 2, 93, 40, "phpBB Version:", $tc);
//ImageString($im, 2, 340, 40, "$version ", $red);
ImageString($im, 2, 5, 55, "Your IP Address:", $tc);
ImageString($im, 2, 105, 55, "$ip_address", $red);
ImageString($im, 4, 15, 65, "Click Here For BrainSmashR.com", $blue);
//SETI

//imagestring($im,1,3,23,"SETIBoinc",$red);
//imagestring($im,2,3,20,"Megabyte2001",$tc);
//imagestring($im,2,3,1,"BrainSmashR",$tc);
//imagestring($im,2,3,38,"Average:",$tc);
//imagestring($im,2,3,60,"Average:",$tc);
//imagestring($im,2,3,40,"Team Nukecops",$tc);
//imagestring($im,2,3,60,"Team Avg.:",$black);

//imagestring($im,1,80-$teamdata,70,$teamname,$red);
//imagestring($im,2,80-$tot_creditdata,10,$tot_credit,$red);
//imagestring($im,2,131-$avg_creditdata,38,$avg_credit,$red);
//imagestring($im,2,131-$avg_creditdata2,60,$avg_credit2,$red);

//imagestring($im,2,80-$team_totdata,50,$team_tot_credit,$red);
//imagestring($im,2,129-$team_avgdata,60,$team_avg_credit,$red);
//imagestring($im,2,80-$tot_creditdata2,30,$tot_credit2,$red);


header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?>


Save the following image as signature.png, edit as needed and upload to your image directory
Image

Once you've completed that, then your signature will be located at www.yoursite.com/signature.php

_________________
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
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Mon Jan 31, 2005 6:54 am Reply with quoteBack to top

where will i upload signature.php?

inside the forums module or ?
and the image?
Find all posts by GinzaView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Mon Jan 31, 2005 9:36 am Reply with quoteBack to top

The signature file goes in the root, the image goes in your image directory....none of it goes in the forum module.

_________________
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
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Tue Feb 01, 2005 1:13 pm Reply with quoteBack to top

Can i used other image format like jpg or gif instead png?
Find all posts by GinzaView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Tue Feb 01, 2005 3:43 pm Reply with quoteBack to top

Nope.

For lack of a better description, png images are "clear"

_________________
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
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Wed Feb 09, 2005 12:58 pm Reply with quoteBack to top

BrainSmasher, something is still wrong. I did what you exactly told me, but i still got a Broken Image. What could possibly went wrong>?
Find all posts by GinzaView user's profileSend private message
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.274 Seconds - 272 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::