Hmm - can't get these code tags to work. I'll try again. (Delete the spaces after the '
Grrrr
Hmm - can't get these code tags to work. I'll try again. (Delete the spaces after the '< ' signs.)
2a. Change lines 507-510 to:
(507) $body .= "< label>Image Title";
(508) $body .= "< textarea name='media_title' id='media_title'>" . $rs['media_title'] . "";
(509) $body .= "< label>Image Caption";
(510) $body .= "< textarea name='media_caption' id='media_caption'>" . $rs['media_caption'] . "";
2b. Change lines 47 and 48 to:
(47) var title = encodeURIComponent( $('#media_title').val() );
(48) var caption = encodeURIComponent( $('#media_caption').val() );
2c. Add these two lines to the end of the CSS file:
textarea#media_title { width: 500px; height: 100px; }
textarea#media_caption { width: 500px; height: 100px; }
That's it.
Let me know if it works for you.
R
One last adjustment.
From line 256 of files.php in /ndxz-studio/module/exhibits delete:
title='$img[media_title]'
(As discussed in this thread)
Sorry, I formatted 2a above incorrectly, and missed the closing textarea tags. This is it - lines 507-510. (Delete the spaces after the '< ' signs):
$body .= "< label>Image Title";
$body .= "< textarea name='media_title' id='media_title'>" . $rs['media_title'] . "< /textarea>";
$body .= "< label>Image Caption";
$body .= "< textarea name='media_caption' id='media_caption'>" . $rs['media_caption'] . "< /textarea>";
God, I'm an idiot. One more try, with added spaces:
$body .= "< label>Image Title< /label>";
$body .= "< textarea name='media_title' id='media_title'>" . $rs['media_title'] . "< /textarea>";
$body .= "< label>Image Caption< /label>";
$body .= "< textarea name='media_caption' id='media_caption'>" . $rs['media_caption'] . "< /textarea>";
Leslie: Thank You so much for this useful tip!
Leslies Hack works perfectly - thanks so much - but my dropdown menue doesnt work any longer. Any ideas?
For those of you who want the line breaks in the media_caption form field to wrap to a new line (aka hitting return in the form field will add a break tag) do this...
In the ndxz.exhibit-edit.js file (ndxz-studio > asset > js folder) around line 47 (I've added code so this is referencing the line numbers in the posts above) add
function return2br(dataStr) {return dataStr.replace(/(r|n)/g, "");}
above function updateImage(ida)
then change var caption = encodeURIComponent( $('textarea#media_caption').val() ); */
to var caption = return2br( $('textarea#media_caption').val() );
so the two functions should look like this…function return2br(dataStr) {return dataStr.replace(/(r|n)/g, "");}
function updateImage(ida)
{
var title = encodeURIComponent( $('textarea#media_title').val() );
var caption = return2br( $('textarea#media_caption').val() );
$.post('?a='+action, { upd_jximg : 'true', v : title, x : caption, id : ida },
function(html) {
//updating(html);
getExhibit();
});
}
Now your lines should wrap in your image caption the same way they do in the edit page text field :)
Hmm, the code tags got away from me there. Just read through the above and ignore the formatting. :)
hello, great thread !
is anybody getting problems with the thickbox plugin and this hack ?
thks
ok forget about it
got it to work
uh oh
I followed the directions from the top and I'm getting the "null" as well --
I'm not super super adept at these things so should I just try to reverse the damage - switch everything back?
I'm using slideshow format fyi
-any help would be appreciated -
-scared to go the difficult-seeming richardn route
I should add that I tried southafrica's solution and that didn't work either-
@yomama
i don't bring it to work combined with the stuff of richardn - can you paste it again in a clean formatting form - that would be nice :) - maybe this is only the problem ...
thanks momper
ok as a fast fix:
$title = ($go['media_title'] == '') ? '' : nl2br($go['media_title']) . ' ';$caption = ($go['media_caption'] == '') ? ' ' : nl2br($go['media_caption']);
I just successfully implemented the changes put forward in LeslieOA's original post (thank you). What fixed the «null»-entry in the caption-field for me was to delete the browser-cache. So here is my advice to everyone that gets the «null»-error: delete your cache (Firefox: Clear Recent History) right after doing the changes and before logging into you indexhibit-installation again. That solved it for me.
Hey momper,
where do you place this code?
$title = ($go['media_title'] == '') ? '' : nl2br($go['media_title']) . ' ';$caption = ($go['media_caption'] == '') ? ' ' : nl2br($go['media_caption']);
does this replace...var title = encodeURIComponent( $('input#media_title').val() );    var caption = encodeURIComponent( $('textarea#media_caption').val() );
I am really trying to add line breaks, because currently tags are breaking my slideshow.
thanks,
Ian Epps
Hey momper,
where do you place this code?
$title = ($go['media_title'] == '') ? '' : nl2br($go['media_title']) . ' ';$caption = ($go['media_caption'] == '') ? ' ' : nl2br($go['media_caption']);
does this replace...var title = encodeURIComponent( $('input#media_title').val() );    var caption = encodeURIComponent( $('textarea#media_caption').val() );
I am really trying to add line breaks, because currently tags are breaking my slideshow.
thanks,
Ian Epps
Nevermind! I got it.
cheers to all of you guys.
this stuff is really daunting
Could someone tell me how
Log into your Indexhibit installations MySQL database (e.g. phpMyAdmin).
Open the table 'ndxz_media'. to modify it?
I understand all steps but i have no idea how do this one. Is there a website link? or i have to use cyber duck?
thanks
Could someone tell me how
Log into your Indexhibit installations MySQL database (e.g. phpMyAdmin).
Open the table 'ndxz_media'. to modify it?
I understand all steps but i have no idea how do this one. Is there a website link? or i have to use cyber duck?
thanks
Please do not triple post.
You can find more information about these things just by searching the web - even youtube may have video tutorials...
@richardn!
It worked wonderfully. Thanks for taking the time to explain what you did. Sweet relief.
http://www.kristinheinichen.com/stories/andros-an-island-set-apart/
guys just a thought and idea to share with you.
i used longer captions with the thumbs/slideshow gallery so i can just write a description of a project.
i used a small picture with the word "description" on it: http://therealbenhopper.com/files/gimgs/21_information.jpg
and wrote the description on in the captions using html.
look here:
http://therealbenhopper.com/index.php?/projects/naked-girls-with-masks/
I've followed the giude to the last dot and I have the big text-box now but I still get "null".
I've tried all solutions presented her to fix this and yet I get nowhere.
I want it to work with Horizontal or Crab-exhibit-formats but this far I havent managed to make it work with any format.
Would be very very grateful for help!
Klara
My problem was sorted by several clearing of cache and reboots etc.
Thanks for a wonderful thread!
I have a huge problem, i cannot edit anything on the site anymore... nothing happens.
Anyone who can give me a hint on how to fix this?
I'm having the same problem as some of the early posters, image caption is displaying 'null' regardless of what I input in the backend. I've followed the original tutorial a number of times very closely, I'm pretty certain I've made no mistakes. Any new updates for dealing with this issue?
thanks,
B
Thanks Leslie, nice work!
I’m a beginner but following all your clear advices now caption is longer!
However, watching your website (http://www.leslieowusuappiah.com/#work/just-jenna-photography/) I have two questions.
1- Text as a list
I see that you managed to have the text beneath the images as a list. How did you managed to break the lines?
2- Highlighted text
How did you created the highlighted text (tag's link) inside the caption window?
Thanks to everybody for the help!
Thanks Leslie, nice work!
I’m a beginner but following all your clear advices now caption is longer!
However, watching your website (http://www.leslieowusuappiah.com/#work/just-jenna-photography/) I have two questions.
1- Text as a list
I see that you managed to have the text beneath the images as a list. How did you managed to break the lines?
2- Highlighted text
How did you created the highlighted text (tag's link) inside the caption window?
Thanks to everybody for the help!
Sorry for the double post...
I've followed the same tutorial long ago and I can tell you that you can write html into your captions, so both your questions are answered
;-)
Grazie Ricky!
Following your advise I resolved the issue!!!!
Still didn't manage to create the visual index for the main...
Considering that I'm completely html illiterate I'm quite proud of the steps done.
I'll go back soon to the visual index. THANKS!
Just to let know illiterates people as...
I added
to break the text line
I don't know why some text was missed...
Maybe the the html language works also in this caption...
In character I added:
Less-then sign BR Division slash Greater-than sign
@gabo you possibly mean <br />
(you can't directly write html here, except those tags on the left of the text box...)
;-)
Yes Ricky, I meant that :-)
Good to know!
I've followed all of these instructions and it seems to have worked apart from having a couple of problems.
1 being that the Title will only show with a : at the end which I can't get rid of (e.g. TITLE:)
2. I have to use BR to seperate paragraphs.
Can anyone explain why this has happened or what I can do to change this?!?
the site still being built is:
Any help would be greatly appreciated!
@Legohead: you are cross-posting and you don't have a link back to indexhibit in your site. please read the forum rules.
answered in your other thread
Hello!
I've follown all the instructions, slowly and carefully, but it seems that's not enought: I can't go anymore to my site, after this changes. Safari told me: Error Domain Network Error 302.
Do anybody know something about that? Di it deals with all the modifications I've made before? Thank you for the help.
Hello!
I've follown all the instructions, slowly and carefully, but it seems that's not enought: I can't go anymore to my site, after this changes. Safari told me: Error Domain Network Error 302.
Do anybody know something about that? Di it deals with all the modifications I've made before? Thank you for the help.
website, please? read the forum rules, thank you
and what is your question about? the instructions for what? this thread is already confused with several different questions
You need to be logged in to post.
