WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Web Browser Detect and Theme Select ?????? (32 posts)

  1. vachi
    Member
    Posted 6 years ago #

    Hey guys, The new Theme i have made is all DIVs; and IE is showing it like crap. So i was thinking of some kind of a browser detection that will decide a theme to use upon the browser and the assigned themes to browsers. or more simple <!---if EI----> use theme /themes/IE_SUCKS:)

    any one have any ideas how this could be done??

    PS you can check out the new theme at vitamovie.com/site and for fun u can open in in IE and see the confusion the poor fellow faces :)

  2. whooami
    Member
    Posted 6 years ago #

    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fvitamovie.com%2Fpress%2F

    thats a record.

    any particular reason why youre using the strict doctype?

    and "it looks a mess" in ie, because youre not taking into account the fact that ie doesnt do margins and padding the same way FF does. That or there are mysterious structural errors in your validation, god knows I didnt look through all 1202

  3. Michael Torbert
    WordPress Virtuoso
    Posted 6 years ago #

    1202?
    In all my years I don't think I've ever seen that many.
    1. Try your theme on a clean installation of WordPress, so that you know poorly written plugins, etc aren't adding to the problem.
    2. Learn more about doctypes. That's not even close to xhtml strict.

  4. vachi
    Member
    Posted 6 years ago #

    lol tx guys i know, its incredibly stupidly coded, i mean i made it like the way i want to see it lol, wow 1202 thats rough, no reason for using strict, just read some where i should so i gave it a try. there are really no plugins added that can make effect the only plugins added are the rating and the login

    also the site in question vitamovie.com/site is valid
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vitamovie.com%2Fsite%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&verbose=1

    but this really does not answer my question about the browser detect and the theme selection

    any idea guys

  5. vachi
    Member
    Posted 6 years ago #

    and the link at question here is not vitamovie.com/press thats showing 1202 errors its vitamovie.com/site which is valid

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vitamovie.com%2Fsite%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&verbose=1

  6. vachi
    Member
    Posted 6 years ago #

    and the reason there is 1202 errors in vitamovie.com/press is because of the bookmark plugin thats under every post

  7. vachi
    Member
    Posted 6 years ago #

    so guys any ideas?????

  8. Michael Torbert
    WordPress Virtuoso
    Posted 6 years ago #

    If you google "detect browser" you'll find how to detect the browser... however, there's no html that does this, you'll need to use a programming language.

    As for switching the theme based on this, you'll need PHP to do that.

  9. vachi
    Member
    Posted 6 years ago #

    right that i knew, i just thought somebody would have a better way for doing this, and had done this before but i guess i will wait till someone here has an idea that is not google hehe sorry for being cocky. and when you mean programming language you mean like javascript, because thats the language used most of teh times for this stuff

    or i can use the famous Conditional Statements ex:
    <!--[if IE 5]>
    <p>Poor Fellow.</p>
    <![endif]-->

    so i guess instead of Poor Fellow i can open a <?php> there that will change the theme

    what you think?

  10. Michael Torbert
    WordPress Virtuoso
    Posted 6 years ago #

    No, I don't mean javascript. I mean javascript, PHP, asp, vb, etc... a programming language, just like I said.

    And no I don't mean <!--[if IE 5]> and such, because that is very limited. and wouldn't send any data to the PHP code on the server.

    What you're asking for isn't something that can be done quickly, it would take some work.

  11. boober
    Member
    Posted 6 years ago #

    most people use ie specific stylesheets, not a whole different theme.

  12. vachi
    Member
    Posted 6 years ago #

    yeah i have looked at specific style sheeting, i think it works out better

    yeah and everything can be done quickly, if someone has done it already, all i need is to copy paste, the problem with me and many teens of my age is i am too arrogant to sit and re learn or code, i just find use change.

    and i have found hundreds of solutions, i just thought "why not ask on wp forums" after all its a wp related thing. so i thought someone has done it and has done all the different ways and is using one method now. i guess i will wait another few days. if not i can i guess write a plugin :) that will just use javascript to detect and than a either css change or a theme change can be chosen in the admin side

  13. boober
    Member
    Posted 6 years ago #

    so i thought someone has done it

    most of us design our sites with all browsers in mind to begin with. its pretty ridiculous to be changing a whole theme just because youre too lazy to build it correctly or fix your problems.

  14. moshu
    Member
    Posted 6 years ago #

    You could have save a lot of bandwith by searching ...
    http://wordpress.org/search/different+style+by+browser?forums=1

  15. vachi
    Member
    Posted 6 years ago #

    yeah i had doen that before, no one has a solution for changing the theme, and the solutions that i found just use the Conditional Statements than a @import for css change.
    i don't really have problems, i just have no reason for making it cross browser with tables instead of divs. why recode the site its fully valid as it is here the valid. LINK

    and i like the way its coded. its messy and noobish the way it should not be. but my lack of coding skills does not answer my question

  16. whooami
    Member
    Posted 6 years ago #

    and we need that why?

  17. vachi
    Member
    Posted 6 years ago #

    lol why because many of new comers who have no experience try to learn the newest way to code and they ignore older standards and problems that arise with IE, by using tools like dreamweaver and cssedit and not even using IE they never know that they have errors because they see it correctly when coded and tested. so instead of fixing their code, this could become an easy solution

  18. boober
    Member
    Posted 6 years ago #

    i just have no reason for making it cross browser with tables instead of divs

    divs work in IE too, why would you make it with tables? a simple google search would show you the key differences with the way IE handles css. specifically margins. youve got everything crammed in there with no wiggle room for IE.

  19. vachi
    Member
    Posted 6 years ago #

    for example have a simple IE theme and another better looking them that they code, ( with mistakes) but the way they want it to look, so like this they can just give a better reason for IE users to use another browser such as FF or safari

  20. moshu
    Member
    Posted 6 years ago #

    the problem with me and many teens of my age is i am too arrogant to sit and re learn or code

    No comment.

  21. vachi
    Member
    Posted 6 years ago #

    lol wiggle room, i like that, yeah i know its because for the first time i used this application called CSSEdit (mac only) and its a fast way to do css but it will not tell you any browser compatibility issues you just play around and see what happens. and the reason for the confusion is cuz i used absolute for the positioning for almost all of styles

  22. Len
    Member
    Posted 6 years ago #

    they can just give a better reason for IE users to use another browser such as FF or safari

    I don't use IE myself except for testing but if I did I certainly wouldn't switch browsers because a certain site didn't work properly when using it. I just wouldn't visit that site anymore.

  23. vachi
    Member
    Posted 6 years ago #

    lol i like the no comment part moshu, its like i am bush, who says himself he is an idiot

  24. vachi
    Member
    Posted 6 years ago #

    but again this whole thing is not about my coding or my methods, the topic here is the technique used for switching the theme based on browser

  25. vachi
    Member
    Posted 6 years ago #

    I don't use IE myself except for testing but if I did I certainly wouldn't switch browsers because a certain site didn't work properly when using it. I just wouldn't visit that site anymore.

    exactly that is why with having ability to automatically change themes to a IE compatible theme the user would not see the errors or problems at all, but you can still tell the user that the site works better with ff and others

  26. boober
    Member
    Posted 6 years ago #

    i used this application called CSSEdit (mac only) and its a fast way to do css but it will not tell you any browser compatibility issues

    why should it? stop being lazy and try actually LEARNING something.

  27. Len
    Member
    Posted 6 years ago #

    but you can still tell the user that the site works better with ff and others

    Do you know how 1990s that is? ;)

  28. vachi
    Member
    Posted 6 years ago #

    lol 1990s haha, yeah many tell me to stop being lazy but that still has nothing to do with my question. all i ask is about theme switching in wordpress.

  29. vachi
    Member
    Posted 6 years ago #

    idk why you guys are all so offensive, if you have no idea about how to switch the theme than why post at all, this post has nothing to do with my coding i say once again, i will stay a lazy noob no matter what, but i hope this forum has people with ideas that can help me, if not than its ok, like i said its sooner or later i will write it up myself, all i wanted is some info about doing this

  30. vachi
    Member
    Posted 6 years ago #

    and do you guys call every other noob a noob "when they say ahh my login is gone, or my password does not work, what should i do ????" no right? you just give them a link that tells them how to do it, even though they could have as easily googled it

Topic Closed

This topic has been closed to new replies.

About this Topic