php forum
php mysql forum
php mysql smarty
 
Page 2 of 3 < 1 2 3 >
Topic Options
#115714 - 01/08/04 12:50 PM Re: Fsum Status
AllenAyres Administrator Online   content
I type Like navaho

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

   Re: Fsum Status to Del.icio.us Add to del.icio.us
  Digg Re: Fsum Status Digg it
grazi thumbsup

I'll update the instructions this evening smile
_________________________
- Allen wavey
- What Drives You?

Top
#115715 - 01/22/04 04:23 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Allen, how would I go about removing the following code from user titles before it was outputted?

Code:
<img src="*" alt="*" >
where * are wildcards. I only know how to do if it there are no wildcards
_________________________
Code monkey like Fritos

Top
#115716 - 01/25/04 06:12 PM Re: Fsum Status
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25419
Loc: Texas
?

I gotta get things moved to this pc so I know what yer talkin about tipsy Gimme a day or so and I'll get it.

What are you trying to achieve with the output?
_________________________
- Allen wavey
- What Drives You?

Top
#115717 - 01/25/04 06:34 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, at my other boards (GR) we have stars denoting rank in the titles.

Using this mod, the status prints out as html.
ie.
Code:
Special
<img src="http://www.alforadmin.com/special.gif" alt="-" />
whereas in posts,etc it would show as

Special
<stars>

So is there anyway to remove
Code:
<img src="http://www.alforadmin.com/special.gif" alt="-" />
so that it'll just show "Special"?
_________________________
Code monkey like Fritos

Top
#115718 - 01/26/04 10:28 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
nm Allen, I added this and it worked.
Code:
$user_status =~ s/(<img)(.+?)(>)//isg;
$user_status =~ s/(<br)(.+?)(>)//isg;
_________________________
Code monkey like Fritos

Top
#115719 - 02/06/04 05:31 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
unsupported update for those who want formatted dates, etc...

change...

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

to...

Code:
<script language="Javascript" type="text/javascript">
<!--
var tippy = unescape(session_dt);
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day  = parseInt(tippy_array[1]) + 0;

if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);

var newer_array_tippy = new_array_tippy[1].split(':');

hour = parseFloat(newer_array_tippy[0]);

if(new_array_tippy[2] == 'PM'){	hour += 12; }

var minutes = parseInt(newer_array_tippy[1]);

document.write('You last visited: <b>');
document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0), "</b>");
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0), '
');

}
//-->
</script>
_________________________
Code monkey like Fritos

Top
#115720 - 02/08/04 12:23 PM Re: Fsum Status
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
What have I to change, that i can delete the Welcomeheader....?

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

Top
#115721 - 02/29/04 11:44 AM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Allen, could you change $vars_config{NonCGIURL}/spacer.gif

to

$vars_config{NonCGIURL}/blank.gif?

Not doing so results in a large server error log with the files not found
_________________________
Code monkey like Fritos

Top
#115722 - 04/08/04 07:50 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Allen, in ubb status, could you change

Code:
	if($avurl && !$avok) {
to

Code:
	if($avurl && $avok =~ /(0|2)/) {
It's needed for those who use the Always allow, even if group can't setting for avatars for some users
_________________________
Code monkey like Fritos

Top
#115723 - 04/08/04 08:11 PM Re: Fsum Status
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
Found by me getting annoyed lol...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#115724 - 04/09/04 12:50 AM Re: Fsum Status
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25419
Loc: Texas
k, I think I got all the bugfixes to date (didn't try the formatted date, since no-one reported it working tipsy )
_________________________
- Allen wavey
- What Drives You?

Top
#115725 - 04/09/04 01:09 PM Re: Fsum Status
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
It's funny, I've seen this running at Ian's site (I said Ian!) and i was wondering why HE didn't publish it, so I asked him... Response: "I'd release it but allen would be irate"... I'm all "why?" andhe's all "it's in one of the template forums"...

So I'm just sitting here thinking to myself, it's technically a mod frown ...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#115726 - 04/09/04 02:36 PM Re: Fsum Status
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25419
Loc: Texas
??? What?

It's not my code or Ian's, it's bookie's with help from LK, I believe...

So I'm just sitting here thinking to myself, why does it matter who publishes it here? :rolleyes:
_________________________
- Allen wavey
- What Drives You?

Top
#115727 - 04/09/04 02:39 PM Re: Fsum Status
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
Nonono, the matter was, I had no clue where it was as it wasn't in the 6.x forum lol
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#115728 - 05/24/04 01:55 AM Re: Fsum Status
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
Quote:
Originally posted by Ian Spence:

unsupported update for those who want formatted dates, etc...

change...

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

to...

Code:
<script language="Javascript" type="text/javascript">
<!--
var tippy = unescape(session_dt);
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day  = parseInt(tippy_array[1]) + 0;

if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);

var newer_array_tippy = new_array_tippy[1].split(':');

hour = parseFloat(newer_array_tippy[0]);

if(new_array_tippy[2] == 'PM'){	hour += 12; }

var minutes = parseInt(newer_array_tippy[1]);

document.write('You last visited: <b>');
document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0), "</b>");
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0), '
');

}
//-->
</script>


Ian

If I dont have the timestamp function in my source code, is there still a way I can switch 5-23-2004 to say May 23 2004? Cuz this code isnt working for me, for obvious reasons. Wondering if theres a way around it or not... wink
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115729 - 05/24/04 06:50 AM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
there should be a way around it if you just take the code from datelib.js (steal the one from here)
_________________________
Code monkey like Fritos

Top
#115730 - 05/24/04 11:21 AM Re: Fsum Status
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
Hmmm ok I got it, just gotta work with it and figure it out now. thanks
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115731 - 05/24/04 12:05 PM Re: Fsum Status
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
hmmm, not working with this code:

Code:
<script src="datelib.js" language="Javascript1.3" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
<!--

var tippy = unescape(session_dt);
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day  = parseInt(tippy_array[1]) + 0;

if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);

var newer_array_tippy = new_array_tippy[1].split(':');

hour = parseFloat(newer_array_tippy[0]);

if(new_array_tippy[2] == 'PM'){	hour += 12; }

var minutes = parseInt(newer_array_tippy[1]);

document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0));
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0));

}

//-->
</script>
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115732 - 05/25/04 07:47 PM Re: Fsum Status
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
OK, this looked really cool so I tried to install it and I get these errors...

syntax error at NonCGIPath/Templates/public_forum_summary.pl line 292, near "&#171"
BEGIN not safe after errors--compilation aborted at NonCGIPath/Templates/public_forum_summary.pl line 293.

Tue May 25 19:42:12 2004]
cgiultimatebb.cgi: Number found where operator expected at /noncgi/Templates/public_forum_summary.pl line 292, near "«" [Tue May 25 19:42:12 2004] cgiultimatebb.cgi: (Missing operator before 171?)

I checked and double checked and it looks like I hacked the files OK...

help
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#115733 - 05/25/04 07:54 PM Re: Fsum Status
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Try this for the first step...

(first, undo your first step.)

Code:
**************************
* Open public_forum_summary.pl
**************************

FIND:
=====

		page_title => "",
		before_navbar => qq~</font></td><td align="right">
<font size="$vars_style{FDTextSize}" face="$vars_style{FontFace}"><b>
&#187; <a href="$ULTIMATEBB{"ubb=get_daily"}">$vars_wordlets{active_topics}</a>
&#171;
</b>~,
		navbar_replace_right => qq~<b>$memberline</b>~,

Replace with:
=====

		page_title => "",
		navbar_replace_right => qq~<font size="$vars_style{FDTextSize}"><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}/blank.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>
~,
_________________________
Code monkey like Fritos

Top
Page 2 of 3 < 1 2 3 >


Moderator:  Gizmo, tackaberry 
Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
1 Registered (AllenAyres), 25 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
09/07/08 08:00 PM
What do you use to edit the files
by AllenAyres
09/07/08 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
09/07/08 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/07/08 07:20 PM
BeyondCompare v3.00
by AllenAyres
09/07/08 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
09/07/08 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 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