Forums » Customize

Divide Exhibit Into Sections 'Mod'

  • Pages:
  • 1
  • 2
richardn
UNITED KINGDOM
2010-02-14 20:06:39
Permalink Post
 

Hmm - can't get these code tags to work. I'll try again. (Delete the spaces after the '

richardn
UNITED KINGDOM
2010-02-14 20:08:08
Permalink Post
 

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

richardn
UNITED KINGDOM
2010-02-15 14:45:46
Permalink Post
 

One last adjustment.

From line 256 of files.php in /ndxz-studio/module/exhibits delete:

title='$img[media_title]'

(As discussed in this thread)

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

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>";

richardn
UNITED KINGDOM
2010-02-15 14:58:29
Permalink Post
 

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>";

IgraQ
CZECH REPUBLIC
2010-03-08 23:21:32
Permalink Post
 

Leslie: Thank You so much for this useful tip!

Julischki
GERMANY
2010-04-04 17:44:47
Permalink Post
 

Leslies Hack works perfectly - thanks so much - but my dropdown menue doesnt work any longer. Any ideas?

yomama
UNITED STATES
2010-04-09 06:17:05
Permalink Post
 

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

  1. function return2br(dataStr) {
  2.         return dataStr.replace(/(r|n)/g, "
  3. ");
  4. }
  1. above function updateImage(ida)
  1. then change var caption = encodeURIComponent( $('textarea#media_caption').val() ); */
  1. to var caption = return2br( $('textarea#media_caption').val() );
  1. so the two functions should look like this‚Ķ
  2. function return2br(dataStr) {
  3.         return dataStr.replace(/(r|n)/g, "
  4. ");
  5. }

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 :)

yomama
UNITED STATES
2010-04-09 06:19:29
Permalink Post
 

Hmm, the code tags got away from me there. Just read through the above and ignore the formatting. :)

marwan
SPAIN
2010-05-29 12:07:23
Permalink Post
 

hello, great thread !
is anybody getting problems with the thickbox plugin and this hack ?
thks

marwan
SPAIN
2010-05-29 12:18:21
Permalink Post
 

ok forget about it
got it to work

donna
UNITED STATES
2010-06-05 03:40:55
Permalink Post
 

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

donna
UNITED STATES
2010-06-05 03:48:12
Permalink Post
 

I should add that I tried southafrica's solution and that didn't work either-

momper
GERMANY
2010-06-17 06:46:17
Permalink Post
 

@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

momper
GERMANY
2010-06-17 09:34:48
Permalink Post
 

ok as a fast fix:     

  1. $title = ($go['media_title'] == '') ? '' :  nl2br($go['media_title']) . '¬†';
  2. $caption = ($go['media_caption'] == '') ? '¬†' : nl2br($go['media_caption']);
wadoli
SWITZERLAND
2010-07-21 13:09:06
Permalink Post
 

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.

icraigepps
UNITED STATES
2010-11-03 19:45:18
Permalink Post
 

Hey momper,
where do you place this code?

  1. $title = ($go['media_title'] == '') ? '' :  nl2br($go['media_title']) . ' ';
  2. $caption = ($go['media_caption'] == '') ? ' ' : nl2br($go['media_caption']);
  1. does this replace...
  2. var title = encodeURIComponent( $('input#media_title').val() );
  3. ¬†¬†¬†¬†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

icraigepps
UNITED STATES
2010-11-03 19:46:01
Permalink Post
 

Hey momper,
where do you place this code?

  1. $title = ($go['media_title'] == '') ? '' :  nl2br($go['media_title']) . ' ';
  2. $caption = ($go['media_caption'] == '') ? ' ' : nl2br($go['media_caption']);
  1. does this replace...
  2. var title = encodeURIComponent( $('input#media_title').val() );
  3. ¬†¬†¬†¬†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

icraigepps
UNITED STATES
2010-11-03 20:03:56
Permalink Post
 

Nevermind! I got it.
cheers to all of you guys.
this stuff is really daunting

MARCOCORAZZA
ITALY
2010-11-07 00:42:58
Permalink Post
 

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

MARCOCORAZZA
ITALY
2010-11-07 00:43:24
Permalink Post
 

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

arsondpi A
GREECE
2010-11-07 19:12:45
Permalink Post
 

Please do not triple post.

You can find more information about these things just by searching the web - even youtube may have video tutorials...

andreamorales
UNITED STATES
2011-02-10 22:08:23
Permalink Post
 

@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/

BenHopper
UK
2011-02-26 02:14:57
Permalink Post
 

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/

BenHopper
UK
2011-02-26 02:16:15
Permalink Post
 

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: info
and wrote the description on in the captions using html.

look here:
Webpage

Klara
SWEDEN
2011-03-15 13:18:52
Permalink Post
 

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.

thesubjectiveguide.com

Would be very very grateful for help!

Klara

Klara
SWEDEN
2011-03-15 16:57:49
Permalink Post
 

My problem was sorted by several clearing of cache and reboots etc.

Thanks for a wonderful thread!

Klara
SWEDEN
2011-03-19 07:20:02
Permalink Post
 

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?

http://index.thesubjectiveguide.com/

nebsrnoh
UNITED STATES OF AMERICA
2011-04-20 11:41:50
Permalink Post
 

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

gabo
UNITED KINGDOM
2011-05-29 10:08:47
Permalink Post
 


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!

gabo
UNITED KINGDOM
2011-05-29 10:09:44
Permalink Post
 


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!

gabo
UNITED KINGDOM
2011-05-29 10:15:52
Permalink Post
 

Sorry for the double post...

rickykappa A
ITALY
2011-05-30 03:07:58
Permalink 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
;-)

gabo
UNITED KINGDOM
2011-05-30 10:09:29
Permalink Post
 

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!

gabo
UNITED KINGDOM
2011-05-30 10:12:16
Permalink Post
 

Just to let know illiterates people as...
I added
to break the text line

gabo
UNITED KINGDOM
2011-05-30 10:24:38
Permalink Post
 

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

rickykappa A
ITALY
2011-05-30 10:28:50
Permalink Post
 

@gabo you possibly mean <br />
(you can't directly write html here, except those tags on the left of the text box...)
;-)

gabo
UNITED KINGDOM
2011-05-30 18:37:32
Permalink Post
 

Yes Ricky, I meant that :-)
Good to know!

Legohead
UNITED KINGDOM
2011-11-13 11:11:46
Permalink Post
 

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:

www.thebluemonday.com

Any help would be greatly appreciated!

pernin A
SWEDEN
2011-11-13 11:50:58
Permalink Post
 

@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

bellletttte
FRANCE
2012-01-25 18:29:05
Permalink Post
 

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.

bellletttte
FRANCE
2012-01-25 18:29:25
Permalink Post
 

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.

pernin A
SWEDEN
2012-01-26 01:31:28
Permalink Post
 

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

Showing 26 - 68 of 93 posts in Forum > Customize > Divide Exhibit Into Sections 'Mod'
 
  • Pages:
  • 1
  • 2

You need to be logged in to post.