Go Back   The PokéCommunity Forums > Entertainment & Hobbies > Computers & Technology > Webmasters Discussion Archive
Reload this Page Webmaster's Lounge

Notices
For all updates, view the main page.

Webmasters Discussion Archive

This board is archived.


Webmasters, present your site here. Get feedback on it, talk about graphics, layouts, web hosting, etc. Posting links to other forums/boards is not permitted.



 
 
Thread Tools
  #7126    
Old March 24th, 2012 (03:11 PM).
Team Fail Team Fail is offline
fun in the sun
Platinum Tier
 
Join Date: May 2009
Age: 20
Gender: Male
Nature: Brave
Posts: 10,294
Quote originally posted by Archenoth:
Ouch... Even though I loathe developing for some browsers, I always dislike it when people sniff out a browser and then send broken code if they happen to detect it. Just code a conditional section that says that their browser is not supported so things may be broken, but still let them try.

Eg: Adding this to your HTML:

Code:
<!-- if IE><div>This browser is unsupported, so some things may be broken in it</div><![endif]-->
Just out of curiousity's sake, what other names can I substitute for <!-- if IE> so it will detect other browsers? Or is there a way I can find the other codes? I'd really like to put a warning on my page for Wii Opera users as the site is rather broken with that browser and to add that warning to the bottom of the page.
__________________
Pair 1 Pair 2 Twitter Alt 1 Alt 2 PHO Image Source
~This signature is under construction
  #7127    
Old March 24th, 2012 (05:59 PM). Edited March 24th, 2012 by Twiggy.
Twiggy's Avatar
Twiggy Twiggy is offline
You like dragons?
Crystal Tier
 
Join Date: Dec 2010
Location: Plushies.
Age: 21
Gender: Male
Nature: Hasty
Posts: 4,814
Quote originally posted by Team Fail:
Just out of curiousity's sake, what other names can I substitute for <!-- if IE> so it will detect other browsers? Or is there a way I can find the other codes? I'd really like to put a warning on my page for Wii Opera users as the site is rather broken with that browser and to add that warning to the bottom of the page.
Actually, Archenoth's code is broken.

The actual syntax for conditional comments:
Code:
<!--[if IE]>put HTML here<![endif]-->
You can put lt, gt, lte and gte in front of IE to designate that you want it to apply to versions of IE lesser, greater, less than or equal or greater than or equal to the designated version.

Put a number after IE to make clear that you're targeting a specific version of IE.

This will not work starting from IE10 because it acts like every other browser - it ignores them.

Conditional comments do not exist before IE5, too.

It is possible to target only IE Mobile by using IEMobile.

Forget about detecting Mac IE 5.

This one shows more about it:

http://en.wikipedia.org/wiki/Conditional_comment

This one is hack(-ish):
http://en.wikipedia.org/wiki/CSS_filter

Oh, and yes, you can target every NON-IE browser with it, but there's no way to directly target a specfic non-IE browser. You'll have to resort to JavaScript. Targeting non-IE browsers using conditional comments will also mean that you need to have a different kind of syntax.
__________________
Hey, it's Twiggy here. Or ♪Twiggy♪, if you prefer. I like Turtwig and Zorua a lot. I'm paired with Kip. I like Katy Perry. I want a Hydreigon plushie. Also, I'm a total PC geek.
Links
  #7128    
Old March 24th, 2012 (07:55 PM).
Team Fail Team Fail is offline
fun in the sun
Platinum Tier
 
Join Date: May 2009
Age: 20
Gender: Male
Nature: Brave
Posts: 10,294
Quote originally posted by ♪Twiggy♪:
Actually, Archenoth's code is broken.

The actual syntax for conditional comments:
Code:
<!--[if IE]>put HTML here<![endif]-->
You can put lt, gt, lte and gte in front of IE to designate that you want it to apply to versions of IE lesser, greater, less than or equal or greater than or equal to the designated version.

Put a number after IE to make clear that you're targeting a specific version of IE.

This will not work starting from IE10 because it acts like every other browser - it ignores them.

Conditional comments do not exist before IE5, too.

It is possible to target only IE Mobile by using IEMobile.

Forget about detecting Mac IE 5.

This one shows more about it:

http://en.wikipedia.org/wiki/Conditional_comment

This one is hack(-ish):
http://en.wikipedia.org/wiki/CSS_filter

Oh, and yes, you can target every NON-IE browser with it, but there's no way to directly target a specfic non-IE browser. You'll have to resort to JavaScript. Targeting non-IE browsers using conditional comments will also mean that you need to have a different kind of syntax.
Hm. I'll have to stick to the Javascript detection method. I plan to add a warning at the bottom so if a user is using the Wii Opera browser, it will say at the bottom that the site has compatibility issues.
__________________
Pair 1 Pair 2 Twitter Alt 1 Alt 2 PHO Image Source
~This signature is under construction
  #7129    
Old March 25th, 2012 (10:15 PM).
Archenoth's Avatar
Archenoth Archenoth is offline
The arch foe
 
Join Date: Jan 2012
Gender: Male
Nature: Lonely
Posts: 467
Quote originally posted by ♪Twiggy♪:
Actually, Archenoth's code is broken.
Oh dammit... You are right... And yes, for any other non-IE browser, you will have to resort to the Javascript Code I put in my previous post.

All of the methods you can use are described here.
  #7130    
Old March 26th, 2012 (06:36 AM).
Twiggy's Avatar
Twiggy Twiggy is offline
You like dragons?
Crystal Tier
 
Join Date: Dec 2010
Location: Plushies.
Age: 21
Gender: Male
Nature: Hasty
Posts: 4,814
Oh, but if you are able to detect the features that you need (and have everything in your mind sorted all out), you might want to use a feature detection library, like Modernizr so that... you can make different stuff to appear or not appear or appear differently depending on the actual capabilities of the browser.
__________________
Hey, it's Twiggy here. Or ♪Twiggy♪, if you prefer. I like Turtwig and Zorua a lot. I'm paired with Kip. I like Katy Perry. I want a Hydreigon plushie. Also, I'm a total PC geek.
Links
  #7131    
Old April 9th, 2012 (08:28 AM). Edited April 9th, 2012 by Team Fail.
Team Fail Team Fail is offline
fun in the sun
Platinum Tier
 
Join Date: May 2009
Age: 20
Gender: Male
Nature: Brave
Posts: 10,294
Okay, I hope someone here has a little vBulletin experience, but I've had someone request a feature to disable the ability to send a user friend requests. Would such a plugin exist or would I have to work magic with their profile? I've looked at the vbulletin.org forums to see if they have one, but I haven't seen it anywhere.
__________________
Pair 1 Pair 2 Twitter Alt 1 Alt 2 PHO Image Source
~This signature is under construction
  #7132    
Old April 9th, 2012 (12:41 PM).
tokyodrift's Avatar
tokyodrift tokyodrift is offline
 
Join Date: Apr 2012
Location: Seoul, South Korea
Gender: Male
Posts: 2
Send a message via Windows Live Messenger to tokyodrift
Quote originally posted by Team Fail:
Okay, I hope someone here has a little vBulletin experience, but I've had someone request a feature to disable the ability to send a user friend requests. Would such a plugin exist or would I have to work magic with their profile? I've looked at the vbulletin.org forums to see if they have one, but I haven't seen it anywhere.
Sadly, there isn't a way for you to make that happen. The only option that is available is to turn off Friendship Request Emails.
  #7133    
Old April 9th, 2012 (05:27 PM). Edited April 9th, 2012 by Petie.
Petie's Avatar
Petie Petie is offline
Silver Tier
 
Join Date: Nov 2008
Location: New Jersey
Age: 26
Gender: Male
Posts: 145
You could, theoretically, use template conditionals to hide the link if the "u" variable in the URL matches the user in question's user id. You would want to put something similar to the following in the user profile template in the template editor (obviously, you'll need to look up the proper syntax for vBulletin's template conditionals as I haven't used them in quite a while):

Code:
<if intval($_GET["u"]) != 12345>
[Existing vBulletin Friendship Request Link Here]
</if>
Replace 12345 with that user's ID and it will show it for every user except the one specified. Also, if I remember correctly, you can use some PHP functions in template conditionals so if you needed to hide the link for multiple users, you could do something like this:

Code:
<if !in_array(intval($_GET["u"]), array(12345, 12346, etc.)>
[Existing vBulletin Friendship Request Link Here]
</if>
Again, the user IDs you specify would cause the friendship request link to not appear on their profiles.

Do bear in mind that this would need to be done everywhere where that link appears and it won't completely disable the feature (you could do that by modifying the actual code that sends the request, using a similar format to the above, but I wouldn't recommend taking this route as you're editing system files at that point) - someone could send a request to them by modifying someone elses' URL. It's also worth noting that the functions and variables I used (specifically, $_GET) may or may not be available in template conditionals - I can't remember for sure. That said, for the most part, it should be pretty effective, it's just a decent bit of manual leg work for something pretty insignificant considering they can just turn off friendship request notifications (from the Edit Options section of the User CP).
  #7134    
Old April 9th, 2012 (06:25 PM).
Team Fail Team Fail is offline
fun in the sun
Platinum Tier
 
Join Date: May 2009
Age: 20
Gender: Male
Nature: Brave
Posts: 10,294
Quote originally posted by Petie:
You could, theoretically, use template conditionals to hide the link if the "u" variable in the URL matches the user in question's user id. You would want to put something similar to the following in the user profile template in the template editor (obviously, you'll need to look up the proper syntax for vBulletin's template conditionals as I haven't used them in quite a while):

Code:
<if intval($_GET["u"]) != 12345>
[Existing vBulletin Friendship Request Link Here]
</if>
Replace 12345 with that user's ID and it will show it for every user except the one specified. Also, if I remember correctly, you can use some PHP functions in template conditionals so if you needed to hide the link for multiple users, you could do something like this:

Code:
<if !in_array(intval($_GET["u"]), array(12345, 12346, etc.)>
[Existing vBulletin Friendship Request Link Here]
</if>
Again, the user IDs you specify would cause the friendship request link to not appear on their profiles.

Do bear in mind that this would need to be done everywhere where that link appears and it won't completely disable the feature (you could do that by modifying the actual code that sends the request, using a similar format to the above, but I wouldn't recommend taking this route as you're editing system files at that point) - someone could send a request to them by modifying someone elses' URL. It's also worth noting that the functions and variables I used (specifically, $_GET) may or may not be available in template conditionals - I can't remember for sure. That said, for the most part, it should be pretty effective, it's just a decent bit of manual leg work for something pretty insignificant considering they can just turn off friendship request notifications (from the Edit Options section of the User CP).
Ah. Looks like it'll be a bit of leg work that seems kinda impractical. I guess they'll have to put up with them then. Thanks for the assistance.
__________________
Pair 1 Pair 2 Twitter Alt 1 Alt 2 PHO Image Source
~This signature is under construction
  #7135    
Old April 9th, 2012 (06:29 PM).
Oryx's Avatar
Oryx Oryx is offline
CoquettishCat
Crystal Tier
 
Join Date: Mar 2011
Age: 22
Gender: Female
Nature: Relaxed
Posts: 13,207
Orrrr you could abstract it from their unique profile, make it into an option, and then post it somewhere so other people that need help doing that can use it :3;
__________________


Theme * Pair * VM * PM

Not all men...

Are all men stupid?

That's right.

  #7136    
Old April 10th, 2012 (06:21 AM).
Petie's Avatar
Petie Petie is offline
Silver Tier
 
Join Date: Nov 2008
Location: New Jersey
Age: 26
Gender: Male
Posts: 145
Quote originally posted by Toujours:
Orrrr you could abstract it from their unique profile, make it into an option, and then post it somewhere so other people that need help doing that can use it :3;
This would still require pretty much the same steps, replacing the user ID check with a check for a custom profile field instead. It might be worth the effort if it was a common request but it sounds more like it's a single member who wants it so it likely isn't worth investing that kind of time. Definitely a good thought though.
  #7137    
Old April 19th, 2012 (09:42 AM).
CloudNine CloudNine is offline
Banned
 
Join Date: Apr 2012
Gender: Male
Nature: Jolly
Posts: 33
Send a message via Windows Live Messenger to CloudNine Send a message via Skype™ to CloudNine
Anyone here specialize in Joomla and IPB?
  #7138    
Old April 29th, 2012 (02:15 AM).
aRedMoon's Avatar
aRedMoon aRedMoon is offline
Wait for me outside the lines
Gold Tier
 
Join Date: Mar 2004
Location: Minnesota
Age: 26
Gender: Male
Nature: Naive
Posts: 11,128
Send a message via Windows Live Messenger to aRedMoon Send a message via Skype™ to aRedMoon
So, those that use Wordpress: is it just me or have there been an insane amount of plug-in updates the past 2 weeks or so? Almost everyday, I have an update to do. x_X
__________________
facebook \\ twitter \\ blog a.k.a life // tumblr // google+

june 10, 2003 = registered at old pc
march 24, 2004 = registered at new pc
june, 2004 = modded ;;; august, 2004 = quit/fired (point of debate)
december, 2004 = banned ;;; december 2, 2005 = unbanned
june 10, 2008 = omg... five years!
june 10, 2012 = countdown to nine years on pc...
  #7139    
Old April 29th, 2012 (02:52 AM).
Liliana Vess's Avatar
Liliana Vess Liliana Vess is offline
My Secrecy. My Advantage.
Platinum Tier
 
Join Date: Nov 2008
Location: «UK»
Gender: Male
Posts: 1,980
I haven't really noticed .-.
I didn't touch my Wordpress for a good few weeks and the only updates I got were the actual wordpress one and a few plugin updates saying they were becoming compatible with the new version of Wordpress.
What plugins have you been using?
__________________


"I am confident that if anyone actually penetrates our facades, even the most perceptive would still be fundamentally unprepared for the truth of House Dimir."
-Szadek, Lord of Secrets

  #7140    
Old April 29th, 2012 (04:57 AM).
aRedMoon's Avatar
aRedMoon aRedMoon is offline
Wait for me outside the lines
Gold Tier
 
Join Date: Mar 2004
Location: Minnesota
Age: 26
Gender: Male
Nature: Naive
Posts: 11,128
Send a message via Windows Live Messenger to aRedMoon Send a message via Skype™ to aRedMoon
A bundle of 'em. Maybe it's just me.




You're really into typography, eh? *pokes your sig*
__________________
facebook \\ twitter \\ blog a.k.a life // tumblr // google+

june 10, 2003 = registered at old pc
march 24, 2004 = registered at new pc
june, 2004 = modded ;;; august, 2004 = quit/fired (point of debate)
december, 2004 = banned ;;; december 2, 2005 = unbanned
june 10, 2008 = omg... five years!
june 10, 2012 = countdown to nine years on pc...
  #7141    
Old April 29th, 2012 (05:30 AM).
Liliana Vess's Avatar
Liliana Vess Liliana Vess is offline
My Secrecy. My Advantage.
Platinum Tier
 
Join Date: Nov 2008
Location: «UK»
Gender: Male
Posts: 1,980
Maybe you're just unlucky. Or lucky, I don't know it depends on what sort of update it was xD

And yea, I am :3 I love how you can make words into something visually pleasing.
__________________


"I am confident that if anyone actually penetrates our facades, even the most perceptive would still be fundamentally unprepared for the truth of House Dimir."
-Szadek, Lord of Secrets

  #7142    
Old April 29th, 2012 (05:56 AM).
Team Fail Team Fail is offline
fun in the sun
Platinum Tier
 
Join Date: May 2009
Age: 20
Gender: Male
Nature: Brave
Posts: 10,294
Yeah. Softaculous has only notified me once of a WP update. Which I still need to do.
__________________
Pair 1 Pair 2 Twitter Alt 1 Alt 2 PHO Image Source
~This signature is under construction
  #7143    
Old April 29th, 2012 (09:38 AM).
Liliana Vess's Avatar
Liliana Vess Liliana Vess is offline
My Secrecy. My Advantage.
Platinum Tier
 
Join Date: Nov 2008
Location: «UK»
Gender: Male
Posts: 1,980
I got all my updates and such from inside the wordpress admin control panel.
__________________


"I am confident that if anyone actually penetrates our facades, even the most perceptive would still be fundamentally unprepared for the truth of House Dimir."
-Szadek, Lord of Secrets

  #7144    
Old April 29th, 2012 (10:03 AM).
Tsutarja's Avatar
Tsutarja Tsutarja is online now
ModeratorCSEO
 
Join Date: Mar 2010
Location: Florida
Gender: Male
Nature: Jolly
Posts: 13,625
I finally updated my Wordpress blog to 3.3.2 last night...

Anyways, speaking of wordpress, has anyone found a plugin for mobile users that allows the user to categorize a new blog post? I have the WP Mobile pack installed, but every time I blog on my iPod touch, the categorization will go to my first category and I don't have a choice to change it.
__________________
#TeamUnova
click for unicorns avatar
  #7145    
Old May 1st, 2012 (05:16 AM).
aRedMoon's Avatar
aRedMoon aRedMoon is offline
Wait for me outside the lines
Gold Tier
 
Join Date: Mar 2004
Location: Minnesota
Age: 26
Gender: Male
Nature: Naive
Posts: 11,128
Send a message via Windows Live Messenger to aRedMoon Send a message via Skype™ to aRedMoon
I haven't touched Wordpress on mobile ever since I tried to update it and it ended up posting a completely blank post after I had written a lengthy one...
__________________
facebook \\ twitter \\ blog a.k.a life // tumblr // google+

june 10, 2003 = registered at old pc
march 24, 2004 = registered at new pc
june, 2004 = modded ;;; august, 2004 = quit/fired (point of debate)
december, 2004 = banned ;;; december 2, 2005 = unbanned
june 10, 2008 = omg... five years!
june 10, 2012 = countdown to nine years on pc...
  #7146    
Old May 1st, 2012 (07:22 AM).
Liliana Vess's Avatar
Liliana Vess Liliana Vess is offline
My Secrecy. My Advantage.
Platinum Tier
 
Join Date: Nov 2008
Location: «UK»
Gender: Male
Posts: 1,980
Can't you just go through the admin control panel on your phone?
__________________


"I am confident that if anyone actually penetrates our facades, even the most perceptive would still be fundamentally unprepared for the truth of House Dimir."
-Szadek, Lord of Secrets

  #7147    
Old May 1st, 2012 (11:52 AM).
Tsutarja's Avatar
Tsutarja Tsutarja is online now
ModeratorCSEO
 
Join Date: Mar 2010
Location: Florida
Gender: Male
Nature: Jolly
Posts: 13,625
You can go through the admin panel, however, as picky of a user I am, I get tired of going on every page in the Safari browser and using my fingers to zoom in, and it's also to save load time.
__________________
#TeamUnova
click for unicorns avatar
  #7148    
Old May 2nd, 2012 (02:19 AM).
Liliana Vess's Avatar
Liliana Vess Liliana Vess is offline
My Secrecy. My Advantage.
Platinum Tier
 
Join Date: Nov 2008
Location: «UK»
Gender: Male
Posts: 1,980
Quote originally posted by ZachLMedia:
You can go through the admin panel, however, as picky of a user I am, I get tired of going on every page in the Safari browser and using my fingers to zoom in, and it's also to save load time.
Oh, we'll have you tried out this app? It seems to look pretty decent compared to some other mobile plugins. I might try it out myself actually.
__________________


"I am confident that if anyone actually penetrates our facades, even the most perceptive would still be fundamentally unprepared for the truth of House Dimir."
-Szadek, Lord of Secrets

  #7149    
Old May 18th, 2012 (05:00 AM).
Dakotah's Avatar
Dakotah Dakotah is offline
Fursuiter
 
Join Date: Aug 2010
Location: Ontario, Canada
Gender: Male
Nature: Timid
Posts: 890
Send a message via Skype™ to Dakotah
Okay, well, here's my site:



The header graphic rotates upon reload (currently there are two headers)

I use a lytebox to display additional content:



Your thoughts?
__________________
DAKOTAH
Personal Website

1693-4093-6753

"...many of the truths we cling to depend greatly on our own point of view." ~ Obi Wan Kenobi
  #7150    
Old May 18th, 2012 (09:36 AM).
Liliana Vess's Avatar
Liliana Vess Liliana Vess is offline
My Secrecy. My Advantage.
Platinum Tier
 
Join Date: Nov 2008
Location: «UK»
Gender: Male
Posts: 1,980
That's actually a pretty nice site. It's not really the style I like but that's just me personally. It suits the content and nothing really seems to be firing alarm bells when I look at it.
The only thing I'd really say about it is maybe make that lytebox thing a bit bigger so there isn't a huge amount of space along the bottom. It seems like a waste of space considering that the amount of text is making a scrollbar appear.
Also the space that is either side of the page is making the website as a whole look a bit bland. I'm not saying to spam it with images or to expand the content section, but maybe you could add in a pattern of an image to it? A dull image obviously, something like a monotone image of a forest or stars to match the header.

Also, this is kind of a small thing and more graphics than web design even though it's pretty much the same thing but w/e but this is really bugging me.

Text should really align with other blocks of text ): It just makes it look a bit more tidy and organised and overall more professional. There's also the alignment on the left side but the top alignment was more of an issue.
__________________


"I am confident that if anyone actually penetrates our facades, even the most perceptive would still be fundamentally unprepared for the truth of House Dimir."
-Szadek, Lord of Secrets

 
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 07:29 AM.