Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Forum: Plugins
    In reply to: eshop checkout error
    Thread Starter lewisdonovan

    (@lewisdonovan)

    Hey esmi, my bad. In fairness they were two separate errors, they just happened to be fixed by the same piece of code.

    Forum: Plugins
    In reply to: eshop checkout error
    Thread Starter lewisdonovan

    (@lewisdonovan)

    Yeah I agree, wouldn’t be too difficult to just have a text area to paste the path into on the back-end.

    Forum: Plugins
    In reply to: eshop checkout error
    Thread Starter lewisdonovan

    (@lewisdonovan)

    If you don’t know your webroot path, paste the following into a file called info.php:

    <?php
    
    // Show all information, defaults to INFO_ALL
    phpinfo();
    
    ?>

    FTP this file to your site and navigate to it in your browser (http://www.example.com/info.php). search for ‘_SERVER[“DOCUMENT_ROOT”]’ and next to that you will see the path to the root of your site.

    Forum: Plugins
    In reply to: eshop checkout error
    Thread Starter lewisdonovan

    (@lewisdonovan)

    I had many problems after moving my site and it looks like they were almost all session-related. The site wasn’t storing cookies properly. I’ve got mine working normally now with the following fix:

    I added the following to the top of eshop-widget.php, right under the first <?php tag

    session_save_path('WEBROOT PATH/cgi-bin/tmp');
    session_start();

    Obviously you need to replace WEBROOT PATH with your full site root (for example: /home/fhlinux/example.com/user/htdocs/cgi-bin/tmp). You can replace ‘cgi-bin/tmp’ with whatever directory you want to store the session cookies in. Make sure this directory has CHMOD permissions set to 750.

    The reason this was put in eshop-widget.php is because this file is loaded on every single shop page, this ensures that the session instruction is also loaded on every single shop page.

    Hope this helps.

    Forum: Plugins
    In reply to: eshop checkout error
    Thread Starter lewisdonovan

    (@lewisdonovan)

    Hi, thanks for such a quick response. It’s working now. I had to re-enter all the options (shipping, gateways etc) in the admin section, which I had already done, but then I had to deactivate then reactivate the plugin. Not a full uninstall, just a regular deactivate then reactivate the plugin.

    The only other problem I’ve got left after the move is that the images used on the product pages etc are no longer showing. I’ve put it in a separate thread HERE.

    Thanks again for the quick response.

    Thread Starter lewisdonovan

    (@lewisdonovan)

    I’ve updated the allowedSites in timthumb.php to allow images from the old server and that is working for now but obviously I’d prefer for the code to function properly.

    Thread Starter lewisdonovan

    (@lewisdonovan)

    Lol, well we want to give them free tickets to an event we’re doing this summer. Can’t think how else to do it. I don’t mean like a pop-up message but maybe just divert them to a page that explains that they’ve won the tickets and how to claim them etc.

    Haha, ignore this. I’ve fixed it. Thanks anyway dude.

    If anyone else has the same problem, there is a workaround below…

    In ‘jquery.colorbox-min.js’, edit the line:
    c(this).data(q,f).addClass("cboxElement");

    so it looks like:
    c(this).data(q,f).addClass(" ");

    and in your theme template, manually change the class of your thumbnail or image to include the “cboxElement” class.

    For me, the edit was like so…

    From:
    <a class="thumbnail" href="<?php echo $thumbnail[0]; ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('template-p'); ?></a>

    To:
    <a class="thumbnail cboxElement" href="<?php echo $thumbnail[0]; ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('template-p'); ?></a>

    Cheers

    Don’t know if this helps but, as far as I can make out, there’s an if statement in the ‘jquery.colorbox-min.js’ file that gives certain links the “cboxElement” class under a certain condition.

    The links carry this class and I can’t figure out how to fix it. I’m fairly useless with Java and don’t want to alter the code in case I stop the thumbnail images from loading in a colorbox as well.

    The java is below:

    if(a.rel!=="nofollow"){g= c(".cboxElement").filter(function(){return(c(this).data(q).rel||this.rel)===a.rel});

    The site is still in development and I don’t want to put the link up just yet. Could you email me (lewisdonovan@gmail.com) and I’ll reply with the link.

    Thanks

    Hi, I’m using colorbox in a new wordpress site I’m building and it’s working fine except for one thing.

    In my portfolio pages I have thumbnails that expand into colorboxes and work fine, but the permalinks to each actual post (the post title and the ‘Read more..’ links) open the relevant post as an iframe in a colorbox. Obviously this is not the desired effect, I need them to link through to the post normally.

    The structure for this from the template file is below:

    <div class="portfolio-item-wrapper">
    
                    	<div class="portfolio-item">
    
                        	<a class="thumbnail" href="<?php echo $thumbnail[0]; ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('template-p'); ?></a>
    
                            <br class="clearer" />
    
                    	</div>
    
                    </div>
    
                    <div class="portfolio-item-wrapper right-most">
    
                    	<div class="portfolio-item">
    
                        	<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
    
                            <br />
    
                            <?php the_excerpt(); ?>
    
                            <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">Read More &raquo;</a>
    
                            <br class="clearer" />
    
                    	</div>
    
                    </div>
Viewing 11 replies - 1 through 11 (of 11 total)