 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
March 16th, 2012, 10:05 AM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 525
| Force templates to behave the same in browsers
Latest versions of all browsers
View this page in Firefox, IE then Chrome. The right hand column is what is being shoved off the edge.
For Firefox, it wraps the text where in Chrome and IE it does not. Is this in the Photopost templates and can it be fixed?
|
| |
March 16th, 2012, 10:45 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,945
|
Personally if you ask me it might be whatever extra information your entering like kit info thats not part a normal photopost that is causing your issue.
|
| |
March 16th, 2012, 11:01 AM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 525
|
It's a URL. Not something that is unusual. Doesn't matter if it were a url or a really long word. Firefox handles it just fine. IE and Chrome does not. If there isn't a way to force the code to be handled the same, then so be it.
|
| |
March 16th, 2012, 11:19 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,945
|
Right but the real issue here is the data and not being wrapped.
Maybe these lines in showphoto.php Code: Content visible to verified customers only.
change to this Code: Content visible to verified customers only.
|
| |
March 16th, 2012, 11:34 AM
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 525
|
That did not fix it.
|
| |
March 16th, 2012, 11:49 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,945
|
Yeah not really sure I could tell you how to fix the browser issue. It is not software related.
You could maybe try using php wordwrap function on whatever variable you are using for that. PHP: wordwrap - Manual
Usually though browser issues have to be addressed in the browser.
Usually what I tell most people that try and enter one huge long string is do not do it. Because your not really talking about software here. Your talking about a browser issue as different browsers may operate differently on how they handle that. Normally if you print one huge long thing it is going to wrap at the first space it finds which means on most browsers its going to cause a breakout.
|
| |
March 16th, 2012, 11:53 AM
|
#7 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 525
|
Wouldn't it just be an issue of parsing the links like vBulletin does? That's not a browser thing... but a software thing.
|
| |
March 16th, 2012, 12:25 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,945
|
parsing links how vb does it is what convert_markups does and is already called but again not sure how your doing your field as you have not told me so not sure how to respond. You never told me what variable the field is when I asked so I assumed maybe one of the regular category extra fields.
Maybe let me take another guess custom fields line 270 of showphoto.php try making it this Code: Content visible to verified customers only.
|
| |
March 16th, 2012, 12:50 PM
|
#9 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2005
Posts: 525
|
Made that change, that did not work.
You'll have to forgive me, I'm not seeing where you originally asked what variable the field is. We are using the extra fields, text boxes.
One thing to notice. It's not an issue of just long URLs.
Firefox
Keywords: mdlmkfaad mdlmkfaadcf mdlmkfaadhpb mdllayeritvol3tp
In FF, it wraps after the 2nd word.
In IE & Chrome it wraps after the 3rd word.
So, it's wrapping, but it's wrapping after to many characters.
|
| |
March 16th, 2012, 02:37 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,945
|
wordwrapping is handled by browser I see many threads on the internet about this and IE9
It is a browser bug nothing I have said works those real long urls of yours are simply not going to break in IE9.
I have tried PHP wordwrap and even a CSS word-wrap: break-word; statement in your body of the page and no matter what IE9 is bad so this is as I said a browser bug. The browser is not following the php coding or the css coding.
Last edited by Chuck S; March 16th, 2012 at 02:43 PM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:39 PM. | |