11
Pnooka
Re: Smarty on TMP?
  • 2006/2/25 21:02

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


You might have some faulty template files in some of your modules, these could cause some compile errors.



12
Pnooka
Re: PHP syntax highlighting
  • 2005/10/12 15:14

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


Thank you very much phppp. I didn't find that, maybe because it was located at xoops.org.cn. Will try to modify my code to get that highlighter to work properly.



13
Pnooka
Re: PHP syntax highlighting
  • 2005/10/12 4:33

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


Well, i downloaded that Fractalizers highlighter, but don't like the idea of me having to install an external application fot it to work. After all, my webhost doesn't run PEAR, so that's a no go. And geshi is a bit tricky to set up. I only want to add a pice of code, very much like this one.
Quote:

function bb_php($str){
$str = str_replace("]\n", "]", $str);
$match = array('#\[php\](.*?)\[\/php\]#se');
$replace = array("'<div>'.highlight_string(stripslashes('$1'), true).'</div>'");
return preg_replace($match, $replace, $str);
}



14
Pnooka
PHP syntax highlighting
  • 2005/10/11 21:11

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


I have searched high and low for a proper php code syntax highlighter to add into module.textsanitizer.php for a few days now, with no success at all. I even tried adding the Geshi source code highlighter, that didn't work well at all. Then i have tried the highlight_string, which is a built in function for php which i almost got working. So, now i could use some help to that highlight_string somehow merged into module.textsanitizer.php file as an extension for it.



15
Pnooka
Re: Newbie question on dynamically creating dropdown lists
  • 2005/9/13 6:40

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


There's a working example of this at Pnooka.org. I could give you that code, but you have to wait until i get back from my vacation next week to get it. I forgot to mention, that the code in question is used in the registration form. It might not work for all countries, since i haven't filled in every state info for all of them, yet.



16
Pnooka
Re: Xoops 2.2 PM Module
  • 2005/8/7 19:46

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


There's another error with this module. After reading message, it doesn't mark the message as read at all. That's not a bit deal, but it would be nice to see if i have read the pm or not. There could also be an addition made to this module too. How about a message replied to icon, like when i have read the message and if i have replied to it, then it would indicate read/replied.



17
Pnooka
Re: What do you think about new login in Xoops 2.2
  • 2005/7/20 9:39

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


This works fine for me. After all, if i don't need a feature, i can hack it out. But so far, all tests works just fine for me.



18
Pnooka
Re: What do you think about new login in Xoops 2.2
  • 2005/7/20 9:33

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


Right, of course it's a nice security feature. It's also easy enough to weed out this, if you really don't need it. But it would be nice is this was made optional instead. I also think that the LDAP auth should be made optional already in the install phase, because not all of the XOOPS users use this feature anyway.
P.S. This is only my personal thoughts about this.



19
Pnooka
Re: VLWeather Module Trouble...
  • 2005/7/19 10:03

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


Well, i found the place in kernel/module.php. This is where XOOPS 2.2 get the module specific language code.
Quote:

function loadLanguage($type = "main") {
global $xoopsConfig, $xoopsModule;
if ( file_exists(XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/".$xoopsConfig['language']."/".$type.".php") ) {
include_once XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/".$xoopsConfig['language']."/".$type.".php";
} else {
if ( file_exists(XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/english/".$type.".php") ) {
include_once XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/english/".$type.".php";
}
}
}



20
Pnooka
Re: VLWeather Module Trouble...
  • 2005/7/19 9:58

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


This should do the trick for that.
Quote:

Line 14 function disp_complete_vlweather() {
Line 15 global $xoopsDB, $xoopsUser;
Line 16 //$language = $xoopsConfig['language'];
Line 17 // Include the appropriate language file.
Line 18 //if(file_exists(XOOPS_ROOT_PATH.'/modules/vlweather/language/'.$xoopsConfig['language'].'/main.php')){
Line 19 //include_once(XOOPS_ROOT_PATH.'/modules/vlweather/language/'.$xoopsConfig['language'].'/main.php');
Line 20 //} else {
Line 21 //include_once(XOOPS_ROOT_PATH.'/modules/vlweather/language/english/main.php');
Line 22 //}




TopTop
« 1 (2) 3 4 5 6 »



Login

Who's Online

168 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits