Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
code block disabled

 

 


bruce
User

Dec 17, 2006, 7:09 PM

Post #1 of 8 (536 views)
Shortcut
code block disabled Can't Post

I have a rating system for my articles with the following code:

Article rating: </font> <!-- (CODE BLOCK DISABLED) ?php
$topic="secondhome";
$display="stars";
$myimages="no";
require "/home/virtual/site168/fst/var/www/html/article-rating/b3_rating/b3_rating.php";
?>

When I publish the article the "(CODE BLOCK DISABLED)" error shows up and the rating system does not work. Seems to me I dealt with this in version 1 but I cannot find where to deal with it in this version.

Thanks for the help.


Donna
Staff / Moderator


Dec 18, 2006, 1:35 PM

Post #2 of 8 (525 views)
Shortcut
Re: [bruce] code block disabled [In reply to] Can't Post

Hi Bruce!

Thanks for your post. :)

While I'm not a programmer, it looks like you don't have a closing comment tag, and the php tag isn't being opened properly. So, try this:


Code
<!-- (CODE BLOCK DISABLED) --> <?php  
$topic="secondhome";
$display="stars";
$myimages="no";
require "/home/virtual/site168/fst/var/www/html/article-rating/b3_rating/b3_rating.php";
?>


Give that a try and let me know if it works for you. :)

Donna


Hire me!
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 Priority Consulting.


bruce
User

Dec 18, 2006, 4:00 PM

Post #3 of 8 (520 views)
Shortcut
Re: [Donna] code block disabled [In reply to] Can't Post

Nope, it's not that, but thanks for the try. In version 1 I believe it had to do with the xssfilter.ini file. By turning off the xss filter, you could run scripts in the content. If it was turned on you could not.

http://www.interactivetools.com/docs/doc.cgi?/articlemanager/admin/doc_page61.html

But I can't seem to find this in version 2 or did I miss it somewhere?

Older = loss of memory Smile


(This post was edited by bruce on Dec 18, 2006, 4:12 PM)


Donna
Staff / Moderator


Dec 18, 2006, 4:41 PM

Post #4 of 8 (516 views)
Shortcut
Re: [bruce] code block disabled [In reply to] Can't Post

Hi Bruce,

Are you entering this directly into the template, or going through the "Create New Article" interface?

Donna


Hire me!
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 Priority Consulting.


bruce
User

Dec 18, 2006, 5:49 PM

Post #5 of 8 (514 views)
Shortcut
Re: [Donna] code block disabled [In reply to] Can't Post

In this case I'm motifying an existing article. The article worked fine in version 1.

I have not yet created a new article but would typically add this in in the "create new article" interface.

Thanks


dbramley
User

Dec 20, 2006, 2:09 AM

Post #6 of 8 (504 views)
Shortcut
Re: [bruce] code block disabled [In reply to] Can't Post

In Admin - General settings there is the following:

Remove Code Blocks Remove PHP & ASP code block tags from user input (recommended)

My understanding is that if you uncheck this then you wont suffer the code block message as above.

However it could be something completely different so just try it and see what happens!! I havent added any code into my templates yet.

Dan


Stockton on Tees | Hartlepool | Middlesbrough | Sunderland


bruce
User

Dec 20, 2006, 8:57 AM

Post #7 of 8 (498 views)
Shortcut
Re: [dbramley] code block disabled [In reply to] Can't Post

Thanks for the tip. I've already tried that with no results.


ross
Staff / Moderator


Dec 21, 2006, 8:58 AM

Post #8 of 8 (475 views)
Shortcut
Re: [bruce] code block disabled [In reply to] Can't Post

Hi Bruce.

Thanks for the update!

Would you mind sending a support request for this one? I am not exactly sure why your code keeps getting removed but I am sure we'll be able to get it sorted out. Here's a link to the form:

https://www.interactivetools.com/support/email_support.cgi

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
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 Priority Consulting.



 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4