Forums » Customize

Text under the images...

JorgeK
BRAZIL
2008-04-14 03:38:18
Permalink Post
 

I´ve searched for this topic here, and found 1 topic, but there wasn´t a solution...

I just want to put all the text under de image, instead above.

I´m not an expert, but if you give me a pathway, I´m a hardworker... ehehhe

Thanks in advance!

Vaska A
UNITED STATES
2008-04-14 07:40:57
Permalink Post
 

Make a custom exhibition format or wait for the new version to be released.

JorgeK
BRAZIL
2008-04-15 04:50:58
Permalink Post
 

Thanks Vaska, but how can I do this custom exhibition?

BillyCarlson
UNITED STATES
2009-04-07 22:01:57
Permalink Post
 

Has the new version been released yet?

Vaska A
UNITED STATES
2009-04-07 22:23:51
Permalink Post
 

Yes, about 8 months ago.

superuntitled
UNITED STATES
2009-07-24 20:51:49
Permalink Post
 

To place the text and img nav under the image, replace the function "createExhibit()" with the following code.
The createExhibit() function is located in the "site-->plugin-->exhibit.slideshow.php" file on line 34.

  1. function createExhibit()
  2. {
  3.     $OBJ =& get_instance();
  4.     global $rs;
  5.     $pages = $OBJ->db->fetchArray("SELECT * 
  6.         FROM ".PX."media, ".PX."objects_prefs 
  7.         WHERE media_ref_id = '$rs[id]' 
  8.         AND obj_ref_type = 'exhibit' 
  9.         AND obj_ref_type = media_obj_type 
  10.         ORDER BY media_order ASC, media_id ASC");
  11.     $s = '';
  12. ¬†¬†¬†¬†if (!$pages) return $s;
  13. ¬†¬†¬†¬†¬†¬†¬†¬†$i = 1; $a = '';
  14. ¬†¬†¬†¬†// people will probably want to customize this up
  15. ¬†¬†¬†¬†foreach ($pages as $go)
  16.     {
  17. ¬†¬†¬†¬†    $title ¬†¬†¬†¬†¬†¬†¬†¬†= ($go['media_title'] == '') ? '' : $go['media_title'] . '¬†';
  18. ¬†¬†¬†¬†    $caption ¬†¬†¬†¬†= ($go['media_caption'] == '') ? '¬†' : $go['media_caption'];
  19. ¬†¬†¬†¬†¬†¬†¬†¬†//$x = getimagesize(BASEURL . GIMGS . '/' . $go['media_file']);
  20. ¬†¬†¬†¬†¬†¬†¬†¬†$a .= "n{$title}{$caption}n";
  21.         $i++;
  22.     }
  23. ¬†¬†¬†¬†// images
  24. ¬†¬†¬†¬†$s .= "n";
  25. ¬†¬†¬†¬†$s .= "n";
  26. ¬†¬†¬†¬†$s .= $a;
  27. ¬†¬†¬†¬†$s .= "n";
  28. ¬†¬†¬†¬†$s .= "<p class='nav'><a id='prev' href='#'>Prev</a> | <a id='next' href='#'>Next</a>";
  29. ¬†¬†¬†¬†// ** DON'T FORGET THE TEXT ** //
  30. ¬†¬†¬†¬†$s .= $rs['content'];
  31. ¬†¬†¬†¬†$s .= "nn";
  32. ¬†¬†¬†¬†return $s;
  33. }

superuntitled
UNITED STATES
2009-07-24 21:05:13
Permalink Post
 

well that did not post as expected. something went wrong in the code tags. please refer to this page:

http://superuntitled.com/filer/ie.html

link

Vaska A
UNITED STATES
2009-07-24 21:11:12
Permalink Post
 

Yeah, we need to work on that. Just post the line in question...that's all that is needed.

Hmmm...but there are some other things wrong with this...

superuntitled
UNITED STATES
2009-07-26 20:35:52
Permalink Post
 

Vaska, Could you delete my first post on this thread, the code got all mixed up somehow.
The code should look like this:

http://superuntitled.com/filer/ie.html

Edited by Vaska so it's a link! ;)

Vaska A
UNITED STATES
2009-07-26 20:42:34
Permalink Post
 

Well, let's look at this...let's start here...

  1. if (!$pages) return $s;

Do you know why this is bad? Well, if the person has input text but there are no images they get nothing on the page. Should be changed to...

  1. if (!$pages) return $rs['content'];
christiandelia
ITALY
2010-08-26 01:10:19
Permalink Post
 

Hello,
anyone help me ???
i would like hide the text under the image in my thumbpreview item.
when the mouse is hover ... reveals the title.
or if is impossible, i need help to overlap 2 image in the same thumbpreview.
so that the fade hides and shows that theres under.

this is a test page

and this is a code in my cms page:

div style="height:100%;margin-top:140px;margin-left:80px;font-size: 12px;"
div class='thumbpreviewitem'> a href='http://www.christiandelia.it/portfolio/project-1/'> img src='http://www.christiandelia.it/files/gimgs/th-3_p1020957-copy.jpg' />text

whitout something < >

I wish to be found a solution

this is a reference site by
cargo

Thanks

christiandelia
ITALY
2010-08-30 01:57:58
Permalink Post
 

anybody know how i need to do ?? :)
i try, but also i need hands to make a goal!!!

Showing 1 - 12 of 12 posts in Forum > Customize > Text under the images...
 

You need to be logged in to post.