Recent Topics

Base80 Blog (and a little problem and a tip)

Started by on Aug 17, 2005 – Contents updated: Aug 17, 2005

Aug 17, 2005 03:42    

Hi I am the happy owner of a new blog. I tried some other engines starting with the blogger thing and later the WP engine and finally the b2e engine.
Everything went smoothly and with no pain.
My blog is in full evolution right now and not public yet. It is about 3d stuff but never mind that.
Here is the link to the blog.
http://www.base80.com/
Almost everything in b2e is as I would like it.

I have made a little change in the" _quicktags.toolbar.php" to acomodate my needs. It is a button that resises images to a max of 450 pixels. HEre is a picture of the button and the generated string.
http://www.base80.com/Images1/b2evo/Picture450button.jpg
Here is the code added to the _quicktags.toolbar.php


b2evoButtons[b2evoButtons.length] = new b2evoButton('b2evo_oli'
,'450px'
,'<a href="LINKJPEG" target="_blank"><img src="LINKJPEG" alt="ALT" title="TITLE" width="450"/></a>',''
,'n'
,'<?php echo T_('Insert picture [Alt-n]') ?>'
,-1
);


Now this is the first of more of these little adaptations to suit my needs. If they are worth a while I'll post them in the appropriate place on this board.

Now I just have one problem. I want to sell 3d models on my site and this involves adding a paypal button to the entry. But b2e does not accept them because they are buttons.
They look like this

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

	<input type="hidden" name="item_name" value="Camping Chair">
	<input type="hidden" name="item_number" value="9">
	<input type="hidden" name="amount" value="5">
	<input type="hidden" name="no_shipping" value="1">
....
	</form>


It is the code generated by paypall to make a Buy-Button, customized to suit a picture of the goods I sell.
I have to be able to include this code in a posting otherwise the whole blog becomes much less useful.
Does anybody have any advise on this?

Thanks for the reading.

Aug 17, 2005 15:06

It is possilble to add a form. Right now the html checker is probably rejecting what you enter. You have a couple of options. You could hack around on /conf/_formatting.php until it accepts your paypall button. You would have to add the form and input tags and get the attributes right. Or, right before you post the button, you could open up /conf/_formatting.php and change

$use_html_checker = 1;


to

$use_html_checker = 0;


Submit your post, then turn the html checker back on. You don't want to leave it off all the time, because people could post comments with any sort of code. That would be a security risk. If you're posting this button often then it might be worth your time to edit _formatting.php to accept the code that you use. I don't know exactly how you would need to go about that, but I know it can be done.

It would be nice if someone wrote a plugin that added a checkbox to the backoffice that said "Disable html checker for this post" so you could post any code without having to open the file and change that variable.

Aug 17, 2005 15:48

I don't think that is a solution for me. I would have to do this very often.

Could someone tell me if it is safe to alter the formating definitions to allow forms?

Would that look like this?

define('E_pre_content', 'form')


and something like this?

'form' = > A_attrs. ' action name value method input type width hight',


I have never done this before so the question is about the syntax and the words to include there

Nov 02, 2008 19:00

link in first post edited by whoo to reflect new url

Nov 03, 2008 19:59

I like your skin and your 3D stuff ;-)


Form is loading...

Open Source CMS – This forum is powered by b2evolution CMS, a complete engine for your website.