Forums / Templates, Stylesheets, Page Layout / specific text on a page isn't picked up by developers tool kit?

specific text on a page isn't picked up by developers tool kit?

Started by irish_1985 on 19 Sep 2012, 12:34 AM · Views: 1,580

Results 1 to 12 of 12
19 Sep 2012, 12:34 AM
#1
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

specific text on a page isn't picked up by developers tool kit?

hi all, i'm running v1.5.0.

i've used the developers tool kit (admin > tools > developers tool kit) to search for a number of different things and have found great success in locating specific files when necessary. however, one thing has me stumped.. if you check out this page of my store:

http://c u l tivatedreef.com/index.php?main_page=product_info&cPath=19_1&products_id=676* (spaces added to beginning of URL to prevent search engine indexing)*

you may notice the text over the "SPS" header/banner (the big/wide image) is offset in certain browsers.. that's what i originally started another thread about, but upon trying to fix the text alignment issue, i realized i have another issue... i can't for the life of me seem to locate which file within my database contains the text in question, let alone edit the code to get it to properly align the text. as someone else pointed out in my other thread, if you view the page source in firefox (from the link above), on line 275 there's this problem code:

<p class="MsoNormal" style="margin: 0in 0in 0pt;">

which i would of course remove to see if it fixes the problem, but the developers tool kit can't seem to find any file with this text, or even snippets of that text....even typing in the text itself that appears over the header ("Generally speaking, the Small Polyped Stony corals", blah blah blah) doesn't seem to return any results with the developers tool.. i'm searching in all files for all file types and i know the tool isn't broken because it can return other searches with no problem. does this mean the files that contain the header text are (for whatever reason) hosted elsewhere? admittedly, it's been a while since i've used zencart, but i'm having a difficult time wrapping my head around this one...

thanks in advance.

19 Sep 2012, 1:08 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: specific text on a page isn't picked up by developers tool kit?

Looks like you might have created some product descriptions with Word. That's a big no-no. Word bloats the code with proprietary things like MsoNormal.

A quick way to see the folly of using Word:

  • open word and create new document
  • type Hello World in document
  • save as webpage
  • open in notepad

You'll see nearly a hundred lines of code.:shocking:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Sep 2012, 2:09 AM
#3
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

Re: specific text on a page isn't picked up by developers tool kit?

dbltoe:

Looks like you might have created some product descriptions with Word. That's a big no-no. Word bloats the code with proprietary things like MsoNormal.

A quick way to see the folly of using Word:

  • open word and create new document
  • type Hello World in document
  • save as webpage
  • open in notepad

You'll see nearly a hundred lines of code.:shocking:

i am actually taking over from a previous person who created everything (i know, i know, i'm sure everyone says that when they have an issue :P)... don't get me wrong, i don't know a ton, but i sure as heck know to use notepad for codes! that being said, even if microsoft word was used, it shouldn't change the fact that these codes should still be found? i can't find the header description text anywhere...

19 Sep 2012, 3:30 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: specific text on a page isn't picked up by developers tool kit?

You have a lovely learning experience ahead of you.:P Your predecessor has hard-coded things in strange places. Generally a sign of an expert in anything BUT Zen Cart. I know, I tried making it bend to my will over eight years ago.

You should be able to find things like the MsoNormal by using the Developers Tool Kit in the Tools menu of the admin. Start using small bits of code versus a line of code as it may have been "constructed" from a string of variables. It's used in the text that's not displaying correctly in the header of this page. It may be a part of some other variable but try all the options to find MsoNormal and it will help you on your way.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Sep 2012, 3:39 AM
#5
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

Re: specific text on a page isn't picked up by developers tool kit?

thanks for your response. i actually tried searching tiny bits of the code, and tons of strings that are surrounding it... i also looked through 10-20 php and css files that seemed like they would "likely" control the text in this area, but i came up with nothing.. i can't even locate the text itself, which seems really weird. if firebug is picking this up, i would assume the zencart developers tool would give me some hints, but i guess they are two different things... :censored:

19 Sep 2012, 3:53 AM
#6
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

Re: specific text on a page isn't picked up by developers tool kit?

to further beat this to death, shouldn't any search of the text in question develop results within the developers tool in the zencart admin?

for example, this is the text iin question: Generally speaking, the Small Polyped Stony corals have small polyps on a calcareouss skeleton. In many instances they are either branching, plating, or encrusting. SPS corals generally require both moderate to high light and flow. It is important that proper calcium, alkalinity, and magnesium levels are maintained.

...yet using the zencart developer tool finds nothing for the word "magnesium"??

the tool isn't broken because it's finding other searches with no issues.. i just can't wrap my head around how the tool can't find text that is plainly sitting on the header of a page :blink:.. unless this microsoft word thing is more complex and chaotic than i think it is. something weird goin on here for sure!

19 Sep 2012, 4:00 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: specific text on a page isn't picked up by developers tool kit?

Are you using the Look-up in All Files >> All Files- Catalog/Admin >> and the two File type options containing and? This will take two searches to find if the MsoNormal is in php, css, html, or txt.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Sep 2012, 4:03 AM
#8
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

Re: specific text on a page isn't picked up by developers tool kit?

dbltoe:

Are you using the Look-up in All Files >> All Files- Catalog/Admin >> and the two File type options containing and? This will take two searches to find if the MsoNormal is in php, css, html, or txt.

yup, all of the above...

19 Sep 2012, 4:10 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: specific text on a page isn't picked up by developers tool kit?

How about a search for "Generally speaking" without the quotes?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Sep 2012, 4:17 AM
#10
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

Re: specific text on a page isn't picked up by developers tool kit?

tried that as well, no luck. weird huh?

19 Sep 2012, 4:54 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: specific text on a page isn't picked up by developers tool kit?

Let me disspell a myth that seems to be proliferating in the earlier posts in this thread.
The Developers Toolkit only searches FILES. It doesn't search database content such as product data or category data etc.

If your problem is bad content in product descriptions, go to your Admin->Catalog->Categories/Products screen and use the search there, since it specifically searches product data.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Sep 2012, 1:54 PM
#12
irish_1985 avatar

irish_1985

New Zenner

Join Date:
Nov 2011
Posts:
72
Plugin Contributions:
0

Re: specific text on a page isn't picked up by developers tool kit?

DrByte:

Let me disspell a myth that seems to be proliferating in the earlier posts in this thread.
The Developers Toolkit only searches FILES. It doesn't search database content such as product data or category data etc.

If your problem is bad content in product descriptions, go to your Admin->Catalog->Categories/Products screen and use the search there, since it specifically searches product data.

ding ding ding! my quest to find this code is over. now i can revert back to my other thread about the actual issue with the alignment of this text instead of FINDING the troublesome code. thank you both for your replies.