Page 1 of 1

How to use twocents_XH with Register_XH?

Posted: Sat Mar 19, 2016 12:57 pm
by Tata
I work on a webpage with a part

Code: Select all

<h1>COMMUNITY</h1>
<p>
     <a href="?COMMUNITY/Community-Forum">FORUM</a> | 
     <a href="?COMMUNITY/Community-Guestbook">GUESTBOOK</a> | 
     <a href="?COMMUNITY/Community-Blog">BLOG</a>
</p>

<h2>Community Forum</h2>
     <div>{{{forum('forum');}}}</div>

<h2>Community Guestbook</h2>
     <div>{{{access('admin,parent');}}}</div>
     <div>{{{twocents('guestbook');}}}</div>

<h2>Community Blog</h2>
     <div>{{{miniblog();}}}</div>

     <h3>First Category</h3>
     <div>{{{access('admin,parent')}}}</div>
     <h4>Entry</h4>
          <p>Lorem ipsum dolor sit amet, ad natum vivendo vim. ...</p>
          <div>{{{twocents('first-category');}}}</div>
I have Register plugin installed and the forum works just as expected - entries are visibile for all visitors, the entries are only allowed to those registered/logged in.
I would like to use the same approach both for the guestbook and Blog. But with the guestbook it doesn't work and in Blog, the plugin call is visible in full entry.

Re: How to use twocents_XH with Register_XH?

Posted: Wed Apr 27, 2016 2:28 pm
by cmb
Tata wrote:I have Register plugin installed and the forum works just as expected - entries are visibile for all visitors, the entries are only allowed to those registered/logged in.
I would like to use the same approach both for the guestbook and Blog. But with the guestbook it doesn't work and in Blog, the plugin call is visible in full entry.
I might add this feature to Twocents_XH, iff there will be a general API for "user account" plugins. Otherwise there would be another dependency on a non-public API, what is really bad in my opinion. There are already too many of these.