Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
0 registered (), 32 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
<span class='adminname'>SD</span>
SD
Registered: 04/19/07
Posts: 4206
Top Posters (30 Days)
Ruben 27
Gizmo 22
Bert 18
sb 5
hema0359 4
After the Rose 4
skicomau 3
BellaOnline 3
gladiator 3
Iann128 2
Latest Photos
Uhm...
Mayan End of World
Gas Station Disco Video Shoot
Test Pictures
Audrey Kate
Topic Options
#112851 - 10/21/01 07: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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#112852 - 10/21/01 07: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 07: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 09: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 10: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 01:53 PM 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 01:45 PM 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 05: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
No Birthdays
Recent Topics
Marking a topic as 'read' manually
by sw55
Yesterday at 04:29 PM
How to add AD island?
by Conrad
Yesterday at 01:19 PM
Need to update from 6 to latest: can't until server checked
by Digilady
06/17/13 08:17 AM
Shout Box
by Bert
06/15/13 04:15 PM
Calendar
by Bert
06/15/13 04:11 PM
Forum Stats
11000 Members
36 Forums
33988 Topics
183527 Posts

Max Online: 978 @ 06/24/07 10:19 PM
Random Image