I Don't Understand This...

Is there a way to block guests from using the search tool on the top right (view attached pic). Its pointless to have restrictions on other things on the site if all guests have to do is search for it. I would prefer it to be there but once a guest enters something to search it takes them to a log in screen, but to completely block it for guests is alright too. This is very important someone please help. thank you!

search.jpg · 28.3K · 93 views
SGeeZyyy
Quote · 1 Dec 2010

files to edit
search.php ,  searchKeyword.php ,   and searchKeywordContent.php

 

just after the last require_once(.................. add this
$logged['member'] = member_auth(0);

 

do the same for all 3 files.

Quote · 1 Dec 2010

I also did the search_home page. I was still able to search the site using the google site search. What file can I edit to close that one down as well?

Maybe BxGSearchMainPage.php? in /modules/boonex/google_search/classes

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 1 Dec 2010

 

I also did the search_home page. I was still able to search the site using the google site search. What file can I edit to close that one down as well?

Maybe BxGSearchMainPage.php? in /modules/boonex/google_search/classes

modules/boonex/google_search/          request.php

right after
check_logged();
$logged['member'] = member_auth(0);

Quote · 1 Dec 2010

and if that's not enough
/modules/   index.php

~30

require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolModuleDb.php');
$logged['member'] = member_auth(0);

that will block access for guests to all modules.

Quote · 1 Dec 2010

LOL!

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 1 Dec 2010

Perfect. Thank you.

SGeeZyyy
Quote · 1 Dec 2010

Hey Prolaznik maybe you can help with one more thing, I like to do the same thing with the search tab on top(view pic attached). I had a previous post but no one new how to do it so I completely removed the search tab from home page. Would you know how to do it to the search tab?

save.jpg · 65.1K · 84 views
SGeeZyyy
Quote · 1 Dec 2010

You should just leave it. When a guest tries to do a search, they'll be pushed to actually sign up and become a member.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 1 Dec 2010

search_home,
search.php , 
searchKeyword.php ,  
searchKeywordContent.php


just after the last require_once(.................. add this
$logged['member'] = member_auth(0);

guests won't see a thing

EDIT:  i like SkyForum's idea more.

Quote · 1 Dec 2010

See the thing is if I leave it, it doesnt take them to a log in screen it takes them to a page with no content when they click on it (check pic attached)

 

EDIT: Actually what I wanted got done with the other stuff you told me to do. thank you so much I've been trying to do this forever.

save.jpg · 65.1K · 72 views
SGeeZyyy
Quote · 1 Dec 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.