Previous Thread
Next Thread
Print Thread
Rate Thread
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
#144398 03/18/2002 1:33 PM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
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
Sponsored Links
Joined: Jun 2000
Posts: 44
Member
Member
Offline
Joined: Jun 2000
Posts: 44
Seems to be working fine for me.

Thanks

#144400 03/18/2002 11:10 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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) smile

Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
Rattler
Thanks for trying the hack

LK
smile smile smile
I have done the suggestion
Thanks for this good improvement

Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
is it just me or does it remove the bordor lines?

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

#144404 03/19/2002 12:04 PM
Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
my fault sorry laugh , anyways, thnx 4 making this hack, its very handy!

#144405 03/19/2002 11:39 PM
Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
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?


Yors Truly

Who? Me? Worry?
#144406 03/19/2002 11:57 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
My ubb_forum also doesn't have #validate, so I guess you can ignore it. tipsy

#144407 03/20/2002 12:07 AM
Joined: Oct 2001
Posts: 157
Member
Member
Offline
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?
Sponsored Links
Joined: Oct 2001
Posts: 157
Member
Member
Offline
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 laugh

gr8 job...thanks.


Yors Truly

Who? Me? Worry?
Joined: Oct 2001
Posts: 157
Member
Member
Offline
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
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Make the first part:[code][/code]

Joined: Mar 2001
Posts: 117
Member
Member
Offline
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
Offline
Joined: Oct 2001
Posts: 157
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


Yors Truly

Who? Me? Worry?
Joined: Dec 2001
Posts: 51
Member
Member
Offline
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? 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

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
yors, I don't think that it will work tipsy

wwb, maybe mod cp integration? smile

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

#144417 03/23/2002 12:09 AM
Joined: Oct 2001
Posts: 157
Member
Member
Offline
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 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.


Yors Truly

Who? Me? Worry?
Joined: Nov 2001
Posts: 170
Member
Member
Offline
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
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
Offline
Joined: Nov 2001
Posts: 170
Lk
Thanks I have done so

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
smile

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


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
hatter
hatter
USA
Posts: 69
Joined: January 2001
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
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 20221218)