Previous Thread
Next Thread
Print Thread
Rate Thread
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
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
########################################################################
#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
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
another nice one, thanks wwb95 laugh


- Allen wavey
- What Drives You?
Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
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?

Joined: Mar 2002
Posts: 52
Member
Member
Offline
Joined: Mar 2002
Posts: 52
Best hack ever !!! No doubt about it.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Ed, when you hover the title with your mouse for a few secs in a forum, you see the first lines.

Sponsored Links
Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
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?

Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
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

Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Nice workie wwb95. smile

Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
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

Sponsored Links
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
I think you need to fill these two since you have not fill it
[Linked Image]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
6.3 doesn't have it actually.... make sure you upgraded cp_lib.cgi to 6.3 version.

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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.

Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
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]

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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?

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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!


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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
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 20240430)