PsxBasement, the quick and dirty way would be to save the HTML. Open up in your favorite HTML editor. Copy and paste from there (it always works for me ) for proper formatting.
#140793 - 03/23/0101:37 PMRe: [6.0x] Last User Name to Reply in Forum [ Finished ]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25452
Loc: Texas
File updated with bug fixes and to version 6.01 (Link on first page).
I updated the format of the instructions too, if you guys don't mind following it pretty closely in the future, consistency in formatting will help the newbies..
#140794 - 03/23/0102:23 PMRe: [6.0x] Last User Name to Reply in Forum [ Finished ]
Alien
Member
Registered: 03/15/00
Posts: 373
Loc: Zeta 2 Reticuli
Allen: Seems to be a problem with this bit of code, causing a software error:
# 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{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
Inserting the old code (even though there is a bug) makes it go away. All code was inserted properly.
#140802 - 03/23/0111:17 PMRe: [6.0x] Last User Name to Reply in Forum [ Finished ]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25452
Loc: Texas
We are waiting on borg to finish the who's online before we upgrade, so we haven't upgraded or done anything yet. I didn't want my fiddlin with it to mess with his work. He has been uplodaing and downloading pretty fast and furious the last few days...
hm, i installed the mod for ubb 6.01. if a thread is more that 2 pages long and i click one the latest reply, i come to the first post of the thread. any suggestions? i downloaded the newest version ...
It seems to work with multiple pages on this thread quite well, I haven't actually seen the problem you're all complaining of. The 'who's online' hack is a good example of it working.