php forum
php mysql forum
php mysql smarty
 
Topic Options
#190296 - 02/23/02 03:58 PM "Last reply by" hack for 6.2 ?
Embercidal Offline
Junior Member

Registered: 12/16/01
Posts: 20
Will the 6.1 version work, or will it need to be rewritten for 6.2 ?

Top
#190297 - 02/23/02 04:11 PM Re: "Last reply by" hack for 6.2 ?
Embercidal Offline
Junior Member

Registered: 12/16/01
Posts: 20
nevermind, it works smile

Top
#190298 - 02/25/02 12:23 AM Re: "Last reply by" hack for 6.2 ?
gleem Offline
Junior Member

Registered: 04/16/01
Posts: 10
Loc: OHIO
How did you get it to work?

When I went to install it, I could not find:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">$last_hyphen_date = $last_post[3]; </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">in "ubb_forum.cgi"

the closest thing I found was:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> $last_hyphen_date = $this_topic_data[12]; </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">my board is version 6.2.1

Am I missing something?

Top
#190299 - 02/25/02 04:20 AM Re: "Last reply by" hack for 6.2 ?
Embercidal Offline
Junior Member

Registered: 12/16/01
Posts: 20
if i remember correctly, I just classed those two as the same thing

Top
#190300 - 02/25/02 10:54 AM Re: "Last reply by" hack for 6.2 ?
gleem Offline
Junior Member

Registered: 04/16/01
Posts: 10
Loc: OHIO
what does "class those as the same thing" mean? I tried adding the missing line and the hack right after :
$last_hyphen_date = $this_topic_data[12];

all that did was mess up the time on my last post, but still didn't say who did the post.

Did you modify that paragraph that IO'm supposed to paste in? If so, how?

Did you paste it in somewhere else?

I can't code, except for minor changes and "canned" scripts. I suck :rolleyes:

Top
#190301 - 02/26/02 02:44 AM Re: "Last reply by" hack for 6.2 ?
gleem Offline
Junior Member

Registered: 04/16/01
Posts: 10
Loc: OHIO
anyone? I will pay anyone here to help, laugh

Top
#190302 - 02/26/02 03:41 AM Re: "Last reply by" hack for 6.2 ?
Nemesis138613 Offline
Member

Registered: 01/29/02
Posts: 53
after this

$last_hyphen_date = $this_topic_data[12];

put what you need

Top
#190303 - 02/26/02 11:04 AM Re: "Last reply by" hack for 6.2 ?
gleem Offline
Junior Member

Registered: 04/16/01
Posts: 10
Loc: OHIO
Crap, still won't work, I just get a blank "last reply by: " under the last reply date!

I did everything right, it has to be the ubb_forum.cgi!!

ok, here;s how my first paragraph that was supposed to be changed looks:

</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> local ($poll_new, $poll_old, $pollid, $poll_link, @pntf_locations, $pntf_string, $last_julian, $GetMonth, $GetDate, $GetYear, @this_forum, $category, $permission, $cat_name, $mod, @mods, %topic_legend, %reply_legend, $topic_restrict, $reply_restrict, $forum_name, %topic_view, $DPJulian, @thefinalarray, %forum_topics, $topic, $one, @this_topic, $closed, $total_replies, $subject, $user_name, $msg_icon, $last_hyphen_date, $last_time, @rev_file, @last_post, $TheDate, $Breaker, $DateSize, $hot_icon, $new_topic_button, $key, $value, $Sections, $count, $j, $start_point, $array_stop, $total_good, $more_topics_wording, $Block, $starting, @topics, $Section, $topic_start_name, $cat_line1, $extra_pages, $topic_view_line, $topic_start_un, $last_post_username, @user_profile); </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">then later in the same file:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> $last_hyphen_date = $this_topic_data[12];

# begin last post hack
if ($last_post[1] eq "000000"){
$last_post_username = "";
}
else { $last_post_num = &GetUserNumber($last_post[2]);
# get latest public name for latest post replier!
my @user_profile = '';
if (-e "$vars_config{MembersPath}/$last_post_num.cgi") {
@user_profile = &OpenProfile($last_post_num);
chomp($user_profile[15]); chomp($user_profile[0]);
$last_post_username = $user_profile[15];
if ($user_profile[15] eq '') { $last_post_username = $user_profile[0]; }
}
else {
$last_post_username = $last_post[2];
}
my $total_posts = $total_replies + 1;
my $page_num = '';
if ($total_posts > $vars_display{HTMLDisplayMax}) {
my $total_pages = int ($total_posts / $vars_display{HTMLDisplayMax});
if ($total_posts % $vars_display{HTMLDisplayMax}) { $total_pages++; }
if ($total_pages > 1) {
$page_num = "&p=$total_pages";
}
}
$last_post_username = qq!
$vars_wordlets_mods{last_reply_by}: <A HREF="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$in{f}&t=$one$page_num#$last_post[1]">$last_post_username</A>!;
}
# end last post hack </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Why wouldn't it work? I emptied the cache (actually at this point I turned it off), I did the templates and wordlets deal right obviously since I get the words "last reply by: " under the last post date, I am going nutz here!

Any ideas?? confused

Top
#190304 - 02/26/02 11:56 PM Re: "Last reply by" hack for 6.2 ?
gleem Offline
Junior Member

Registered: 04/16/01
Posts: 10
Loc: OHIO
Would anyone wanna tackle this as a freelance job? I really need it to work!

Top
#190305 - 02/27/02 01:13 PM Re: "Last reply by" hack for 6.2 ?
Nemesis138613 Offline
Member

Registered: 01/29/02
Posts: 53
lol. Maybe you dont have Vars_wordlets_mods.cgi installed. I dont no but if ya catch me on AIm i will help ya out. My Sn is Nemesis138613 . If ya have it talk to me there and i will help ya.

Top
#190306 - 02/27/02 02:16 PM Re: "Last reply by" hack for 6.2 ?
gleem Offline
Junior Member

Registered: 04/16/01
Posts: 10
Loc: OHIO
LOL! After making a complete shmuck out of myself in public, while trying to work the bug out on AOL IM with Nemesis above, I realized I had 2 version of "Last Reply By" one for 6.0x, and one for 6.1.x, And guess which one I was using.....DUH!!!

It always seems to come down to something that dumb with these hacks for me. Thanks for the help guys....Now .... the smiley hack!

Top
#190307 - 03/12/02 10:48 PM Re: "Last reply by" hack for 6.2 ?
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
I have a question about the code with the Last Reply.

When I went to do the Multihack, the analysis told me that there were problems with the ubb_forum.cgi

It wants me to replace a section of code that looks very much like this:

[code][/code]The reason I am hesitating in doing so is because of the poll code and the pntf code.

Do I need to worry about this? Or is this a code revision that I need help with?

Thanks!
_________________________
Sue
adwoff.com

Top
#190308 - 03/12/02 11:03 PM Re: "Last reply by" hack for 6.2 ?
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
yes you need to keep all of that.

look for**

Code:
[/code]Replace with**

[code]
it should look like that when your done.

Top


Moderator:  Gizmo 
Who's Online
1 registered (DoubleDutch), 26 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
Today at 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
Yesterday at 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
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
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks