Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2001
Posts: 32
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 32
Will the 6.1 version work, or will it need to be rewritten for 6.2 ?

Sponsored Links
Joined: Dec 2001
Posts: 32
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 32
nevermind, it works smile

Joined: Apr 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 16
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?

Joined: Dec 2001
Posts: 32
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 32
if i remember correctly, I just classed those two as the same thing

Joined: Apr 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 16
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:

Sponsored Links
Joined: Apr 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 16
anyone? I will pay anyone here to help, laugh

Joined: Jan 2002
Posts: 65
Member
Member
Offline
Joined: Jan 2002
Posts: 65
after this

$last_hyphen_date = $this_topic_data[12];

put what you need

Joined: Apr 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 16
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

Joined: Apr 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 16
Would anyone wanna tackle this as a freelance job? I really need it to work!

Joined: Jan 2002
Posts: 65
Member
Member
Offline
Joined: Jan 2002
Posts: 65
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.

Sponsored Links
Joined: Apr 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 16
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!

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
yes you need to keep all of that.

look for**

Code
[/code]Replace with**

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


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)