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 Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
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 Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
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 Offline
Wizard

Registered: 01/10/00
Posts: 5134
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 Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
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 Offline
Wizard

Registered: 01/10/00
Posts: 5134
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 Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
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 Offline
Wizard

Registered: 01/10/00
Posts: 5134
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 
Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks