Jump to content

qwertyeee

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by qwertyeee

  1. yes, yes it's editors fail when i did copy/paste. I do not know how to more accurately express his thought(for now) . Maybe some who will understand and be able to explain to the other.
  2. Hi guys. What do you think about field which takes a template name as parameter and operates with the filed of this tamplate. example we have 2 templates =============== template "basic page" field title field body field comments ======================= ===================== template "comments" field name field body field comments ==================== field comments uses template "comments" as parameters and this is done in order to receive comment on the cascading. (sorry for my english).
  3. mmm... don't understand problem with create new page with name "0"
  4. i try and have same problem, i think it's becouse page name set "0" (not "o"), maybe letter in code Ryan do check somethink like if ( $page->name ){...} else {...} and it's not work couse $page->name = 0 (sorry for my english).
  5. hello everyone. anybody did user registration/login ? (would like to see source)
  6. would add something like "autohide" (is a narrow strip on the left screen, and when it hover over it appears completely)
  7. Google map module. for use add in template <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->FieldtypeGMap?>styles/FieldtypeGMap.css" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="<?php echo $config->urls->FieldtypeGMap?>scripts/FieldtypeGMap.js"></script> $out = '<textarea id="Fieldtype_GMap_location" class="GMap_hidden_textarea">'.htmlspecialchars($page->GMap_location).'</textarea>'; $out .= '<div class="GMap_canvas" id="GMap_location"></div>'; $out .= '<script type="text/javascript">'; $out .= 'var GMap_location = new Map("GMap_location");'; $out .= '</script>'; echo($out); replace GMap_location with your field name $out = '<textarea id="Fieldtype_your_filed_name" class="GMap_hidden_textarea">'.htmlspecialchars($page->your_filed_name).'</textarea>'; $out .= '<div class="GMap_canvas" id="your_filed_name"></div>'; $out .= '<script type="text/javascript">'; $out .= 'var your_filed_name = new Map("your_filed_name");'; $out .= '</script>'; echo($out); GMap.zip
  8. and in site/config.php need recomment $config->dbSetNamesUTF8 = true;
  9. i found problem, this was in my apache config file httpd.conf AddDefaultCharset windows-1251 thank you
  10. hmm, i have php 5.2.12, problem may be in this
  11. " Are you able to view the page with the Russian titles on the site? (outside of the page list)" yes. Also, how did you convert those tables to UTF-8? - i change it in \ryancramerdesign-ProcessWire-019560e\site-default\install\install.sql in all tables with latin charset and reinstall site.
  12. "If you need help converting existing tables to UTF8, just let me know and I can tell you how" no, thank you Ryan, i do it. but page with russian title not working for me. strange =)
  13. i think any cyrilic site http://dirty.ru/ for examle you can copy same word for test title. and none utf8 table CREATE TABLE IF NOT EXISTS `field_headline` ( `pages_id` int(10) unsigned NOT NULL, `data` text NOT NULL, PRIMARY KEY (`pages_id`), FULLTEXT KEY `data` (`data`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `field_sidebar` ( `pages_id` int(10) unsigned NOT NULL, `data` mediumtext NOT NULL, PRIMARY KEY (`pages_id`), FULLTEXT KEY `data` (`data`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `field_summary` ( `pages_id` int(10) unsigned NOT NULL, `data` mediumtext NOT NULL, PRIMARY KEY (`pages_id`), FULLTEXT KEY `data` (`data`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; (*and sorry for my english )
  14. in admin panel processwire/page/list/ Page List Home 7 * Edit * View * New Stories 1 * Edit * View * New * Move Stories page can't load child if child page have cyrilic title. also same table in install.sql have non utf8 charset.
  15. I forgot, in site/templates/head.inc need add this <script type='text/javascript' src='/wire/modules/GMap/scripts/GMap2.js'></script> <script type='text/javascript' src='/wire/modules/GMap/scripts/FieldtypeGMap.js'></script>
  16. Thank you ryan. i attach my test module, can you comment pls. (it's just test) GMap.zip
  17. hi all. Is for example class Fieldtypetest extends Fieldtype { } when it is displayed in the template page echo "{$ page-> testField}"; need to include javascript file and add something to the value I try to do so: class Fieldtypetest extends Fieldtype { public function formatValue (Page $page, Field $field, $value) { $this->config->scripts->add($this->config->urls->Fieldtypetest. "test_js.js"); return '<div>'.$value.'</div>'; } } * ( $this->config->urls->Fieldtypetest - have correct value ) But it does not work, javascript not included. Please tell me how to correctly include the required javascript and add something to value, such as '<div>'. $ value. '</ div>'; for example.
×
×
  • Create New...