Previous Thread
Next Thread
Print Thread
Rate Thread
#43845 01/10/2002 6:20 PM
Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
I guess this isnt exactly a hack per se...but i need one, because my forumindex are just too big i think, and my forum engines just wont work. I've tried limiting the words, gone from 210 to 150 threads......but i need a hack for it. anyone managed to find an external search engine maybe? Help!

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Try rebuilding your Search index and see if that helps at all.

Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
Nah, im afraid that wont help at all......

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Well I wouldn't have a clue then, sorry.

Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
i think you mean this:

[code][/code]


this mod is only for the search in one forum.
it read only 250 lines per cycle.

i have no demo online. [Linked Image] on my local system (unhacked 5.47a) i have no problems with this mod.


[edit]code modified... (if (!$searchDone) {)

[ 01-11-2002 08:03 AM: Message edited by: joking-down ]

[edit]code modified... (while ())

[ 01-11-2002 04:33 PM: Message edited by: joking-down ]

Sponsored Links
Joined: Sep 2001
Posts: 194
svr Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Hi joking-down wat does this hack do? i have search disabled coz it is the most cpu hoggingscript I have come across lately. Does this make it less cpu intensive ?

Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
this mod read in one cycle only 250 lines and process them.

1. cycle: line 0 - 249
2. cycle: line 250 - 499
3. cycle: line 500 - 749
...

i think the load is not so high because you have not all entries of the forum. you can also search in forums with an indexfile > 3 MB.

i have only a Win32 System local. I have no load-limit like Unix [Linked Image]

Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
Hi joking-down, I will cerainly have a go..........

Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
Although i take it the smiley in your code is a mistake, I will leave the ")" out........

Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
the correct code of this line is:
[code][/code]

Sponsored Links
Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
Yes it works...but theres a problem. It nevers stops counting, it wont finish at 200....goes on, and on. Any chance that could be done? http://tropicalfish.site5.com/cgi-bin/search.cgi?action=intro Well done though joking down, at least its not a blanl page

Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
replace the following code:
Code
[/code]
with:
[code]

Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
Wow! Your the man joking-down, it works! I think this is definitely worth putting in the database on its own right smile


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
Posts: 70
Joined: January 2007
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)