Previous Thread
Next Thread
Print Thread
Rate Thread
#126807 07/22/2001 2:52 PM
Joined: Jul 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 12
how can this be done??
i tried this but no luck frown

if ($in{'action'} eq "intro") {
if ($AllowSearch eq "FALSE" || $username eq "") {
&StandardHTML("Sorry, the search function is not activated at this time.");
exit;
} else {
&Intro;
}
}

tx in advance smile

Sponsored Links
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
I think you would be better off wotking on the $AllowSearch variable. It is called from UltBB.setup and interpretted as true/false. If you had a conditional statement in search.cgi that basically assigned the stored value for $AllowSearch for all users EXCEPT unregistered users...which it would then assign FALSE at all times....you *might* be OK!! I don't have time to do it right now...and I may even be WAY off the mark....but that is what I would try to do. Good luck!! Did any of that make sense??? I hope so!! smile

Joined: Jul 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 12
done
now guests no longer can use the search feature laugh

[ July 22, 2001 05:55 PM: Message edited by: ertram ]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Why don't you want them to use it?

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Quote
quote:
How did you end up doing it? I'm not really interested in the exact code...just how you went about it. smile

Sponsored Links
Joined: Jul 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 12
cookies laugh


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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)