|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
######################################################################## #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
. . . . .
Test the hack in this site . . . . . To download it click me
|
|
|
Joined: Jun 2000
Posts: 44
Member
|
Member
Joined: Jun 2000
Posts: 44 |
Seems to be working fine for me.
Thanks
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I suggest you that when it will reach 201 characters (max number + 1), remove 4 characters (197) and replace them with "..." (200) 
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
Rattler Thanks for trying the hack LK I have done the suggestion Thanks for this good improvement
|
|
|
|
Joined: Mar 2002
Posts: 64
Member
|
Member
Joined: Mar 2002
Posts: 64 |
is it just me or does it remove the bordor lines?
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
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
|
|
|
|
Joined: Mar 2002
Posts: 64
Member
|
Member
Joined: Mar 2002
Posts: 64 |
my fault sorry  , anyways, thnx 4 making this hack, its very handy!
|
|
|
|
Joined: Oct 2001
Posts: 157
Member
|
Member
Joined: Oct 2001
Posts: 157 |
Version 6.2. In ubb_forum.cgi, the text says... [/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?
Yors Truly
Who? Me? Worry?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
My ubb_forum also doesn't have #validate, so I guess you can ignore it. 
|
|
|
|
Joined: Oct 2001
Posts: 157
Member
|
Member
Joined: Oct 2001
Posts: 157 |
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?
Yors Truly
Who? Me? Worry?
|
|
|
|
Joined: Oct 2001
Posts: 157
Member
|
Member
Joined: Oct 2001
Posts: 157 |
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 gr8 job...thanks.
Yors Truly
Who? Me? Worry?
|
|
|
|
Joined: Oct 2001
Posts: 157
Member
|
Member
Joined: Oct 2001
Posts: 157 |
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)
Yors Truly
Who? Me? Worry?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Make the first part:[code][/code]
|
|
|
|
Joined: Mar 2001
Posts: 117
Member
|
Member
Joined: Mar 2001
Posts: 117 |
very nice hack
can I choose to show the first message of the topic, or the last message of the topic pls?
|
|
|
|
Joined: Oct 2001
Posts: 157
Member
|
Member
Joined: Oct 2001
Posts: 157 |
[/code][/b]</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Actually putting the following worked :D
[code] Thanks a lot anyways 
Yors Truly
Who? Me? Worry?
|
|
|
|
Joined: Dec 2001
Posts: 51
Member
|
Member
Joined: Dec 2001
Posts: 51 |
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?  ) 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  , and I'm working on a windows. Bye
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
yors, I don't think that it will work wwb, maybe mod cp integration? 
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
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
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
Yors The correct way to do it is [/code]and change the following
</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
|
|
|
|
Joined: Oct 2001
Posts: 157
Member
|
Member
Joined: Oct 2001
Posts: 157 |
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  . I mean, I said "working fine" before also and THEN noticed that the floodcheck got screwed up 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  ), 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.
Yors Truly
Who? Me? Worry?
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
Lk OR Greg Hard Pleas move it to the V6.2 Finished Modifications forum
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
URL: https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=21;t=000020
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,571
Posts293,923
Members13,848
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|