Forums » Installation

Tidying up image editor

richardn
UNITED KINGDOM
2010-02-15 12:14:19
Permalink Post
 

Hi Vaska, sorry to address this question directly to you, but I think you might be able to give me a quick answer.

After much head-scratching (Leslie's code doesn't work), I've enabled long Image Titles and Image Captions (via the Divide Exhibit Into Sections 'Mod' thread).

When entering HTML into the Image Titles, I have an unwanted cosmetic side effect. Part of the code spills out into Indexhibit's image editor. See here:

messy image editor

And here's a screengrab with an example of the code I've input that is causing the mess:

HTML in Image Title

Looking at the page source of Indexhibit's text/image editor, I see that the draggable image thumbnails have an img title attribute. I think this is the cause of my problems (img title attribute should not contain HTML). I have a feeling that the img title attribute serves no function here (I might be wrong!). I would like to remove it. But I don't know which Indexhibit file to edit. Could you point me in the right direction? (Or warn me off meddling with it!) Thanks, Richard. test page

Vaska A
UNITED STATES
2010-02-15 14:09:31
Permalink Post
 

Yeah, take it out...maybe it's in /ndxz-studio/module/exhibit/files.php. But this is why we don't support some hacks around here...you could easily break something seriously.

And, in the current version, it was never intended for html to go into the title and caption for images.

richardn
UNITED KINGDOM
2010-02-15 14:42:11
Permalink Post
 

Many thanks, Vaska, that seems to work.

From line 256 of files.php I deleted:

title='$img[media_title]'

Now the thumbnails in my Indexhibit text/image editor are 'clean'.

Vaska A
UNITED STATES
2010-02-15 15:01:34
Permalink Post
 

Cool...this is a good 'hack' because in the future all of this is possible. Thanks for making the changes really clear for people too.

For future viewers of this thread...make these changes VERY carefully.

;)

LeslieOA
UNITED KINGDOM
2010-02-15 16:22:08
Permalink Post
 

@richardn: - Just noticed this thread...

(Leslie's code doesn't work).

Ouch. Really?
Well, glad you've figured things out.

@Vaska/@richardn: - Any pointers as to what I could/should change in my guide?

richardn
UNITED KINGDOM
2010-02-15 16:36:57
Permalink Post
 

Hi Leslie. Sorry, I was being contentious. I should have said 'Leslie's code doesn't work for me (and a few others who contributed to Leslie's thread)'. I did try your code on a clean install of Indexhibit and I couldn't get it to work (image captions weren't rendered, the js made indexhibit's interface buggy, and the css didn't target the input boxes). But I'm no coder, so I can't guarantee that I didn't make a mistake. Anyway, I've detailed my modifications to towards the end of the original thread. Cheers, Richard.

LeslieOA
UNITED KINGDOM
2010-02-15 17:18:23
Permalink Post
 

@richardn: - Ah; that's cool (phew).
My reason for asking is because I'm working on turning some of my posts, hacks and exhibits into polished plugins and articles.

It wouldn't be a bad idea to link and reference yourself and kaoz3000's ideas if that'd be okay with you?

richardn
UNITED KINGDOM
2010-02-15 17:33:17
Permalink Post
 

Leslie, please reference what you like, but my posts in that thread are hardly elegant (various blind alleys, and then making a mess of using this forum's code tags). I think I've ended up with a solution that works, but only through trial and error. I've no idea why your js and css were causing me problems, and why my modifications work. If you're planning on polishing up your guide, I think it might be worthwhile pursuing my approach of creating big textarea input boxes for both the Image Title and the Image Caption, and also modifying the files.php file, to prevent HTML entries mucking up the display of indexhibit's text/image editor (as detailed in this thread). Although I had problems with your code, thank you for posting it, as without it I wouldn't have been able to begin the process of enabling long titles/captions.

rickykappa A
ITALY
2010-02-15 19:00:03
Permalink Post
 

Hello, this is just to say that I also went through Leslie's process without having problems, except for I had to use kaoz3000's solution. The only difference is that I don't need titles being that long, so I only made them about 80 characters. No problems at all for the captions, where I could use easily some html tag. In the latter case things break only if I break the line...
here is my experimental page

rickykappa A
ITALY
2010-02-16 14:28:55
Permalink Post
 

I've realized that the above link was a total mess if viewed with safari. Sorry for that, now it's better and what I've written in the previous post makes more sense.
(btw I'd like to solve another problem wich arises with safari, if somebody knows why the scroller above the image disappear after the images are loaded)

Showing 1 - 10 of 10 posts in Forum > Installation > Tidying up image editor
 

You need to be logged in to post.