Need to add PHP code for show in content of articles

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
nicko107
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Oct 17, 2005 12:37 pm
Location: Spain
Contact:

Need to add PHP code for show in content of articles

Post by nicko107 » Thu Oct 30, 2008 12:13 pm

Hi,

I need to add PHP code to the content of articles, only for show the code, not for execute it
is the same that when post code in the forum:

Code: Select all

<?php echo "abcde 12345"; ?>
I try it with "Content - Code Hightlighter (GeSHi)" plugin, and changing the blockquote too, but I can´t obtain something similar

regards
http://www.oscatalogo.com - osCommerce Tutorials in spanish.

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: Need to add PHP code for show in content of articles

Post by dam-man » Fri Oct 31, 2008 7:26 am

Mod Note: Topic moved to Extentions.

You should install plugins like Jumi or something.
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

nicko107
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Oct 17, 2005 12:37 pm
Location: Spain
Contact:

Re: Need to add PHP code for show in content of articles

Post by nicko107 » Fri Oct 31, 2008 7:13 pm

thank for the repply

sorry if I dont explain well, my english is bad

I mean display code in a div like here in the forum, I need to create a button in the joomla article editor like the "Code" button here in the editor post of the forum, or other method for display a div with the code in the content of the article

its for when I need to display code in a div in tutorials, and visitors of the site will copy and paste it
the code will display in a div like this:

Code: Select all

code for display
http://www.oscatalogo.com - osCommerce Tutorials in spanish.


Locked

Return to “Extensions for Joomla! 1.5”