Home › Forums › Community Forum › API/Scripting question
This topic contains 19 replies, has 3 voices. Last updated by Cristián Lávaque 4 years, 6 months ago.
Topic Author | Topic |
---|---|
Posted: Tuesday Jun 12th, 2012 at 11:38 pm #16334 | |
|
|
I have been studying on the API/Scripting possibilities. Is there a way, using the s2member shortcodes, to display either one of them? |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Wednesday Jun 13th, 2012 at 9:15 am #16379 | |
![]() |
|
Hi Boudewijn, I don’t understand what you mean by “Is there a way, using the s2member shortcodes, to display either one of them?”. Could you please elaborate and/or provide examples? |
|
Posted: Wednesday Jun 13th, 2012 at 2:11 pm #16391 | |
|
|
sure, If you browse to http://reikimagazine-online.com/free-english-articles/ Going to http://reikimagazine-online.com/paid-articles/ The first two don’t have a level restriction, the articles on the second link have a restriction for level 1 What I would like is that non paying members (those that cannot log in, because they don’t have passwords etc) can only see the free articles. I hope this is clear for you Raam. |
|
Posted: Thursday Jun 14th, 2012 at 7:25 am #16440 | |
|
|
I’m still not sure I understand. Do you want to have in the same posts page, a mix of paid and free articles? So that visitors can read the free ones, but the paid ones would take them to the Membership Options page? |
|
Posted: Thursday Jun 14th, 2012 at 9:44 am #16476 | |
|
|
You made me think Christian, thanks for the wake-up call.
|
|
Posted: Friday Jun 15th, 2012 at 6:26 am #16558 | |
|
|
Okay, so you want posts protected, to not be in the posts list at all, or do you want them to be there showing up to the “more” tag only? What are your settings for the Alt. View protection? [hilite path]Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection[/hilite] |
|
Posted: Friday Jun 15th, 2012 at 11:28 am #16597 | |
|
|
I want posts to show up to the more– tag. I have nothing set in the alternative view protection. |
|
Posted: Saturday Jun 16th, 2012 at 3:49 am #16648 | |
|
|
That’s fine then. Try this: Edit your latest post and protect it at level 0 or higher, use the “more” tag, save and log out. Then go to your homepage or the category where the post will be, and you should see the post’s title and the content up to the “more” tag, click the link to “continue reading” and you’ll be taken to the Membership Options Page. |
|
Posted: Monday Jun 18th, 2012 at 2:24 am #16754 | |
|
|
Are you saying that the above code is correct then? This is not going to be easy so it seems.
|
|
Posted: Tuesday Jun 19th, 2012 at 5:20 am #16851 | |
|
|
No, I wasn’t talking about the code, I was replying to:
|
|
Posted: Thursday Jun 21st, 2012 at 11:02 am #17134 | |
|
|
I do know how to use the more tag Cristian, If you look at the links I gave before you see now only the permalinks. |
|
Posted: Friday Jun 22nd, 2012 at 7:04 am #17178 | |
|
|
If you don’t have the Alt View restrictions active, then the post should be shown in the posts listing (category, tag, homepage), with the content up to the “more” tag (the teaser snippet). If that’s not what is happening, could you create a test category, in it create a test post restricted at Level 0 with some content and the more tag, and post here the link to the category, please? Thanks! |
|
Posted: Tuesday Jun 26th, 2012 at 7:43 am #17522 | |
|
|
Cristian. If you goto http://www.reikimagazine-online.com you will see the articles with their excerpts. What I need is a hint how to use PHP code on other pages besides the page that displays the text preceding the “more” tag, that is the only question.
|
|
Posted: Wednesday Jun 27th, 2012 at 12:27 am #17618 | |
|
|
Is http://reikimagazine-online.com/paid-articles/ a category or a normal WP page? |
|
Posted: Wednesday Jun 27th, 2012 at 1:46 am #17622 | |
|
|
That is a page for a certain category of posts, being the posts that people are paying for… |
|
Posted: Wednesday Jun 27th, 2012 at 1:56 am #17624 | |
|
|
But is it a WordPress category or a WP page you use to list posts? In which of these is it? |
|
Posted: Wednesday Jun 27th, 2012 at 6:00 am #17630 | |
|
|
it is a page that is mapped to a certain category. I use “Map categories to pages” plug-in now with the result as seen on that page. What I am loooking for is what I do wrong in that code (message #16476) and what I should do to correct it.
the category name is closed_ENG, I use case sensitivity because I found that many languages are case sensitive. Hoping I made myself clear now. |
|
Posted: Thursday Jun 28th, 2012 at 5:51 am #17732 | |
![]() |
|
Boudewijn, Have you seen the following thread? It explains how you can use the <!– more –> tag with s2Member: http://www.primothemes.com/forums/viewtopic.php?f=4&t=16079#p56160 |
|
Posted: Friday Jun 29th, 2012 at 9:59 am #17855 | |
|
|
To you my Lord of the sacret s2Member knowledge I bow deep, take off my hat and most respectfully greet thou unchallenged knowledge. Teach us thou magic! |
|
Posted: Saturday Jun 30th, 2012 at 4:10 am #17914 | |
|
|
Sorry, that statement bothered me a bit. What you are trying to do wasn’t clear until you explained it a couple posts earlier #17630. And we aren’t required to provide custom code for something like this, it’s not even an s2Member customization. s2Member® » Support Policy » Fine Lines You could google how to list category posts, or looked at the category.php template in your theme for clues. You don’t need to worry about s2Member filters since you want the posts listed even if they’re protected, and will only show content up to the “more” tag if you used it. The protection will kick in if they try to open the actual post. You obviously did some of that research to get the loop code, but you seem to still need [hilite mono]the_content()[/hilite] there to display the content of [hilite mono]the_post()[/hilite]. I had never done this before, just looked it up in the WP codex, so I apologize if you still need to research it a bit more, but I hope it helps. |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.