WordPress.org

Ready to get started?Download WordPress

Forums

Exhibit 1.0b release (47 posts)

  1. peb
    Member
    Posted 10 years ago #

    I'll play with the ifunctions and variables a bit to see what I can do with them.
    Also, you indicated you'd be adding some functionality to Exhibit 1.0c to allow file uploading. Sounds great! If you've not already done so, would you think about adding an option that could be set to resize an uploaded file if it was too wide or high? Some users have no concept of what image width can be tolerated on a normal screen, and their images spill all over the place looking pretty gruesome. And it would also prevent these giants from consuming bandwidth when being downloaded.
    Again, thanks for the pointers
    PEB

  2. ringmaster
    Member
    Posted 10 years ago #

    The 1.0c source (soon to be released) will already downsample an uploaded original photo that exceeds predefined dimensions. Or not, your choice.

  3. kristin
    Member
    Posted 10 years ago #

    I can't get anything to show up in the admin section when I edit an existing post. what am i doing wrong???

  4. kristin
    Member
    Posted 10 years ago #

    NEVERMIND! I'm an idiot :)
    my joe is broken :(
    was way off on the cursor position for the line 180

  5. Elodie
    Member
    Posted 10 years ago #

    This hacks looks great and I have tried to install it /but/ It's seems I can't get through .....
    I get a Fatal error... with wp-blog-header.php when activating exhibit-full.php.
    But moreover you'll find me very stupid but once exhibit10.php is installed and the table created, when I want to add an image, what should I do? What should happen when I press Add Current Directory... Very strange, there's definitely something... wrong with me.

  6. georgianlady
    Member
    Posted 10 years ago #

    How to order the pictures:
    I've found that they order themselves via first to last modified.
    So if I have a folder of pictures, they'll sort top to bottom of the earliest time the photo was last saved in the camera, or in Photoshop, or whatever program.
    [So in order to manipulate this you have to consider times attached to the photos. and work with the photos in Photoshop or somesuch program, to save them differently.]
    I prefer this being default, for it mean my pictures are in order as originally snapped with the camera. That's a huge bonus to me.
    Right now I leave default names on the photos as the camera gives them, but if I so chose to change the names of the photos, I wouldn't want that to be what orders them in a list. It makes sense to default to "time modified/earliest to latest".

  7. cube
    Member
    Posted 10 years ago #

    Hi, I've some Problems with Mac-Browsers when I open a popup-window! In Internet Explorer 5.2 on Mac the Popup is resized to somewhat like 100x100 Pixel and in Safari 1.1 there is even no resizing! For me the old script was better because the Popup-Size was nearby the Image-Size.
    I have surfed around the net and found some scripts but there seems to be NO Java-script was good enough to do this job.
    What to do? I'm a newbie in PHP and even Javascript ist not my home?!?

    <script type="text/javascript">
    <!--
    function exh_popImage(oContent,oTitle) {
    var x = window.open('','windowName','width=700,height=500,resizable=1');
    if( !x ) { return true; }
    x.document.open();
    x.document.write('<html><head><title>'+oTitle+'<\/title>');
    x.document.write('<sc'+'ript>');
    x.document.writeln('var isNN,isIE;');
    x.document.writeln('function reSizeToImage(){');
    if (navigator.appName.indexOf("Microsoft")==-1)
    {
    x.document.writeln('window.innerWidth=document.images["ex_popimage"].width;');
    x.document.writeln('window.innerHeight=document.images["ex_popimage"].height;');
    x.document.writeln('document.title="'+oTitle+'";');
    }else if(window.opera){
    x.document.writeln('window.resizeTo(100,100);');
    x.document.writeln('width=130-(document.body.clientWidth-document.images[0].width);');
    x.document.writeln('height=100-(document.body.clientHeight-document.images[0].height);');
    x.document.writeln('window.resizeTo(width,height);');
    }else{
    x.document.writeln('window.resizeTo(100,100);');
    x.document.writeln('width=100-(document.body.clientWidth-document.images[0].width);');
    x.document.writeln('height=100-(document.body.clientHeight-document.images[0].height);');
    x.document.writeln('window.resizeTo(width,height);');
    }
    x.document.writeln('}</sc'+'ript>');
    x.document.write('<\/head><body style="margin:0px;" id="ex_popbody" scroll="no" onload="reSizeToImage();self.focus();">');
    x.document.write('<img id="ex_popimage" name="ex_popimage" src="'+oContent+'" alt="'+oTitle+'" onclick="window.close();" \/><\/body><\/html>');
    x.document.close();
    /*x.innerWidth=x.document.images["ex_popimage"].width;
    x.innerHeight=x.document.images["ex_popimage"].height;*/
    if( x.focus ) { x.focus(); }
    }
    // -->
    </script>

  8. symantix
    Member
    Posted 10 years ago #

    ringmaster, your post seemed very helpful, but when I went back to look at it later, half of it had changed to a bunch of code at the bottome which I don't think you intended to be there. Is this a forum error?

  9. symantix
    Member
    Posted 10 years ago #

    Nevermind...I figured out the conflict.
    I only had one other plugin enabled, the image browser. But when I disabled it, I was still having the problem.
    There were no other plugins enabled.
    Then this afternoon it occurred to me that I had the style manager installed. This is not a plugin that is controlled by the admin cp. You just have to insert some code into the index.php file. When I removed this code, I no longer had the problem in IE.
    So beware of this conflict. I should imagine that it will produce the same anomalies in IE for anyone who installs the style manager and exhibit on the same wordpress system.
    I don't really need the style manager anyway. I was only using it to browse through various skins that I had downloaded. I'm done with it now.
    Thanks again for the great gallery software. :)

  10. ringmaster
    Member
    Posted 10 years ago #

    Yep, that's an IE css-rendering problem. Stinking IE. I'm not sure exactly what CSS to use to fix it, but I know it's possible because my other styles don't do that. There is a similar problem with the WP Comment form sliding under the sidebar if it's that near to the page banner.
    I'm not sure why Exhibit would conflict with the style switcher. Are you using Alex's? I'm having no conflicts with it.
    To display preview images, check the Preview box next to one or more of the thumbnails on the edit page.
    In other news... a new version

  11. symantix
    Member
    Posted 10 years ago #

    RM: I know about checking the "preview" option by each image, and yes, that does put them on the front page. But, by mere inspection, I thought I saw what looked to me like, not small previews, but thumbnails, on the front page of other websites which use exhibit.
    Like on the page that you linked to http://www.vexme.com/ I guess those are previews there on the second post, but they have a little bit of padding between each one, whereas if I choose multiple previews, they are butt up against one another, which doesn't look that great. Is it because you've chosen to have your previews be smaller? Or do you have a white border on them maybe? It just looks nicer.

  12. ringmaster
    Member
    Posted 10 years ago #

    Oh. That. I have customized the exhibit CSS to put padding around the preview images and to shrink them a little.
    My code looks like this:
    .ex_thumb_preview {
    padding: 3px;
    border:1px solid #cccccc;
    margin:3px;
    display:block;
    font-size:xx-small;
    }
    .ex_thumb_preview a {
    /*display: block;*/
    }
    .ex_thumb_preview img {
    width: 50px;
    margin-right:3px;
    }
    .ex_preview_prompt {
    display:block;
    float:right;
    }

    The new version lets you change the class of the div that holds the preview images on a per-post basis, which is how the first post on VexMe looks different from the above code.

  13. symantix
    Member
    Posted 10 years ago #

    Ah ;) I see that in the new version, which I just installed. You're some kind of killer developer. Great job.

  14. symantix
    Member
    Posted 10 years ago #

    Is there any workaround to this wrapping issue in IE?

  15. Anonymous
    Unregistered
    Posted 9 years ago #

    in order to prevent conflict between Exhibit and Textile2, I added this line in function textile() just in first lines of the function:
    $text = preg_replace_callback('|<!--(.*)-->|iU', create_function('$match', 'return "";'), $text);

  16. Anonymous
    Unregistered
    Posted 9 years ago #

    sorry, posted html wasn't properly encoded, the code is:
    $text = preg_replace_callback('|<!--(.*)-->|iU', create_function('$match', 'return "";'), $text);

  17. Anonymous
    Unregistered
    Posted 9 years ago #

    damn it, how am I supposed to write this regexp?
    '| < ! - - ( . * ) - - > | i U'
    just remove the whitespaces!

Topic Closed

This topic has been closed to new replies.

About this Topic