xoops forums

Forum Index


Board index » All Posts (KubaZ)




KubaZ

Just popping in
Posted on: 2004/4/28 11:23
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#11

Re: search user by name

thanks

now I understand criteria variable , I suppose


KubaZ

Just popping in
Posted on: 2004/4/28 10:49
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#12

search user by name

Hi,

I know it is possible ('cos in XOOPS most things are possible to do )

So I want a handler to a specific user. I must search him by name (not by ID, as is usually in XOOPS codes).. and then I would be able to show his avatar, or more more

so how I can get it ? (a handler)


KubaZ

Just popping in
Posted on: 2004/4/27 7:49
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#13

Re: Allow Spaces in Username Hack (easy!)

to avoid fake usernames like 'admin ' (some spaces on the right/left side) we can use php function trim (Strip whitespace from the beginning and end of a string)

..heh..now I've seen that register.php uses trim($uname)
so even we use this hack white spaces before and after username will be deleted




KubaZ

Just popping in
Posted on: 2004/4/25 0:03
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#14

Re: Adding previous vote checking to the polls block?

Hi!

I've made a hack, which shows you result after voting (is also displayed in poll's block)

xoopspoll_hacked.tar.gz

If you encouter some problems please feel free to tell me
my email is: kuba1404@o2.pl


KubaZ

Just popping in
Posted on: 2004/4/22 11:54
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#15

Re: how about jabber?

My idea is to implement new function in kernel source.
I take user.php and add new function in user's class.

But I don't know what would better:
return number : 0 is offline, 1 when online and 2 when the status indicator is deactivated, 3 on error

or return string like 'offline' ?

and then for example in viewtopic.php
we could add line : $eachposter->getIcqStatus;

what do you think ?


KubaZ

Just popping in
Posted on: 2004/4/21 23:23
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#16

Re: how about jabber?

I've found script which gets ICQ status
I can try to implement this function, if you want


KubaZ

Just popping in
Posted on: 2004/4/21 22:37
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#17

Re: Pre-emptive Strike .. SQLite!

is it hard to develop for any DB system ?

in my oppinion it is necessary to change database class. or i think wrong ?


KubaZ

Just popping in
Posted on: 2004/4/1 12:58
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#18

Re: Ramdon Scrolling Images

it can.. I have a question : how many diffrent trains you have. You can do a module or the simple way you make an another block (with <marquee> code..) and in groups you set privileges to registered user. (anonymous user don't see that new block)

p.s. make a module.. no that module won't be good.. and usefull for community i think


KubaZ

Just popping in
Posted on: 2004/3/31 22:54
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#19

Re: 1 theme for each modules

it's easy

if you don't want to make change in php code you can use smarty variable <{$xoops_pagetitle}> (why ? - look below) it contains : name of module or if page slogan (if module isn't active [like home page without default module])

--------
coding php

look at header.php at line 112:
Quote:

[112] if (isset($xoopsModule)) {
// set page title
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
(...)
[120] } else {
$xoopsTpl->assign('xoops_pagetitle', $xoopsConfig['slogan']);
(...)


if is set any module variable 'xoops_pagetitle' will be a name of actually module else as I said before (line 120) will be a slogan.

--
but if you don't want to have slogan you can simply add the code, e.g. before line 112:

Quote:

$xoopsTpl->assign('xoops_modulename', $xoopsModule->getVar('name'));

and in smarty template use var <{$xoops_modulename}>

I don't know if it is necessary to check if $xoopsModule is set...(maybe yes.. and sometimes you will got a blank page)

so you can add 2 lines of code instead one

Quote:

112] if (isset($xoopsModule)) {
// set page title
[114] $xoopsTpl->assign('xoops_modulename', $xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
(...)
[121] } else {
$xoopsTpl->assign('xoops_modulename', 'default');

$xoopsTpl->assign('xoops_pagetitle', $xoopsConfig['slogan']);
(...)




KubaZ

Just popping in
Posted on: 2004/3/31 10:06
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#20

Re: poll force view

enjoy

hmm..when I've edited my post the time hasn't been changed..so I reply ...



TopTop
« 1 (2) 3 4 »