2 of 4
2
Markdown and Smarty Pants
Posted: 05 October 2006 01:26 AM   [ Ignore ]   [ # 19 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

How are you using the formatting?  As a custom field’s formatting or as tags in a template?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 05 October 2006 01:37 AM   [ Ignore ]   [ # 20 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Alright, try this one out.  I’ve switched around the includes to require_onces and maybe that will help.  Also make sure you have the most up to date plugins from http://expressionengine.com/downloads/detailslist/.  Finally I had both markdown and smarty added as formatting options under the edit field > edit formatting link.  I will debug without this and see if that’s what’s causing your problem.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 05 October 2006 06:18 AM   [ Ignore ]   [ # 21 ]  
Research Assistant
RankRankRank
Total Posts:  547
Joined  01-05-2005

hi mark, seems to be working now cheers smile

the only thing I hadn’t done before was also add smarty as a formatting option.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 05 October 2006 08:20 AM   [ Ignore ]   [ # 22 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Ahh, I see, well I’ve tried it both with/without Markdown and Smarty as formatting options and it worked for me.  Let me know if you’re still finding otherwise.  Thanks for the debugging help.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 17 October 2006 04:02 AM   [ Ignore ]   [ # 23 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  758
Joined  09-27-2004

deleted

Profile
 
 
Posted: 10 November 2006 02:54 AM   [ Ignore ]   [ # 24 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

From what i understand, i should add Markdown, Smartypants and Markypants, and then an extra field formatting option would appear.
I tried to do so, but nothing appears, and my plugin manager-page remains white ... (wich usually means there’s an error in a plugin ...)

Thanks.

Update: The error appears to be in MarkyPants ...

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 10 November 2006 06:23 AM   [ Ignore ]   [ # 25 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

The only thing I can think of that would be erring in the file are these two lines:

require_once(“pi.markdown.php”);
require_once(“pi.smarty_pants.php”);

Are your plugins named like above?  Are they both also in the plugins folder?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 10 November 2006 06:35 AM   [ Ignore ]   [ # 26 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Markdown is an extension, the rest are pi’s ...

Is there a complete package online, to get MarkyPants going?

Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 10 November 2006 06:39 AM   [ Ignore ]   [ # 27 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

You’ll want to get them off the plugin list from:

http://expressionengine.com/downloads/detailsmarkdown/
http://expressionengine.com/downloads/detailssmarty-pants/

Install both of those in your plugins folder and then install markypants and you should be good to go.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 10 November 2006 06:47 AM   [ Ignore ]   [ # 28 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Great. I’ll give it a shot later on today.
If i understood correctly it appears as a field type, and would have the same functionality as standard xhtml-type PLUS the markdown-thingy?

Thanks!

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 10 November 2006 06:50 AM   [ Ignore ]   [ # 29 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

It actually only has the markdown functionality.  Which shouldn’t be a problem because markdown replicates all the necessary XHTML formatting anyway.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 10 November 2006 07:03 AM   [ Ignore ]   [ # 30 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

What does the SmartyPants do then?
I thought it took care of the curly quotes etc.

Thanks anyway.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 10 November 2006 07:07 AM   [ Ignore ]   [ # 31 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Yup Smarty does the quotes and markdown does the xhtml.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 13 November 2006 02:03 AM   [ Ignore ]   [ # 32 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Just to get things straight: how / where should i tell the system to use markypants?
I can click the “edit list” with field formatting options, but there’s no ability to add a type ...

Thanks.

(Btw, the 3 names in the pi-manager are all “MarkyPants”, their URLS act as normal ... )

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 13 November 2006 01:18 PM   [ Ignore ]   [ # 33 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

when you click ‘edit list’ markypants should show up there.  i would try deleting all three of the plugins and check the pi-manager.  do they still appear?  once they no longer show up in the pi-manager add them again.  It sounds like you have some legacy code in there somewhere.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 14 November 2006 02:16 AM   [ Ignore ]   [ # 34 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006
Mark Huot - 13 November 2006 01:18 PM

when you click ‘edit list’ markypants should show up there.

Does this mean when i alter xhtml it changes everywhere (like a standard profile), or is this a ‘per field’ option?

Mark Huot - 13 November 2006 01:18 PM

i would try deleting all three of the plugins and check the pi-manager.  do they still appear?  once they no longer show up in the pi-manager add them again.  It sounds like you have some legacy code in there somewhere.

It works now, i tried your option, but then smartypants and markypants were both named markypants.
I deleted those two, uploaded smartypants, refreshed the pi-manager, and then uploaded markypants.
Now it looks as it should.

About the MarkyPants configuration: should i only set MarkyPants to yes, or e.g. leave auto < br / > to yes ... ?

Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 14 November 2006 09:10 PM   [ Ignore ]   [ # 35 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006
G - B - O - 14 November 2006 02:16 AM

Does this mean when i alter xhtml it changes everywhere (like a standard profile), or is this a ‘per field’ option?

If you’re talking about in the “formatting” list then, when you set markypants to yes it should just show up as an option, alongside xhtml, completely independent.

G - B - O - 14 November 2006 02:16 AM

About the MarkyPants configuration: should i only set MarkyPants to yes, or e.g. leave auto < br / > to yes ... ?

you can leave br and xhtml to yes if you still want them to show up as available formatting options, usually i’ll turn xhtml off in favor of markypants.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 14 November 2006 09:10 PM   [ Ignore ]   [ # 36 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

let me clarify

completely independent

that meant that it is on a per-field basis.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
   
2 of 4
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64880 Total Logged-in Users: 57
Total Topics: 81806 Total Anonymous Users: 45
Total Replies: 439767 Total Guests: 305
Total Posts: 521573    
Members ( View Memberlist )
Newest Members:  justingpticketjendicottdxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstyles