FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Need help integrating html code into php





toughtrio
I use phpnuke and need to add the following code in between the <?php and ?> tags. THe following code should be incorporated in such a way that it treats it like normal html code by using an echo or any other statement. I dont know how to use it, so if anyone could help, I WOULD REALLY APPRECIATE THAT.

This is the first code.

Code:
<script type='text/javascript'>
<!--

//default banner house ad url
clicksor_default_url = '';

clicksor_layer_border_color = '#000033';
clicksor_layer_ad_bg = '#000033';
clicksor_layer_ad_link_color = '#0000CC';
clicksor_layer_ad_text_color = '#3333FF';
clicksor_text_link_bg = '';
clicksor_text_link_color = '#000FFF';

clicksor_enable_text_link = true;

//default pop-under house ad url
durl = '';
clicksor_enable_pop = true;
clicksor_frequencyCap = 0;

clicksor_banner_image_banner = true;
clicksor_banner_border = '#000033';
clicksor_banner_ad_bg = '#000033';
clicksor_banner_link_color = '#0000CC';
clicksor_banner_text_color = '#3333FF';
//-->
</script>
<script type='text/javascript' src='http://ads.clicksor.com/showAd.php?pid=60197&sid=82610&adtype=1'></script>               

<noscript><a href='http://www.clicksor.com'>behavioral targeting</a></noscript>


and this one also if anyone is willing to..

Code:
<!-- Begin: AdBrite -->
<style type="text/css">
.adHeadline {font: bold 10pt Arial; text-decoration: underline; color: blue;}
.adText {font: normal 10pt Arial; text-decoration: none; color: black;}
</style>
<script type="text/javascript" src="http://4.adbrite.com/mb/text_group.php?sid=113016&amp;br=1&amp;dk=6465627420636f6e736f6c69646174696f6e5f31305f315f776562"></script>
<p />
<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=113016&amp;afsid=1">Your Ad Here</a></div>
<!-- End: AdBrite -->
BlackSkad
If I understand you well, you have such a situation:
Code:
<?php
echo "Do some php-stuff;
//you want your html here
echo "Do some more php-stuff";
?>

You could just break the code in two <?php ... ?> blocks, with the html between it.
Code:
<?php
echo "Do some php-stuff";
?>
<!-- put your html here -->
<?php
echo "Do some more php-stuff";
?>


I hope this helped you.
toughtrio
but man this is not what i want. This is a fuction in phpnuke known as function foot() and is called from every theme's footer file. Now i dont want to create a new fuction and call it from everytheme I use, since each theme has a different setting, and therefore different borders for everything. Thats y i need to incorporate it inside the php tag itself, so please suggest a way to put it up with an echo tag or something like that, and IT SHOULD ALSO WORK, CUZ I TRIED WITH MANY DIFFERENT COMBINATIONS OF THE ECHO TAG AND IT DOESNOT SEEM TO SHOWUP.

Any help is greatly appreciated.

Warm Regards,
Stubru Freak
toughtrio wrote:
but man this is not what i want. This is a fuction in phpnuke known as function foot() and is called from every theme's footer file. Now i dont want to create a new fuction and call it from everytheme I use, since each theme has a different setting, and therefore different borders for everything. Thats y i need to incorporate it inside the php tag itself, so please suggest a way to put it up with an echo tag or something like that, and IT SHOULD ALSO WORK, CUZ I TRIED WITH MANY DIFFERENT COMBINATIONS OF THE ECHO TAG AND IT DOESNOT SEEM TO SHOWUP.

Any help is greatly appreciated.

Warm Regards,


What's the problem with:

Code:
function foot(){
?>

HTML here

<?php
}
toughtrio
but man u dont understand, I need to put the code inside the foot() fuction, so that whenver it is called, the html is also executed.

Please HELP!!!!!!!!!!!!

Warm Regards,
BlackSkad
In the situation we propose, the html is outputted to screen every time footer is called, which, imho, is exactly what you want. If this is not what you want, you need to provide more information (perhaps the code of footer or something)

I don't know how phpNuke works, so I can't help you much more than this.
toughtrio
THANX MAN IT WORKED GREAT.
YOU DA BEST!!!
Related topics
Speed? Error? Configure your HTML Code Now
Inserting data to MYSQL with a PHP script
problem with html code for video
BEGINNER NEEDS HELP WITH FINDING A HTML CODE!!!!!!!!!!!!!!!!
Why is this happening ??
new to php: can I use php INSIDE html?
How to change extension php to html but the php script still
Need Help with this html code
A quick PHP Question! You know the answer! Answer ASAP .
Free Live help for your website
making a site but I need help I am new to php and Runy scrip
Add HTML signatures with images to ur email...GUIDE
need html code tht will randomly change a pic/text plz help
Get html code from an extrenal url
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.