Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Make It Simple Text Formatter

13»

Comments

  • Options
    OK, and for that person looking to auto-link MP3s:

    Open /extensions/MakeItSimpleFormatter/default.php

    Look for (line 41?)
    $Word = '<img src="'.$Word.'" class="discImg" />'; } else if (stripos($Word, 'youtube.com/watch?v=')) {
    BETWEEN these two lines you ADD:
    } else if (strcasecmp(substr($Word, strlen($Word) - 4), '.mp3') == 0) { $Word = '<br /><embed class="SkreemRPlayer" wmode="transparent" style="height:24px;width:240px;" src="http://skreemr.com/audio/player.swf" quality="high" bgcolor="#ffffff" width="240" height="24" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" flashvars="playerID=1&soundFile='.$Word.'"></embed><br /> (<a href="'.$Word.'" title="'.$Word.'" target="_blank" rel="nofollow">download MP3</a>)';
    This will insert a little audio flash player whenever you enter a link that ends in .mp3 (courtesy of SkreemR.com, thank you!)

    To be absolutely clear, the code should look like this after inserting the above:
    $Word = '<img src="'.$Word.'" class="discImg" />'; } else if (strcasecmp(substr($Word, strlen($Word) - 4), '.mp3') == 0) { $Word = '<br /><embed class="SkreemRPlayer" wmode="transparent" style="height:24px;width:240px;" src="http://skreemr.com/audio/player.swf" quality="high" bgcolor="#ffffff" width="240" height="24" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" flashvars="playerID=1&soundFile='.$Word.'"></embed><br /> (<a href="'.$Word.'" title="'.$Word.'" target="_blank" rel="nofollow">download MP3</a>)'; } else if (stripos($Word, 'youtube.com/watch?v=')) {

    If you look closely you'll see I force-insert a line break before the embed and a download link after it (<a href="'.$Word.'" title="'.$Word.'" target="_blank" rel="nofollow">download MP3</a>)'; Remove if not required.

    Tested to work on IE, FF, Opera & Chrome (latest versions on Jan 31, 2009, all windows)
  • Options
    this is conflicting with preview post

    if you add anything that should be parsed with additional text before or after it will lump everything together when previewed.

    grep is your friend.

  • Options
    I cant seem to get this one to work at all. Might be an extension conflict, I guess. My load settings currently look like this:

    include($Configuration['EXTENSIONS_PATH']."Acronyms/default.php");
    include($Configuration['EXTENSIONS_PATH']."Poll/default.php");
    include($Configuration['EXTENSIONS_PATH']."ReportPost/default.php");
    include($Configuration['EXTENSIONS_PATH']."STOPCAPSABUSE/default.php");
    include($Configuration['EXTENSIONS_PATH']."TagThis/default.php");
    include($Configuration['EXTENSIONS_PATH']."Transmogrifier/default.php");
    include($Configuration['EXTENSIONS_PATH']."MembersList/default.php");
    include($Configuration['EXTENSIONS_PATH']."AddMember/default.php");
    include($Configuration['EXTENSIONS_PATH']."DiscussionOverview/default.php");
    include($Configuration['EXTENSIONS_PATH']."Notifi/default.php");
    include($Configuration['EXTENSIONS_PATH']."RelNoFollow/default.php");
    include($Configuration['EXTENSIONS_PATH']."Socialimpact/default.php");
    include($Configuration['EXTENSIONS_PATH']."ThankfulPeople/default.php");
    include($Configuration['EXTENSIONS_PATH']."UserAward/default.php");
    include($Configuration['EXTENSIONS_PATH']."WhosOnline/default.php");
    include($Configuration['EXTENSIONS_PATH']."Nugget/default.php");
    include($Configuration['EXTENSIONS_PATH']."AjaxQuote/default.php");
    include($Configuration['EXTENSIONS_PATH']."ForcedBBCode/default.php");
    include($Configuration['EXTENSIONS_PATH']."WindowLinks/default.php");
    include($Configuration['EXTENSIONS_PATH']."comments_permalinks/default.php");
    include($Configuration['EXTENSIONS_PATH']."MakeItSimpleTextFormatter-2008-10-11/default.php");
  • Options
    excellent TomTester! thanks for both adds!
  • Options
    @bochenn: thanks. I plan to post two more in the next week: auto-link google maps (go from link to embed) and auto-link flickr set links (auto-insert little slideshow)
  • Options
    Hey broddy, those 2 sounds very interesting. i would like to see auto-link when a user post without the protocol http://, just google.com or www.google.com. I'm waiting for your adds! Thanks
  • Options
    @TomTester hope this could help you http://flickrslidr.com/index.php
  • Options
    @bochenn, thanks, I'll check it out. My basic problem with Flickr is that I can easily include a slideshow once I have the UserID or based on a tag search (e.g. http://www.flickr.com/photos/tags/blackwhite ) but cannot if I have only a username. Extending the add-on to include calls to the flickr API (see http://www.flickr.com/services/api/flickr.people.findByUsername.html and ) seems beyond the scope of what's simple and easy... (perhaps it should be a separate add-on)
  • Options
    Does anyone knows if there is a chance to hace a workaround to embed a Grooveshark element?

    Example: http://listen.grooveshark.com/#/song/Useless_Kruder_and_Dorfmeister_Remix_/3102634

    Also, hey TomTester, could you make more embeds? Thanks

    Bochenn
Sign In or Register to comment.