Forum Replies Created

Viewing 15 replies - 436 through 450 (of 476 total)
  • Forum: Plugins
    In reply to: [WebLibrarian] CSS Files
    Plugin Author Robert Heller

    (@robertpheller)

    What are you using for a web browser? I believe there is a problem with IE9 and IE10 — appearently these browser don’t understand or implement ‘display: table*;’ CSS codes. There is not much I can do about that — I don’t have access to machines with any version of IE on them, since all of my machines run Linux (CentOS 5), so I use Firefox.

    The short codes use span and div tags, using class names starting with “weblib-“:

    .weblib-item-long {
      display: table;
    }
    
    .weblib-item-row {
      display: table-row;
      padding: 8px 0px;
      width: 100%;
    }
    
    .weblib-item-left {
      width: 90%;
    }
    
    .weblib-item-right {
    }
    
    .weblib-item-center-head {
      font-weight: bold;
      text-align: center;
      display: table-cell;
      padding: 2px;
    }
    
    .weblib-item-keyword-list {
      text-align: center;
      display: table-cell;
      padding: 2px;
    }
    
    .weblib-item-left-head {
      font-weight: bold;
      text-align: right;
      display: table-cell;
      padding: 2px;
    }
    
    .weblib-item-left-content {
      text-align: left;
      display: table-cell;
      padding: 2px;
    }
    
    .weblib-item-author {
      text-decoration: underline;
    }
    
    .weblib-item-title {
      font-weight: bold;
    }
    
    .weblib-item-content-block {
      display: table;
    }
    
    .weblib-item-content-element {
      display: table-row;
    }
    
    .weblib-item-element {
      display: table-cell;
      vertical-align: top;
      padding: 2px;
    }
    
    .weblib-item-info {
      width: 100%;
    }
    
    .weblib-item-index {
      font-size: 150%;
      padding: 0px 4px;
      text-align: left;
      width: 5%;
    }
    
    .weblib-item-brief {
    }
    
    .weblib-item-holdbutton {
    }
    
    .weblib-item-thumb {
      padding: 0px 4px;
      width: 48px;
      height: 72px;
    }

    The styling (by default) organizes things as a table. Rather than using table, tr, td, and th tags to implement the display as a table I used spans and divs, with dislay table and table element styles. This way if someone wanted a *different* display arangement, they would not have to rewrite the short codes, but could alter the style sheet to imlement the different display arangement. Everything works just fine with Firefox, but appearently IE9 and IE10 are broken…

    Plugin Author Robert Heller

    (@robertpheller)

    This plugin is a ‘split off’ of the GAN plugin and it expects the GAN plugin to be installed and when you inserts Link and Product ads into the GAN pluging the Merchant table gets populated. This plugin is somewhat depreciated — it used to be part of GAN, but for various reasons I split it off and ended up implementing a a different product ad mechanism in the GAN plug in and have pretty much abandoned this plugin.

    Forum: Plugins
    In reply to: [WebLibrarian] Multisite
    Plugin Author Robert Heller

    (@robertpheller)

    I don’t think that is possible with the code as it is and I suspect it would be a non-trivial change (and probably not wanted for most people).

    Why do you want to do this?

    If you are using the database for multiple libraries and want to implement some sort of inter-library loan system, you might be better off with Evergreen (Open-ILS), which is designed for that.

    Forum: Plugins
    In reply to: [WebLibrarian] CVS File
    Plugin Author Robert Heller

    (@robertpheller)

    The column headers have to match the defined columns used by the database. Can you upload your .csv file somewhere so I can have a look at it?

    Plugin Author Robert Heller

    (@robertpheller)

    It does not at present. It *can* handle E-Mailed Links. You need to have a Linux E-Mail account *on the same machine (server)* as the web/database server. A Tcl script (which I guess could be ported to Perl, etc.) is included (you need Tcl and mysqltcl installed on the server). This script can be run from a Procmail recipe — I in fact do this with my company web site (I have my own virtual server that is also my mail server).

    The main problem with doing this with FTP subscriptions is a matter of timing — there isn’t a good way for WordPress to know when the subscription data was uploaded.

    Of course the *best* option would be a HTTP POST delivery of the link data. (There are all sorts of security issues with this option though.)

    Thread Starter Robert Heller

    (@robertpheller)

    OK, I have found the problem. In getPageFile() (in gplusbadgehelper.php) there are two echo statements that should not be there. When I commented them out, the plugin works correctly. Here is the patched function:

    protected function getPageFile($url) {
                    // empty the html property (although it's probably empty anyway$
                    $html = '';
    
                    // get the data
                    $html = file_get_contents($url);
                    //echo htmlentities($html);
                    //echo "<br/>";
    
                    return $html;
            }
    Thread Starter Robert Heller

    (@robertpheller)

    OK, it appears that GplusBadge is totally borked. The older versions don’t work either. I even installed it another fairly ‘vanila’ site and it also spits out raw HTML. I’m going to disable the widget for now and wait for an update…

    Thread Starter Robert Heller

    (@robertpheller)

    I found the problem. I had a bug in my custom theme… It is fixed now.

    Thread Starter Robert Heller

    (@robertpheller)

    No, I am using the *builtin* Releated Links widget. The one that *comes* with WordPress as part of the core WordPress code. The one defined in wp-includes/default-widgets.php.

    Thread Starter Robert Heller

    (@robertpheller)

    So, is anyone home in HeadSpace2-land? Is HeadSpace2 a *dead* plugin. It seems like a very nice plugin, but maybe I should be looking for another plugin to manage my meta tags…

    Plugin Author Robert Heller

    (@robertpheller)

    (Actually, you’ll need to echo or print the results of shortcode methods).

    Plugin Author Robert Heller

    (@robertpheller)

    @pricerank: ‘What I meant about the template is the short code works inside posts, but if you want to use the plugin out side of a post or widget you need to call the program with a php.’

    Nothing is stopping you from using:

    <?php GAN_Widget::shortcode (array('orientation' => 'vertical',
                'maxads' => 4,
                'ifwidth' => '',
                'ifheight' => '',
                'target' => 'same',
                'merchid' => '')); ?>

    or

    <?php GAN_ImageWidget::shortcode (array(
                'orientation' => 'vertical',
                'maxads' => 4,
                'width' => 120,
                'height' => 60,
                'ifwidth' => '',
                'ifheight' => '',
                'target' => 'same',
                'merchid' => '')); ?>

    “Use the source, Luke”…

    Plugin Author Robert Heller

    (@robertpheller)

    @pricerank: ‘you might want to change the type of file required from GAN as it will only upload a TXT file. the CSV they offer does not upload!’

    Did you read the documentation? It is specificallu documented that only the TXT (Tab Separated Value) file can be uploaded.

    I am not sure what you mean by template.

    Plugin Author Robert Heller

    (@robertpheller)

    OK, 4.9.2 fixes this problem, which seems to relate to misbehaviour of MySQL / WP with table names with upper case letters on a MS-Windows server.

    Plugin Author Robert Heller

    (@robertpheller)

    I just released Version 4.9 of the plugin. This version *may* solve the problems with WIMP/WAMP servers or else it should display useful error messages that should help with debuging this problem. If you are using a WIMP or WAMP server and are having troubles, please upgrade and let me know if this version fixes the problem or if not, please post any MySQL error messages that show up.

Viewing 15 replies - 436 through 450 (of 476 total)