Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (Gizmo, Iann128, Island Piper, Rick, Ruben Rocha), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 09/04/07
Posts: 79
Top Posters (30 Days)
Ruben Rocha 159
Rick 119
Gizmo 110
Thelockman 62
driv 56
ScriptKeeper 36
AllenAyres 35
Ian 31
Mark S 30
phoebe 29
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#112851 - 10/21/01 05:20 AM Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


Well I've just upgraded from v6.04e, which is a forum that had a lot of mod/hacks, to v6.1 FINAL.

Sadly and despite a number of rebuilds and even running that newstrip.cgi file for boards being upgraded from heavily modded forums, I've still got a serious data output issue.

Now on the left of every post where the member status goes (Member / Moderator etc.) it shows this:

[QUOTE]big mc
"Excessive Use" at 10:47 AM on 10-21-2001
Member # 647

Rate Member[/QUOTE]The >>"Excessive Use" at 10:47 AM on 10-21-2001<< line shows up as the last line in my UBB member files for all members. It was a part of the 'Show last users post in profile' mod for v6.04e.

I have 4,100 members over 188 forums and this makes it look extremely ugly. An example from the last few lines of a random membile is as follows:

[QUOTE]Matthew.A|^|00000003|^|08-31-2001

yes

yes
yes

20010831|155|000017|000003
IE6 & Mcafee Antivirus at 09:45 AM on 08-31-2001[/QUOTE]So how do I get rid of the any member files that have the LAST line as an <a href ?? HELP!

[This message was edited by Charles Capps on November 05, 2002 at 10:29 AM.]

Top
#112852 - 10/21/01 05:36 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


For the record this is how you'd re-create it under v6.04e so you can see it's profile 31.

[QUOTE]** EDIT UBB_PROFILE.CGI

Look for:
print FILE ("$user_profile[29]n");

Add underneath:
print FILE ("$user_profile[30]n");
print FILE ("$user_profile[31]n");

** DONE - SAVE AND CLOSE UBB_PROFILE.CGI **

** EDIT UBB_LIB.CGI **

Look for the following code:
my $maxmemfields = 29; #total fields permitted in member file

Replace that code with:
my $maxmemfields = 31; #total fields permitted in member file

** DONE - SAVE AND CLOSE UBB_LIB.CGI **

** EDIT UBB_NEW_REPLY.CGI **

Look for the following code:
# lc the logged in user-- for comparisons below
my $lc_un = lc($username);

Underneath this add:
# Get Total Pages
my $doextra = '';
if (($stat_line[2] + 1) > $vars_display{HTMLDisplayMax}) {
my $total_pages = int (($stat_line[2] + 1) / $vars_display{HTMLDisplayMax});
if (($stat_line[2] + 1) % $vars_display{HTMLDisplayMax}) { $total_pages++; }
if ($total_pages > 1) {
$doextra = "&p=$total_pages";
}
}

Look for the following code:
if (($user_profile[7] >= $vars_misc{MemberMinimum}) && ($user_profile[8] eq 'Junior Member')) {
$user_profile[8] = 'Member';
}

Underneath that add:
# Write Last Post Info To Member File
if ($permission ne 'private') {
$LastPostInfo = qq~<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$in{f}&t=$in{t}$doextra#$post_number">$this_subject</a> at $GotTime{Time} on $GotTime{HyphenDate}~;
} else { $LastPostInfo = "$vars_wordlets_mods{Info_Not_Avail}"; }

$user_profile[31] = $LastPostInfo;

** DONE - SAVE AND CLOSE UBB_NEW_REPLY.CGI **

** EDIT UBB_NEW_TOPIC.CGI **

Look for the following code:
if (($user_profile[7] >= $vars_misc{MemberMinimum}) && ($user_profile[8] eq 'Junior Member')) {
$user_profile[8] = 'Member';
}

Underneath that code add the following:
# Write Last Post Info To Member File
if ($permission ne 'private') {
$LastPostInfo = qq~<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$in{f}&t=$in{t}#000000">$this_subject</a> at $GotTime{Time} on $GotTime{HyphenDate}~;
} else { $LastPostInfo = "$vars_wordlets_mods{Info_Not_Avail}"; }

$user_profile[31] = $LastPostInfo;

** DONE - SAVE AND CLOSE UBB_NEW_TOPIC.CGI **

** EDIT PUBLIC_DISPLAY_PROFILE.PL TEMPLATE **

Look for the following code:
email_line

} # if user wants public display of email address

Underneath, add the following:
# Last Post Info in Profile
if ($user_profile[31] eq "") {
$LastPostInfo = "$vars_wordlets_mods{Info_Not_Avail}"
} else {
$LastPostInfo = "$user_profile[31]"
}

print <<THISFIELD;

<tr bgcolor="$vars_style{AltColumnColor1}">
<td>
<FONT size="$vars_style{TextSize}" FACE="$vars_style{FontFace}">
<B>$vars_wordlets_mods{Last_Post_Title}</B>:
</font>
</td>
<td>
<FONT size="$vars_style{TextSize}" FACE="$vars_style{FontFace}">
$LastPostInfo
</FONT>
</td>
</tr>

THISFIELD


** DONE - SAVE AND CLOSE PUBLIC_DISPLAY_PROFILE.PL TEMPLATE **[/QUOTE]

Top
#112853 - 10/21/01 05:43 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


Another solution would be to re-write the hack to identify profile field [31], sadly v6.1 is so different that I can't do it.

Anybody alive here?

Top
#112854 - 10/21/01 07:24 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


[QUOTE]Originally posted by Mark Jackson:
Anybody alive here?[/QUOTE]Not at 5:43 AM.

Top
#112855 - 10/21/01 08:11 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


We're not all from America you know =) << UK.

Thankfully I solved this by installing the 'Custom Status / Stars Hack v6'.

Top
#112856 - 10/21/01 11:53 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


Yes but the people you're asking support from are from the US.

ROFL... solving problems by installing hacks. What's this world coming to?

Top
#112857 - 10/22/01 11:45 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


No, no, no.

Go back to clean code, then grab the utility in the Member Area to strip profile fields.

Upload it, set it to strip to 6.0x, then run it.

That'll take care of the problem.

In the future, do not install any hack that uses profile fields 0-50. We've reserved those.

--
Charles Capps
Programmer, Infopop Corporation
Please do not contact me privately for support - post on the board or open a support ticket instead!

Top
#112858 - 10/23/01 03:27 AM Re: Strange Output After Upgrade [NOTABUG]
Anonymous
Unregistered


You're too late, I'm already well into my ritual feature improvements stage =).. once in yeee canna go bik hehe.

Works fine, just letting it ignore the field 31.

Top


Shout Box

Today's Birthdays
Neptin
Recent Topics
How do I set Moderation Queue for an individual user?
by luket
11/20/08 11:28 AM
Custom Island per Forum?
by unixpaul
11/20/08 10:18 AM
SQL Corruption?
by Jason Carey
11/20/08 05:52 AM
adding views column to portal page
by nick1
11/20/08 05:12 AM
Upload broken in 7.4.1
by MacW
11/20/08 03:23 AM
Forum Stats
4247 Members
33 Forums
30483 Topics
154621 Posts

Max Online: 978 @ 06/24/07 08:19 PM