The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
I've created an alternative hack to the existing one which generated lots of little files. This one's a lot less system intensive and it doesn't involve static files, which means that you save A LOT of web space.
However, this will only work on Linux systems. (contact me if you have access to your httpd.conf on another OS, and I'll make code alterations for it to work) Ed and I tested this (thanks a bunch, Ed!) and everything seems to be working great! Check out his archive at: http://www.magic-singles.com/cpa/forums/search.php3 Directly in the vB directory, create an .htaccess containing: <Files search> DirectoryIndex search ForceType application/x-httpd-php3 </Files> Then, create a file called "search" in the vB directory containing: <? $searcharray=explode("/",$REQUEST_URI); $searchcount=count($searcharray); $spec = $searchcount - 1; $threadid = $searcharray[$spec]; require("showthread.php"); ?> Finally, create a file in your existing vB directory called search.php3 containing: <? require("global.php"); mysql_pconnect($server,$user,$password); mysql_select_db($database); $threads=$DB_site->query("SELECT threadid,title FROM thread WHERE visible=1 ORDER BY lastpost DESC"); while ($threadarray = $DB_site->fetch_array($threads)) { $threadid = $threadarray["threadid"]; $title = $threadarray["title"]; print "<a href=\"search/$threadid\">$title</a><br>\n"; } ?> Finally, create a line in the cssinclude section of the CP which reads: <base href="http://yoursite.com/forums/"> and replace yoursite.com/forums/ with the domain + directory that vB is located in. All should work well! Show Your Support
|
Comments |
#32
|
|||
|
|||
Have you used .htaccess fils on your server in the past?
If not, its most likely a server-config issue. |
#33
|
|||
|
|||
yes i am using a htaccess file in my root directory to parse .php files and have my server setup for 404 error redirects to the main page
what should i do ? |
#34
|
|||
|
|||
Not sure about this one.
Did anyone else get similar problems? My guess is that its redirecting to the main page since it considers the URL's "not found", which I'm assuming is because your 404 error page is your main index file The problem is the 500 error, I guess. Anyone? |
#35
|
|||
|
|||
what if i shoved this
<Files search> DirectoryIndex search ForceType application/x-httpd-php3 </Files> into my htaccess in my root directory ? |
#36
|
|||
|
|||
Don't think so, since that "search" location is a relative path.
Hmm, what server are you running on? |
#37
|
|||
|
|||
a dedicated red hat linux 6.2 server using a webmin control panel
|
#38
|
|||
|
|||
The fix to keep this from showing a private forum would be as follows:
In search.php3 change: Code:
$threads=$DB_site->query("SELECT threadid,title FROM thread WHERE visible=1 ORDER BY lastpost DESC"); Code:
$threads=$DB_site->query("SELECT threadid,title FROM thread WHERE visible=1 AND forumid <> 34 ORDER BY lastpost DESC"); Sorry to put this in the terms that I did but some people seriously do have problems with this ~Chris P.S Job well done Stallion! |
#39
|
|||
|
|||
Does anyone see any advantages / disadvantages to this:
Code:
<? require("global.php"); mysql_pconnect($server,$user,$password); mysql_select_db($database); $threads=$DB_site->query("SELECT threadid,title,threadindex FROM thread WHERE visible=1 AND forumid <> 34 ORDER BY lastpost DESC"); while ($threadarray = $DB_site->fetch_array($threads)) { $threadid = $threadarray["threadid"]; $title = $threadarray["title"]; $threadindex = $threadarray["threadindex"]; print "<a href=\"search/$threadid\">$threadindex</a><br><br>\n"; } ?> I was thinking this would give the spider more text to chew on and in turn, would make your site turn up in more searches, but I could be wrong. Any search engine pros wanna comment? ~Chris |
#40
|
|||
|
|||
I have a backend script that reports back all 404, 500, 400 etc etc errors. Well what I did was I went ahead and submitted my page to the engines that spider and within minutes I was getting logs of 404 not found errors on every one of the links that they were spidering from that page.
I think this is a real good idea and I really wish it would work Funny thing is though, if you go to the page you dont get the 404 errors. http://www.extremeforums.com/forums/spider.php here is the error.... ON YOUR SITE, Extreme Forums ERROR CODE 404 NOT FOUND OCCURRED ON Wed Aug 9 02:23:48 2000 WHEN THE URL /search/259 WAS REQUESTED FROM THE PAGE BY A USER AT 195.145.119.25 THE BROWSER WAS Infoseek Sidewinder/0.9 ------------------------------------------------------------------------------ One thing I notice though is that the engines are looking for /search/*** why arent they looking for /forums/search/*** ??? After all thats what is listed on search.php3 Im sure someone knows more about this than I do, so could you please comment? Thanks, ~Chris |
#41
|
|||
|
|||
well my problem still stands
http://animeboards.net/forums/search.php3 lists the threads but still doesn't work with the htaccess file in the forum directory... |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|