TinyPortal

Development => Block Codes => Topic started by: Mick on January 22, 2009, 01:06:59 AM

Title: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on January 22, 2009, 01:06:59 AM
So im tired of posting in my forums on how to purchase a membership using the "paid Subscriptions" mod.

This code will create a membership type page for your users to read what type of membership your forum have available. (Users will see this page an order.  You just need to create a linked button to the page )

To be used with "PAID SUBSCRIPTIONS" mod only.   Found @ SMF

DEMO: http://www.chevyavalancheclub.com/index.php?action=membership

-Just paste code to a "article" page or to your "custom action" page.   

-Download the 2 images below,upload it to your /image folder and make sure the images have a 755 or better permission.

-Make sure you replace www.YOUR URL.com in the code with your own URL'S.

Its easy to edit the code with your own content.  Just replace as you wish.

The "sign up" button will direct the user to the subscription order page in their profiles.

<div align="center">Content Here</div>
<table width="100%" cellpadding="5" border="0" bgcolor="#ffffff" id="table1">
    <tbody>
        <tr>
            <td width="365" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">Membership Type</font></strong></td>
            <td width="236" bgcolor="#014922"><strong> <font face="Verdana" size="2" color="#ffffff">  Regular Membership</font></strong></td>
            <td width="205" bgcolor="#b90000"><strong><font face="Verdana" size="2">  <font color="#ffffff">Supporting Membership</font></font></strong></td>
        </tr>
        <tr>
            <td width="365" bgcolor="#ffffff"><strong><font face="Verdana" size="2"><span class="main"> <span class="spacing">Recognition:</span></span></font></strong></td>
            <td width="236" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">None </font></strong></td>
            <td width="205" bgcolor="#e9e1dc"><strong><font face="Verdana" size="2"> <br />
            </font></strong></td>
        </tr>
        <tr>
            <td width="365" bgcolor="#ffffff"><strong><font face="Verdana" size="2">Gallery Space:</font></strong></td>
            <td width="236" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">25Kb<br />
            </font></strong></td>
            <td width="205" bgcolor="#e9e1dc"><strong><font face="Verdana" size="2">Unlimited<br />
            </font></strong></td>
        </tr>
        <tr>
            <td width="365" bgcolor="#ffffff"><strong><font face="Verdana" size="2" color="#0000ff">Official Decal</font></strong></td>
            <td width="236" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">No</font></strong></td>
            <td width="205" bgcolor="#e9e1dc"><strong><font face="Verdana" size="2"><img border="0" src="/images/checkmark.gif" alt="Alt Text" /> Yes</font></strong></td>
        </tr>
        <tr>
            <td width="365" bgcolor="#ffffff"><strong><font face="Verdana" size="2">Automatic &quot;Supporting Member&quot; Title:</font></strong></td>
            <td width="236" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">No</font></strong></td>
            <td width="205" bgcolor="#e9e1dc"><strong><font face="Verdana" size="2"><img border="0" src="/images/checkmark.gif" alt="Alt Text" />  Yes</font></strong></td>
        </tr>
        <tr>
            <td height="38" width="365" bgcolor="#ffffff"><strong><font face="Verdana" size="2"><span class="main"> <span class="spacing">Colored Username:</span></span></font></strong></td>
            <td height="38" width="236" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">No</font></strong></td>
            <td height="38" width="205" bgcolor="#e9e1dc"><strong><font face="Verdana" size="2"> <img border="0" src="/images/checkmark.gif" alt="Alt Text" />  Yes</font></strong></td>
        </tr>
        <tr>
            <td height="38" width="365" bgcolor="#ffffff"><strong><font face="Verdana" size="2">Donation:</font></strong></td>
            <td height="38" width="236" bgcolor="#e3eedf"><strong><font face="Verdana" size="2">Free</font></strong></td>
            <td height="38" width="205" bgcolor="#e9e1dc"><font face="Verdana" size="2"><strong>1  Year<br />
            $20.00 USD</strong></font></td>
        </tr>
        <tr>
            <td height="38" width="365" bgcolor="#ffffff"><strong><strong><strong><strong><font size="2" color="#f40606"><br />
            </font></strong></strong></strong></strong></td>
            <td height="38" width="236" bgcolor="#e3eedf">&nbsp;</td>
            <td height="38" width="205" bgcolor="#e9e1dc"><a href="http://www.YOUR URL.com/index.php?action=profile;sa=subscriptions"><img border="0" src="/images/b_sign-up-now_red.png" alt="Alt Text" /></a></td>
        </tr>
    </tbody>
</table>
<center><strong><strong><strong><strong><font size="1">**There will be no refunds given under any circumstances including banning .</font></strong></strong></strong></strong></center>




Enjoy!!!

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi120.photobucket.com%2Falbums%2Fo170%2FBlueDevil_photo%2FFireShotcapture14-ChevyAvalancheClu.png&hash=70233db74f731e49da0d6e2a54094529e73aa07e)
Title: Re: Paid Subscriptions/Membership type Block
Post by: Ken. on January 22, 2009, 01:19:21 AM
Looks like an excellent addition for anyone using the subscription mod.
Good job BD! :up:
Title: Re: Paid Subscriptions/Membership type Block
Post by: Mick on January 22, 2009, 01:22:03 AM
Quote from: Ken. on January 22, 2009, 01:19:21 AM
Looks like an excellent addition for anyone using the subscription mod.
Good job BD! :up:

Thanx Ken.   Frankly i got tired of posting links and reminding members about the subscriptions.   A "order page" is better and its always there.  lol.
Title: Re: Paid Subscriptions/Membership type Block
Post by: Heero on January 25, 2009, 01:21:34 PM
Looks very good, thanks for the submission!
Title: Re: Paid Subscriptions/Membership type Block
Post by: Zetan on January 25, 2009, 01:49:22 PM
This'll be useful for my next site.. A pr0n site!  :P ..










I jest, but I do have a new site in mind, subscription based.


Thanks for sharing bluedevil  :up:
Title: Re: Paid Subscriptions/Membership type Block
Post by: Mick on January 25, 2009, 03:31:30 PM
Youre most welcome.   

In edtor,you can add as many rows and cells as you wish.   Im sure you knew that.   lol
Title: Re: Paid Subscriptions/Membership type Block
Post by: G6Cad on January 25, 2009, 03:48:38 PM
Indeed a good block code :)

Just beware of all the changes everyone wants and will ask to have now  :2funny:
Title: Re: Paid Subscriptions/Membership type Block
Post by: Mick on January 25, 2009, 04:18:12 PM
Quote from: G6 on January 25, 2009, 03:48:38 PM
Indeed a good block code :)

Just beware of all the changes everyone wants and will ask to have now  :2funny:


Lol....im asking for trouble dont i
Title: Re: Paid Subscriptions/Membership type Block
Post by: G6Cad on January 25, 2009, 04:37:51 PM
Quote from: bluedevil on January 25, 2009, 04:18:12 PM
Quote from: G6 on January 25, 2009, 03:48:38 PM
Indeed a good block code :)

Just beware of all the changes everyone wants and will ask to have now  :2funny:


Lol....im asking for trouble dont i

Hahahaha, i think so ;)
Title: Re: [Block] Paid Subscriptions/Membership type Block
Post by: Zetan on January 29, 2009, 11:04:00 PM
Hi BlueDevil, I've just started using this on a trial site and notice a few things that could be changed.

The center tag is depreciated. Instead use div:



<div align="center">Content Here</div>





Also, for internal URL's, the full URL isn't required.



<img border="0" src="/images/filename.png" alt="Alt Text" />



This is really helpful if, like me, you are building a site and plan to move it to a different location. It still works, but saves having to go through and correct all the paths.. assuming that they will essentially be in the same place on a new domain.
Title: Re: [Block] Paid Subscriptions/Membership type Block
Post by: Mick on January 30, 2009, 05:06:35 PM
Very cool Zetan.  ....edited code.

Thanx,...You Rock!
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: olifa on February 03, 2009, 05:51:48 PM
you are a genius, thank you very much! =)
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on February 03, 2009, 07:17:40 PM
Quote from: olifa on February 03, 2009, 05:51:48 PM
you are a genius, thank you very much! =)

Thanx but im no genius.  Firebug is..
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Skyview on February 08, 2009, 07:31:43 AM
Cool mod Mick.
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: juice on February 18, 2009, 08:19:18 PM
I installed it and made all the changes I needed for my site, but when I the "admin" of the site clicks on the sign up button I get this message:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

When a normal member clicks the sign up button they get the same message.

The link I have attached to the button is:

http://www.troutpredator.info/index.php?action=profile;sa=subscriptions

Any ideas??? I'm not very good with code but I appreciate any help I can get?

I'm running a pretty urls mod, does that make a difference?

When I navigate to the subscription page, the url reads:

http://troutpredator.info/profile/?u=1;sa=subscriptions

Where the u=1 differs depending on the user trying to subscribe.

Thanks in advance!



Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on February 20, 2009, 03:02:33 AM
Quote from: juice on February 18, 2009, 08:19:18 PM
I installed it and made all the changes I needed for my site, but when I the "admin" of the site clicks on the sign up button I get this message:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

When a normal member clicks the sign up button they get the same message.

The link I have attached to the button is:

http://www.troutpredator.info/index.php?action=profile;sa=subscriptions

Any ideas??? I'm not very good with code but I appreciate any help I can get?

I'm running a pretty urls mod, does that make a difference?

When I navigate to the subscription page, the url reads:

http://troutpredator.info/profile/?u=1;sa=subscriptions

Where the u=1 differs depending on the user trying to subscribe.

Thanks in advance!






I am not familiar with the "pretty URL's" mod.   I used it once before for a short while.

Anyways,  i currently use:

/index.php?action=profile;sa=subscriptions

for the "sugn up" button and it works.

For your "pretty url" mod,  i think should work something like:

/subscriptions

or

/profile/subscriptions

just play with it.

Try it and see if it works.   If not, ask at the mod creators thread over at SMF on how the "subscriptions" url would look like.
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: juice on February 20, 2009, 03:49:55 AM
http://troutpredator.info/profile/?u=1;sa=subscriptions

The subscription url reads like above with the u=1 value being different for each user depending on their subscription order, however that makes it hard for me to create a universal link for every user.

I'm a super novice at this so maybe there is a url that is obvious that I am missing.

Let me know what you think.

Thanks!
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on February 20, 2009, 04:20:49 AM
Quote from: juice on February 20, 2009, 03:49:55 AM
http://troutpredator.info/profile/?u=1;sa=subscriptions

The subscription url reads like above with the u=1 value being different for each user depending on their subscription order, however that makes it hard for me to create a universal link for every user.

I'm a super novice at this so maybe there is a url that is obvious that I am missing.

Let me know what you think.

Thanks!

See if any of these links takes you the subscriptions page

http://troutpredator.info/profile/?sa=subscriptions

or

http://troutpredator.info/profile/sa=subscriptions

Sorry but im not much help with pretty urls.
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: juice on February 20, 2009, 04:30:57 AM
Neither work, perhaps I should ask the pretty url creator???
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on February 20, 2009, 05:27:27 AM
Quote from: juice on February 20, 2009, 04:30:57 AM
Neither work, perhaps I should ask the pretty url creator???

Yes..    post in their thread what the URL should be.

If it works you,please post it here.
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: juice on February 20, 2009, 06:26:08 AM
I seem to have it working:

http://www.yoururl.com/profile/?u=0;sa=subscriptions
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on February 20, 2009, 12:27:41 PM
Quote from: juice on February 20, 2009, 06:26:08 AM
I seem to have it working:

http://www.yoururl.com/profile/?u=0;sa=subscriptions


Cool,that URL should be universal for all members.
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: wilsy on February 21, 2009, 02:27:51 PM
Loving the membership page - thanks for sharing.
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Mick on February 21, 2009, 03:51:35 PM
Quote from: wilsy on February 21, 2009, 02:27:51 PM
Loving the membership page - thanks for sharing.

Glad you like it.   I just registered at your site to snoop around as we use the same theme.   Hehehehe....
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: Xarcell on February 21, 2009, 03:53:08 PM
Nice addition...
Title: Re: [Article] Paid Subscriptions/Membership type Page
Post by: wilsy on February 21, 2009, 04:06:37 PM
Quote from: bluedevil on February 21, 2009, 03:51:35 PM
Quote from: wilsy on February 21, 2009, 02:27:51 PM
Loving the membership page - thanks for sharing.

Glad you like it.   I just registered at your site to snoop around as we use the same theme.   Hehehehe....

Lol, just seen you in there - the site's up for grabs if you fancy branching out into motorbikes!!  ;)