Установка и настройка сайта, а также системного окружения. Исключая вопросы программирования новых модулей и тем.
См. документацию на английском: http://drupal.org/node/258
I have a custom module that lists nodes in a particular way. Because the content it lists is universal, I have set the cache settings to BLOCK_CACHE_GLOBAL.
However, when new nodes are added, the block is still showing the old cached data from 30 hours ago.
Clearing the cache caused the block to update, so I know the problem is the data being cached and not an issue in the custom code.
I can see hack solutions (hook_nodeapi,hook_cron), but I'm sure there must be a more Drupalish fix to ensure the block updates regularly, or when content is added/modified?
Hi
Ive got a proper working module but if I use hook_forms() function it doens't insert the 'type' in the type field in the node table.
This is how my code looks:
preparing drupal_get_form
global $user;
$node=new stdClass();
$node->uid=$user->uid;
$node->type='my_node_type';
$output=drupal_get_form('my_node_type_node_form0',$node)
echo $output;
my hook_forms function
my_node_type_forms(){
$args=func_get_args();
$form_id=$args[0];
$forms=array();
if(strpos($form_id, 'my_node_type_form')===0){
$forms[$form_id]=array('callback'=>'my_node_type_form');
}
return $forms;
}
I guess I have to add arguments to $forms array so it still know which node type its handling? I tried $forms[$form_id]=array('callback'=>'my_node_type_form', 'callback arguments'=>array('type'=>'my_node_type')) But its no use.
i just installed drupal 6.6 and received the following error
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\drupal-6.6\sites\all\modules\smtp\smtp.module on line 246
what should i do.
I'm trying to learn Drupal 6 access control with these instructions: http://drupal.org/node/109157
I'm trying to figure out the function of 'access arguments' inside the menu_hook.
For example, here is a clip of webform module's menu hook:
<?php
$items['node/%webform_menu/submission/%webform_menu_submission/edit'] = array(
'title' => 'Edit',
'load arguments' => array(1),
'page callback' => 'webform_client_form_load',
'page arguments' => array(1, 3, TRUE, FALSE),
'access callback' => 'webform_submission_access',
'access arguments' => array(1, 3, 'edit'),
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
?>
It's unclear to me what these numbers mean in 'access arguments'? Could someone explain me a bit of 'access arguments'? What do the numbers 1 and 3 mean??
Dear Atlantica Players,
The technical issues have been resolved, and the Atlantica Item Mall is back open for business. Thank you for your patience.
Sincerely,
The Atlantica Team
Atlantica Gold We offer the Cheapest Gold, the Best Service and the Latest Atlantica Information Here.strives to give you the best prices on atlantica gold service. we can always get atlantica gold quickly and fast delivery that brings you more satisfactorily. our aim is to make you happy with a more excited life in the game. we will try our best to provide customers the best service and the safest delivery. thanks to the loyal and new customers for supporting us all the time. if you are interested in atlantica , you can enjoy great discount here! we will devote all efforts to returning, once again, thank you!
The Virtual Scoop is offering up more hard evidence on Atlantica's appeal. This site for virtual world and MMO news describes Atlantica as a "whole new experience for online gamers" that is "fun, beautiful, and absolutely addictive."
Read the full review here.
Atlantica Gold We offer the Cheapest Gold, the Best Service and the Latest Atlantica Information Here.strives to give you the best prices on atlantica gold service. we can always get atlantica gold quickly and fast delivery that brings you more satisfactorily. our aim is to make you happy with a more excited life in the game. we will try our best to provide customers the best service and the safest delivery. thanks to the loyal and new customers for supporting us all the time. if you are interested in atlantica , you can enjoy great discount here! we will devote all efforts to returning, once again, thank you!
There's more to learn about Atlantica and what went on to bring the game to you, courtesy of an interview MMOSite.com conducted with Atlantica Producer Kim Tae Gon. There are also some
details on the upcoming update planned for the game in about a month.
Read the full interview here.
Atlantica Gold We offer the Cheapest Gold, the Best Service and the Latest Atlantica Information Here.strives to give you the best prices on atlantica gold service. we can always get atlantica gold quickly and fast delivery that brings you more satisfactorily. our aim is to make you happy with a more excited life in the game. we will try our best to provide customers the best service and the safest delivery. thanks to the loyal and new customers for supporting us all the time. if you are interested in atlantica , you can enjoy great discount here! we will devote all efforts to returning, once again, thank you!
Since last year, "world miracle" since the closure of the region Netcom, on the well-known domestic manufacturers the ninth game of the city seems to be bad news one after the arrival.
Last year, "world miracle" during the beta completely shut down and delete all the data Netcom regional news emerged after the ninth of the city's online games one after another reported bad news. Gorgeous network, "Sword of Excellence" has a very high reputation, but it is regrettable that the pattern of the game was not accepted by the domestic players. Hua Dan headed "World of Warcraft," the first chapter of information and synchronization in the global market for a long time after just quietly come, is about to expire in 2009 for "World of Warcraft" authorized, but so far there is no formal announcement of the renewal.
Recently, the South Korean game makers Ndoors company officially announced the development of its large network of role-playing game "Atlantica" (King World) in North America to enter formal operations.
The Ndoors developed by the ultra-popular adventure theme mercenaries turn-based role-playing game network, operating in South Korea after a strong response, and selected well-known South Korean Cyber Games GNGWC. In the game players can control up to 8 mercenaries to fight. Gorgeous screen in the game, great battle systems, is rich in its strategy can not be replaced characteristics.
At the same time, the game is now into the North America, Japan and mainland China market, Japan is still testing the region, mainland Chinese agents have been the ninth city in a recent network Bo disclosed for the first time at the Simplified Chinese version of the relevant内容. The game is expected to be in the near future to meet with the players.
Dear All,
Im using Drupal 6.6 im facing a problem after enabling DHTML in modules section it is not showin me in blocks can any one help me im new to drupal urgent.
Regards
Ashwin
Hi There,
On the listing of comments below a view of a page, I do not want a user to edit his comments. Thus I want to remove the edit link from below every comment. Does any one know how to do this. If yes, I would be grateful if you would share a few pointers.
Regards,
Netplay
Hi Everyone,
when i add any event using module it ask All day but if i want to add events using alternate day how can i do this please tell me or how can i add this feature in my events module....have u understand wat do i mean by ALTERNATE DAY(if my events time will be 19nov to 21 and if i checked on alternate day then there will be event on 19 and 21 there will be no event on 20 because i checked alternate day ).
Thanks ,
Drupal via the core Statistics module allows you to collect node view counts for the current day (daycount) and for 'all-time' (totalcount). This module was developed to allow you to define additional timeperiods in addition to the ones provided by the Statistics module. By enabling this module you can track node view and comment counts for shorter timeperiods such as 4 hours or for longer timeperiods such as 1 week or 1 month.
In order to make the collection of this data more useful I have also included simple Views integration that allows you to present a node's view count or comment count as a Views field and/or use the node's view count or comment count as a Views sort.
Hi,
I am working on a module that would display relevant videos form youtube alongside the content of a certain type. For this I need to use Google's PHP client library (http://framework.zend.com/download/gdata/) distributed with the Zend framework.
When I place the library folder in my module directory and use the following code
<?php
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_YouTube');
?>
I get an error message that says
Fatal error: Zend_Loader::require_once() [function.require]: Failed opening required 'Zend/Exception.php' (include_path='.:/usr/share/php') in /var/www/ilb_kaka/sites/all/modules/custom/ilb_blocks/Zend/Loader.php on line 87
This means that Loader.php file is getting included alright but then PHP is not able to include Exception.php (on line 87)
I have also tried including the file as
<?php
require_once(drupal_get_path('module', 'modulename') . '/Zend/Loader.php');
?>
But it gives the same error message.
Whats interesting is that
* I do not get any error messages at all when I use the library with a stand alone php script (not a part of drupal setup)
* I have checked (a thousand times actually) and the file permissions are right
Not sure wether this is the best place to post this, but I have what seems to be a problem. Since I cannot see any problems in functionality I am not too worried. I get this error on some of my views, whilst in admin mode only, all else seems to be workig!
* user warning: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' query: SELECT s.uid, v.updated FROM views_object_cache v INNER JOIN sessions s ON v.sid = s.sid WHERE s.sid != '9061a7e5056174f627a75855e55d7b2b' and v.name = 'NodNamNum' and v.obj = 'view' ORDER BY v.updated ASC in /home/mdg/public_html/modules/views/views_ui.module on line 242.
* user warning: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' query: SELECT s.uid, v.updated FROM views_object_cache v INNER JOIN sessions s ON v.sid = s.sid WHERE s.sid != '9061a7e5056174f627a75855e55d7b2b' and v.name = 'NodNamNum' and v.obj = 'view' ORDER BY v.updated ASC in /home/mdg/public_html/modules/views/views_ui.module on line 242.
I am sure I never touched the collation sequence of the db itself. Could a default install of one module be incompatible with another?
Thanks for any clarifications, or help.
I am new to drupal ,i have got a problem in the pagination.Hers is my code
drupal_add_css(drupal_get_path('module', 'news') .'/news.css', 'last', 'all', TRUE);
$breadcrumb = array();
$breadcrumb = array(l(t('Home'), ''), l(t('News'), 'client_news'));
drupal_set_breadcrumb($breadcrumb);
$news_content = '';
$limit = 5;
$query = "SELECT * FROM news";
$record_count = db_result(db_query("SELECT COUNT(*) FROM {news}"));
$result = pager_query($query,$limit,0,$record_count);
while($links = db_fetch_object($result)) {
$length_news = strlen(trim($links->news_desc));
if ($length_news > 300) {
$news_desc = substr($links->news_desc, 0, 300). '...';
} else {
$news_desc = $links->news_desc;
}
$status = ($links->is_active == 'Publish')?'Published':'Unpublished';
$news_content .= theme('news_display',
check_plain($links->news_title),
check_plain($news_desc),
l('More','news_detail/view/' . $links->id));
}
$news_content.= theme('pager', NULL,$limit, $record_count);
return $news_content;
not sure where is the problem but 5 records are displayed and the pagination is not displayed and i got the error
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '8' at line 1 query: 8 i
CDN2 is the first video solution designed JUST for Drupal.
It provides upload, transcoding and delivery to your users while simultaneously removing the overhead of large files uploaded to your site.
For more information and to sign up to use the service, please visit http://www.workhabit.com/products/cdn2 .
Hi All,
one question related to og and notifications. How can i at a sender or sender_account to the messages generated by og.
I have notification and messaging installed and i´m using messaging_simple module to display the messages to the users. in the message table i allways have System in the row from. I tryed allready to add a sender to the $message = array(
'sender' => $account->uid,
'subject' => _og_user_mail_text('og_new_admin_subject', $variables),
'body' => _og_user_mail_text('og_new_admin_body', $variables)
);
like shown in the readme for messaging but i never have a sender at all.
Any idea how this works?
Dirk
I had downloaded one flash photo module from Drupal.When i wantd to upload photo it didnt work.The error was javascript:void(0).I already uncheck block popup windows.Else what should i do? This is the url of Album Photo http://drupal_home.xtreemhost.com. username:shahrul and password:shahrul.
I've been having trouble with my blocks. Whenever I try moving multiple blocks into different regions (all at once), after pressing save many of the other (untouched) blocks get placed in random regions. For example, say I moved blocks A, B, and C into region X. Even though I didn't touch blocks D, E, or F, they will get moved into regions Y and Z. As far as I've noticed, this only happens when I move more than one block at a time.
There are a huge amount of blocks on my site that are both used and unused and I think the number of blocks is causing this to happen. I've searched on Google and the forums here and haven't seen any solutions to or reports of this problem. Is there any way to be able to move blocks in batches without having to play the game of 52 Pickup?