Forums / General Questions / Need help finding text

Need help finding text

Views: 1,596

Results 1 to 17 of 17
12 Apr 2013, 8:16 AM
#1
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Need help finding text

I have an upgrade that I am working on
v1.51.1 from 1.3.8a

On the product pages that have additional images there appears the word "Information"

I see it in the view source

<!--bof Additional Product Images -->
 <div id="productAdditionalImages">
[B]Information[/B]
    <div class="additionalImages centeredContent back" style="width:20%;">

I could not locate a file using the developers toolkit or GREP'ing a full set downloaded files for it
I also grabbed a db backup and searched for it there - while Information with a cap only showed up a couple of times it was part of some other text not the product page

You can view it HERE it is a the top right above the additional images

Any ideas would be helpful as I am out of them

Zen-Venom Get Bitten

12 Apr 2013, 8:22 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Need help finding text

To me it certainly looks like content in a PHP file, and as it's coming in directly under:

<!--bof Additional Product Images -->

<div id="productAdditionalImages">
Information

... why not try a search (in Dev Toolkit) for productAdditionalImages ? Then open the file(s) where it is featured.

This may reveal its source.

20 years a Zencart User

12 Apr 2013, 8:25 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Need help finding text

I get:

/includes/modules/tabbed_products_pro.php (installed tpp mod)
includes/templates/CUSTOM/templates/tpl_modules_additional_images.php
includes/templates/template_default/templates/tpl_modules_additional_images.php

20 years a Zencart User

12 Apr 2013, 8:41 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need help finding text

schoolboy:

I get:

/includes/modules/tabbed_products_pro.php (installed tpp mod)
includes/templates/CUSTOM/templates/tpl_modules_additional_images.php
includes/templates/template_default/templates/tpl_modules_additional_images.php

You searched for the word "Information" and got these??

Zen-Venom Get Bitten

12 Apr 2013, 7:59 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Need help finding text

kobra:

You searched for the word "Information" and got these??

No... I searched for: productAdditionalImages

As this is right next to the word "information", I am guessing that whatever is bringing in the word "information" must be (might be) close to productAdditionalImages in the code.

Also look at other surrounding elements. search for these too. It has to be somewhere near common (core) strings...

20 years a Zencart User

12 Apr 2013, 8:02 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need help finding text

schoolboy:

Also look at other surrounding elements. search for these too. It has to be somewhere near common (core) strings...
Quoting my OP
KoBra:

I could not locate a file using the developers toolkit or GREP'ing a full set downloaded files for it
I also grabbed a db backup and searched for it there - while Information with a cap only showed up a couple of times it was part of some other text not the product page
So unless the tools are skipping over this - it is not in any of the files that I can find

Which is why I am asking here...

Zen-Venom Get Bitten

12 Apr 2013, 8:08 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Need help finding text

Does dev toolkit also search non-php files?

20 years a Zencart User

12 Apr 2013, 9:19 PM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Need help finding text

You thoroughly searched the file system and the DB using all the usual tools.....

'Information' appears to be the heading for the additional images, just like 'Optional Side Panels' and 'Shipping' are headings for the attribs

Could the culprit be hidden in some jscript for the images and neither GREP'ing nor the dev-tool will bring it up?

Dunno, but worth a look???

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

12 Apr 2013, 11:34 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need help finding text

frank18:

Could the culprit be hidden in some jscript for the images and neither GREP'ing nor the dev-tool will bring it up?

Dunno, but worth a look???
Great thought but to no avail....
It is related to a custom template file/addon as when switched to the classic template - NO display of "Information"

I just can not determine why or how

Zen-Venom Get Bitten

13 Apr 2013, 3:34 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need help finding text

I see magictoolbox code in the additional images... could a js file be adding the Information? Apparently not as you say, but... you are sure that is not connected with it?

13 Apr 2013, 6:23 AM
#11
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Need help finding text

gjh42:

I see magictoolbox code in the additional images... could a js file be adding the Information? Apparently not as you say, but... you are sure that is not connected with it?

That still remains my theory, simply because all the searches are not showing anything. The dev tool does not search for js files.

So, how about disabling / deleting the magiczoomplus.js (after backing it up...) and then... keep fingers crossed? Mystery indeed!

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

13 Apr 2013, 10:47 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need help finding text

gjh42:

Or just do a search of the js file(s) in a text editor...
Thank You - but I have opened all template files in notepad++ and grepped them locally to no joy

What I am now thinking is that it must be in one of the compiled files....as these - being compiled - are not readable

Zen-Venom Get Bitten

13 Apr 2013, 10:58 PM
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Need help finding text

If your client purchased MagicZoom from MagicToolbox, then they would be willing to send you a "fresh" JS file.

I have a licensed copy of magiczoomplus.js but I would be breaching T&C's by posting it here.

20 years a Zencart User

21 May 2013, 12:32 PM
#15
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Need help finding text

Kobra, just revisited this thread and your link. Noted that "Information" has disappeared, obviously you fixed it.

What was causing it??

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

21 May 2013, 12:47 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need help finding text

The tpl_columnar_display.php file has this code
I do not know where "$title" was defined as "Information" probably in one of their compiled files??

  if ($title) {
  ?>
<?php echo $title; ?>

Commented this out

Zen-Venom Get Bitten

21 May 2013, 1:10 PM
#17
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Need help finding text

Thanks for the update

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.