UBB.Dev
Posted By: wwb95 [6.3.x] [beta] view topic summary - 08/25/2002 9:27 PM
########################################################################
#HACK NAME : view topic summary 6.3
#VERSION: 1 beta
#DESCRIPTON : When the mouse move in the top of a subject field in the forum page summary a portion of the topic will be shown by this hack.
#AUTHOR : [email protected]
#Modification from final 6.2:
# add suport to ubb6.3
#Modification from 1 beta 6.2:
# 1-The last three character of the topic summary is removed and replaced by “…”
# 2-

and
will be replaced by end of line character.
#Modification from 2 beta 6.2:
# 3-Resolve the bug that yors and Lk mention
#file to edit:
# CP_LIB.CGI
# CP_VARS_MISC.PL
# UBB_FORUM.CGI
# PUBLIC_FORUM_PAGE.PL
########################################################################

https://www.ubbdev.com/ubb/upload/00014554/view_topic_summary1.zip
Posted By: AllenAyres Re: [6.3.x] [beta] view topic summary - 08/26/2002 1:53 AM
another nice one, thanks wwb95 laugh
Posted By: Ed Re: [6.3.x] [beta] view topic summary - 08/27/2002 5:23 AM
Hi wwb95,
I installed it and it is working. I get the topic subject line but none of the message.
Is this the way it is supposed to work?
Posted By: Charles1 Re: [6.3.x] [beta] view topic summary - 08/27/2002 5:32 AM
Best hack ever !!! No doubt about it.
Posted By: LK Re: [6.3.x] [beta] view topic summary - 08/27/2002 10:21 AM
Ed, when you hover the title with your mouse for a few secs in a forum, you see the first lines.
Posted By: Ed Re: [6.3.x] [beta] view topic summary - 08/27/2002 12:50 PM
I get just the headline on the forum summary page but nothing on the individual forum page headlines. Maybe I missed something when I hacked?
Posted By: Ed Re: [6.3.x] [beta] view topic summary - 08/27/2002 12:52 PM
I get just the headline on the forum summary page but nothing on the individual forum page headlines. Maybe I missed something when I hacked?

http://www.nyssnowassoc.org/cgis/ubb/ultimatebb.cgi
Posted By: wwb95 Re: [6.3.x] [beta] view topic summary - 08/27/2002 1:08 PM
Ed
Try to do the last bet of the hack
run the CP=>
Miscellaneous Settings==>
Enable View topic?:(YES)
==>Ubdate Miscellaneous Settings**

and clear the cache
Posted By: Lord Dexter Re: [6.3.x] [beta] view topic summary - 08/27/2002 1:50 PM
Nice workie wwb95. smile
Posted By: Ed Re: [6.3.x] [beta] view topic summary - 08/27/2002 10:09 PM
Hi wwb95,
I did - Miscellaneous Settings==>
Enable View topic?:(YES)
==>Ubdate Miscellaneous Settings**

and cleared the cache.

When I Ubdate Miscellaneous Settings I get this:
You did not complete all required fields.
You did not complete: MemberMinimum
You did not complete: AdminTitle
You did not complete: ModeratorTitle
You did not complete: MemberTitle
You did not complete: JrMemberTitle
Posted By: wwb95 Re: [6.3.x] [beta] view topic summary - 08/27/2002 10:49 PM
I think you need to fill these two since you have not fill it
[Linked Image]
Posted By: LK Re: [6.3.x] [beta] view topic summary - 08/27/2002 10:51 PM
6.3 doesn't have it actually.... make sure you upgraded cp_lib.cgi to 6.3 version.
Posted By: CaCoffin Re: [6.3.x] [beta] view topic summary - 09/16/2002 4:44 PM
I like the idea of this hack and have attempted to install it.

There is an error (or should say for the latest version of UBB there is an error since it is more worletized) in the install instructions.

Quote
code:
Code
Look for:
&RadioField("Allow Reply with Quote?", "ReplyQuote", "yes",
"You can display a 'Reply with Quote'
icon beside each message. This will allow a user to quote an individual message
in a reply.", "$vars_misc (ReplyQuote}", "YES|Yes, permit this feature.%%
NO|No, do not permit this feature.");

In UBB 6.3.1.1 (or whatever latest version number is) there is no such line EXACTLY as stated since it has been converted to use wordlets.

It should say:
code:
[qb]
Code
Look for:

&RadioField($vars_wordlets_cp{vars_misc_quote}, "ReplyQuote", "yes", $vars_wordlets_cp
{vars_misc_quote_explained}, "$vars_misc{ReplyQuote}", "YES|$vars_wordlets_cp
{vars_misc_quote_yes}%%NO|$vars_wordlets_cp{vars_misc_quote_no}");
[/qb]
After doing the install, it did not work, though there was no disruption to the board.

I went to the control panel, the options were set to "yes" and "200" (default options set by the program if they are not set yet). To help determine where the problem was the settings were changed to "no" and "99". Upon reloading the misc settings page there it was back to "yes" and "200". Upon inspecting the misc settings file it was discovered that both of those settings were set to "undef" and other settings had been changed to the "no" and "200".

Upon further inspection of the install code this was noticed:

Quote
code:
Code
Look for this:
my $FloodCheckSpan = &SmallClean3($in{FloodCheckSpan});
Underneath that add:
my $FloodCheckSpan = &SmallClean3($in{view_topic});
my $FloodCheckSpan = &SmallClean3($in{view_topic_char});

This did not seem right and using the little bit of understanding that I have I changed it to:

code:
[qb]
Code
Look for this:
my $FloodCheckSpan = &SmallClean3($in{FloodCheckSpan});
Underneath that add:
my $view_topic = &SmallClean3($in{view_topic});
my $view_topic_char = &SmallClean3($in{view_topic_char});
[/qb]
With that change it is now working on my test board.

However, with the other MODs that are installed there is an error popping up with the hits hack. I am pretty sure it has nothing to do with this mod and is simply an error I have made when I transferred some files.

***NOTE: The two code block lines have intentional line breaks added to prevent the page from spreading across three monitors. It should be one long line.
Posted By: wwb95 Re: [6.3.x] [beta] view topic summary - 09/16/2002 5:26 PM
Thank CaCoffin
I have upload your change into the same file thank you very much

I did not under stand this
***NOTE: The two code block lines have intentional line breaks added to prevent the page from spreading across three monitors. It should be one long line.

If you mean it dos not support other browser you cold replace this code
Quote
code:
Code
                                $topic=~ s/(

)/n/isg;
$topic=~ s/(
)/n/isg;
$topic=~ s/(</tr>)/n/isg;

by
code:
[qb]
Code
                                $topic=~ s/(

)//isg;
$topic=~ s/(
)//isg;
$topic=~ s/(</tr>)//isg;
[/qb]
Posted By: CaCoffin Re: [6.3.x] [beta] view topic summary - 09/17/2002 2:40 AM
all i was saying was that instead of the one long continuous line that the code is - which would cause this window to be expanded out the width of three monitors - i intentionally entered line breaks so the code inside the code tags would stay within one window width

the code itself is wordletized in the latest version though and so should be updated to reflected that on the search
Posted By: CaCoffin Re: [6.3.x] [beta] view topic summary - 09/17/2002 6:39 AM
OK! Got it installed without messing with my hit hack (I should say without ME messing with my hit hack wink )

Works fine except for one item.

If the topic has quotes (only thing I have tested so far) it stops showing the topic at the character before the first quote.

Any ideas?
Posted By: CaCoffin Re: [6.3.x] [beta] view topic summary - 09/17/2002 5:11 PM
You know what - instead of thinking of the quote quirk - as a bug it should be thought of as a nice feature!

Don't want someone to see what is in the topic (intentionally hiding it unless they go in - good for forums that have spoilers) just put a " mark at the start of the instigating post and nothing will show up in topic title!

Makes for a good option!
© UBB.Developers