Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Hidden Content for Members Only
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

leatherlips
Senior Member

USA
1838 Posts

Posted - 27 July 2009 :  18:23:10  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Where is the file?

Edit: I found it.

I tried it with only the mp3 hidden section. I will leave the img tag as normal.

For some reason, it is hiding everything in the post. Here are a couple of screenshots:

Here is what a member sees:



Here is what a non member (visitor) sees:



You can test it for yourself at this thread:

http://www.mangionemagic.com/forumtest/topic.asp?TOPIC_ID=899

Login is demo/demo

I do not understand why your code is not working. It seems perfectly logical to me.

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 27 July 2009 20:32:53
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 28 July 2009 :  19:23:39  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Anyone else have any ideas? Or perhaps why it won't work with my inc_func_common file?

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
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 29 July 2009 :  07:22:22  Show Profile  Reply with Quote
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.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 29 July 2009 :  16:10:24  Show Profile  Reply with Quote
Got it working, only hides the MP3 portion now. Get your file same link.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 July 2009 :  17:40:42  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Now it is working! It is only hiding the mp3 file! Thanks!

One slight issue...

It is replacing the file with:

|File for Members Only|br />


I can't see why it is putting that unclosed break in:

if mLev=0 and inStr(fString,"[mp3") then
         for i = 1 to len(fString)
            if mid(fString,i,5)="[mp3]" then ij=i
            if mid(fString,i,6)="[/mp3]" then
               ik=i
               strTextString=left(fString,ij-1)+"|File for Members Only|"+mid(fString,ik+7)
            end if
         next
         strTempString=strTextString
      end if

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
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 29 July 2009 :  17:45:46  Show Profile  Reply with Quote
Look at your tag definitions:
<div class=""break""></div>
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 July 2009 :  17:49:19  Show Profile  Visit leatherlips's Homepage  Reply with Quote
quote:
Originally posted by Carefree

Look at your tag definitions:
<div class=""break""></div>


I removed it but it had no effect.

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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 July 2009 :  18:02:34  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Hmmm. I did this:

strTextString=left(fString,ij-1)+"|File for Members Only|<"+mid(fString,ik+7)

And it fixed it. Seems weird though.

I added your code to my mp3jw tag and it places an extra ] at the end of the message. I have no idea where it is getting the extra /br > and ] from in those tags.

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 18:19:38
Go to Top of Page

iane87
Starting Member

USA
42 Posts

Posted - 29 July 2009 :  18:53:25  Show Profile  Visit iane87's Homepage  Reply with Quote
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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 July 2009 :  19:16:25  Show Profile  Visit leatherlips's Homepage  Reply with Quote
That fixed it! Thanks!

Also, Carefree, thank you so much for your help with this! You have been incredible in your diligence in getting this to work for me!

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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 July 2009 :  20:03:16  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 30 July 2009 :  08:34:38  Show Profile  Visit leatherlips's Homepage  Reply with Quote
quote:
Originally posted by leatherlips

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.


I figured out a workaround for this although it is not very elegant. I created a new mp32 tag and a mp33 tag. In the post I edit the second mp3 file to be mp32 and if there is a third mp3 tag I edit it to mp33.

If a better fix is available I'd appreciate knowing what it is.

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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 31 July 2009 :  14:09:17  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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.

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
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 31 July 2009 :  15:44:29  Show Profile  Visit Etymon's Homepage  Reply with Quote
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!
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2009 :  17:24:17  Show Profile  Reply with Quote
LOL If you say so.

In answer to the return after login, here's how you could do it (this works):


if inStr(Request.ServerVariables("URL"),"/") then
	for i=1 to len(Request.ServerVariables("URL"))
		if mid(Request.ServerVariables("URL"),i,1)="/" then
			strURL = mid(Request.ServerVariables("URL"),i+1)
		end if
	next
else
	strURL = Request.ServerVariables("URL")
end if
left(fString,ij-1)+"<a href=""login.asp?target="& strURL &"""><img border=""0"" src=""images/members.bmp"" width=""350"" height=""56"" alt=""Members Only""></a>"+mid(fString,ik+6)

Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07