Search function in custom pages?

Discussion forum for MOD Writers regarding MOD Development.
Revs
Registered User
Posts: 100
Joined: Thu Jan 24, 2008 1:01 pm

Search function in custom pages?

Post by Revs »

So I've just tested the search function and it only works for the actual forum.

But I have a lot of custom pages, and I was wondering how could I make the search also search stuff on those pages? Is there a certain code or something that I need to insert there?

The custom pages all use overview_header and overview_footer.
User avatar
AmigoJack
Registered User
Posts: 5757
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Search function in custom pages?

Post by AmigoJack »

The board search is going thru post texts and its metadata (subject, author...) - it doesn't and won't ever search static sites.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
Revs
Registered User
Posts: 100
Joined: Thu Jan 24, 2008 1:01 pm

Re: Search function in custom pages?

Post by Revs »

So no chance to do this?

I mean every forum or category I create gets added to the list on search.php, is it not possible to add custom pages to this list?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52052
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Search function in custom pages?

Post by Brf »

As AmigoJack is explaining, the phpBB search function does not search webpage content. It is only searching post content.
Revs
Registered User
Posts: 100
Joined: Thu Jan 24, 2008 1:01 pm

Re: Search function in custom pages?

Post by Revs »

Yeah I am aware of that :)

That's maybe a ridiculous question, but is it possible to change that? To make it index all pages? :oops:
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52052
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Search function in custom pages?

Post by Brf »

No.
That is what Search Engines, like Google, are for.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26336
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Search function in custom pages?

Post by Paul »

If the content of the custom pages is in the database it might be possible, but it will require to rewrite large parts of the search feature, so unless you have enough php knowledge to do that (The search feature is pretty difficult to understand and modify if you dont know what you are doing), you might be better using Google's site search.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
Revs
Registered User
Posts: 100
Joined: Thu Jan 24, 2008 1:01 pm

Re: Search function in custom pages?

Post by Revs »

Yes the content is in the database! I am using a custom news script for example with a control panel that allowed me to post a news! So it would be annoying to not be able to search that if you see what I mean :)

I want the search for the whole site/forum to be the same, to you believe it would be wise to replace the phpBB search by the Google search?
Revs
Registered User
Posts: 100
Joined: Thu Jan 24, 2008 1:01 pm

Re: Search function in custom pages?

Post by Revs »

Wow man calm down :)
User avatar
EAM
Registered User
Posts: 93
Joined: Mon Nov 24, 2008 12:45 pm

Re: Search function in custom pages?

Post by EAM »

As far as Google search, does that only access pages that have been cached somewhere? I'm not very clear on how it works. It doesn't appear to be able to access the forum database so what purpose would it really serve to replace the regular forum search with Google? I would love any insights into the differences between the Google search and the regular forum search since my boss wants to replace the forum search with Google but it doesn't appear to be finding any post content. Thanks
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52052
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Search function in custom pages?

Post by Brf »

Google indexes what it sees on the pages.

The phpBB Native search indexes each word in the post content and allows you to retrieve it by author or forum number.
User avatar
EAM
Registered User
Posts: 93
Joined: Mon Nov 24, 2008 12:45 pm

Re: Search function in custom pages?

Post by EAM »

That is what I thought but I'm not very clear on how Google sees the pages. Are these pages that have been cached somewhere? How does Google see these pages? When would Google ever see a forum page? Thanks
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52052
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Search function in custom pages?

Post by Brf »

Google, like any other crawler, sees the page about same way that you do.

You open your webbrowser and navigate to the webpage's address, and the site's server sends your webbrowser software the webpage.

Google does the same thing. It runs a webbrowser software that navigates to your board's address the same way any user would navigate to it. It receives the page and indexes what it sees.
User avatar
EAM
Registered User
Posts: 93
Joined: Mon Nov 24, 2008 12:45 pm

Re: Search function in custom pages?

Post by EAM »

Ok, now I'm getting it. So at the time of search, it will go to that page and the page will be rendered dynamically but if the webcrawler doesn't have access to the forum as a user, only as a guest, and if the forum posts are invisible to anyone but logged in users, the crawler gets nothing useful, correct? Could the Google webcrawler be made a logged in member or would that be dangerous? Thanks
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52052
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Search function in custom pages?

Post by Brf »

The webcrawler Bots have their own usergroup "Bots". They use neither the permissions of the "Guest" group nor the Anonymous user.
Locked

Return to “[3.0.x] MOD Writers Discussion”