1
baraxas
Re: Can I remove Displayname from user registration (xoops 2.2.3)
  • 2005/11/13 22:23

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


Ok, I found something that seems to work. In profiles/register.php found this lines:

if ($op != "register") {
    
$newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['uname']) : '');
    
$newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : '');
    
$newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');


and modify this way:

if ($op != "register") {
    
$newuser->setVar('uname', isset($_POST['loginname']) ? trim($_POST['loginname']) : '');
    
$newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : '');
    
$newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');


Then open profiles/include/forms.php and comment the following lines:

$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME"uname"$uname_size75$user->getVar('uname''e')), 'required' => true);
$weights[0][] = 0;


and

$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME'uname'2575$user->getVar('uname''e')), 'required' => 0);
$weights[0][] = 0;


Hope this help!



2
baraxas
Re: Can I remove Displayname from user registration (xoops 2.2.3)
  • 2005/11/12 14:30

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


I'm on this too... What about setting uname=loginname?



3
baraxas
Re: xoops 2.2.3 final extended profile ordering problem
  • 2005/11/5 21:01

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


I've just noticed that this happen ONLY when I delete all the unused default fields (like user_msnm, user_aim ecc...)
If I leave all there and add my own fields they are in the right order!



4
baraxas
xoops 2.2.3 final extended profile ordering problem
  • 2005/11/5 19:53

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


I've created some fields for the user profile, like name, surname, address, city ecc...
The problem is that the order they appear in the user profile or in the search tab or in the register form is not the way I want it. I've tried to set weight in admin panel but no way.
Eg: i insert in this order the following fields (I'm italian):

nome
cognome
indirizzo
C.A.P.
città <--- this goes over all the previous!

and in search form, register form, user profile the order is changed.
Any idea?

ps
I'm using xmt theme.



5
baraxas
User menu time update and pm popup
  • 2005/10/31 17:21

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


I'd like to have a popup when a pm is in inbox. I tried to modify system_block_user.html to include another html file, with a refresh time set via META tag, via iframe:

<tr>
    <
td id="usermenu">
      <
class="menuTop" href="<{$xoops_url}>/user.php"><{$block.lang_youraccount}></a>
      <
a href="<{$xoops_url}>/edituser.php"><{$block.lang_editaccount}></a>
      <
a href="<{$xoops_url}>/notifications.php"><{$block.lang_notifications}></a>
      <
a href="<{$xoops_url}>/user.php?op=logout"><{$block.lang_logout}></a>
      <
iframe src="http://localhost/~franz/xoops/modules/system/templates/blocks/test.html"></iframe>
      

      <{if 
$xoops_isadmin}>
        <
a href="<{$xoops_url}>/admin.php"><{$block.lang_adminmenu}></a>
      <{/if}>
    </
td>
  </
tr>
</
table>


Where the other file, test.html, is:

<meta http-equiv="refresh" content="600">

<{if 
$block.new_messages 0}>
        <
class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}> (<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}></span>)</a>
      <{else}>
        <
a href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}></a>
      <{/if}>


But this doesn't work and in the user menu i find the following:

<{if $block.new_messages 0}>  <{$block.lang_inbox}> (<{$block.new_messages}>)  <{else}>  <{$block.lang_inbox}>  <{/if}>


Where am I gonig wrong?



6
baraxas
Re: friendfinder random profile block
  • 2005/8/23 18:14

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


By the way I've solved the bug of the truncation while updating profiles. It was in the file /friendfinder/members/index.php. There search for all expression similar to:

<input type=text name=name maxlength=50 value=".$name.">


and replace with

<input type=text name=name maxlength=50 value="".$name."">


As you can see the problem was in the ""



7
baraxas
Re: friendfinder random profile block
  • 2005/8/23 15:54

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


By trial I've found that this work:

<?
#################################################################################
# Friend Finder for XOOPS 1.3.x and XOOPS 2.xx Version 3.1 beta                 #
#                                                                               #
#             Copyright 2003 by eagle81                                            #
#                                                                                #
# Manuel Caballero         friendfinder@dancepartner.net                            #
# Module Homepage:        http://www.dancepartner.net                                #
#                                                                                #
# Please report bugs and new feature request at modcentral.com friendfinder        #
# forum or via mail frienfinder@dancepartner.net                                  #
#                                                                                #
# Copyright for this langfile                                                    #
# Lanuage:            Language name                                                #
# Name:                your name and email                                            #
# Homepage:            your Homepage                                                #
#                                                                                #
#                                                                               #
# Last modification:            2002-02-22                                        #
#                                                                               #
# Initialy this script is based on phpMeet from                                 #
# Jeremy Ross                     webmaster@phprank.com                              #
# Script design  : PhpMeet      Copyright 2002 -                                #
# Created 15/01/02              Last Modified 15/01/02                          #
# Scripts Home                  http://www.jrscripts.com                        #
#                                                                                #
# First XOOPS Versions from:                                                       #
#                                                                               #
# Xoops-RC2 French Version  :   jokerman@free.fr                                #
# Web Home                  :   http://www.webetfric.com                        #
#                                                                               #
# Xoops-RC2 English Version :   webmaster@modscentral.com                        #
# Web Home                  :   http://www.modscentral.com                      #
#################################################################################
include("../header.php");

function 
friendfinder_show() {
global 
$xoopsConfig;

$myts =& MyTextSanitizer::getInstance();

    
$block = array();
    
$block['title'] =  ""._FFBLOCKHEAD."";

global 
$xoopsDB$xoopsTheme$xoopsConfig$xoopsModule;

$result $xoopsDB->query("SELECT id FROM ".$xoopsDB->prefix("friendfinder")." where active=1");
$dataresult =$xoopsDB->getRowsNum($result);

//$gimaxwight=100

mt_srand((double)microtime()*1000000);
$zufall mt_rand(1$dataresult);
 
/*Kontrollausgabe für den Admin
echo "zufall: ".$zufall;
echo "<br> dataresult: ".$dataresult;
*/

$view =$xoopsDB->query("SELECT user, id, pic, imgname, imgtime FROM ".$xoopsDB->prefix("friendfinder")." where id=$zufall");
while(list(
$user$id$pic$imgname$imgtime) = $xoopsDB->fetchRow($view)) {

    
$block['content']  .= "<center><img src='".XOOPS_URL."/modules/friendfinder/generateimg.php?viewwidth=100&pfad=".XOOPS_URL."/modules/friendfinder/members/uploads/".$imgtime."/&bildname=".$imgname."' border=0><br><br>"._TEXTFFBLOCK."<br><br><a href='".XOOPS_URL."/modules/friendfinder/view.php?id=".$myts->makeTboxData4Show($id)."'>".$user."</a></center>";
    return 
$block;
}
    
}
?>



but what if a profile don't has pic? I'm not an expert programmer, please help me!



8
baraxas
friendfinder random profile block + bugfix
  • 2005/8/23 14:43

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


I'd like to show a resized image of the random user in the block. I've tried to add this at line 64:

<center><img src='".XOOPS_URL."/modules/friendfinder/generateimg.php?viewwidth=100&pfad=".XOOPS_URL."/modules/friendfinder/members/uploads/".$imgtime."/&bildname=".$imgname."' border=0></center>



in /modules/friendfinder/blocks/friendfinder.php, but no way. Could anyone help me?



9
baraxas
XOOPS 2.0.10 Beta 2 Custom Block bug
  • 2005/3/28 1:59

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


When I add a custom block made of simple text (the presentation of my site) the block does appear in the homepage but without content. Empty.
But when editing the block the text is there!
Take a look at www.zuddas.com



10
baraxas
XOOPS 2.0.10 Beta 2 system module bug (Comment Manager)
  • 2005/3/28 1:23

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


While admin if I try to use the function to see the modules wide comments on my site no comments displayed at all.
I see the three drop down menus, but the first has not options but "All modules", and I have 4 modules installed.




TopTop
(1) 2 »



Login

Who's Online

236 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 236


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