Page 1 of 1
CBOX in Serendipity (solved)
Posted: Sat Aug 22, 2009 7:41 pm
by Alterios
I am using Serendipity as my blog but i would like to use CBOX instead of the Shoutbox plugin. I have manually scoured the php files and can not find where I would add it to the page. I am ignorant when it comes to writing php but I can read most of it. I am not so concerned if it is actually in the sidebar, I can put it somewhere else on the page if I need to. I just need help getting the code into the page so it shows up. I have tried to put into the HTML Nugget plugin but it just shows the code instead of the CBOX. The code provided by CBOX is:
Code: Select all
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=473127&boxtag=5fkrwm&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=473127&boxtag=5fkrwm&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX -->
Thanks for the help.
Re: CBOX in Serendipity
Posted: Sat Aug 22, 2009 7:51 pm
by Don Chambers
Use the HTML nugget plugin... just make sure you uncheck the option for "perform markup transformations".
Re: CBOX in Serendipity
Posted: Sat Aug 22, 2009 8:21 pm
by Alterios
I do and this is all I get....

Re: CBOX in Serendipity
Posted: Sat Aug 22, 2009 8:25 pm
by Don Chambers
Can you post a URL? Send via PM if you do not want to publically display it.
Re: CBOX in Serendipity
Posted: Sat Aug 22, 2009 9:04 pm
by Don Chambers
Your code is being escaped... this is what I see when I look at the page output:
Code: Select all
<!-- BEGIN CBOX - www.cbox.ws - v001 --><br /><div id="cboxdiv" style="text-align: center; line-height: 0"><br /><div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=473127&boxtag=5fkrwm&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe></div><br /><div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=473127&boxtag=5fkrwm&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe></div><br /></div><br /><!-- END CBOX -->
This is what you said to me in your PM (I have removed the links so they are not publically viewable):
[link removed]/index.php is the link to the page. If you make it [link removed]/index.html it works but that page is not consistently displayed across the site as you surf. I downloaded the entire site in Httack and it created all the HTML files. I hard coded the working CBOX into the index.html. unfortunately the formatting is incorrect in the HTML files and as I said before, the HTML files are not consistently displayed across the site as you surf so I can not just use them.
I have never used
http://www.httrack.com/, but it appears to be a website mirror.... this is not going to work for serendipity. Is the site you tried to mirror a serendipity powered site? If so, you might ask the owner of that site if you can have a copy of their template.
If it is not a serendipity site, you could also port that site into a real serendipity template...
ALso, you are using serendipity 1.3. You might want to consider upgrading to 1.4.1, which is the latest stable release.
Re: CBOX in Serendipity
Posted: Sat Aug 22, 2009 10:08 pm
by Alterios
I fixed it. When you get the CBOX snippet from your CBOX account you have to check the box to the upper right of the codebox on CBOX that says "Using Xanga". It will change the HTML to Javascript. Once you do that you can copy the code into the HTML Nugget.
