Hello forum members I need some help on some custom page coding integration I want to be able to have both html and php, but when I add my html with echo ' Html here '; it puts everything I did in the top corner I'm not sure if it's a CSS problem or my coding. I'm trying to add a whole bunch of PayPal donation buttons, also this is a custom page, but It's linked into index.php
I assume it's a css 'problem'. Basically you can't just 'echo' the info at the beginning of the web-page file and expect it to know where to go. Inside each <div ***> you will put the appropriate
<?php
echo 'myhtmlhere' . etc . etc ;
?>
^^ Of course if you're already in a php block don't put the extra <?php ?> 's.
Or, I'm not sure what you mean exactly. If you upload the page's source (..take out any 'sensitive' parts as needed ofc) maybe to something like pastebin or even here using the
[ code ]
[ /code ] tags. (take out the extra spaces)
I'll look at it.
Donatemc.php
Code:
<?php
if (!defined('SMF'))
die('Hack Attempt...');
function DonatemcMain()
{
global $context, $scripturl, $txt, $smcFunc;
loadTemplate('Donatemc');
$context['page_title'] = $txt['donatemc_PageTitle'];
$context['page_title_html_safe'] = $smcFunc['htmlspecialchars'](un_htmlspecialchars($context['page_title']));
$context['linktree'][] = array(
'url' => $scripturl. '?action=donatemc',
'name' => 'Donation (Minecraft)',
);
$context['donatemc_Head'] = 'Donation (Minecraft)';
$context['donatemc_Body'] = 'Hello World!';
}
echo '
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
';
?>
.content ul {
width: 100%;
}
.content ul li {
width: 50%;
display: inline-block;
float: left;
}
Thank you @Splak, and thank you @abuckau907
I noticed when I put in the CSS code it messed up the layout and moved everything around so I took the CSS code out and it looks perfect just one thing how do I get rid of the bullet next to everything?
Oh well I'm sorry.
Than only add this to your css code: