Jump to content

Apple App Store BBCode


Aiwa
 Share

Recommended Posts

It would be best, for now, to stick to using only the ID portion of the link. It will avoid this:

URL Portion of BBCode Converted to Link Upon Edit

You don't have another script for handling iTunes Music Store affiliate links, do you? I can't see a way to do a single BBCode without calling a custom script because the syntax for an individual track is not the same as for an album.

Link to comment
Share on other sites

It accepts both a URL and just an ID.

While it may be wrapped in URL tags on edit, it still works without issue. So it's more a nuisance that doesn't actually affect usage.

It uses the Apple Search api, lookup?id=#

This was written specifically for Apps, the music store was not a consideration. I've also considered taking whatever link is provided and letting the Admin throw their own affiliate link in it so they can get credit for any referrals.

It's likely possible to use a single BBCode to do it all, but there would have to be back end parsing of the data to figure out what it is you're trying to link so it displays correctly.

Modifying this one to be for the Music store, or creating another for the Music Store wouldn't be difficult.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

I've found the issue... The skin template that's used to build the output is only added to 'root', desktop, skins. So when you're using mobile, the skin template is missing...

You can resolve this immediately by manually creating the skin template in your mobile skin and copying the contents and variables over...

I'll look at how to resolve this other ways, though..

Link to comment
Share on other sites

I've found the issue... The skin template that's used to build the output is only added to 'root', desktop, skins. So when you're using mobile, the skin template is missing...

You can resolve this immediately by manually creating the skin template in your mobile skin and copying the contents and variables over...

I'll look at how to resolve this other ways, though..

I did notice if you edit from desktop it then works.

This isn't an issue I can copy over the templates myself, now that I know that's whats causing the problem.

This is gonna be good. Thanks I'll be in touch.

Link to comment
Share on other sites

Actually this doesn't seem to be the case because my mobile skin already has the skin template and variables. I also checked the stock IP.Board Mobile skin and it also has the template.

bbCodeApple

<div class='_sharedMediaBbcode'>
<div class='bbcode_mediaWrap clearfix'>
<div class='left'>
<a href="{$app['trackViewUrl']}" target="_blank">
<img src={$app['artworkUrl100']} style="padding-right:10px; width:100px"/>
</a>
</div>
<div style="line-height:1; display:inline-block;">
<span style="font-weight:bold; font-size: 16px;">{$app['trackName']}<span class='desc lighter' style="font-size:12px"> v{$app['version']}</span></span><br />
<span class='desc lighter'>
<if test="is_array($app['genres']) && count($app['genres'])">
<foreach loop="$app['genres'] as $id => $g">
<if test="!$id">{$g}<else />/ {$g}</if>
</foreach>
<else />
{$app['primaryGenreName']}
</if>
</span>
</div>
<div class='right' style="line-height:1;">
<span class='ipsBadge ipsBadge_green' style="height:20px; line-height:20px; font-size:12px;">
<if test="$app['price']">
<if test="$app['currency']=='USD'">&#36;</if>{$app['price']}
<else />
{$app['formattedPrice']}
</if>
</span>
<span class='desc'>
/ {$this->lang->words['kc_apple_rating']}: {$app['averageUserRating']} / 5
</span>
</div>
<br />
<span class='desctext'>{IPSText::truncate($app['description'], 500)} </span>
<a href="{$app['trackViewUrl']}" target="_blank">{$this->lang->words['kc_apple_link']}</a>
<br /><br />
<div style="max-height:209px; overflow:auto;">
<div class='left' style="width:119px; height:204px; padding-bottom:5px;">
<ul class='left' style="list-style-type:none; width:100px; margin:0px; padding:0px;">
<li class='clearfix'>
<span class='desc'>{$this->lang->words['kc_apple_cat']}: {$app['primaryGenreName']}</span>
</li>
<li class='clearfix left'>
<span class='desc'>{$this->lang->words['kc_apple_release']}:<br /> {parse expression="strftime("%b %d, %G", strtotime($app['releaseDate']))"}</span>
</li>
<li class='clearfix left'>
<span class='desc'>{$this->lang->words['kc_apple_ver']}: {$app['version']}</span>
</li>
<li class='clearfix left'>
<span class='desc'>{$this->lang->words['kc_apple_size']}: {$app['fileSizeMBytes']} MB</span>
</li>
<li class='clearfix left'>
<span class='desc'>{$this->lang->words['kc_apple_seller']}: {$app['sellerName']}</span>
</li>
<li class='clearfix left'>
<span class='desc'>{$this->lang->words['kc_apple_rated']} {$app['trackContentRating']}</span>
</li>
</ul>
</div>
<if test="is_array($app['screenshotUrls']) && count($app['screenshotUrls'])">
<foreach loop="$app['screenshotUrls'] as $img">
<img src="{$img}" style="width:115px; padding-bottom:5px;"/>
</foreach>
</if>
</div>
</div>
</div>

with variable $app = array()
Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...