SimplePortal

Customization => Custom Coding => Topic started by: AngelinaBelle on February 26, 2010, 02:39:38 PM

Title: Truncated URL bad for embedded items in article message body
Post by: AngelinaBelle on February 26, 2010, 02:39:38 PM
My custom sp_articles is coming along nicely, I think.
I have a question about truncating the articles.
 
sp_truncateText uses $modsettings['articlelength'], which is the article truncation length set in SimplePortal Configuration.
 
I can use a custom article length by having sp_articles capture the value of $modsettings['articlelength'], resetting it, then setting it back after I use it.
 
But are there other good options for truncating text?
Suppose I want to turn off AEVA and PDF embedding in my truncated articles? What are my options?
 
Here's my problem: http://www.rockhallsailingclub.org/smf1test/index.php?page=pageRacing (http://www.rockhallsailingclub.org/smf1test/index.php?page=pageRacing)
 
The really big embedded video and the truncated PDF URL are just not right.
 
Thanks for your advice.
 
 
--------------------
 
OK I think I have figured out how to deal with both of (really, all 3) of these problems.
 
1) Yes, $modSettings['articlelength'] works, and can be added to the custom parameters for the block.
2) Yes, Aeva embedding can be disabled. Depending on the Aeva version, it is either (old)  $modSettings['aeva_enable'] or (new) $context['aeva_disable']. Different global arrays, different senses.
3) I think I should be able to temporarily disable BBC tags using
$modSettings['disabledBBC'], but I'm not having much luck with it.
SimplePortal 2.3.8 © 2008-2024, SimplePortal