The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
V3 Articles: Mod Rewrite : Archive
Looking for someone to do the following. I gave it a shot, but I couldnt quite get it.
A mod rewrite for articles similar to the forum mod rewrite seen here: http://www.daniweb.com/techtalkforums/thread9379.html I have it on my boards, helps immensely. Second, an articles "archive" per say. I currently have a template driven articles archive in place, but due to the lack of mod rewrite for article urls and category urls, google is not digging it. Seen it in there a couple times, but it keeps on going. Yet I have 5-30 Google Spiders in my forum archives at all times. Both are using the same stylesheet/CSS. So I am thinking it has to be the lack of proper mod rewrite. You can see my current articles here: http://www.tfw2005.com/boards/article.php You can see my attempt at an articles archive here: http://www.tfw2005.com/boards/article2.php Even if someone can just make a good rewrite, a full "archive" system may not be necessary. I can make available my article2.php file and the templates using the stripped design/CSS, and it should be good to go for everyone. Ive seen other article systems, some with archive like support or forum archive support, but I like this one, because it is seperate from the board system. As you can tell, Ive modified the listing pages to be bare bones, and want to keep it that way. Any help appreciated. Thanks! |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
Well, I would like mod rewrite for the regular style that all visitors see regardless if it is used in the archive system. Helps minorly with Google Ive found, and, cleaner for linking purposes generally.
As for the archive version, whatever method gets rid of the php strings in the URL I think will suffice, whether it is in the default VB forum archive style, or a mod rewrite style does not matter to me. I personally dont have the skill set to write an article archive file from scratch like the VB one, and, my attempts at modding the VB forum archive file to work for articles have been unsuccessful. What I did here, for myself, at least gives me a "printable page" version of the article. One that with a mod-rewrite, will serve it's purpose as an archive. If you guys can help out in either method, I think alot of people would desire the end result. |
#4
|
||||
|
||||
To access your system by paths instead of parameters, add the following to the .htaccess in the directory containing articles.php , creating the file .htaccess if neccesary:
Code:
<Files article> ForceType application/x-httpd-php </Files> Code:
//find the path past this file $pageName='article'; $pageUrl=$_SERVER['REQUEST_URI']; $pageUrl=substr($pageUrl,strpos($pageUrl,'/'.$pageName)+strlen($pageName)+2); $fetchType=0; //default to an index load if(substr($pageUrl,0,2)=='c/'){ $fetchType=1; }else if(substr($pageUrl,0,2)=='a/'){ $fetchType=2; } $partNumber=intval(substr($pageUrl,2)); if($partNumber==0){ $fetchType=0; } if($fetchType==1){ $c=$partNumber; }else if($fetchType==2){ $a=$partNumber; } This will allow you to access articles like: article/a/100 or article/a/100.html and catagories like article/c/100 or article/c/100.html Then, change the code to generate this type of URLs and change all image paths to absolute references. |
#5
|
||||
|
||||
This will put extra stress on your server though, for extra single page queries in your forum.
|
#6
|
|||
|
|||
I utilized a regular styled mod rewrite for both the regular articles section, and the "archive" articles section, which in this method is just a new set of templates with stripped html, streamlined CSS, and the new hardcoded links to the mod rewrites.
After i get my bearings straight, I will try and put together a package with instructions, and the more experienced people here can judge if it is worthy or not, and pick any problems out. Overall, no change in speed for site, cleaner for direct links, and google has been active in the archive version of it hardcore since it went live. Been watching whos online very closely. Most of my incoming google Guest traffic also now goes to the archive for articles and of course the board archive. Can see it in action here: http://www.tfw2005.com/boards/transf...-articles.html www.tfw2005.com/boards/transformers-archive.php |
#7
|
||||
|
||||
The reason we were able to get so much information out without increasing load in the hack defined on dani-web, was soley because of the forumcache; to do the same thing for the articles hack, you will need to create an articlecache to ensure that you can get access to your information, without heavy query load.
|
#8
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|