xoops forums

Forum Index


Board index » All Posts (tzvook)




tzvook

Just can't stay away
Posted on: 2013/2/18 9:58
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#1

Re: ColorPicker for eForms?

Captcha issue fix - https://xoops.org/modules/news/article ... &com_order=0#comment56351


tzvook

Just can't stay away
Posted on: 2012/3/20 16:56
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#2

Re: <{if $smarty.server.PHP_SELF=='/index.php'}> not working

Quote:
you meant theme.html right..


Yes, sorry





tzvook

Just can't stay away
Posted on: 2012/3/20 15:41
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#3

Re: <{if $smarty.server.PHP_SELF=='/index.php'}> not working

I use this code, you can adapt it to your needs, it's far more then just "show-if-homepege":

in the beginning of my theme.php:
<{php}>
$mod $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
$GLOBALS['xoopsTpl']->assign'xoops_cmod'$dirname );
<{/
php}>


Then in the body wherever needed:

<{if $xoops_cmod == "article"}>
Text apears if user is in the article module
<{elseif $xoops_cmod == "classifieds"}>
Text apears if user is in the classifieds module)
<{elseif 
$xoops_cmod == "directory"}>
Text apears if user is in the directory module
<{elseif $xoops_cmod == "profile"}>
Text apears if user is in the profile module
<{else}>
Text apears if user is not at the modules mentioned above
<{/if}>


tzvook

Just can't stay away
Posted on: 2012/2/25 18:42
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#4

Re: Tag module, multiple words as tags

@ Mcron

Quote:
So... is it a go ?


Test it and see - as I said - works for me under 3 Xoops versions and 2 different languages - isn't it enough for you for "a go" ?


tzvook

Just can't stay away
Posted on: 2012/2/5 15:25
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#5

Re: Tag module, multiple words as tags

Tested under Hebrew + English (If hebrew works I think all UTF langs will be O.K.)
under 3 modules: NewBB 4.06 , Article 3.0 . Tag module (latest)
works fine with 2 . 3. 4. 5. words (probably endless) ...

But - again - it's not enough, tag module is a semantic bridge between modules - important as if it was a core module, needs to be taken care of .... not just a litlle bug fixes ....


tzvook

Just can't stay away
Posted on: 2012/2/4 19:48
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#6

Re: Tag module, multiple words as tags

This turns the tag module into something "useful" (for me at least), though it "begs" for a bit of attention ..
The concept is good as it gives the option to explore the site by "phrase" instead of "module".


tzvook

Just can't stay away
Posted on: 2012/2/4 19:35
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#7

SOLVED: Tag module, multiple words as tags

Well, made it work ....
2 changes I made, one of them (if not both) is doing the work ...
===========================================
edit /modules/tag/language/english/config.php

old line (24)
----------------------------
$GLOBALS["tag_delimiter"] = array(",", " ", "|", ";");

new line
---------------------------
$GLOBALS["tag_delimiter"] = array(",", "|", ";");

===========================================
edit /modules/tag/include/functions.ini.php

old line (88)
----------------------------
return array(",", " ", "|", ";");

new line
---------------------------
return array(",", "|", ";");

===========================================


tzvook

Just can't stay away
Posted on: 2012/2/3 16:53
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#8

Re: Tag module, multiple words as tags

Has someone succeeded with this ?


tzvook

Just can't stay away
Posted on: 2012/2/3 16:12
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#9

embarrassing: the tag module v2.30

This tag module is more or less useless without 2 vital things:
1. use a 'phrase' instead of 'a word' ( simply embarrassing as is now )
2. options to define the number of tags in it's front page (without hacking it)

there are more ... but for it to be useful - those are vital !!!!


tzvook

Just can't stay away
Posted on: 2012/2/3 15:39
tzvook
tzvook (Show more)
Just can't stay away
Posts: 854
Since: 2003/2/1 2
#10

Re: Old style blocks administrator tools

@ cgunther and JCash

Follow my hack and you'll find the solution
https://xoops.org/modules/newbb/viewto ... id=301806#forumpost301806
a 3 years old hack that still rocks ...



TopTop
(1) 2 3 4 ... 58 »