sparkymarcopolo
Posts: 2
Joined: Wed Jul 16, 2014 7:42 am

highslide works but cannot save CMS content

Hi all,

Hoping someone can help me.

I use vBulletin 4.1.2 and have utilised highslide for some time to generate thumbnails and expand image size and it's never been an issue.

Recently I upgraded to the latest vB from 4.1.1 to 4.1.2 but unsure if related.

I use some code on my pages to expand a thumbnail and it works fine, the problem comes when I attempt to save the page and I get a forbidden message. As mentioned this has never been as issue in the past but I'm unsure if it's been caused by upgrading or something host side.

Here's the code I use, if I simply refer to image details its fine, if I include the highslide code the page will not save

Code: Select all

<div align="center">
	<a href="..//DBoftheMonth/Sizler_Grey_Turbo.jpg" class="highslide" onclick="return hs.expand(this, { align: 'center' })">
		<img src="..//DBoftheMonth/Sizler_Grey_Turbo.jpg" alt="Highslide JS" title="Click to enlarge" width="400" />
	</a>
</div>
Any pointers would be appreciated.

Thankyou
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: highslide works but cannot save CMS content

I doubt that this is related to Highslide.
What's the content of the "forbidden message"?
Have you tried replacing the Highslide function in the onclick event with something else? You can try a simple alert:

Code: Select all

onclick="alert('test')"
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
sparkymarcopolo
Posts: 2
Joined: Wed Jul 16, 2014 7:42 am

Re: highslide works but cannot save CMS content

In Safari it just serves 'forbidden' and checking the domain logs I see this

[Sat Jul 19 09:43:48 2014] [error] [client my IP] File does not exist: /data03/osdb/public_html/404.shtml, referer: http://MYDOMAIN/content.php?391-test-area/addcontent
[Sat Jul 19 09:43:48 2014] [error] [client my IP] File does not exist: /data03/osdb/public_html/highslide/highslide.config.js, referer: MYDOMAIN/content.php?391-test-area/addcontent

I then tried just using this <a href="..//DBoftheMonth/Sizler_Grey_Turbo.jpg" onclick="alert('test')"</a>

...and it still reported forbidden
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: highslide works but cannot save CMS content

The log tells you that two files are missing: 404.shtml in your root folder and highslide.config.js in the highslide folder.

[Sat Jul 19 09:43:48 2014] [error] [client my IP] File does not exist: /data03/osdb/public_html/404.shtml, referer: http://MYDOMAIN/content.php?391-test-area/addcontent
[Sat Jul 19 09:43:48 2014] [error] [client my IP] File does not exist: /data03/osdb/public_html/highslide/highslide.config.js, referer: MYDOMAIN/content.php?391-test-area/addcontent


The 404 file isn’t related to Highslide.
Regarding the highslide.config.js file: I guess you have included highslide.config.js in your page without having the file in the highslide folder. Find this line in your page and remove it:

Code: Select all

<script type="text/javascript" src="highslide/highslide.config.js"></script>
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no

Return to “Highslide JS Usage”