Home › Forums › Community Forum › Articles/Page content : visible in part only
Tagged: content protection, limitation, newspaper, page, post, protect page, translation, visible
This topic contains 10 replies, has 2 voices. Last updated by Andy M. 4 years ago.
Topic Author | Topic |
---|---|
Posted: Wednesday Dec 19th, 2012 at 7:35 pm #35106 | |
|
|
A.R Hello, is it possible to set a page or a post in order that only a short part is visible for the public and then, by clicking on a ‘Read More’ button for example, they would access to the whole content if they are logged as an authorised user ? Like in some newspaper that have an internet version, and only the registered users can read the whole article. So I am wondering if this feature can be set on a WP blog website ? Thanks a lot !! A. |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Thursday Dec 20th, 2012 at 3:06 am #35125 | |
|
|
I do ask how we can integrate the shortcodes on portions of text in a page that has tabulations or accordeons text. Example of the original page : 4 tabs for 4 differents content. If now, I want that these 4 tabs becomes visible for 4 different level of users, I have to add the shortcode, but where exactly please ? Here is my text but non effective as the text content disappear ! [s2If !current_user_can(access_s2member_level0)]Le Dr Patrick Métais est médecin interniste, gériatre et responsable de la mise en œuvre de nombreux établissements porteurs de projets innovants. [/s2If] I do not know where to place the [s2If] and [/s2If] codes. Outside the DIV ? Shortcodes can be integrated on the visual or the text panel, the same way ? Thanks for your kind help !!! A. |
|
Posted: Thursday Dec 27th, 2012 at 11:57 pm #35595 | |
|
|
I’m not sure if this is what you are trying to do, but take a look at the solutions I offered here: Here is the synopsis:
Then wrap your “hidden” part with this shortcode.. like this:
Hope that helps, Dave |
|
Posted: Saturday Dec 29th, 2012 at 2:33 am #35694 | |
|
|
Sir, here is my fonctions.php file. I would like to know where to place this slice of code in it. 0),$atts)); if(current_user_can(“access_s2member_level”.$level)){ |
|
Posted: Saturday Dec 29th, 2012 at 3:18 am #35695 | |
|
|
PUBLIC TEXT [dw-post-more level=”0″] PRIVATE TEXT [/dw-post-more] This is public info after the private info. ——————————————– Question 1 : Question 2: So this would be correct ? Question 3: Thanks for your help, Andy |
|
Posted: Saturday Dec 29th, 2012 at 3:31 pm #35737 | |
|
|
The function can go anywhere in your functions.php file as long as it’s before the last
1. I’m not sure quite what your asking, but if you use the s2member setting for the page/post restrictions, it will hide the whole page/post. This function only hides the part in the middle of your shortcode tags. 2. Yes, that is exactly how it works! 3. It looks like you have the hang of it, but if you need me to, I can take a look. Dave |
|
Posted: Sunday Dec 30th, 2012 at 10:03 am #35797 | |
|
|
Dave, give me an email as I will not drop an admin account on the forum ! I send you this in the day. I have several pages and posts ready for splitting the text with both public part and private part. Thanks for you help. A.R |
|
Posted: Sunday Dec 30th, 2012 at 7:22 pm #35830 | |
|
|
If you click on my username, I have my email listed in my “about me” text. Dave |
|
Posted: Monday Jan 7th, 2013 at 10:11 am #36459 | |
|
|
Hello > I have created a special page with 4 parts of texts visible and each part is visible for a specific level of user Page is here : http://andrerizzotti.com/site_bebes_and_kids/blog/page-level-1-4-le-reportage/ > I would like to translate this part for text in french : Get Access To More Of This Content > I would like that this part of text send the non logged user to the login page, but how ? > If I translate the website in 2 languages, how can I get this sentence in both language according to the choice of the user ? Thanks for your precisions, A. |
|
Posted: Monday Jan 7th, 2013 at 11:39 am #36467 | |
|
|
Questions 1 and 2 can be done together by changing the function from this:
to this:
Now, if you want to make a choice, you would need to pull the user’s choice and then post the correct version… like this:
I hope that makes sense. Let me know if you have any questions. Dave |
|
Posted: Tuesday Jan 8th, 2013 at 9:03 am #36573 | |
|
|
Where do I define the S2 Member Login Page please ? Do I have to specifiy it directly on the fonctions.php file ? replacing the :
or from the admin area ? In this case, would you be kind to tell me how ? I need also to implement the redirection to the login page on specific ‘Read More’ button I could add on posts. How can I do that ! (very important for me to understand how !) THANKS !!! A. Thanks a lot, A.
|
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.