Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
problem with art_field insertion into page

 

 


LiquidQuest
User

Aug 17, 2006, 2:19 AM

Post #1 of 6 (2297 views)
Shortcut
problem with art_field insertion into page Can't Post

im trying to use a javascript in my client's page, allowing them to have a mouseover effect which loads large images of any article image thumbnail. the script works fine on my computer without incorporating it into AM...

i made a custom template for headlines to use that javascript, which relies on two <DIV> tags. this is the following code in my template:

Code
<img src="$art_field6$" style="border:1px solid #8a0814;" onMouseOver="showtrail('$art_field7$','',500,500)" onMouseOut="hidetrail()" border="0"> 

<div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">$art_name$</h2><div class="preview_temp_load"><img onload="javascript:remove_loading();" src="$art_field7$" border="0"></div></div></div>


im also using PUBLISHCRON.CGI to take that template and generate a static page for these article types. whats weird is that publishcron doesn't insert the values where ART_FIELD tags are located like it did for $ART_NAME$ tag, and it also changed the javascript values at the end of the second DIV... see what i mean here:

Code
<img src="" style="border:1px solid #8a0814;" onMouseOver="showtrail('','',500,500)" onMouseOut="hidetrail()" border="0"> 

<div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">Annan sends envoys to Middle East</h2><div class="preview_temp_load"><img onload="op_stop();javascript:remove_loading();;op_start();" src="" border="0"></div></div></div>


i have disabled the XSS FILTER, and its still not working. dont know what to do to fix this. any help?
Marssin

(This post was edited by LiquidQuest on Aug 17, 2006, 2:37 AM)


LiquidQuest
User

Aug 17, 2006, 2:34 AM

Post #2 of 6 (2295 views)
Shortcut
Re: [LiquidQuest] problem with art_field insertion into page [In reply to] Can't Post

ok, i have located the error where publishcron doesn't insert art_field values, and that was my fault. now i still have the problem with the changed Javascript values within my published code when compared to my original code.

this is my revised template (full)

Code
<!-- template insert : $article_list$ --> 

<!-- templatecell : row -->
<DIV style="padding-bottom:2px;"><a href="$detail_link$" style="font-size:1.3em;color:#255fa8;font-weight:bold;">$art_name$</a></DIV>
<DIV style="color:#606060;padding-bottom:10px;">

<DIV style="padding-right:5px;width:170px;float:left;">

<DIV style="float:left;"><img src="$art_field6$" style="border:1px solid #8a0814;" onMouseOver="showtrail('$art_field7$','',500,500)" onMouseOut="hidetrail()" border="0"></DIV>
<DIV style="float:right;"><img src="$url_publish$2007_images/tableright.gif" width="10" height="113" alt=""></DIV>
<DIV><img src="$url_publish$2007_images/tablebottom.gif" width="170" height="10" alt=""></DIV>

</DIV>

<div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">$art_name$</h2><div class="preview_temp_load"><img onload="javascript:remove_loading();" src="$art_field7$" border="0"></div></div></div>


$art_summary$</DIV>
<DIV style="background-color:#CCCCCC;width:auto;height:1px;"><img src="$url_publish$2007_images/line_left.gif" width="9" height="1" alt="" style="float:left;"><img src="$url_publish$2007_images/line_right.gif" width="9" height="1" alt="" style="float:right;"></DIV>
<!-- /templatecell : row -->

<!-- templatecell : row_summary -->
<!-- /templatecell : row_summary -->

<!-- templatecell : row_link -->
<!-- /templatecell : row_link -->

<!-- templatecell : row_ufile -->
<!-- /templatecell : row_ufile -->

<!-- templatecell : not_found -->
<!-- /templatecell : not_found -->

<!-- templatecell : img_caption -->
$img_url$
<!-- /templatecell : img_caption -->

<!-- templatecell : img_nocaption -->
$img_url$
<!-- /templatecell : img_nocaption -->

<!-- template insert : $prev$ -->
<!-- templatecell : prev -->
<!-- /templatecell : prev -->
<!-- templatecell : no_prev -->
<!-- /templatecell : no_prev -->

<!-- template insert : $next$ -->
<!-- templatecell : next -->
<!-- /templatecell : next -->
<!-- templatecell : no_next -->
<!-- /templatecell : no_next -->

<!-- template insert : $more$ -->
<!-- templatecell : more -->
<!-- /templatecell : more -->
<!-- templatecell : no_more -->
<!-- /templatecell : no_more -->

Marssin


LiquidQuest
User

Aug 18, 2006, 10:39 PM

Post #3 of 6 (2273 views)
Shortcut
Re: [LiquidQuest] problem with art_field insertion into page [In reply to] Can't Post

hello? anybody home? Blush
Marssin


MikeB
Staff / Moderator


Aug 19, 2006, 2:08 PM

Post #4 of 6 (2256 views)
Shortcut
Re: [LiquidQuest] problem with art_field insertion into page [In reply to] Can't Post

Hi Marssin,

Thanks for posting! Smile

I've taken a look at this for you and it's a bit tough for me to see what might be happening here.

Was there a specific line or piece of code that you had noticed was changing from your template version to the published version of this file? If you can direct me to this code and provide me with a bit more detail about the purpose of this I'd be happy to have another look at this for you.

I look forward to hearing from you Marssin! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


LiquidQuest
User

Aug 19, 2006, 11:41 PM

Post #5 of 6 (2249 views)
Shortcut
Re: [MikeB] problem with art_field insertion into page [In reply to] Can't Post

sorry, allow me to simplify what is the problem is now.

MY TEMPLATE CODE

Quote
<div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">$art_name$</h2><div class="preview_temp_load"><img onload="javascript:remove_loading();" src="$art_field7$" border="0"></div></div></div>


PUBLISHCRON OUTPUT

Quote
<div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">Israel extends Hamas MP's detention</h2><div class="preview_temp_load"><img onload="op_stop();javascript:remove_loading();;op_start();" src="http://www.yobserver.net/uploads/635eccfd5c084d6896d831dd342255a2.jpg
" border="0"></div></div></div>


if you review the JAVASCRIPT only, you will notice that publishcron is changing the javascript by adding a small string of code to it:
op_stop();
;op_start();



Code
op_stop();javascript:remove_loading();;op_start();


how do i get publishcron to not add any code in the published pages?
Marssin


MikeB
Staff / Moderator


Aug 22, 2006, 11:37 AM

Post #6 of 6 (2216 views)
Shortcut
Re: [LiquidQuest] problem with art_field insertion into page [In reply to] Can't Post

Hi Marssin,

Thanks for the additional details!

I've taken a look into this for you and this isn't actually something I've seen before with Article Manager or publishcron.cgi. I've done a bit of research into this and it seems that this code may be due to a setting in the Firewall on the server.

From what I've found this extra code is the result of a firewall of some kind adding in extra code on the server when the publishcron.cgi script is executing and creating your published file.

I'd suggest getting in touch with your hosting company to get some more details about the firewall and to see if this is something they've seen before.

I hope this helps and if you have any other questions feel free to let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]