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

Registered: 12/16/01
Posts: 20

   "Last reply by" hack for 6.2 ? to Del.icio.us Add to del.icio.us
  Digg "Last reply by" hack for 6.2 ? Digg it
Will the 6.1 version work, or will it need to be rewritten for 6.2 ?

Top
#52286 - 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
#52287 - 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
#52288 - 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
#52289 - 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
#52290 - 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
#52291 - 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
#52292 - 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
#52293 - 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
#52294 - 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
#52295 - 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
#52296 - 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
#52297 - 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 (AllenAyres), 39 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
10/13/08 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 9
blaaskaak 7
Chris Bale 4
FREAK1 4
Ian_W 4
tackaberry 4
Mike L_dup1 4

 

 

 
fusionbb message board php hacks