View Single Post
Old September 6th, 2009, 07:40 PM   #13 (permalink)
atddoug
Junior Member
Verified Customer
 
Join Date: Jul 2007
Posts: 18
"What we have here is a failure to communicate." Just kidding.

Now, you'll have to look at my attached images because I've tried pasting the browser output into this post but I can't prevent this forum from altering the code that I need you to see (not even with code or quote tags).

What I'm trying to say is... for some reason the preg_replace_callback isn't working right. With your original pp source (not my changes), what the browser displays in the showcat desc is seen in the first attachment of this reply.

so only the first 8 chars,
Code:
Content visible to verified customers only.
, are stripped off the front of the tag leaving the remainder of the tag displayed in the browser.

And maybe this is a clue to the problem... the page's source code in the browser is showing the actual "shy" code, as seen in the second attachment.

See what I mean? That's not the expected result, is it? Again, that's using the original showcat.php source code, nothing I've changed.

Now as a workaround for myself, I'm commenting-out the preg_replace_callback and I moved the wordwrap below the strip_tags. So its just showing text in the description and its wrapped correctly.

But please let me know if you see something to correct in the preg_replace_callback statement so I can restore the showcat.php code to its original condition (minus the correction).

Thanks Chuck!
Attached Images
File Type: jpg htmlInAdDesc.jpg (24.2 KB, 4 views)
File Type: jpg browsersource.jpg (24.7 KB, 3 views)

Last edited by atddoug; September 6th, 2009 at 07:50 PM.
atddoug is offline   Reply With Quote