Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
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
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&#0124;^&#0124;00000003&#0124;^&#0124;08-31-2001

yes

yes
yes

20010831&#0124;155&#0124;000017&#0124;000003
IE6 & Mcafee Antivirus at 09:45 AM on 08-31-2001
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.]

Anonymous
Unregistered
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 **

Anonymous
Unregistered
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?

Anonymous
Unregistered
Anonymous
Unregistered
Quote
Originally posted by Mark Jackson:
Anybody alive here?
Not at 5:43 AM. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

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

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

Anonymous
Unregistered
Anonymous
Unregistered
Yes but the people you're asking support from are from the US. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

ROFL... solving problems by installing hacks. What's this world coming to? <img src="https://www.ubbcentral.com/boards/images/graemlins/laugh.gif" alt="" />

Anonymous
Unregistered
Anonymous
Unregistered
No, no, no. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

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. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

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!

Anonymous
Unregistered
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.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Nightcrawler, Ruben), 694 guests, and 214 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)