hcard and email encoding
Posted: 14 November 2006 08:29 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  54
Joined  10-05-2006

Hello,
How can I have ‘Automatically turn URLs and email addresses into links?’ set to YES, but avoid the javascript thing?

I have a page with a hcard (microformat) which displays fine in the browser but renders the javascript where there should be email on the vcf.

Thanks

Profile
 
 
Posted: 14 November 2006 09:17 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23521
Joined  05-20-2002

Hm- do you NEVER want emails encoded, or is it just on that template?  I was looking at the backend, I think switching:

var $encode_email        =  TRUE;


to FALSE would prevent all email encoding (core/core.template.php) but I’m not sure that’s what you really want to do.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 14 November 2006 02:25 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  54
Joined  10-05-2006

Just on that template would be nice.

Thanks for the info Robin.

Profile
 
 
Posted: 13 March 2008 08:45 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  292
Joined  02-03-2005

I just ran into this problem as well. I don’t want to turn off encoding entirely, just in this one particular template. Was there ever a solution to this?

 Signature 

Artificial Memory

Profile
 
 
Posted: 13 March 2008 08:52 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23521
Joined  05-20-2002

Not that I know of.  What tag are you using?  If it could be done via query and then a typography plugin, that would solve the problem.  And I’m poking around to see if other options exist.  Could probably turn it ‘off’ universally and then apply via a plugin in the templates at your discretion.  Bet that would be workable as well.  Haven’t spotted anything to sort of ‘subtract it’ when it is applied universally.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 13 March 2008 09:01 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  292
Joined  02-03-2005

I’m got a custom field called {vcard-email} that is just a regular text box with no formatting. The author just enters a regular email address (me@website.com).
My template code looks like this:

<div class="email">{vcard-email}</div>

 Signature 

Artificial Memory

Profile
 
 
Posted: 13 March 2008 09:06 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  292
Joined  02-03-2005

I just turned encoding off for that weblog. I had to adjust a bit of template code, but I think it’s still the easiest solution.

 Signature 

Artificial Memory

Profile
 
 
Posted: 13 March 2008 09:06 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23521
Joined  05-20-2002

Not spotting a way to do it selectively with the autolinking turned on.  But if you turn it off- you could use something like autolinker to selectively turn it on.  Won’t swear it encodes the emails- but it may.  Or you could add it in.  Or use encode= if it’s only the email.

Make sense?  So if you turn it off, you’ve got some options.  But I haven’t spotted one to strip it if it’s turned on.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
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: 64879 Total Logged-in Users: 60
Total Topics: 81806 Total Anonymous Users: 40
Total Replies: 439763 Total Guests: 297
Total Posts: 521569    
Members ( View Memberlist )
Newest Members:  justingpticketdxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestraveler