UBB.Dev
Posted By: Embercidal "Last reply by" hack for 6.2 ? - 02/23/2002 11:58 PM
Will the 6.1 version work, or will it need to be rewritten for 6.2 ?
Posted By: Embercidal Re: "Last reply by" hack for 6.2 ? - 02/24/2002 12:11 AM
nevermind, it works smile
Posted By: gleem Re: "Last reply by" hack for 6.2 ? - 02/25/2002 8:23 AM
How did you get it to work?

When I went to install it, I could not find:
quote:
$last_hyphen_date = $last_post[3];
in "ubb_forum.cgi"

the closest thing I found was:
quote:
$last_hyphen_date = $this_topic_data[12];
my board is version 6.2.1

Am I missing something?
Posted By: Embercidal Re: "Last reply by" hack for 6.2 ? - 02/25/2002 12:20 PM
if i remember correctly, I just classed those two as the same thing
Posted By: gleem Re: "Last reply by" hack for 6.2 ? - 02/25/2002 6:54 PM
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:
Posted By: gleem Re: "Last reply by" hack for 6.2 ? - 02/26/2002 10:44 AM
anyone? I will pay anyone here to help, laugh
Posted By: Nemesis138613 Re: "Last reply by" hack for 6.2 ? - 02/26/2002 11:41 AM
after this

$last_hyphen_date = $this_topic_data[12];

put what you need
Posted By: gleem Re: "Last reply by" hack for 6.2 ? - 02/26/2002 7:04 PM
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:

quote:
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);
then later in the same file:
quote:
$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}: $last_post_username!;
}
# end last post hack

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
Posted By: gleem Re: "Last reply by" hack for 6.2 ? - 02/27/2002 7:56 AM
Would anyone wanna tackle this as a freelance job? I really need it to work!
Posted By: Nemesis138613 Re: "Last reply by" hack for 6.2 ? - 02/27/2002 9:13 PM
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.
Posted By: gleem Re: "Last reply by" hack for 6.2 ? - 02/27/2002 10:16 PM
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!
Posted By: ADWOFF Re: "Last reply by" hack for 6.2 ? - 03/13/2002 6:48 AM
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!
Posted By: Yamaha Raptor Re: "Last reply by" hack for 6.2 ? - 03/13/2002 7:03 AM
yes you need to keep all of that.

look for**

Code
[/code]Replace with**

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