11
topet05
Re: function change Date format
  • 2004/10/5 21:42

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


Hi!! Welcome to xoops.org!!

For change the date format, just open the file language\YOUR_LANGUAGE\global.php and find this part:

define("_DATESTRING","Y/n/j G:i:s");
define("_MEDIUMDATESTRING","Y/n/j G:i");
define("_SHORTDATESTRING","Y/n/j");


Here you can change the Long Format Date, the medium format and the short format.

I hope this help you...

Sorry my bad english.



12
topet05
Re: TinyContent Multiple Submenus?
  • 2004/9/27 21:47

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


Hi!
Wait for XT-Conteudo Module. The module (Tiny Content based module) will have the infinites submenus block (and many Spaw implementations).

Soon
Resized Image


Bye!



13
topet05
Re: Help!! why would both freecontents and wfsections stop working
  • 2004/9/15 20:19

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


Please, activates the PHP Debug and places the error messages here so that let us can help you (translation by Google )



14
topet05
Re: Xt - Themes not saving preferences?
  • 2004/6/28 16:21

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


"can anyone tell me how it works?"

The XT_Temas module do not set cookie. In the 'xoops_users' table, you have a field called "theme". When you login, XOOPS reads the content of this field and set the theme as default for this user. The module XT_Temas simply change this value in the users table for the theme chosen for the user.

XT_Temas has only one block and nothing more than this.
You must use this block in the place of the "themes block" standard of xoops.

If you have any more questions about any brazillian module, you can post (in english too) in www.xoops.net.br

Sorry for my bad english... i need a good course of English...



15
topet05
Re: News Spaw Font resize
  • 2004/6/15 15:04

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


Hi!
Sorry for my english...
Just open the file spaw\config\spaw_control.config.php and change the variable $spaw_default_toolbars , like this:
$spaw_default_toolbars 'full';


Eu acho que isso já resolve...


the problem is that Spaw does not have a button to insert an image from a URL, only from the library...

Falow ae mano!



16
topet05
Re: Private Messages: Outbox
  • 2004/3/31 1:38

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


Sorry for my bad english...
Temporary Soluction:
Itens Enviados - XOOPS Brasil

In Brazilian Portuguese:
São apenas 2 arquivos adicionais para você colocar no diretório principal de seu Xoops, depois faça um link no seu bloco "User Menu" para o arquivo 'mpenviadas.php' e pronto.
Vantagens:
- Você pode ler as mensagens que você já enviou (para lembrar).
- Você fica sabendo se o User já leu a MP ou ainda não.
- Você fica sabendo se o User já deletou a MP (claro, pois se ele deletar, você não mais verá a MP... "É pra rir ou pra chorar" haha)

Desvantagem:
- Se o usuário que vc mandou a MP deletá-la, você não terá mais acesso a ela (nem aqui, nem no além).
Se quiser ver a postagem na íntegra, acesse:
XOOPS Brasil - Forum

(Translated by Babelfish)
It´s only 2 files for you place in main directory of Xoops, later make a link for the file ' mpenviadas.php ' in your "User Menu" block.
- You can read the PM that you already sent (to remember).
- You are knowing if the User already still read the PM or not.
- You are knowing if the User already delete the PM (clearly, therefore if it to delete, you more will not see the PM...



17
topet05
Re: "Site Info" Block; can show custom group?
  • 2004/2/11 2:54

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


Make a new block and set the "Content Type" for "PHP Script" and put this function in your block:
Quote:

function ExibeGrupos ($grupoNome,$numero)
{
global $xoopsUser;
$conecta =& Database::getInstance();
$myts =& MyTextSanitizer::getInstance();
$result = $conecta->query("SELECT u.uid, u.uname, u.email, u.user_viewemail, u.user_avatar, g.name AS groupname FROM ".$conecta->prefix("groups_users_link")." l LEFT JOIN ".$conecta->prefix("users")." u ON l.uid=u.uid LEFT JOIN ".$conecta->prefix("groups")." g ON l.groupid=g.groupid WHERE g.name='".$grupoNome."' ORDER BY RAND() limit ".$numero."");
if ($conecta->getRowsNum($result) > 0) {
echo '<table class="outer" cellspacing="0">';
$o_grupo = 0;
while ($usuarios = $conecta->fetchArray($result)) {
if ($o_grupo == 0){
echo'<tr><th colspan="2">'.$myts->htmlSpecialChars($usuarios['groupname']).'</th></tr>';
$o_grupo = 1;
}
if ($xoopsUser != '') {
echo'<tr><td class="even" valign="middle" align="center"><img src="'.XOOPS_URL.'/uploads/'.$usuarios['user_avatar'].'" alt="" width="32" /><br /><a href="'.XOOPS_URL.'/userinfo.php?uid='.$usuarios['uid'].'">'.$myts->htmlspecialchars($usuarios['uname']).'</a></td><td class="odd" width="20%" align="right" valign="middle"><a href="javascript:openWithSelfMain(\''.XOOPS_URL.'/pmlite.php?send2=1&to_userid='.$usuarios['uid'].'\',\'pmlite\',450,370);"><img src="'.XOOPS_URL.'/images/icons/pm_small.gif" border="0" width="27" height="17" alt="" /></a></td></tr>';
}else{
if ($usuarios['user_viewemail']) {
echo'<tr><td class="even" valign="middle" align="center"><img src="'.XOOPS_URL.'/uploads/'.$usuarios['user_avatar'].'" alt="" width="32" /><br /><a href="'.XOOPS_URL.'/userinfo.php?uid='.$usuarios['uid'].'">'.$myts->htmlspecialchars($usuarios['uname']).'</a></td><td class="odd" width="20%" align="right" valign="middle"><a href="mailto:'.$usuarios['email'].'"><img src="'.XOOPS_URL.'/images/icons/em_small.gif" border="0" width="16" height="14" alt="" /></a></td></tr>';
}else{
echo'<tr><td class="even" valign="middle" align="center"><img src="'.XOOPS_URL.'/uploads/'.$usuarios['user_avatar'].'" alt="" width="32" /><br /><a href="'.XOOPS_URL.'/userinfo.php?uid='.$usuarios['uid'].'">'.$myts->htmlspecialchars($usuarios['uname']).'</a></td><td class="odd" width="20%" align="right" valign="middle">&nbsp;</td></tr>';
}
}
}
echo'</table>';

}else{
echo 'O grupo selecionado não existe ou não contém nenhum membro.';
}
}


After put the function in your block, call:
echo ExibeGrupos("Group Name","Number of users in the block")
Sample:
echo ExibeGrupos("Webmasters","10");
This will show in the block 10 users of the Webmasters group (Order By RAND()).
Powered By XOOPS Brasil - The different community - Brazil
Visit: http://www.xoops.net.br (In the first steps, but walking!)




TopTop
« 1 (2)



Login

Who's Online

69 user(s) are online (29 user(s) are browsing Support Forums)


Members: 0


Guests: 69


more...

Donat-O-Meter

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

Latest GitHub Commits