Re: Admin-Editable Sidebox - Support Thread
Quote:
Originally Posted by
formadmirer
Anyone needing the same thing (sidebox on non-ssl pages only) try this, it worked for me.
in
/includes/modules/sideboxes/sideboxname.php
(where 'sideboxname' is the name of your sidebox)
just replace this:
// test if box should display
$show_sideboxname = true;
with:
// show only on non-secure pages
switch ($request_type) {
case ('SSL'):
$show_sideboxname = false;
break;
case ('NONSSL'):
$show_sideboxname = true;
break;
}
The box will show on non-SSL pages only.
I am having the same issues on my site (www.AllClaveParts.com) with the editable sideboxes showing up on secure pages.
I use the editable side box in two places and it has been really great.
When the problem was brought to my attention by my host, I found this thread and followed your instructions copying and pasting.
Both boxes have disappeared. Am I missing something?
Thanks to everyone for all of the great contributions and support
Wally
Re: Admin-Editable Sidebox - Support Thread
After the IF test for secure ... is there an IF surrounding the rest of the code in the sidebox based on the results? :unsure:
Re: Admin-Editable Sidebox - Support Thread
Hi,
ESB is correctly installed but doesn't show in Admin/tools/edit pages
Any clue ?
Thanks..
Re: Admin-Editable Sidebox - Support Thread
Quote:
Originally Posted by
Ajeh
After the IF test for secure ... is there an IF surrounding the rest of the code in the sidebox based on the results? :unsure:
As it turned out, it was my stupidity. I did not change the names inside of the statement I copied and pasted, to reflect the names of my sideboxes.
My host (camelot-hosting) quickly found the omission and told me how to fix it. All done and working perfectly.
Thanks to everyone
Wally:smile:
Re: Admin-Editable Sidebox - Support Thread
Thanks for the update of what the problem was that was causing this issue ... :smile:
Re: Admin-Editable Sidebox - Support Thread
I have installed but can't edit from the Define Pages Editor.
It says:
Error: I can not write to this file. Please set the right user permissions on: /home/box/domains/natureinabox.com.my/public_html/includes/languages/english/html_includes/define_editable_sidebox_content.php
What should I do to correct it?
Re: Admin-Editable Sidebox - Support Thread
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?
Re: Admin-Editable Sidebox - Support Thread
Quote:
Originally Posted by
cocolala
I have installed but can't edit from the Define Pages Editor.
It says:
Error: I can not write to this file. Please set the right user permissions on: /home/box/domains/natureinabox.com.my/public_html/includes/languages/english/html_includes/define_editable_sidebox_content.php
What should I do to correct it?
You need to make the file writeable. You web hosting account should have a file manage in its control panel that would allow you to do this. The tool you use to FTP the files into your hosting account may also allow this.
Re: Admin-Editable Sidebox - Support Thread
Quote:
Originally Posted by
chanrkl
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?
It's noty enough to change the filenames. You also need to change the places inside the files where there the filename are used.
Re: Admin-Editable Sidebox - Support Thread
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??!):smile:
I was planning on making the changes to the includes/languages/english/html_includes/define_editable_sidebox1_content.php as follows:
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; ?>
Is this the right way to execute this?? or would I add this code elsewhere in your module??