Hi all. I have set the tag <!--pagebreak--> to perform the split of an
big article (one of my content type) into some "little articoli's page".
It works, but I can not found where is the variable (for theme the
content type's content) that contain the link to the other page, so to
include it into my theme.
There is another thing that I don't undestrand: $node->page_context =
teaser. Why ?
M.
--
Michel 'ZioBudda' Morelli michel(a)ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel(a)ziobuddalabs.it
JABBER: michel(a)gmail.com
Hi all. I have created a form with this select:
$form['dati'] = array (
'#title' => 'Dati',
'#type' => 'checkboxes',
'#description' => 'Settagi per il livello',
'#options' => array('ecomm' => 'Visibile Ecomm','visibile' =>
'Visibile altri form','default' => 'Default')
);
I have this _submit fom():
function add_lU_form_submit($form,$form_values) {
if ($form_values['dati']['ecomm'] == 0) $ecomm2 = 0;
else $ecomm2 = 1;
if ($form_values['dati']['visibile'] == 0) $visibile = 0;
else $visibile = 1;
var_dump($ecomm2);
var_dump($visibile);
exit; //Test stop here;
[....]
}
So, In the output form I check the Ecomm field so $form_values['dati'] is :
array(3) {
["ecomm"]=>
string(5) "ecomm"
["visibile"]=>
int(0)
["default"]=>
int(0)
}
Now: why this piece of function (say above) give always 0 :
if ($form_values['dati']['ecomm'] == 0) $ecomm2 = 0;
else $ecomm2 = 1;
I don't' understand why.
Tnx.
--
Michel 'ZioBudda' Morelli michel(a)ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel(a)ziobuddalabs.it
JABBER: michel(a)gmail.com
Hello
I have been searching with google and other tools for the last couple
of hours, and can not find any similar situations.
Problem:
Drupal in a multisites configuration, does not seem to be sending cookies
to the browser.
Symptom and Steps:
I first logged in to https://sub.domain.com/install.php, to get the
database populated, etc..
Note that I am using SSL, and a basic auth .htaccess requiring a
username and password, to protect the drupal directory. All of that seems
to be working fine.
That done, I selected the "create admin account" (or similarly named)
link, entered "admin" as the user name, and my email address. When
selecting "create account", I was presented with a 403 forbidden error.
However, the email with password was sent, and when I entered the username
and password, the "create admin account" step was gone from the initial
page.
The link to configure the system now generates a 403 and the message "You
are not authorized to access this page." if I do not log in. Also,
between the time of selecting that link, and actually getting the page,
nearly 20 seconds passes for some reason--nothing else it does takes that
long.
If I attempt to log in from there, it appears that the login is
successful, and it attempts to redirect to the page after a successful
login, but when it reloads the page it ends up with the same 403.
No cookies are being sent at any point during this process, which is
almost certainly my problem.
Environment:
Ubuntu Feisty
Apache 2
PHP 5
MySQL 5
Drupal 5.1
I checked the sessions table, and do see a single session for admin.
I have not tried this with the "default" installation of Drupal, because I
have no intent to use, and therefore have not bothered to configure, that
version.
I would appreciate greatly any advice on this issue.
Thanks and regards,
Luke
Hi, stupid question:
I'm trying Drupal 6. I have attached (uploaded) a png image, that seems to
work. I am in a 'Book' content type. I am trying to get the image to show in
the flow of the content.
1. I have added the <img> tag in the Configure Filtered HTML page. (I even
tried full HTML.)
2. I use <img
src="http://localhost/~donn/drupal-6.0/sites/default/files/client-server-flow.png"
alt="blah" border="1" /> as the tag.
Nothing is showing up. I am sure the tag is being stripped out.
Is there some simple way to employ images in D6? I'd like to set the alignment
and decoration etc. too. Any suggested modules (for D6)?
\d
Hi all. I have this function:
function add_lU_form_submit($form,$form_values) {
$ecomm2= (isset($form_values['ecomm'][1])) ? TRUE : FALSE;
$visibile = (isset($form_values['visibile'][1])) ? TRUE : FALSE;
$query = 'insert into mw_lU(name,peso,ecomm,visibile)
values("'.$form_values['name'].'",'.$form_values['peso'].','.$ecomm2.','.$visibile.')';
echo $query; //For test
[...]
}
with this form:
$form['name'] = array(
'#title' => 'Nome del livello',
'#type' => 'textfield'
);
$form['peso'] = array(
'#title' => 'Peso',
'#type' => 'select',
'#options' => array(0=>0,1=>1, 2=>2,3=>3)
);
$form['ecomm'] = array(
'#title' => 'Ecomm',
'#type' => 'checkboxes',
'#description' => t('Da passare all\'ecommerce'),
'#options' => array("si"),
'#default_value' => TRUE
);
$form['visibile'] = array(
'#title' => 'Visibile',
'#type' => 'checkboxes',
'#description' => t("Visibile negli altri form"),
'#options' => array("si"),
'#default_value' => TRUE
Now when I click on the form's submit button (I don't check the ecomm
checkboxes field), Drupal call "add_lU_form_submit()", and this is ok,
but $query is "insert into mw_lU(name,peso,ecomm,visibile) values("per
tutti",2,,1)".
Note the absence of the FALSE value (0) for the ecomm field.
Where is my error ???
TNX.
--
Michel 'ZioBudda' Morelli michel(a)ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel(a)ziobuddalabs.it
JABBER: michel(a)gmail.com
How can I change the date format of the "Last Reply" column in a forum
from "2 days 22 hours ago" to "11/02/08 11.01am"?
I just edited
function _forum_format($topic) {
in forum.module as I see no other way. Is there a better way?
Thanks.
A few of you had asked to see a presentation I made here at the
University of Delaware. UD has been researching options for a content
management system, including both open source and commercial. My first
presentation on Drupal was very well received, and from what I hear,
Drupal is the leading contender to be selected as "the" CMS. It is not
yet clear exactly how it will be used within UD, although they are
looking for a solution that scales well, from small number of
users/hits and easy to deploy/maintain to more advanced enterprise
applications. Hopefully, a decision will be made soon.
http://docs.google.com/Presentation?id=ddfn435q_81dp4swzj5
The above Google doc is a presentation I made just a few days ago. By
no means am I a Drupal or PHP expert (I hadn't heard of Drupal until 6
months ago) so the presentation could be significantly enhanced,
especially in regards to development. However, I am one of about 5
people across campus already developing Drupal sites at UD. Hopefully,
some of you find this presentation useful.
- John
PS - Through the above presentation, you can print the slides and save
as a PDF. Please let me know if you have trouble accessing the
presentation.
(Apologies if this comes through twice--a spam filter was messing with my
attempt to subscribe, and the first may not have made it.)
Hello
I have been searching with google and other tools for the last couple
of hours, and can not find any similar situations.
Problem:
Drupal in a multisites configuration, does not seem to be sending cookies
to the browser.
Symptom and Steps:
I first logged in to https://sub.domain.com/install.php, to get the
database populated, etc..
Note that I am using SSL, and a basic auth .htaccess requiring a
username and password, to protect the drupal directory. All of that seems
to be working fine.
That done, I selected the "create admin account" (or similarly named)
link, entered "admin" as the user name, and my email address. When
selecting "create account", I was presented with a 403 forbidden error.
However, the email with password was sent, and when I entered the username
and password, the "create admin account" step was gone from the initial
page.
The link to configure the system now generates a 403 and the message "You
are not authorized to access this page." if I do not log in. Also,
between the time of selecting that link, and actually getting the page,
nearly 20 seconds passes for some reason--nothing else it does takes that
long.
If I attempt to log in from there, it appears that the login is
successful, and it attempts to redirect to the page after a successful
login, but when it reloads the page it ends up with the same 403.
No cookies are being sent at any point during this process, which is
almost certainly my problem.
Environment:
Ubuntu Feisty
Apache 2
PHP 5
MySQL 5
Drupal 5.1
I checked the sessions table, and do see a single session for admin.
I have not tried this with the "default" installation of Drupal, because I
have no intent to use, and therefore have not bothered to configure, that
version.
I would appreciate greatly any advice on this issue.
Thanks and regards,
Luke