php forum
php mysql forum
php mysql smarty
 
Topic Options
#154896 - 08/25/02 02:27 PM [6.3.x] [beta] view topic summary
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
########################################################################
#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 : wwb95..wwb95@hotmail.com
#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
</tr> 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
########################################################################

http://www.ubbdev.com/ubb/upload/00014554/view_topic_summary1.zip

Top
#154897 - 08/25/02 06:53 PM Re: [6.3.x] [beta] view topic summary
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
another nice one, thanks wwb95 laugh
_________________________
- Allen wavey
- What Drives You?

Top
#154898 - 08/26/02 10:23 PM Re: [6.3.x] [beta] view topic summary
Ed Offline
Member

Registered: 12/24/00
Posts: 77
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?
_________________________

Top
#154899 - 08/26/02 10:32 PM Re: [6.3.x] [beta] view topic summary
Charles1 Offline
Member

Registered: 03/14/02
Posts: 35
Best hack ever !!! No doubt about it.

Top
#154900 - 08/27/02 03:21 AM Re: [6.3.x] [beta] view topic summary
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Ed, when you hover the title with your mouse for a few secs in a forum, you see the first lines.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#154901 - 08/27/02 05:50 AM Re: [6.3.x] [beta] view topic summary
Ed Offline
Member

Registered: 12/24/00
Posts: 77
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?
_________________________

Top
#154902 - 08/27/02 05:52 AM Re: [6.3.x] [beta] view topic summary
Ed Offline
Member

Registered: 12/24/00
Posts: 77
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
_________________________

Top
#154903 - 08/27/02 06:08 AM Re: [6.3.x] [beta] view topic summary
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
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

Top
#154904 - 08/27/02 06:50 AM Re: [6.3.x] [beta] view topic summary
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Nice workie wwb95. smile

Top
#154905 - 08/27/02 03:09 PM Re: [6.3.x] [beta] view topic summary
Ed Offline
Member

Registered: 12/24/00
Posts: 77
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
_________________________

Top
#154906 - 08/27/02 03:49 PM Re: [6.3.x] [beta] view topic summary
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
I think you need to fill these two since you have not fill it

Top
#154907 - 08/27/02 03:51 PM Re: [6.3.x] [beta] view topic summary
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
6.3 doesn't have it actually.... make sure you upgraded cp_lib.cgi to 6.3 version.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#154908 - 09/16/02 09:44 AM Re: [6.3.x] [beta] view topic summary
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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:</font><hr />
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.");
<hr /></blockquote>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:
<blockquote><font class="small">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:</font><hr />
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});
<hr /></blockquote>This did not seem right and using the little bit of understanding that I have I changed it to:

<blockquote><font class="small">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.

Top
#154909 - 09/16/02 10:26 AM Re: [6.3.x] [beta] view topic summary
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
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:</font><hr />
Code:
                                $topic=~ s/(

)/n/isg;
                                $topic=~ s/(
)/n/isg;
                                $topic=~ s/(</tr>)/n/isg;
<hr /></blockquote>by
<blockquote><font class="small">code:
[qb]
Code:
                                $topic=~ s/(

)//isg;
                                $topic=~ s/(
)//isg;
                                $topic=~ s/(</tr>)//isg;
[/qb]

Top
#154910 - 09/16/02 07:40 PM Re: [6.3.x] [beta] view topic summary
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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

Top
#154911 - 09/16/02 11:39 PM Re: [6.3.x] [beta] view topic summary
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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?

Top
#154912 - 09/17/02 10:11 AM Re: [6.3.x] [beta] view topic summary
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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!

Top


Who's Online
1 registered (blaaskaak), 19 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
Yesterday at 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks