/    Sign up×
Community /Pin to ProfileBookmark

Need simple syntax help

This code

[code=php]<?php if ($_GET[‘download’] == ‘true’) echo “.after(“<span>&nbsp;<a class=’microAudio-download’ href='”+mAjQ(this).attr(“href”)+”‘>Save File</a>&nbsp;</span>”)”; ?>[/code]

outputs

[CODE]http://domain.com/this-song.mp3[/CODE]

I would like to output

[CODE]http://domain.com/hq-this-song.mp3[/CODE]

Is their a simple way to add [B]hq- [/B]easily into the link? thanks for the help in advance!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorNov 11.2009 — No. That PHP code outputs something else:
<i>
</i>.after("&lt;span&gt;&amp;nbsp;&lt;a class='microAudio-download' href='"+mAjQ(this).attr("href")+"'&gt;Save File&lt;/a&gt;&amp;nbsp;&lt;/span&gt;")

That looks like a custom method/function which is to be integrated in a javascript code. But it impossible for us to know where is that function, what is he doing....
×

Success!

Help @jjwinter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...