CBOX in Serendipity (solved)

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Alterios
Posts: 3
Joined: Sat Aug 22, 2009 7:29 pm

CBOX in Serendipity (solved)

Post 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.
Last edited by Alterios on Sat Aug 22, 2009 10:08 pm, edited 1 time in total.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: CBOX in Serendipity

Post by Don Chambers »

Use the HTML nugget plugin... just make sure you uncheck the option for "perform markup transformations".
=Don=
Alterios
Posts: 3
Joined: Sat Aug 22, 2009 7:29 pm

Re: CBOX in Serendipity

Post by Alterios »

I do and this is all I get....
Image
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: CBOX in Serendipity

Post by Don Chambers »

Can you post a URL? Send via PM if you do not want to publically display it.
=Don=
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: CBOX in Serendipity

Post 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&amp;boxtag=5fkrwm&amp;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&amp;boxtag=5fkrwm&amp;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.
=Don=
Alterios
Posts: 3
Joined: Sat Aug 22, 2009 7:29 pm

Re: CBOX in Serendipity

Post 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.
Image
Post Reply