- fixed a few typoes in the documentation
parent
f055cf11e0
commit
fc3d320d86
|
@ -8,8 +8,8 @@ function ab_help() {
|
|||
?>
|
||||
<P>The content of the site can be almost entirely altered by means of blocks. Simply put, <I>admin blocks</I> are small bit of PHP code which will get plugged into the site. Admin blocks are typically used to add custom blocks to the site.</P>
|
||||
<P>If you know how to script in PHP, admin blocks are pretty simple to create. Don't get your panties in a knot if you are not confident with PHP: simply use the standard admin blocks (i.e. those available by default) as they are just fine or ask an expert 'admin blocker' to help you creating custom admin blocks that fit your need.</P>
|
||||
<P>Each admin block consists of a subject an associated block of PHP code which can be as long as you want it to be and that will 'render' the content of the block. You can use any piece of PHP code to make up an admin block. A admin block's code is stored in the database and the engine will dynamically embedded the PHP code just-in-time for execution.</P>
|
||||
<P>There are however some factors to keep in mind when using and creating admin blocks: admin blocks can be extremly useful and flexible, yet be dangerous and insecure if not properly used. If you are not confident with PHP, SQL or even with the site engine for that matter, avoid experimenting with admin blocks because you can - and you probably will - corrupt your database or even break your site! If you don't plan to do fancy stuff with admin blocks then you are probably save though.</P>
|
||||
<P>Each admin block consists of a subject an associated block of PHP code which can be as long as you want it to be and that will 'render' the content of the block. You can use any piece of PHP code to make up an admin block. An admin block's code is stored in the database and the engine will dynamically embedded the PHP code just-in-time for execution.</P>
|
||||
<P>There are however some factors to keep in mind when using and creating admin blocks: admin blocks can be extremly useful and flexible, yet be dangerous and insecure if not properly used. If you are not confident with PHP, SQL or even with the site engine for that matter, avoid experimenting with admin blocks because you can - and you probably will - corrupt your database or even render your site unusable! If you don't plan to do fancy stuff with admin blocks then you are probably save though.</P>
|
||||
<P>Remember that the code within each admin block must be valid PHP code, including things like terminating statements with a semicolon so the parser won't die. Therefore, it is highly recommended to test your admin blocks seperatly using a simple test script on top of a test database before migrating to your production environment running your real database.</P>
|
||||
<P>Note that you can use any global variables, such as configuration parameters within the scope of an admin block and keep in mind that variables that have been given values in an admin block will retain these values in the engine or module afterwards.</P>
|
||||
<P>You may as well use the <CODE>return</CODE> statement to return the actual content of the block.</P>
|
||||
|
@ -27,7 +27,7 @@ function ab_help() {
|
|||
return "Welcome visitor, ... welcome message goes here ...";
|
||||
}
|
||||
</PRE>
|
||||
<P>For more in depth example, we recommand you to check any of the available admin blocks and to go from there.</P>
|
||||
<P>For a more in depth example, we recommand you to check any of the available admin blocks and to go from there.</P>
|
||||
<P>As said above, you can virtually use any piece of PHP code in an admin block: you can declare and use functions, consult the SQL database, access configuration settings and so on.</P>
|
||||
<?
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ function documentation() {
|
|||
</PRE>
|
||||
<P>9. (optional) Create your site's theme or at least customize the existing themes. To get started, head on to the <CODE>themes</CODE>-directory and make a custom logo for each theme.
|
||||
<P>10. (optional) Add and remove modules to customize the functionality of your site. Adding and removing modules is plain easy. You can add a module by copying the files into the <CODE>modules</CODE>-directory and you can remove a module by removing a module's file from the <CODE>modules</CODE>-directory. The drupal engine will then automatically include or exclude this module. If for some reason, this seems to fail, "manually" rehash the modules list from http://yourdomain.com/admin.php?mod=module.</P>
|
||||
<P>11. If you get is to run, let us know at <A HREF="mailto:info@drop.org">info@drop.org</A> so we can add your site to our list of drupal sites. If you can't get it to run, you can find support at the drupal site or you can contact us by e-mail at <A HREF="mailto:info@drop.org">info@drop.org</A>.</P>
|
||||
<P>11. If you get it to run, let us know at <A HREF="mailto:info@drop.org">info@drop.org</A> so we can add your site to our list of drupal sites. If you can't get it to run, you can find support at the drupal site or you can contact us by e-mail at <A HREF="mailto:info@drop.org">info@drop.org</A>.</P>
|
||||
|
||||
<H2>More than one (sub)domain on one machine</H2>
|
||||
|
||||
|
@ -193,7 +193,7 @@ function documentation() {
|
|||
|
||||
<H2>User management</H2>
|
||||
|
||||
<P>drupal's user management system is capable of handling registrations, confirmation emails, account updates, authentication, access rights and user-based permissions among various other things.</P>
|
||||
<P>Drupal's user management system is capable of handling registrations, confirmation emails, account updates, authentication, access rights and user-based permissions among various other things.</P>
|
||||
<P>No participant can use his own name or handle to post comments until they sign up and submit their e-mail address. Those who do not may participate as anonymous users, but they will suffer numerous disadvantages, not the least that their posts begin at a lower score.</P>
|
||||
<P>In contrast, those with a user account can use their own name or handle and are granted various priveleges: the most important are probably the ability to moderate new submissions, to rate comments and to fine-tune the site to their personal liking.</P>
|
||||
<P>Registered users need to authenticate by supplying a username and password. The username and password are kept in your database, where the password is hashed so that no one can read nor use it. When a username and password need to be checked the system goes down the list of registered users till it finds a matching username, and then hashes the password that was supplied and compares it to the listed value. If they match then that means the username and password supplied were correct.</P>
|
||||
|
|
|
@ -67,12 +67,11 @@ function headline_cron() {
|
|||
}
|
||||
|
||||
function headline_help() {
|
||||
global $site_url;
|
||||
?>
|
||||
<P>Drupal's headline module both imports and exports RDF/RSS headlines.</P>
|
||||
<P>A lot of news-oriented websites are now publishing news (headlines) and make their content available through XML, RSS and RDF backend files. They syndicate content for free and allow retrieval and further transmission, aggregation, or online publication. At the current state, drupal's headline module supports RDF and RSS backends.</P>
|
||||
<P>RSS was originally developed by Netscape to be able to add news channels to "My Netscape" sites, but has since become adopted as the defacto standard for distributing headlines and brief descriptions of things that change around the net.</P>
|
||||
<P>The headline module goes out to a list of configured news sites once an hour or so (driven from cron), downloads new RSS/RDF data and makes it available to your visitors. In addition, your headlines are exported as well and can be retrieved at <A HREF="<? echo $site_url; ?>export/headlines.rdf"><? echo $site_url; ?>export/headlines.rdf</A>.</P>
|
||||
<P>The headline module goes out to a list of configured news sites once an hour or so (driven from cron), downloads new RSS/RDF data and makes it available to your visitors. In addition, your headlines are exported as well and can be retrieved at http://yourdomain.com/export/headlines.rdf.</P>
|
||||
<?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue