php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#115694 - 12/29/03 02:57 AM Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas

   Fsum Status to Del.icio.us Add to del.icio.us
  Digg Fsum Status Digg it
Description: Adds your avatar and forum stats to the top of your fsum

Requirements: UBB 6.7

Demo: http://www.ubbdev.com/test/ubb/ultimatebb.php

Download: http://www.ubbdev.com/ubb/upload/00000494/fsum_status.zip

Notes: This is of alpha/beta quality.

Known Issues: I am getting a repeating of the top table due to it breaking the generic wrapper. Javascript error and other bugfixes done with LK's help smile
_________________________
- Allen wavey
- What Drives You?

Top
#115695 - 12/29/03 03:58 AM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
<script language="Javascript" type="text/javascript" src="$vars_config{CGIURL}/ubb_status.cgi"></script>
is the line causing the js error


as for the repeating lines, you can set navbar_replace_right to equal the active topics link, then do a

Code:
my $header = $hf->[0];
$header =~ s/$TBB/qq~THE CODE FOR THE TABLE~/eisg;
and then replace $hf->[0] with $header.

I believe once the javascript error is fixed, the avatar and user title will work too
_________________________
Code monkey like Fritos

Top
#115696 - 12/30/03 05:00 AM Re: Fsum Status
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi,

how can I get a European Time format and what about the Javacript error?

thx
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#115697 - 12/30/03 12:09 PM Re: Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
this is of beta quality, I've got some other projects ahead of it, so it may be a while before it gets all the kinks worked out.
_________________________
- Allen wavey
- What Drives You?

Top
#115698 - 12/30/03 12:31 PM Re: Fsum Status
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
uh, http://www.ubbdev.com/test/ubbcgi/ubb_status.cgi is full of errors tipsy

Copy this line to around the top:
Quote:
quote:
use vars qw($allowmods $backwards $confdel $deletealt $delimage $filehandle $floodcheck $ftime $images $iptitle $am $pm $js $js2 $masterCharset $me $message $nomeend $page_background $password $pubname $reset $savename $send $shoutbox $shoutext $shoutmax $shouts $shoutsize $show_public_name $showtime $staff $styles $typemsg $typeshout $ubb_images $unreg $unregpost $user_number $user_topic_view $username $viewunreg %GotTime %in %template_html %template_match %vars_config %vars_misc %vars_style %vars_style_shoutbox %vars_wordlets %vars_wordlets_err @checkTheProfile @ubber %vars_time $datetitle %vars_version_information $version_number $release_j $version $trademark $trade $ULTIMATEBB %ULTIMATEBB $CONTROLPANEL %vars_display $InfopopCopyright $masterCharset %vars_wordlets_criterr %vars_search %vars_registration %vars_pm %vars_misc %vars_email %vars_pntf %vars_time %GENERIC_GLOBALS %vars_mods %vars_wordlets_err %vars_style %vars_forums %vars_wordlets $backend %GotTime @alltheforums %vars_cats @allthecategories $exact_path $ThisHTML $PNTF $vars_graemlins $frontend %template_html %vars_style_reference %template_match %ProfileNumber $memlistopen @benches %FILE_CACHE $forum_threads %forum_topics $alpha_threads %forum_thread_data %forum_recentmeta %todays_active_topics %member_profile %vars_wordlets_img $TBT $TBB);
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115699 - 12/30/03 12:39 PM Re: Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
thanks LK, that's some of the work it needs laugh

I'll add it and see where we're at then smile
_________________________
- Allen wavey
- What Drives You?

Top
#115700 - 12/30/03 12:47 PM Re: Fsum Status
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Also add to the very beginning (perhaps after the line "small scripts by allen"?):
Code:
use constant SEVENSEVENSEVEN => 0777;
use constant SIXSIXSIX => 0666;
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115701 - 12/30/03 12:49 PM Re: Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
ok, added that and a few more it wanted and am now getting this:

Quote:
quote:

document.avatar.avvy.src = "http://www.ubbdev.com/test/ubb/unregistered.gif"; document.getElementById('status').appendChild(document.createTextNode('Administrator'));
printed out when accessing the file, which is where the javascript error is coming from I guess smile
_________________________
- Allen wavey
- What Drives You?

Top
#115702 - 12/30/03 01:03 PM Re: Fsum Status
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
For some reason, the line
Code:
<script language="Javascript" type="text/javascript" src="$vars_config{CGIURL}/ubb_status.cgi"></script>
is added to the top of forum_summary and not the bottom... Try to move it around till it's below the other part, that might fix it.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115703 - 12/30/03 01:17 PM Re: Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
that fixed the error and it now shows the status, thumbsup For some reason I moved it up top during one of my bug-fix searches yesterday tipsy


The avatar it is looking for, is that different from the 'your picture' that's found in the profile?
_________________________
- Allen wavey
- What Drives You?

Top
#115704 - 12/30/03 01:21 PM Re: Fsum Status
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
yes it is, it's the actual avatar under your name in boards where avatar is enabled... So at UBBDev it'd show the no-avatar image.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115705 - 12/30/03 01:27 PM Re: Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
thank you smile

Zip file up top updated with bugfixes and latest code smile
_________________________
- Allen wavey
- What Drives You?

Top
#115706 - 12/30/03 01:47 PM Re: Fsum Status
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi LK and Allen,

what can I do to get the european time format for the last-visited time?

thx
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#115707 - 12/30/03 01:58 PM Re: Fsum Status
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
you can't do much, unless you change the session cookie behavior (really not recommended) or program something (should be pretty simple) in javascript which splits the date/time into arrays and rebuilds them as either european time format or yyyy,mm,dd,HH,mm,ss for the timestamp function.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115708 - 12/30/03 02:04 PM Re: Fsum Status
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Another question,

how can I delete the membersline, i marked red at the picture...



**** I can't programm somethin for european time-format... frown frown frown
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#115709 - 12/30/03 02:27 PM Re: Fsum Status
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
there's gonna be bugs to be expected if you insist on using beta code tipsy We can't upgrade the mods fast enough for you as you're installing 4-5 at a time. If you want bug-free/less code, it's gonna be after 6.7 goes final smile
_________________________
- Allen wavey
- What Drives You?

Top
#115710 - 12/30/03 02:39 PM Re: Fsum Status
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
laugh
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#115711 - 12/30/03 06:27 PM Re: Fsum Status
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
There are already lots of bugs being reported, check http://www.ubbcentral.com/ in the bugs section wink ...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#115712 - 01/07/04 05:45 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Hey Allen, finally got around to installing this and I've only got one problem. I have some html in my custom title, and instead of formatting, it just prints out the html too, making it look quite weird.


Any suggestions?
_________________________
Code monkey like Fritos

Top
#115713 - 01/07/04 05:56 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
oh, and Allen. I finally got it to work with the universal headers.

Code:
	my $hf = &generic_wrapper({
		page_title => "",
		navbar_replace_right => qq~<font class="small"><b>
&#187; <a href="$ULTIMATEBB{"ubb=get_daily"}">$vars_wordlets{active_topics}</a>
&#171;
</b></td></tr>
<tr>
<td colspan="2" bgcolor="$vars_style{TableColorStrip}"><img src="$vars_config{NonCGIURL}/spacer.gif" width="1" height="7" alt="BLAM!" /></td>
</tr>
<tr>
<td width="50%" align="left" valign="top" class="descript-font" bgcolor="$vars_style{AltColumnColor1}"> <form id="avatar" name="avatar" action="">
<table align="left"><tr><td><img src="$vars_config{NonCGIURL}/unregistered.gif" alt=" - " id="avvy" name="avvy" /></td></tr></table></form><b> Your Info </b>



<script language="Javascript" type="text/javascript">document.writeln("You last visited: <b>", unescape(session_dt), "</b>");</script>


Your status is: <b><span id="status"></span></b>
</td>
<td width="50%" valign="top" align="left" class="descript-font" bgcolor="$vars_style{AltColumnColor1}"><font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b> Forum Info </b>


$memberline


Total Topics: $AllTopics &nbsp;&nbsp; Total Posts: $AllPosts
</font>
~,
just played around with the code. (PS. change class="small" to size="$vars_style{FDTextSize}"
_________________________
Code monkey like Fritos

Top
Page 1 of 3 1 2 3 >


Moderator:  Gizmo, tackaberry 
Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
blaaskaak 2
Cambridge 1
Murphdog 1
MattUK 1
Who's Online
0 Registered (), 30 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
[7.3.1] add search to showmembers page
by blaaskaak
Today at 04:50 AM
BeyondCompare v3.00
by blaaskaak
09/05/08 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Today at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks