I've installed it fine for one version but multiple sideboxes seem to be pulling the same data from the first. i copied and renamed the additional files from the first one.
are there any additional changes that need to be done?
I've installed it fine for one version but multiple sideboxes seem to be pulling the same data from the first. i copied and renamed the additional files from the first one.
are there any additional changes that need to be done?
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Quick question Kuroi,
I want to use this your mod to create sideboxes that pull in WordPress content. I found this link http://www.corvidworks.com/articles/...on-other-pages which explains how to do it, and it seems fairly straight forward. Where I need a nudge in the right direction is where in your contribution would I place this code... Would you be so kind as to take a look at what I plan to do and grade my homework as it were?? (Pretty please??!)
I was planning on making the changes to the includes/languages/english/html_includes/define_editable_sidebox1_content.php as follows:
Is this the right way to execute this?? or would I add this code elsewhere in your module??PHP Code:<p>This text is located in a file in your english/html_includes/ folder</code></p>
<p>It is intended to be edited via the Define Pages Editor in Admin > Tools, though you can also edit it directly if you prefer.</p>
<p>And don't forget to always backup the files in this folder.</p>
<?php
// Include Wordpress
define('WP_USE_THEMES', false);
require('./blog/wp-load.php');
query_posts('showposts=3');
?>
<?php while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
<?php endwhile; ?>
Thanks for a fantastic module.
I have it installed and am using it for my Payment Methods.
I found it easier to upload the code for the image to
/includes/languages/english/html_includes/
than using the define page editor (for a simple fact, the editor leaves unecessary white spaces at the bottom and top).
Thank-you once again.
Kind Regards
Apologies DivaVocals - only just seen your question. Old joke I know ... but if I was doing this I wouldn't start from here! I'd start from the blank sidebox, which was specifically designed to make it easier to add your own content to a sidebox skeleteon. This mod is an extension to blank sidebox to put in place extra code to allow content to be added from the Admin, which for your purposes is unwanted baggage. No matter though, it should work anyway.
The way that you have done this should work, but doesn't really respect the separation between preparing data and displayiong it that is fairly well observed in Zen Cart's sideboxes. They normally load up the content into a variable called (I think) $content in a module, which is then echoed to the browser output in the sidebox template.
That said, if what you've done is working for you, I wouldn't spend time reworking it. I won't tell![]()
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
I appreciate the response.. and you sir are right.. I ended up (with the help of a friend who's MUCH techier than I) doing exactly what you suggest.. So now I have 6 sideboxes which pull in WordPress content independent of any WordPress embedding solution I may use.. (In this case I will be using Numinix's WordPress embedding solution)
DivaVocals,
Would you mind sharing your solution?
I know there are many of us that would love to have WordPress in a sidebox.
Thanks!
Doug