Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »General Web Design Forum

Notices

General Web Design Forum Discuss General Web Design Issues


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-09-2007, 10:57 AM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,616
Default Posting PHP code in blogger

Never tried it before but everytime I post php code in blogger it reads it as code and not as a post.

On a forum you can put in in BB php tags like this...

PHP Code:
PHP code here as text not code 
Anyone know how to do it in blogger?
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote

  #2 (permalink)  
Old 20-09-2007, 06:19 PM
flick's Avatar
official g33k ®
 
Join Date: Aug 2007
Location: Manchester
Gender: Female
Posts: 2,240
Default

haha, to figure that out i had to find someone that was trying to get code to execute in order to find out what they did that meant it wouldn't execute!
any way:

<?php
echo "aaargh!";
?>

seems that is the only way around it - but i havent been looking for very long :D

here it is in blogger, not executing:
RedesignMy.com
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 20-09-2007, 06:51 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,616
Default

Nope doesn't work thanks any way
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 20-09-2007, 06:56 PM
flick's Avatar
official g33k ®
 
Join Date: Aug 2007
Location: Manchester
Gender: Female
Posts: 2,240
Default

but i just tried it in mine and it worked :S
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 20-09-2007, 06:57 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,616
Default

Ill send you the code and you can try it
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 20-09-2007, 07:04 PM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Leeds, England
Gender: Male
Posts: 7,577
Default

I convert everything to html entities, as Flick did.

<?php
echo "Hello World!";
?>
__________________
CSS Wizardry | “Yeah, do maggots get drunk when they bury alcoholics?”
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 20-09-2007, 07:07 PM
flick's Avatar
official g33k ®
 
Join Date: Aug 2007
Location: Manchester
Gender: Female
Posts: 2,240
Default

im trying now with the code you posted...
__________________


Last edited by flick; 20-09-2007 at 07:09 PM. Reason: *sp
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 20-09-2007, 07:12 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,616
Default

Quote:
Originally Posted by PR Design View Post
I convert everything to html entities, as Flick did.

<?php
echo "Hello World!";
?>
I don't think you understand, that works fine but I don't want to post Hello World, I want to post aload of PHP text for people to read but the forum and the blog will use that code and do the function.



I need to wrap it in php tags in the forum to stop the function....

PHP Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 0) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
<
div style="padding:6px 0px 0px 0px;margin-top:4px;">

<
table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<
tr>
<
td class="thead" align="left">Text You Want to show up in Ad Here</td>
</
tr>
<
tr>
<
td class="alt1" align="center">

Adsense Code here
</td>
</
tr>
</
table>

</
div>


</if> 
I need the same tags in blogger.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 20-09-2007, 07:18 PM
flick's Avatar
official g33k ®
 
Join Date: Aug 2007
Location: Manchester
Gender: Female
Posts: 2,240
Default

good grief, blogger need to think of a better way to do that:
RedesignMy.com Blog
basically replace every < with <
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #10 (permalink)  
Old 20-09-2007, 07:19 PM
flick's Avatar
official g33k ®
 
Join Date: Aug 2007
Location: Manchester
Gender: Female
Posts: 2,240
Default

is that what you mean?
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tag Cloud for Blogger Toon General Web Design Forum 0 09-01-2008 04:29 PM
What kind of blogger are you? Toon Off Topic 2 16-10-2007 10:36 AM
$20 iTunes Gift Card for posting links to tutorials Jeff Graphic Design Competitions 3 12-10-2007 11:56 PM
Soz for not posting, but new site... deviouslydigital Graphic Design and Web Design Help 18 28-09-2007 07:59 PM
Blogger Videos Toon General Web Design Forum 1 19-02-2007 12:22 PM


All times are GMT. The time now is 04:24 PM.



Advertise Graphic Design

The Graphics Forum Web Design Stuff Free Decent Downloads