![]() |
The fix for [HIGH]online.php[/HIGH] file, to display nice links, is below.
There are 2 methods, the easy or the hard way. :) METHOD 1 (easy) FIND: Code:
$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc); Code:
$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc); FIND: Code:
case 'spider': Code:
case 'spider': Code:
$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc); Code:
$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc); Code:
case '/robots.txt': Code:
case '/robots.txt': |
Nice hack, TECK. Just saw this one. Great work, as always. :)
|
Quote:
Sounds too good to be true :D I'll be telling my friends about this TECK ;) - miSt |
This the evaluation made by fastforward, an expert related to search engine optimizations.
TECK wrote on Today 02:11 AM: [high]Hello fastforward, I released a similar hack to yours and I would like to have your opinion on a issue. My script uses Apache's ForceType directive. So "archive" will be treated as index.php or archive.php type. Now, will this affect the crawlers to browse the archive, if I point them to: http://www.teckwizards.com/archive/ and that represents for them the link to forcetyped "archive" file? Thanks for taking the time to read this message.[/high] fastforward wrote on Today 03:16 PM: [high]Hello TECK, The ForceType directive will be completely invisible to a crawler in the same way as using mod_rewrite. There should be no problems whatsoever. I personally would use the 'archive' version without the extension. There is no evidence that Google or any other search engine identifies a dynamic file and handles it differently, but that could change if the capabilities of using dynamic pages are abused. (this is just my paranoid preference and not based on any hard facts). It looks very nice by the way :) I think I'll use that on my site that doesn't have the the friendly urls. Paul[/high] |
If you want to have the main archive file with a PHP extension and not as sub-folder, make the following changes to functions.php file:
FIND: Code:
$bburl . '/archive/ Code:
$bburl . '/archive.php Rename the "archive" to archive.php. I personally don't recommend you to do this, instead use both ways... Leave the script unchanged but upload also archive.txt and rename it to archive.php, the crawlers will hit both files. |
The actual settings are optimal for any server.
But, if you want to change the number of threads/posts displayed on each page, do the code change listed below. FILE: forumdisplay.txt and showthread.txt FIND: Code:
$perpage = The bigger it is the faster the crawers will index your pages. Do not go over value 400, just to make sure you give a break to your server also. :) |
]Great Hack TECK. You r00lez ;] Keep up the good job!
[high]* wooolF[RM] clicks INSTALL :> w00t :D[/high] |
I got a little lost here at the end...
You guys are too smart and techie for me :-) Are you saying you re-released it so it has html extensions now and if yes, is it better to have the standard html extensions? Thanks! |
[QUOTE]Originally posted by TECK
[B]Version 1.2 released. Html extension were added to all dynamic pages. I also fixed a minor bug related to dynamic meta tags. Here it is also the fix for online.php file (requested by xiphoid): Re: Here it is also the fix for online.php file (requested by xiphoid): I looked through the thread and cannot find reference to this. What does the edits to the online.php file do? Trying to decide it it is necessary.. |
If you view your online.php page, you see there the location (forum/thread/etc.) your users browse.
If it's a archive location, it will show you an Unknown Location:, instead of the actual link to the forum, for example. The fix will display any links as VB links. Try it yourself, open 2 windows: 1. in the first window, go to go your online listings 2. in the second window go to your archive and browse to a forum or thread 3. refresh the first window to see the location you browse... |
All times are GMT. The time now is 11:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|