11
KubaZ
Re: search user by name
  • 2004/4/28 11:23

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


thanks

now I understand criteria variable , I suppose



12
KubaZ
search user by name
  • 2004/4/28 10:49

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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)



13
KubaZ
Re: Allow Spaces in Username Hack (easy!)
  • 2004/4/27 7:49

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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





14
KubaZ
Re: Adding previous vote checking to the polls block?
  • 2004/4/25 0:03

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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



15
KubaZ
Re: how about jabber?
  • 2004/4/22 11:54

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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 ?



16
KubaZ
Re: how about jabber?
  • 2004/4/21 23:23

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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



17
KubaZ
Re: Pre-emptive Strike .. SQLite!
  • 2004/4/21 22:37

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


is it hard to develop for any DB system ?

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



18
KubaZ
Re: Ramdon Scrolling Images
  • 2004/4/1 12:58

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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



19
KubaZ
Re: 1 theme for each modules
  • 2004/3/31 22:54

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


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']);
(...)





20
KubaZ
Re: poll force view
  • 2004/3/31 10:06

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


enjoy

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




TopTop
« 1 (2) 3 4 »



Login

Who's Online

202 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits