Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Post your requirements here «  

I've upgraded, I love it, but I've got some questions

Dubsky, Eoin -- on Mar. 9 2004
Student from Ireland... Living in France.
I can't understand why YACS isn't used by more website (searching with google I could only find a few sites 'powered by Yet Another...'). It's brilliant!

Now that I've heaped praise on you, ahem, would you help me with a few queries I have about YACS? heeh heeh heeh

I've setup a new site (not on the net yet) using the latest version of YACS (downloaded the zip yesterday 8 March 2004).

1.) Now when a visitor is not logged in at all, or is logged in as a member only, they only get the 'User Area' menu on the left. The 'Home, Articles, Files, Links, Sections, Categories, Users, Help' menu items only appear if they are logged in as an associate. What should I do?

2.) The possible user levels are 'associate', 'member', 'subscriber' and 'other' I believe. I know what the first two are for, but what are the latter two are for?

3.) I would like to create an extension for YACS and share it here. Its a plugin I already made for a different CMS, so I don't think it should be that hard. Are there any example extensions which I can see to learn from, or documentation about creating extensions for YACS?

Congratulations again and thanks for all your hard work. YACS rocks!
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

on Mar. 10 2004


" 1.) Now when a visitor is not logged in at all, or is logged in as a member only, they only get the "User Area" menu on the left. The "Home, Articles, Files, Links, Sections, Categories, Users, Help" menu items only appear if they are logged in as an associate. What should I do? "


Edit the menu page. The Visibility field should be set to "Anyone may read this article". Submit the change.
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

on Mar. 10 2004


" 2.) The possible user levels are "associate", "member", "subscriber" and "other" I believe. I know what the first two are for, but what are the latter two are for? "


Basically, subscribers are only allowed to read public pages. Compared to members, they cannot submit new articles, and they cannot access pages with restricted access.

"Other" means, quite simply, all surfers that have not been authenticated.

More information on this subtle topic, and on community structures, at the documentation pages for users. Guess users/index.php should be a good starting point.
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

on Mar. 10 2004


" Are there any example extensions which I can see to learn from, or documentation about creating extensions for YACS? "


The Internet has some non-written rules that everybody is supposed to enforce. One is that every CMS should have a plugin system. Well, maybe YACS departs from the main stream since it does not have such a thing.

IMHO plugins have the same characteristics than sand boxes: boundaries are clearly defined (i.e., programmers' job to create a plugin is quite easy), and boundaries are enforced (i.e., programmers may have to sweat a lot to implement not-foreseen features).

Can YACS be extended? Of course, it has even been designed for that. Here are some options for courageous, motivated and talented programmers as you are:
  • For little things, consider to include your code into existing scripts. Please use the query form, or post an article with attached files, and I will integrate everything into the next release, naming you as one of YACS authors.
  • To specialize pages you can implement the overlay interface. This is a kind of plugin interface that let you leverage on articles. Check overlays/overlay.php for more information. Also consider overlays/recipe.php as a practical experience of it.
  • For huge things, create a new subdirectory, and drop your scripts in it. Bind these scripts to existing ones with hooks, where applicable. Check control/scan.php for more information on hooks.
  • Regarding the geographical stuff, I have started to develop some scripts on my own. For example, my user profile (Paques, Bernard) has a link to a location, and that location may be displayed in a map. The idea is that a page, or an user can be attached to any number of locations. Also, other scripts, maybe yours, could use this information to provide additional services. Please feel free to expand on that.
Eoin
23 posts

on Mar. 11 2004


Thanks Bernard! I'll try the many tips you provided above (but I'll be back sooooon... with mooore questions!!).

Rate this page
Posted by Eoin on Mar. 9 2004, (popular)