Page 1 of 1
Customize membership options page template
Posted:
May 14th, 2011, 4:01 pm
by moses5407
I'm using the p2 theme, somewhat customized, and the membership options page displays differently than a standard page, despite apparently using the default page template from the theme.
In my case, I'd like to have other pages formatted similarly to the membership options page .. but I don't really know where to find the page format being used by the S2 membership options page.
Can you tell m where this is and a little bit about how it's structured to hook into the default page template?
Thanks in advance..
Jim
Re: Customize membership options page template
Posted:
May 14th, 2011, 8:03 pm
by Cristián Lávaque
In what way do you see it different?
You could use Firebug to study the page.
http://getfirebug.com/
Re: Customize membership options page template
Posted:
May 14th, 2011, 10:10 pm
by moses5407
It doesn't show in the same format as a typical post. Looking at the output via Firebug or Web Inspector doesn't help as I need to know what file to modify to generate a similar output or, in this case, to examine the difference between this and a default page template in the theme to get the same layout....
Re: Customize membership options page template
Posted:
May 15th, 2011, 4:49 pm
by moses5407
To be more specific, the membership options page does not show in "post" format .. with the opportunity to reply, etc. It simply shows the text entered in the Edit Page screen in Wordpress in a block with proper matching CSS. I'm assuming that the membership options page in S2 must either use a different page template .. or modify the default page template from the theme I'm using and need to know how and where in order to make use of this same formatting for other pages ... here's a link to the membership options page:
http://senditouttotheuniverse.com/?page_id=98Note there are no reply/edit links, post date displays, etc.
Thanks..
Re: Customize membership options page template
Posted:
May 15th, 2011, 5:16 pm
by moses5407
I should have added that you can click on the "The Video" page link to see a page NOT formatted as desired..It has reply and edit links, a vote widget, etc which I don't want on certain pages.
I know I can go thru the theme piece by piece to find the difference ... but since the Membership OPtions page has the format I'm looking for I'm hoping this way will be much faster..
Re: Customize membership options page template
Posted:
May 16th, 2011, 11:05 am
by Cristián Lávaque
I don't know that the page set as the Membership Options Page gets any special formatting, all it has different is being the landing for redirections caused by insufficient access elsewhere, but the page is just a page same as the rest.
Could it be that you disabled commenting when you created it and that's why you don't see the option? If you look at the editing form for it, do you notice differences with others you see display different (e.g. the video one)?
Re: Customize membership options page template
Posted:
May 16th, 2011, 2:59 pm
by moses5407
Nope..there are zero differences on the edit forms for the pages .. and I haven't disabled comments for any page .. BUT the Membership Options page doesn't have them OR the vote widget. So, there MUST be some difference in the way the Membership Options page is handled by S2Member versus other pages ...
Re: Customize membership options page template
Posted:
May 16th, 2011, 3:27 pm
by Cristián Lávaque
I honestly don't know any... Could you post a screenshot of the edit form for the Membership Options Page and another one that looks different?
Re: Customize membership options page template
Posted:
May 16th, 2011, 4:03 pm
by moses5407
hahaha...trust me, I am able to look at and compare the edit pages.
The ONLY difference is in the S2member widget...for the Membership options page it says this page is always public. For the others it gives the choices for custom capabilities or membership level required.
That's it.
Thanks for your help .. but, if you don't know how S2member handles the code for the Memebership Options page .. which is obviously different given the differences in the S2member widget options on the edit form, I'll have to start the hunt.
Maybe Jason would know? Or maybe it's buried in the S2 code and wouldn't be easy to reproduce anyway?
I'll have to look for other options...
Re: Customize membership options page template
Posted:
May 16th, 2011, 5:17 pm
by Cristián Lávaque
I've emailed Jason about it, but he's not around yet and may take a bit before he's back, so I wanted to try finding the problem before that. I'll wait for him then.
Re: Customize membership options page template
Posted:
May 16th, 2011, 5:19 pm
by moses5407
Thanks..and I DO appreciate your responses. I think this is something more "under the hood" .. but I've been wrong before..
Re: Customize membership options page template
Posted:
May 16th, 2011, 5:43 pm
by Cristián Lávaque
Re: Customize membership options page template
Posted:
May 18th, 2011, 1:56 am
by Jason Caldwell
Thanks for the excellent question.
~ and thanks for bringing this to my attention Cristián.
I can confirm that s2Member does NOT make any adjustments to a template or otherwise with respect to the Membership Options Page. s2Member just uses the Page that you configure in the s2Member -> General Options. It's a redirect, nothing more.
One thing to note though. In most themes, Pages are NOT treated the same as Posts. That is, most themes will not display the comments section on a Page ( i.e. the Reply button ). In addition, depending on your theme, a Page may be presented without a Sidebar ( just depends on your theme ).
So a possible solution, is for you to create the rest of your content using "Pages" instead of "Posts". That way your theme will present them the way you like best.
Re: Customize membership options page template
Posted:
May 18th, 2011, 4:10 am
by moses5407
Hi, Thanks for your reply and the persistence in following up on the original question. It's pretty puzzling, though, as the content of the pages in question WAS created in exactly the same manner as the Membership Options Page,i.e., by creating a new page and entering the information in the edit form for the page.
For some reason, the redirect must be affecting how the page is recognized by the theme(?), resulting in a page which is structured like the default pages on the site. In this case, the theme is p2 and presents a home page with a near live stream of posts. This appears to be the default page structure for the theme .. so pages OTHER than the Membership Options Page show post-display formatting;including reply links, etc.
I'm not quite sure where to look at this point. If I somehow stumble on the solution, I'll post it here.
If you have any further ideas given this information about the theme, any hints would be appreciated.
Thanks,
Jim
Re: Customize membership options page template
Posted:
May 18th, 2011, 4:34 am
by Jason Caldwell
Perhaps it's already been discussed, but just to point out, when you create a Page, there is a "Page Template" drop-down menu available. Is that the same or different from one page to another? In addition, some themes work from "Custom Fields" configured on a per-Page basis, is that somehow affecting the display? What about taking all query string parameters out of the URL, does that change anything?
Re: Customize membership options page template
Posted:
May 18th, 2011, 5:54 am
by moses5407
YEs..same template on the drop down. No custom fields and I'll check the url parameters in the morning..Thanks for the ideas too try!
Re: Customize membership options page template
Posted:
May 18th, 2011, 11:29 am
by Cristián Lávaque
If you change the Membership Options Page to another page, do they change?