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.
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.
Mesum Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Fri Jan 07, 2005 2:30 pm
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.
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
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.
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
BrainSmashR Support Mod
Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
Posted:
Wed Jan 19, 2005 4:06 am
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
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
BrainSmashR Support Mod
Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
Posted:
Sat Jan 22, 2005 6:35 am
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!!!
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Ginza Private
Joined: Dec 27, 2004
Posts: 40
Posted:
Mon Jan 24, 2005 3:10 am
BrainSmasher, how did you make your signature? I want to make a similar signature like yours.
Is the info auto update in your sig?
BrainSmashR Support Mod
Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
Posted:
Mon Jan 24, 2005 4:29 am
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.
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Ginza Private
Joined: Dec 27, 2004
Posts: 40
Posted:
Mon Jan 31, 2005 3:29 am
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?
Ginza Private
Joined: Dec 27, 2004
Posts: 40
Posted:
Mon Jan 31, 2005 3:34 am
What i mean is give me a sample or a step by step tutorial.
BrainSmashR Support Mod
Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
Posted:
Mon Jan 31, 2005 4:48 am
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: <A HREF=\"modules.php?name=Your_Account&op=userinfo&uname=$session[uname]\">$session[uname]</a><br>\n";
} else {
$who_online_now .= "$i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&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"));
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