php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#39103 - 12/08/00 11:54 AM Sticky Threads
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I noticed we don't have a thread for this one, so I'm adding it...

Dave has updated this one several times in the last month, so if you have it installed, it's a good idea to go over your code for bug-fixes.

click here

This mod allows your admin or moderator to temporarily or permanently "bump" a thread to the top of a forum.

------------------
Allen

- http://www.stand318.com
<IMG SRC="http://www.stand318.com/images/santapepe.gif" border=0>
_________________________
- Allen wavey
- What Drives You?

Top
#39104 - 12/09/00 03:53 AM Re: Sticky Threads
MorphStar Offline
Member

Registered: 10/06/00
Posts: 637
Loc: The Netherlands | Sweet :)
neat! the bump feature! I've been looking all over the place for this! thanks Allen

------------------
www.skinningworld.net
_________________________
[img]http://www.gamerelic.com/sigs/rotateme.cgi[/img]
<-------- Loves Sally!

Top
#39105 - 12/18/00 01:06 PM Re: Sticky Threads
Master Tom Offline
Junior Member

Registered: 11/13/00
Posts: 3
Same at my UBB !!!

All Done.....

And now i get an white page if i start my UBB.

And the same error in CP !!

Top
#39106 - 12/18/00 01:29 PM Re: Sticky Threads
saehoon Offline
Member

Registered: 06/15/00
Posts: 48
Loc: Boston
yeah, I've tried multiple times installing this hack and everytime I get an error. I'm trying to install it on 5.47a, any ideas what's wrong?

------------------
http://www.saehoon.com
_________________________
http://www.saehoon.com

Top
#39107 - 12/20/00 02:58 PM Re: Sticky Threads
Polgas Offline
Junior Member

Registered: 09/26/00
Posts: 5
Loc: New Jersey
This mod has two minor problems:

<OL TYPE=1>

[*]When you bump a thread and you have the latest Reply By mod installed, the UBB main page will display the incorrect username. It will show the correct last reply timestamp but not the username.

[*]If you go to the Control Panel/General Settings and let it save with the Update threads/timestamp checkbox selected, the Last Timestamp will be for the bumped thread which may not be the latest in the first place.
</OL>

Btw, the Bump feature on this board seems to allow ANYONE to bump a thread. It must be a bug.




<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by Polgas on December 20, 2000 at 03:03 PM</font>

Top
#39108 - 12/20/00 04:12 PM Re: Sticky Threads
GoTorankusuKu Offline
Addict

Registered: 09/29/00
Posts: 1933
Polgas - Everyone is able to bump temporarily not permanent. It's not a bug

------------------
The Fusion of Goku & Trunks...GoTorankusuKu

<IMG SRC=\"http://dbz.star64.com/button.jpg\" border=0>

Top
#39109 - 12/24/00 01:11 AM Re: Sticky Threads
indoe Offline
Member

Registered: 11/25/00
Posts: 238
I installed this once and it work now when I go to install this on a different board I keep getting a some err I will try to install and past the err so you guy can tell me how dumb I am ok

l8r
.
.
ps: dose this work whit all ver
_________________________
Some men live for others and make their presence known
Some men live in seclusion and choose to live alone...
Some men live for justice and walk inside the law
But of these men, the group I'm in
are the men behind the wall...
- Gato Suertudo

Top
#39110 - 12/25/00 01:52 PM Re: Sticky Threads
Hello World Offline
Junior Member

Registered: 12/25/00
Posts: 1
Hi,
I applied this hack to my UBB, though nothing is happening...I can top and de-top my threads but they stay the same as they would without this feature... i get - nothing....any ideas to what might be wrong?

Top
#39111 - 12/27/00 09:51 AM Re: Sticky Threads
KBEEs Offline
Junior Member

Registered: 12/27/00
Posts: 3
Loc: Hong Kong
Is it work at 5.47c too? i see this forum can be use this hack but i got error on it @@

the ubb_libery.pl got error in it ... after did this step
REPLACE that with:
---------------------------------------------------
if ($checkit[1] eq "$threadnum") {
if ($openclose eq "open") {
$checkit[6] =~ s/X//isg;
} else {
if ($itWasMoved eq 'yes') { $checkit[6] = "Y$checkit[6]";
} elsif ($openclose eq "close") {
$checkit[6] = "X$checkit[6]";
} elsif ($openclose eq "top") {
$length = $in{'length'};
if (($TimeZoneOffset ne "") &#0124;&#0124; ($TimeZoneOffset ne "0")) {
$adjustTime = time() + ($TimeZoneOffset * 3600);
} else { $adjustTime = time(); }
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime($adjustTime);
$year = $year +1900;
if ($length eq "perm") { $year = $year + 10; }
$mon++;
$JulianDate = &jday($mon, $mday, $year);
$Time = ("$hour" . "$min");
$JulianTime = ($JulianDate + ($Time * 0.0001));
$JulianTime = sprintf("%7.4f", $JulianTime);
$JulianTime =~ tr/ /0/;
$checkit[0] = $JulianTime;
} else {
$year = substr($checkit[5],0,4);
$mon = substr($checkit[5],4,2);
$mday = substr($checkit[5],6,2);
$hour = substr($checkit[5],8,2);
$min = substr($checkit[5],10,2);
$JulianDate = &jday($mon, $mday, $year);
$Time = ("$hour" . "$min");
$JulianTime = ($JulianDate + ($Time * 0.0001));
$JulianTime = sprintf("%7.4f", $JulianTime);
$JulianTime =~ tr/ /0/;
$checkit[0] = $JulianTime;
}

then error will be occcur. Is there any new fixed version? THX

Top
#39112 - 12/28/00 01:57 AM Re: Sticky Threads
TyRaN Offline
Member

Registered: 07/27/00
Posts: 286
Loc: Canada
replace with that:

if ($checkit[1] eq "$threadnum") {
if ($itWasMoved eq 'yes') {
$checkit[6] = "Y$checkit[6]";
} else {
$checkit[6] =~ s/Y//isg;
}
if ($openclose eq "open") {
$checkit[6] =~ s/X//isg;
} elsif ($openclose eq "close") {
$checkit[6] = "X$checkit[6]";
} elsif ($openclose eq "top") {
$length = $in{'length'};
if (($TimeZoneOffset ne "") &#0124;&#0124; ($TimeZoneOffset ne "0")) {
$adjustTime = time() + ($TimeZoneOffset * 3600);
} else { $adjustTime = time(); }
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime($adjustTime);
$year = $year +1900;
if ($length eq "perm") { $year = $year + 10; }
$mon++;
$JulianDate = &jday($mon, $mday, $year);
$Time = ("$hour" . "$min");
$JulianTime = ($JulianDate + ($Time * 0.0001));
$JulianTime = sprintf("%7.4f", $JulianTime);
$JulianTime =~ tr/ /0/;
$checkit[0] = $JulianTime;
} else {
$year = substr($checkit[5],0,4);
$mon = substr($checkit[5],4,2);
$mday = substr($checkit[5],6,2);
$hour = substr($checkit[5],8,2);
$min = substr($checkit[5],10,2);
$JulianDate = &jday($mon, $mday, $year);
$Time = ("$hour" . "$min");
$JulianTime = ($JulianDate + ($Time * 0.0001));
$JulianTime = sprintf("%7.4f", $JulianTime);
$JulianTime =~ tr/ /0/;
$checkit[0] = $JulianTime;
}
$newline = join("|^|", @checkit);
push(@theupdatedts, $newline);
} else {
push(@theupdatedts, $checkthis);
}
} # end foreach @threadsum


that's what somebody told... i think it was AllenAyres

------------------
TyRaN
_________________________
Sorry for my english... i speak french.

email:tyranausaure@hotmail.com

Top
#39113 - 12/31/00 05:19 AM Re: Sticky Threads
indoe Offline
Member

Registered: 11/25/00
Posts: 238
i keep geting this err

Code:
code:



------------------
<IMG SRC="http://www.geocities.com/indoe_420_602/SMB/indoe.jpg" border=0>
_________________________
Some men live for others and make their presence known
Some men live in seclusion and choose to live alone...
Some men live for justice and walk inside the law
But of these men, the group I'm in
are the men behind the wall...
- Gato Suertudo

Top
#39114 - 01/04/01 04:42 AM Re: Sticky Threads
cRackY Offline
Junior Member

Registered: 10/10/00
Posts: 6
When I delete the first non bumped Thread in the Forum the Last Post Time in Ultimate.cgi isn't update anymore!
I don't have the Last Post by in Ultimate.cgi installed, just the normal Latest Post Time...

Please help me, i'm trying for weeks now and dont have an idea what to change

Im using 5.47d since a few days, and now when i move a Thread to a forum with a bumped thread the latest time ist the time from the bumped thread
With 5.45c there was this just the Problem with the delete first topic, this would maybe just be a problem in update the last time file but i dont have any idea how to do that.

greets, cRackY

--------------
NEED MONEY for Beer, Pot and Woman (Hey at least I'm not Bull****ting You!)

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by cRackY on January 04, 2001 at 04:56 AM</font>

Top
#39115 - 01/18/01 12:05 PM Re: Sticky Threads
no1knows Offline
Junior Member

Registered: 01/15/01
Posts: 16
i've just attempted to install the hack, i went over the problem file twice and still get these errors when trying to update the threads:
syntax error at /usr40/home/no1knows/public_html/cgi-bin/ubb_library.pl line 1985, near "} else" syntax error at /usr40/home/no1knows/public_html/cgi-bin/ubb_library.pl line 2006, near "}"

Version 5.47d

------------------
<IMG SRC="http://www.icg-fxp.net/images/no1knows.jpg" border=0>

Top
#39116 - 01/18/01 12:18 PM Re: Sticky Threads
no1knows Offline
Junior Member

Registered: 01/15/01
Posts: 16
i assume there isnt a fix for it, as there are no replys from admins
thx anyway guys

Top
#39117 - 01/18/01 12:25 PM Re: Sticky Threads
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
There are a few bugs in this script, especially if you have "latest reply by in Ultimate.cgi". You forum will slow to a crawl if someone permanently bumps a thread, it happens here. I really would not recommend installing this until it is updated/ fixed. The last fix was supposed to help, but it doesn't seem to.

------------------
Allen

- http://www.stand318.com
_________________________
- Allen wavey
- What Drives You?

Top
#39118 - 01/31/01 11:52 AM Re: Sticky Threads
Adamski Offline
Junior Member

Registered: 01/12/01
Posts: 2
Loc: London
I have a problem with the instrucions for this script. It says find this:

Code:
code:



but my file has

Code:
code:



so i don't know if it will work.
I am using 5.47b

http://www.demo3w.com/_cgi/Ultimate.cgi

Thanks for any help.

Adam Osborne

Top
#39119 - 01/31/01 06:03 PM Re: Sticky Threads
GoTorankusuKu Offline
Addict

Registered: 09/29/00
Posts: 1933
That's the same thing if you didn't look closely. Just continue with that step.

------------------
<IMG SRC=\"http://dbz.star64.com/uploads/XTCBoY2K/gotorankusuku.jpg\" border=0>

Top
#39120 - 02/01/01 05:29 AM Re: Sticky Threads
Adamski Offline
Junior Member

Registered: 01/12/01
Posts: 2
Loc: London
Thanks,

I wasn't too sure if it would make a difference as the lines were commented on my file. I'll give it a go... the worst that could happen is that I have to restore my files right?

Top
#39121 - 03/04/01 02:18 PM Re: Sticky Threads
evafan Offline
Member

Registered: 06/16/00
Posts: 62
Is there any news on this hack for 5.47d ?
_________________________
Visit my ubb here

Top
#39122 - 03/04/01 03:21 PM Re: Sticky Threads
GoTorankusuKu Offline
Addict

Registered: 09/29/00
Posts: 1933
It should work with 5.4x

Top
#39123 - 03/06/01 04:49 PM Re: Sticky Threads
evafan Offline
Member

Registered: 06/16/00
Posts: 62
ignore this--

[ March 06, 2001: Message edited by: evafan ]
_________________________
Visit my ubb here

Top
#39124 - 04/19/01 04:08 AM Re: Sticky Threads
csn23 Offline
Member

Registered: 12/05/00
Posts: 39
Loc: Hong Kong
it shows me 500 Internal server error...

What's wrong w/ it?

thanks! smile

Top
#39125 - 07/15/01 03:22 PM Re: Sticky Threads
Night Wolf Offline
Junior Member

Registered: 07/15/01
Posts: 13
Could someone please post a link to the latest version of this hack? the link in the firts post does not seem to work.

thank you,
Night Wolf

Top
#39126 - 01/01/02 12:19 PM Re: Sticky Threads
fluffy Offline
Member

Registered: 10/27/00
Posts: 37
Is this hack thats included in the database still full of bugs or have they been fixed?

BTW I do not have the last reply hack installed and I am using 5.47e

Top
#39127 - 01/01/02 01:42 PM Re: Sticky Threads
Vipermad Offline
Member

Registered: 10/11/00
Posts: 344
Loc: Newport, RI
I have an updated file from Night Wolf I still have to get in the databasse...but I've uploaded it CLICK HERE for the time being.
_________________________
Tony (Vipermad) Rickard
Viper Club UBB Admin

Top
#39128 - 01/01/02 07:05 PM Re: Sticky Threads
fluffy Offline
Member

Registered: 10/27/00
Posts: 37
Is it now bug free and does it work for 5.47e?

Top
#39129 - 01/01/02 07:22 PM Re: Sticky Threads
Vipermad Offline
Member

Registered: 10/11/00
Posts: 344
Loc: Newport, RI
I cannot say because I do not know. I don't run any 5.47 boards, and it was sent to me to upload as an update. Hack away...make back-ups..and let us know!! <img src="smile.gif" border="0" alt="" />
_________________________
Tony (Vipermad) Rickard
Viper Club UBB Admin

Top
#39130 - 01/01/02 07:27 PM Re: Sticky Threads
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
What version have you tested it on Viper?

Top
#39131 - 01/01/02 09:21 PM Re: Sticky Threads
Vipermad Offline
Member

Registered: 10/11/00
Posts: 344
Loc: Newport, RI
smile
_________________________
Tony (Vipermad) Rickard
Viper Club UBB Admin

Top
#39132 - 01/02/02 02:14 AM Re: Sticky Threads
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Ok I'll wait. Tell me when you get it working successfully.

Top
#39133 - 01/19/02 06:18 AM Re: Sticky Threads
Blue5.0 Offline
Junior Member

Registered: 11/07/01
Posts: 7
Hi there. I have this hack installed on my 5.47d and it works perfectly, even with the 'Last Post By' hack in ultimate.cgi. The bug fix for the 'Last Post By' works. The bumped thread does not show in 'Last Post By'; only the 'real' last post does.

I would just like to say, I have used a lot of hacks from this UBB, and sincerely thank all of the people here who make these hacks possible! They really do add a lot to the V5 boards. <img src="smile.gif" border="0" alt="" />

Thanks!
Dave

Top
#39134 - 01/23/02 06:54 AM Re: Sticky Threads
Dr_C Offline
Junior Member

Registered: 08/20/01
Posts: 2
I just installed this hack yesterday and it slowed my forum (with over 500,000 messages) down to a crawl. Deleting or moving threads became completely impossible. I had a look at their code and found some code that was a bit (without trying to belittle the efforts of the original coder) not-so-efficient programming.

In my case which so many messages, it took about 20 minutes to close/move/delete a thread, causing the browser to time out and the cgi-script to fail. I've made a few changes that brought this 20 minutes down to 0.6 seconds (yes, less than a second).

Since this is an old hack, and I'm not sure anyone is still using it, let me know if you're interested in the fix and I'll post it here.

Top
#39135 - 01/23/02 12:09 PM Re: Sticky Threads
Vipermad Offline
Member

Registered: 10/11/00
Posts: 344
Loc: Newport, RI
Sure!!! Post it here. Prefer a link to a .txt file instead of putting all the code into a message. <img src="smile.gif" border="0" alt="" />

That is what this place is all about...happy to see the variation myself!!!
_________________________
Tony (Vipermad) Rickard
Viper Club UBB Admin

Top
#39136 - 01/23/02 12:49 PM Re: Sticky Threads
Dr_C Offline
Junior Member

Registered: 08/20/01
Posts: 2
I'll post it here since it's a small change. Change this in the files that already contain the changes for the Sticky Hacl.

In ubb_library.pl, sub ForumSummary:

Find:
-----------------
@threadsum = &OpenFile("$ForumsPath/$ExactPath/forum$thisnumber.threads");

Replace with:
-----------------
open( THREADS, "$ForumsPath/$ExactPath/forum$thisnumber.threads" );
while( <THREADS> ) {
$line = $_;
chomp( $line ); # not necessary, but always good practice.
@fields = split( /|^|/, $line );
$threadsum{$fields[1]} = $line;
}
close( THREADS );

Find:
-----------------
@tmpitemline = grep{/|^|$tmpthreadnum|^|/} @threadsum; #C
@tmpstats = split(/|^|/,$tmpitemline[0]);

Replace with:
-----------------
@tmpstats = split(/|^|/,$threadsum{$tmpthreadnum});


That's it! This will get rid of the incredible time-consuming "grep", not to mention "grep" will generate an error if a topic-title contains more than 3 question marks in a row.

The original loop with the grep took about 20 minutes going through 7000 threads. If you make the above change, it will take about 0.5s.

Enjoy the new and improved Sticky Threads! <img src="smile.gif" border="0" alt="" />

Top
#39137 - 01/23/02 10:45 PM Re: Sticky Threads
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Thanks Dr_C, Ive got this hack on my board, and Ive noticied that on my larger forums, it can take a substantial amount of time to move/delete a post thread. Although I was unable to diagnose the cause of the problem myself. Im going to make the changes you suggested and hopefully it will remedy my problem also <img src="smile.gif" border="0" alt="" />
Cheers
_________________________
I can't afford a good signature editor frown

Top
#39138 - 03/22/02 08:56 PM Re: Sticky Threads
CoCoT Offline
Junior Member

Registered: 06/02/00
Posts: 10
Loc: Toronto, Canada
I have just installed this hack on my version 5.45c...when I make a thread "sticky" it deletes the thread! Whether I make it temporary or permanent...anyone have any ideas why?

T.........

Top
#39139 - 03/22/02 09:01 PM Re: Sticky Threads
CoCoT Offline
Junior Member

Registered: 06/02/00
Posts: 10
Loc: Toronto, Canada
Actually...it doesn't delete the thread, it just makes it invisible...

The only way I can see the thread is if I do a search for it. ???

Anyone know why?

Top
#39140 - 07/08/02 08:15 AM Re: Sticky Threads
errol Offline
Member

Registered: 09/26/00
Posts: 57
Loc: PROUD AMERICAN!!! United We St...
Hi ya folks,

I installed this but I only get a blank page after I click the link for TOP. frown

Any help would be appreciated.

Thanks,
Errol

Top
#39141 - 07/08/02 08:36 PM Re: Sticky Threads
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Check your CHmodding of your files.

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks