![]() |
Quote:
|
Oh I know google isnt the only one out there but they are one of the only ones who was thought to have problems with the ? question marks.
|
Quote:
|
Quote:
|
Quote:
|
Hi folks,
I have an idea to make this hack more powerful, and require a new addition to this hack, possibly in the code. I thought of this after I noticed I had many Netscape 4.x users, so I created new style set for them, and placed a link on the main page to "Fix Netscape errors" which simply sets their style id to use the original vB dynamic links. This makes spiders and most surfers use the new (spider friendly) links, while those who click the "Fix link" can use original vB links in their templates. The disadvantage, is that some users post links to other thread in spider-friendly format, that other members have trouble accessing if they have Netscape. What I would like to do, instead, is this: Detect if the visitor is using a browser agent (IE, Netscape, Mozilla), and if so, set their id to use a default style set (with vB's dynamic links) If the user agent is other than (Mozilla-compatibele) then use a special style id that contain spider-friendly templates. It initially sounded easy to me, but then I though that spider robots cannot be cookied, and any style id I assign them in my index.php code, may have to be re-checked in other parts of the code beside index.php? i.e. showthread etc. Is there an easy way of accomplishing this? |
I had to modify a couple things in the links to get everything working properly.
This may apply to 2.2.2, however I'm not positive: In my .htaccess file I have: Quote:
<a href="$bburl/midiboard/f$forum[forumid]"> (midiboard is subdirectory of site) In forumdisplay templates I have: <a href="$bburl/f$forum[forumid]"> And in forumdisplaybit: <a href="$bburl/t$thread[threadid].html"> Also the base href tag in the head include needed an extra trailing slash to make images work. Other then that everything seems to be okay. |
Quote:
Thanks! :up: |
Wow.. I didn't know it was a problem. ;) Images didn't work in MSIE without that slash for me.
|
Quote:
I even started hacking the sessions and redirecting to different style id's based on user agents! Currently, registered members get the vB dynamic links, and guests get the spider-friendly ones. I'll keep it that way, but I'll remove the link to Netscape upgrade. That's always the case with debugging, you look hard for difficult mistakes, and they turn out to be too obvious to catch ;) |
All times are GMT. The time now is 06:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|