vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Search-Engine Listing (Dynamic) (https://vborg.vbsupport.ru/showthread.php?t=1092)

06-27-2000 06:50 AM

Quote:

Originally posted by Cold Steel
Will this work for FreeBSD?
Yes, it does.

http://www.aikiweb.com/forums/engine.php

Running on FreeBSD 4.0-stable, Apache 1.3.12, mySQL 3.22.32, and PHP 4.0.

06-27-2000 11:03 AM

TB2: Yes.. just change your sql statement in the search.php3 you created to read:

SELECT threadid,title FROM thread WHERE visible=1 and forumid != BADFORUMID1 and forumid != BADFORUMID2 ORDER BY lastpost DESC

Replace BADFORUMID1 and BADFORUMID2, etc. with the forum id's that you do not want to be indexed.

06-27-2000 11:15 AM

Stallion: I was just looking through the global.php file and it's not necessary for you to issue the mysql_pconnect() or mysql_select_db() calls at the top of search.php3. A database connection is already created inside of global.php.

Also, just to clarify for everyone.. search.php3 can be any filename you wish. I named it to search_hack.php myself since we already had a search.php file we were using.

And lastly.. it's a drain on the server to use .htaccess files... those apache directives could just as easily be put inside of a set of Directory tags in the main httpd.conf file. Apache will be all the faster for it.

i.e.
Code:

<Directory /www/sitename/forums/>
?  <Files search>
    DirectoryIndex search
    ForceType application/x-httpd-php
  </Files>
</Directory>

Also, for those of you using php4, as I am, notice that my ForceType directive does not end in php3 as in Stallion's example. PHP4 uses application/x-httpd-php instead.

Stallion: great hack.. thanks.

06-27-2000 03:56 PM

Including the "<base href="forums/URL"> in the $sccinclude messes up the forums for Netscape users. For example, when they went to my board, they would see the link for a forum as "http://forumdisplay.php?yadda-yadda". I've taken it out and it works fine now, but unfortunatly the search page doesn't work anymore. What should I do to remedy this?

06-28-2000 12:20 AM

cool, i would like to have this setup and would need some guidance...

i am new to linux, new to dedicated server use and new to vbulletin... should i be messing around with it right now ?

06-28-2000 01:34 AM

Quote:

Originally posted by JimF
Including the "<base href="forums/URL"> in the $sccinclude messes up the forums for Netscape users. For example, when they went to my board, they would see the link for a forum as "http://forumdisplay.php?yadda-yadda". I've taken it out and it works fine now, but unfortunatly the search page doesn't work anymore. What should I do to remedy this?
That's odd. I don't see this behavior on my board when I look at it using Netscape and I've implemented the hack. Am I looking at it correctly?

My board: http://www.aikiweb.com/forums/
The hack: http://www.aikiweb.com/forums/engine.php

07-05-2000 10:00 PM

This is cool is there any simple way to create more of a structure. IE

Main Page:

Forum 1
|_ New Page With Posts XX Per Page

Forum 2
|_ New Page With Posts XX Per Page

Forum 3
|_ New Page With Posts XX Per Page

Just an idea...

07-05-2000 10:25 PM

Quote:

Originally posted by BassWriters
My question was if from experience, the search engines actually index every thread, or if they ignore the page because there are too many links and not enough text.
Its been done this way for other forums/news scripts, so I'd imagine its the preferred method and will work fine with spiders.

07-05-2000 10:30 PM

1) Listen to danbeck...he speaks the truth :)
2) JimF, it should be the full URL, nothing relative
3) eva2000, as long as you don't overwrite any existing files, no harm can be done :)
4) Brian: not sure what you mean...

07-05-2000 10:37 PM

What I meant was for the main page to have links to the fourms, and then the page that shows the links for that forum have it make a new page for every 50 or so topics.

For example say the main page would have a link to each forum and then the page with the posts for each forum would show xxx topics per page then link to the next page that way if you have a big forum you dont have thousands of links all on one page


All times are GMT. The time now is 02:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01582 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete