latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

boudewijn lutgerink


My Latest Replies (From Various Topics)

Viewing 25 replies - 101 through 125 (of 168 total)
Author Replies
Author Replies
Posted: Wednesday Jun 27th, 2012 at 12:11 pm #17660

well, FYI. The == did not work, neither did your code… So I have to look at other plug-ins to see what happens.
I suppose you tested it in a widget did you?
Oh boy, this is gonna be a long night…
Tx for the hint anyways

Posted: Wednesday Jun 27th, 2012 at 12:07 pm #17659

I see, thanks, will give it a try.
as to your reply: “Judging by your code, you meant for them to be the same.”
The first developer who uses two “different” variables by the same name but different casing will be shot by me.
I may be new to PHP, I have 30+ years experience in software development. I NEVER EVER saw the use of case sensitivity for variables (hence my prevalence for languages such as VB, VB.Net and xBase and most definetely VFP)

a development tool should not try to act as a language teacher.

Posted: Wednesday Jun 27th, 2012 at 6:02 am #17632

Yep, now it’s working again.

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 want is to display the content of the posts up to the more tag.
I tried the above code (message #16476) but that takes a lifetime to load, so I assume I do something wrong.

What I am loooking for is what I do wrong in that code (message #16476) and what I should do to correct it.
In teh above code I use

query_posts("cat_name=closed_ENG");

the category name is closed_ENG, I use case sensitivity because I found that many languages are case sensitive.
(Not that I see a use for that, but that is a totally different discussion)

Hoping I made myself clear now.

Posted: Wednesday Jun 27th, 2012 at 2:33 am #17625

the s2Get shortcode was used directly in a WP page.
the PHP code was tried in a page (using the HTML tab), that only showed the code in the page, not quite what I wanted.
Using code insert manager plugin I tried that in the body of the page (before content) and in the after content.
I get no results anywhere.
I also found the PHP code widget, basically a text widget that can contain PHP code.
Tried it there, no results either.
Changing the get_user_field parameter to “user_login” makes it work, the function fails when I try a real user defined field.

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: Tuesday Jun 26th, 2012 at 5:04 pm #17581

of course I can take care for that. And then comes tghe user who comes into my site WITHOUT the www. part in the domain-name.
I’ll give the .htaccess a try first, for now, I am gonna catch some Zzzz, was up at 5 this morning and now it’s 23h.

Posted: Tuesday Jun 26th, 2012 at 4:20 pm #17576

I get this:

Internet Explorer cannot display the webpage

What you can try:
Diagnose Connection Problems

More information

This problem can be caused by a variety of issues, including:
Internet connectivity has been lost.The website is temporarily unavailable.The Domain Name Server (DNS) is not reachable.The Domain Name Server (DNS) does not have a listing for the website’s domain.There might be a typing error in the address.If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
For offline users
You can still view subscribed feeds and some recently viewed webpages.
To view subscribed feeds
Click the Favorites Center button , click Feeds, and then click the feed you want to view.
To view recently visited webpages (might not work on all pages)
Click Tools , and then click Work Offline.Click the Favorites Center button , click History, and then click the page you want to view.


Do I need to say more?

Posted: Tuesday Jun 26th, 2012 at 4:18 pm #17575

Tried that already. Doesn’t work either.
If only things could work as promised, >sigh< …

Posted: Tuesday Jun 26th, 2012 at 4:13 pm #17572

I completely removed the http://www part, still the same result:

ERROR: Unable to verify $_SERVER[“HTTP_HOST”].
Please contact Support for assistance.

If you are the site owner, please check the custom value in your Button Code. It MUST start with your domain name.

Having only the www part in the domain name gives the same results. >Sigh< if only things would work as promised. This gives me nightmares

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.
Following the links in my reply to Raam you see the other pages, they only show the permalink.
( like this one: http://reikimagazine-online.com/paid-articles/)
I would like those pages to show the excerpt as well.

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.
I want the posts, related to that page to display the excerpt as it is created by using the more tag.

Posted: Tuesday Jun 26th, 2012 at 2:15 am #17477

Sorry to say but no, it is NOT helping.
I tried that in this code:

<? php
    $Taal = get_user_field("taal_language_sprache");
   echo $taal;
?>

What I see on the page is : Do not access this file directly.

I probably do something wrong but I don’t see what.

When I leave the code out the page runs fine.

I just found out that now the [s2Get user_field="taal_language_sprache" /] is no longer working either.

>sigh< the wonderful world of a new development language…

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.
What I want is to show the post text up to the more tag.
The text before the more tag is a kind of teaser. I want that showing on my pages.

Posted: Thursday Jun 21st, 2012 at 10:58 am #17133

Well, that’s all fine and good, the text preceding the more tag is supposed to be visible, it is a teaser. I actually want to change the text of the more tag and, when possible, the URL where the user is send to.
I figured out a way to get the value of a custom field (PHP is still quite fuzzy stuff for me) so now I want to use that to change the more tag in two ways dynamically:

  1. I want to change the language;
  2. I want to change the URL the user is sent to (language dependent again.

meaning that for the Dutch articles I want the reader to see a text like “Klik hier om verder te lezen”.
If logged in, they see the whole text, if not logged in (not a member yet) I want to forward them to a page where they see the Dutch text for subscription optiuons.

For English Readers I want them to see a text like “Continue reading…” and a link to a page with English text.

Posted: Tuesday Jun 19th, 2012 at 2:51 am #16826

Thanks eduan, I will take a look at it.

Posted: Monday Jun 18th, 2012 at 2:24 am #16754

Are you saying that the above code is correct then?
The page takes forever to load, and once loaded shows nothing.
(FYI, the ‘closed_ENG’ are all English posts with level 1 protection).

This is not going to be easy so it seems.

Posted: Sunday Jun 17th, 2012 at 6:26 am #16709

Hey Cristián,

I did not have the time yet to install the latest upgrade. Does your wink mean this issue is solved? Today I have but little time. I have a contest with my dogs later this day.

Posted: Friday Jun 15th, 2012 at 5:49 pm #16609

I sure hope there will be an easier way in the nearby future

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: Friday Jun 15th, 2012 at 9:45 am #16591

Ah, my hero answers! Thank you Cristián. I will have a look at that one.
Very much appreciated!

Posted: Thursday Jun 14th, 2012 at 9:44 am #16476

You made me think Christian, thanks for the wake-up call.
What I actually want is to keep those two pages, however, I want the text to be displayed as well… up to the More– tag. Right now I can only display the permalink to the pages.
I did find the query_posts() function but it looks like this is taking forever to load the page.
Not unlikely I am doing something wrong, unfamiliar with PHP. Here is the code, using the code insert manager, i run this code just before the content is displayed, with the restriction that the content is never displaying:

<?php
attach_s2member_query_filters();
    query_posts("cat_name=closed_ENG");

    if (have_posts()):
        while (have_posts()):
            the_post();
        /*
        Protected content will be excluded automatically.
        ( based on the current User/Member status )
        */
        endwhile;
    endif;

    wp_reset_query();
detach_s2member_query_filters();
?>
Posted: Wednesday Jun 13th, 2012 at 2:11 pm #16391

sure,

If you browse to http://reikimagazine-online.com/free-english-articles/
You will see some articles that everybody can read

Going to http://reikimagazine-online.com/paid-articles/
you will see articles that are only accessible for paying subscribers.

The first two don’t have a level restriction, the articles on the second link have a restriction for level 1
What I don’t like about either one is that they both only display the permalink.
(same goes for “Nederlands”)

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.
Those that log in can see all articles. That way I can get rid of the “for paying customers only” page.

I hope this is clear for you Raam.

Posted: Friday Jun 8th, 2012 at 3:32 am #15907

Hmmm, I guess that the “future release” Jason talks about is not the current one is it?
I will see what I can do with the info, but sure hope that this issue will be solved soon.

Posted: Wednesday Jun 6th, 2012 at 4:46 am #15669

Cristián,

Is there any way a variable value can be added to the URL? I understand that this is what Nick wants.

Posted: Wednesday Jun 6th, 2012 at 4:43 am #15667

Raam,

The account was setup completely since I had it working before and did not change that.
The point was that after the update the framework was somehow not activated.
After activation everything was up and running again.

Viewing 25 replies - 101 through 125 (of 168 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.