Please complete your profile, then I won't have to ask for a link to your site
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
ozbob160 Nuke Soldier
Joined: Feb 09, 2005
Posts: 27
Location: Hawaii, home of the worthless
Posted:
Wed Feb 09, 2005 2:14 pm
I used to have some problems with this, but I never had to alter the code to fix it.
What I found that worked was simply having the user type the picture URL in their forum account, and it worked. If they used Cut & Paste, that is when it just printed out the code. I don't know if there is a reason for this, but as I said, it has worked on my site.
OzBob
_________________ I like cheese. A lot.
BrainSmashR Support Mod
Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
Posted:
Wed Feb 09, 2005 5:27 pm
The story there is going to be that the "cut and paste" probably contained spaces.
I say that because I cut and paste my signature all the time.
I was told to go to includes/bbcode.php and add the extensions, I added swf and also swf[^/[]* , but it still doesn't work so I uploaded the original bbcode.
Is there anything I can do?
Thanks
spytheory Nuke Cadet
Joined: Dec 21, 2005
Posts: 3
Posted:
Wed Dec 21, 2005 5:39 pm
It really doesn't matter if this is displayed as a signature or not, I can also try to display it in as part of the content. Basically I am making a roster page, and I have made about 16 pages in the content module and in all of the 16 pages of content, I was going to display this flash application, since it was a sig I was trying to put it in as a sig. I even tried adding this flash to the body of the page. Even as a test, I tried adding this flash to the account, but no worky.
ANTH Private
Joined: Jul 18, 2004
Posts: 48
Posted:
Thu Dec 22, 2005 1:16 am
Everything appears to be working fine apart from the one I call from the gif 404 I get errors
Code:
Warning: main(mainfile.php): failed to open stream: No such file or directory in /home/deltas00/public_html/signature.php on line 17
Fatal error: main(): Failed opening required 'mainfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/deltas00/public_html/signature.php on line 17
My code is:-
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 Subgreen
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"));
list($overall2) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$prefix."_bbposts"));
list($overall3) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$prefix."_stories"));
list($lastuser2) = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories order by sid DESC limit 0,1"));
$who_online_num = $guest_online_num + $member_online_num;
$image = "signature.png";
$im = imagecreatefrompng($image);
$tc = ImageColorAllocate ($im, 40, 150, 25); // Green
$now = date("M d,Y H:i:s");
$red = ImageColorAllocate ($im, 255, 0, 0);
$j = strlen($lastuser);
$space = $j*6+240;
ImageString($im, 3, 100, 5, "$sitename Live! $now", $tc);
ImageString($im, 2, 100, 17, "We received $count page views since $startdate.", $tc);
ImageString($im, 2, 100, 30, "Total Members: $overall", $tc);
ImageString($im, 2, $space, 30, "Latest: $lastuser", $red);
ImageString($im, 2, 100, 40, "Online Now ($who_online_num): $member_online_num members and $guest_online_num visitors.", $tc);
ImageString($im, 2, 100, 50, "Total Posts: $overall2", $tc);
ImageString($im, 2, 100, 60, "Total News Articles: $overall3", $tc);
ImageString($im, 2, 100, 70, "Latest Headline: $lastuser2", $red);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
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