Author |
Topic |
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 29 July 2009 : 07:22:22
|
I know what is happening, Leather. I'll have to do a substring extraction of the mp3 tagged area of a post and only effect that portion. I'll try and do it today for you. |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 29 July 2009 : 16:10:24
|
Got it working, only hides the MP3 portion now. Get your file same link. |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 29 July 2009 : 17:45:46
|
Look at your tag definitions: <div class=""break""></div> |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
iane87
Starting Member
USA
42 Posts |
Posted - 29 July 2009 : 18:53:25
|
Looks like you are chopping off the < in your mid statement try replacing
strTextString=left(fString,ij-1)+"|File for Members Only|"+mid(fString,ik+7)
with
strTextString=left(fString,ij-1)+"|File for Members Only|"+mid(fString,ik+6)
|
Twitter MOD | Search Provider MOD | W3C Valid RSS MOD | Google Translate MOD |
Edited by - iane87 on 29 July 2009 18:54:43 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
Posted - 29 July 2009 : 20:03:16
|
I'm trying to give it one more little tweak. I've made an image that will display in place of the content. My code is this:
strTextString=left(fString,ij-1)+"<a href=""login.asp""><img border=""0"" src=""./images/membersonly.gif"" width=""350"" height=""56"" alt=""Members Only""></a>"+mid(fString,ik+6)
The non member can click the image to go to the login.asp page where they can either login or register. I'm trying to make it so if they are a member and just need to login they will be redirected back to the post. I tried to do this by adding the part in red but it is not working.
strTextString=left(fString,ij-1)+"<a href=""login.asp?target=" & lcase(scriptname(ubound(scriptname))) & """><img border=""0"" src=""./images/membersonly.gif"" width=""350"" height=""56"" alt=""Members Only""></a>"+mid(fString,ik+6)
It ends up killing the tag - meaning it just displays the tag and the tags content as normal text.
I also found a little glitch in the regular code. If more than one mp3 tag is being used in the same post, the first tag displays as text. See this post to see what I mean. |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
Edited by - leatherlips on 29 July 2009 20:11:28 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 31 July 2009 : 15:44:29
|
quote: Originally posted by leatherlips
Does anyone have any ideas about the two things I mentioned?
1. Getting the login link to redirect back to the post, and 2. Making the hidden content work for multiple instances of the tag being used within the same post?
I'm very appreciative of everything Carefree has done with this. He's probably getting annoyed with this (and me) by now.
Nah, Carefree loves the attention! |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 31 July 2009 : 17:24:17
|
LOL If you say so.
In answer to the return after login, here's how you could do it (this works):
|
|
|
Topic |
|