PEAK XOOPS - News in englishin japanese

Archive | RSS |
  
Poster : GIJOE on 2007-11-01 06:03:50 (12237 reads)

in englishin japanese
This tips is a part of my session in XCDM#1.

You can hook renderer of XCL2.1 entirely just putting a preload.

First, read the source code of a preload named "HdXoopsTplHook.class.php".

A directory "XOOPS_TRUST_PATH/libs/smartyplugins" is inserted into the top of an array $xoopsTpl->plugins_dir.

This looks like ryusSmartyPluginsEx.
http://ryus.co.jp/modules/wordpress/index.php?p=57

But you should notice the different between addition and insertion.
By insertion, you can also hook almost smarty plugins.

The most important target is resource.db.php.
(I'll show a god sample to hook resource.db.php in the next time)

And the method of hook() also sets the selected theme as "compile_id".

This allows you to select themes with templates for the theme.
Certainly, this looks the same way as the core from xoops.org.

But you should know such a strong hooking is achieved just by adding an extra file. There are no core files overwritten. (Then you can update the core casually)

This is another proof which XCL2.1 has been well-designed definitely.

Read more... | 493 bytes more |3 comments

Poster : GIJOE on 2007-10-29 05:43:16 (8258 reads)

in englishin japanese
Yesterday, I took part in XCDM#1.

In the meeting, minahito tried to wash our brain.
"What does the project give us"
"What do we give the project".

Certainly, both XOOPS projects don't look like common OpenSource Projects.
We should think "what is OSS", again.


# Marijuna gave me "XOOPS Cube Legacy Developer's bible"
# I'll read it soon.


Poster : GIJOE on 2007-10-03 05:26:33 (15538 reads)

in englishin japanese

Here is the specs of pico's form processing system.

Plugins processing forms inside pico

formmail
send an email to "adminmail"
formmail4fleamarket
send an email to the creator of the content.
store the query into extra table (admins can refer it in admin area)
survey
no emails will be sent.
just store the query into extra table (admins can refer it in admin area)

Of course, you can change default behaviors by adding parameters.
eg) add a parameter of to="" inside <{command}>

Valid parameters for the plugins processing forms of pico

Any parameters can be missed. Default values are defined in language files.

mail_body_pre
The mail body before query contents for the query mail.
mail_body_post
The mail body after query contents for the query mail.
mail_subject
Subject for the query mail
to
Additional "to" for the query mail. A comma should be used as the separator between mail addresses
from
"from" for the query mail.
from_name
name part of "from" for the query mail
can_post_again
1: blank form will be displayed again after posting the form.
0: Just "Thank you" message will be displayed after posting the form.
confirm_message
Message at confirming
finished_message
Message after sending a query
cc_field_name
fileld's "name" for sending "confiming mail"
cc_mail_subject
Subject for "confirming mail"
cc_mail_body_pre
The mail body before query contents for the confirming mail.
cc_mail_body_post
The mail body after query contents for the confirming mail.


Poster : GIJOE on 2007-09-27 18:13:29 (22756 reads)

in englishin japanese
I've just released d3forum-0.77.
You can use fckxoops with this version.
Perhaps, you've already known forum modules can use WYSIWYG Editors.

But d3forum is far differnt from them because of the security.

If you turn "Enable HTML" on, your post will be filtered HTMLPurifier automatically.
Then, all of JavaScripts will be removed from the post.

I've opened "HTML allowd FORUM" for my experments.
http://xoops.peak.ne.jp/md/d3forum/index.php?forum_id=12

Only with the forum, you can use fckxoops and allow HTML.
Of couse, you can control such detailed settings by forum's option.

Read more... | 295 bytes more |10 comments

Poster : GIJOE on 2007-09-23 15:41:58 (16106 reads)

in englishin japanese
Now, I show a practical examples how to use pico's formmail system.

Case 1:
"Implant forms after product presentation pages"

You can easily achive it using pico's smarty plugisn "pico" and "formmail".

Make a content like this. (Turn "Smarty" filter on)


(products introducing section)

<{capture}>
<{pico id="(content ID describing the form)"}>
<{/capture}>
<{formmail4fleamarket mail_body_pre="A query from visitor exists\nContact him/her soon as possible\n\n" from_name="Product manager" cc_field_name="youremail" cc_mail_subject="A confirmation for your query" cc_mail_body_pre="Thank you for querying us.\nThis is the content you have queried\n"}>


Also, you have to make a content like this.

<form>
  name: <input type="text" name="name" class="required" /><br />
  email: <input type="text" name="youremail" class="email" />
  <input type="submit" />
</form>

This content ID(number) will be specified the former content.
You can make a variety of forms, and specify their numbers as you like.

Of course, you can make form contents into the other pico module instance.
You can specify the form content by "dirname" parameter.h
<{pico id="(conent ID)" dirname="(dirname)"}>

Now we look long parameters of <{formmail}>.
Their parameters controls "mail actions".

legend)
mail_body_pre: specifying body part before the query content. (from XOOPS to adminmail)
from_name: specifying sender name
cc_field_name: specifying a field name for sending "confirming mail" to form poster.
cc_mail_subject: specifying Subject of "confirming mail"
cc_mail_body_pre: specifying body part before the query content of "confirming mail"


« 1 ... 3 4 5 (6) 7 8 9 ... 37 »
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!