UBB.Dev
Posted By: wwb95 [6.2x] view topic summary - 03/18/2002 9:33 PM
########################################################################
#HACK NAME : view topic summary
#VERSION: final
#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 1 beta:
# 1-The last three character of the topic summary is removed and replaced by “…”
# 2-

and
will be replaced by end of line character.
#file to edit:
# CP_LIB.CGI
# CP_VARS_MISC.PL
# UBB_FORUM.CGI
# PUBLIC_FORUM_PAGE.PL
########################################################################

The hack will look like this

[Linked Image]

.
.
.
.
.

Test the hack in this site
.
.
.
.
.
To download it click me
Posted By: Rattler til Death Re: [6.2x] view topic summary - 03/19/2002 12:33 AM
Seems to be working fine for me.

Thanks
Posted By: LK Re: [6.2x] view topic summary - 03/19/2002 7:10 AM
I suggest you that when it will reach 201 characters (max number + 1), remove 4 characters (197) and replace them with "..." (200) smile
Posted By: wwb95 Re: [6.2x] view topic summary - 03/19/2002 3:11 PM
Rattler
Thanks for trying the hack

LK
smile smile smile
I have done the suggestion
Thanks for this good improvement
Posted By: Consolefreak Re: [6.2x] view topic summary - 03/19/2002 5:33 PM
is it just me or does it remove the bordor lines?
Posted By: wwb95 Re: [6.2x] view topic summary - 03/19/2002 5:49 PM
Consolefreak
Before this post I have no border line in the test board. I went there and place the border in the style template to see if you are right.
This hack dose not do any thing with the boarder you can check the test board and see it there
Thanks for replay
Posted By: Consolefreak Re: [6.2x] view topic summary - 03/19/2002 8:04 PM
my fault sorry laugh , anyways, thnx 4 making this hack, its very handy!
Posted By: yors Re: [6.2x] view topic summary - 03/20/2002 7:39 AM
Version 6.2.

In ubb_forum.cgi, the text says...

Code
[/code]My file doesnt have that #validate. However, something similar is like this...

[code]
Does it mean that the changes (adding $topic) go in there?
Posted By: LK Re: [6.2x] view topic summary - 03/20/2002 7:57 AM
My ubb_forum also doesn't have #validate, so I guess you can ignore it. tipsy
Posted By: yors Re: [6.2x] view topic summary - 03/20/2002 8:07 AM
In the same file, the text says...

[code][/code]I presume there is no need to "duplicate" the my @this_topic_data, instead it should be replaced?
Posted By: yors Re: [6.2x] view topic summary - 03/20/2002 9:24 AM
OK, I did both the things above, ie added the $topic in the sub get_forum instead of #validate and also "replaced" my @this_topic_data line instead of "adding" below.

The hack works perfectly laugh

gr8 job...thanks.
Posted By: yors Re: [6.2x] view topic summary - 03/20/2002 10:37 AM
btw, I am wondering what this par of the code is doing...

[code][/code]My flood check setting automatically increased to 200 !! (which is the default I set in CP for amount of message characters to display)
Posted By: LK Re: [6.2x] view topic summary - 03/20/2002 10:45 AM
Make the first part:[code][/code]
Posted By: q_ware Re: [6.2x] view topic summary - 03/20/2002 9:15 PM
very nice hack

can I choose to show the first message of the topic, or the last message of the topic pls?
Posted By: yors Re: [6.2x] view topic summary - 03/21/2002 2:45 PM
Code
[/code][/b]</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Actually putting the following worked  :D 

[code]
Thanks a lot anyways smile
Posted By: Mystik Gotan Re: [6.2x] view topic summary - 03/22/2002 9:19 PM
In your setup TXT, please note switching to vars_misc.cgi . Their might be guys trying to find the FloodCheckSpan value in cp_lib (and we don't want that, right? tipsy )

Anywayz, I've uploaded my portion, but it seems vars_misc.cgi doesn't really want to change the file :rolleyes:

My Mega Moderator Title can't be changed too :rolleyes:

I'll see and fix the bug then, don't say chmod 777, I know tipsy , and I'm working on a windows.

Bye
Posted By: LK Re: [6.2x] view topic summary - 03/22/2002 9:25 PM
yors, I don't think that it will work tipsy

wwb, maybe mod cp integration? smile
Posted By: wwb95 Re: [6.2x] view topic summary - 03/22/2002 10:22 PM
Yors
My mistake the validate is to make sour that the only change to the line is the addition of ,"view_topic","view_topic_char" at the end of the line before );

Done now in the new release
Thanks

----
Lk
Thanks you are correct
---
Yors
Solve now in the new release
Thanks

-----
Yors
Happy to hear that
Thanks

----
Yors
Done now in the new release
Thanks

---
Lk
Thanks done now in the new release

---
q_ware
thanks
I will tray to do that in the next release

----
Yors
The correct way to do it is
[code][/code]all will work hopefully

----
Mystik Gotan
No you do not change any thing in vars_misc.cgi. it will be updated automatically from the cp.
Will after you do all the modifications that I have done in the new release it should work with you
About the Mega Moderator I will look at it and see if there is any conflict with this hack
---

Lk
Done try it
Thanks for your help
Posted By: wwb95 Re: [6.2x] view topic summary - 03/22/2002 10:45 PM
Yors
The correct way to do it is
Code
[/code]and change  the following 
Code
</pre></div></div>now it will work <br>in my previous replay I have note add the above modification <br><br>----<br>Mystik Gotan<br>The conflict is because you copy the code with out validating <br>Look for <br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
and replace it by
[code]
Note that Mega Moderator has this added to this line before
"MegaModeratorTitle",
and when you replace it with my code that dose not has this variable in it the Mega Moderator will not work

---

Lk
You are right it will not work
Thanks
Posted By: yors Re: [6.2x] view topic summary - 03/23/2002 8:09 AM
I dont know why or how, but it actually worked after I did that change!!!

Or is it doing something else that I have not noticed till now tipsy . I mean, I said "working fine" before also and THEN noticed that the floodcheck got screwed up smile

You can check it here:

www.myhotboard.com
u: visitor
p:visitor

------

Bottomline is I have to thank you from my heart for this very "useful" hack. With 10,000 members and around 200 avg online in 30 minutes (457 max laugh ), our server is perpetually creaking. (We had to turn Rec. Vis. off to save the server). I guess this helps to reduce server load on the backend, offcourse also being such a gr8 feature for fast surfing on the frontend.
Posted By: wwb95 Re: [6.2x] view topic summary - 04/07/2002 4:02 PM
Lk OR Greg Hard
Pleas move it to the V6.2 Finished Modifications forum
Posted By: LK Re: [6.2x] view topic summary - 04/07/2002 4:14 PM
Can you please create a new topic there? It would be better, cause old posts that don't affect the finish version might confuse users.
Posted By: wwb95 Re: [6.2x] view topic summary - 04/07/2002 4:20 PM
Lk
Thanks I have done so
Posted By: LK Re: [6.2x] view topic summary - 04/07/2002 4:30 PM
smile

URL: https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=21;t=000020
© UBB.Developers