xoops forums

Forum Index


Board index » All Posts (sabahan)




sabahan

Quite a regular
Posted on: 2006/5/18 12:50
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#241

Re: Spotlight view on Xoops.org

awesome......

thanks a lot bandit-x


sabahan

Quite a regular
Posted on: 2006/5/15 1:56
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#242

Re: Modules not working

I use to have problem like this before @ localhost...for 2.0 and 2.2

and it took me several weeks to solve it...finally I realised there is some problem with my configuration of php+mysql+apache (which I modified myself) eventhough it works perfectly installing and running test site (weird) ?

I'm sure there must be some line that made XOOPS modules not working properly but I'm lazy to check.....so i uninstall everything....and install EasyPhp 1.8
in my computer

and now XOOPS & all of my modules are working properly....yippi...

p/s : easy php 1.8 - apache1.3,php4.310,mysql.419,phpmyadmin2.61


sabahan

Quite a regular
Posted on: 2006/5/15 1:16
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#243

Re: register form,

here's the way to do it in XOOPS 2.0.13.2...just found out how to this myself recently..hope this works for your site


just rememeber backup your files
register.php,include/registerform.php

Open up register.php
find this
$url = isset($_POST['url']) ? trim($myts->stripSlashesGPC($_POST['url'])) : '';


put this below the code
$icq = isset($_POST['user_icq']) ? $myts->stripSlashesGPC($_POST['user_icq']) : '';
$aim = isset($_POST['user_aim']) ? $myts->stripSlashesGPC($_POST['user_aim']) : '';
$yim = isset($_POST['user_yim']) ? $myts->stripSlashesGPC($_POST['user_yim']) : '';
$msnm = isset($_POST['user_msnm']) ? $myts->stripSlashesGPC($_POST['user_msnm']) : '';


in register.php
find this
$stop .= userCheck($uname$email$pass$vpass);
    if (empty(
$stop)) {
        echo 
_US_USERNAME.": ".$myts->htmlSpecialChars($uname)."<br />";

add just after
echo _US_ICQ.": ".$myts->htmlSpecialChars($icq)."<br />";
echo 
_US_AIM.": ".$myts->htmlSpecialChars($aim)."<br />";
echo 
_US_YIM.": ".$myts->htmlSpecialChars($yim)."<br />";
echo 
_US_MSNM.": ".$myts->htmlSpecialChars($msnm)."<br />";


in register.php
find this
<input type='hidden' name='email' value='".$myts->htmlSpecialChars($email)."' />";



add this above the the code
<input type='hidden' name='user_icq' value='".$myts->htmlSpecialChars($icq)."'/>
<
input type='hidden' name='user_aim' value='".$myts->htmlSpecialChars($aim)."'/>
<
input type='hidden' name='user_yim' value='".$myts->htmlSpecialChars($yim)."'/>
<
input type='hidden' name='user_msnm' value='".$myts->htmlSpecialChars($msnm)."'/>


find this in register.php
if ( empty($stop) ) {
        
$member_handler =& xoops_gethandler('member');
        
$newuser =& $member_handler->createUser();
        
$newuser->setVar('user_viewemail',$user_viewemailtrue);
        
$newuser->setVar('uname'$unametrue);


add this code below
$newuser->setVar('name'$nametrue);
$newuser->setVar('user_icq'$icqtrue);
$newuser->setVar('user_aim'$aimtrue);
$newuser->setVar('user_yim'$yimtrue);
$newuser->setVar('user_msnm'$msnmtrue);



next open up include/registerform.php
search for
$reg_form->addElement(new XoopsFormText(_US_NICKNAME"uname"$uname_size$uname_size$myts->htmlSpecialChars($uname)), true);


and add this code below
$reg_form->addElement(new XoopsFormText(_US_ICQ"user_icq"2625$myts->htmlSpecialChars($icq)), false);
$reg_form->addElement(new XoopsFormText(_US_AIM"user_aim"2625$myts->htmlSpecialChars($aim)), false);
$reg_form->addElement(new XoopsFormText(_US_YIM"user_yim"2625$myts->htmlSpecialChars($yim)), false);
$reg_form->addElement(new XoopsFormText(_US_MSNM"user_msnm"2625$myts->htmlSpecialChars($msnm)), false);

lastly update ur system modules...


sabahan

Quite a regular
Posted on: 2006/5/15 1:02
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#244

Re: register form,

what version of XOOPS are you using 2.2 or 2.0


sabahan

Quite a regular
Posted on: 2006/5/14 5:34
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#245

Re: 2.0 or 2.2?

Read here

and here


sabahan

Quite a regular
Posted on: 2006/5/11 16:48
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#246

Re: News in frontpage

I knew about the spotlight module..currently using it in my 2 other sites...

I just want my new site URL to look different...

solve my problem as I just found the news block module hack at Xoops-tips.com

Xoops Tips

thanks anyway


sabahan

Quite a regular
Posted on: 2006/5/11 13:23
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#247

News in frontpage

How do I set the news to be in front page

without setting up the news as my page startup (General Setting> Preference>)

I prefer my url to be domain.com rather than domain.com/modules/news/


sabahan

Quite a regular
Posted on: 2006/5/10 2:00
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#248

Re: Spotlight view on Xoops.org

hope to see new release of xm-spotlight (for 2.2 & 2.0) soon...


sabahan

Quite a regular
Posted on: 2006/5/9 17:44
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#249

Re: Spotlight view on Xoops.org

Quote:

sabahan wrote:
Quote:

defwind77 wrote:
hmm is it easily possible to add more than four categories for news? I've tried adding two separate blocks, however I can't seem to get them to specify which news categories to use - the only related option in xmspotlight is to set the news ID? - Is it something to do with this maybe?


I need to do this also...can anyone tell me how to add more categories in xmspotlight ?


nevermind...found the solution here

works great now....wooooo


sabahan

Quite a regular
Posted on: 2006/5/9 7:10
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#250

Re: Spotlight view on Xoops.org

Quote:

defwind77 wrote:
hmm is it easily possible to add more than four categories for news? I've tried adding two separate blocks, however I can't seem to get them to specify which news categories to use - the only related option in xmspotlight is to set the news ID? - Is it something to do with this maybe?


I need to do this also...can anyone tell me how to add more categories in xmspotlight ?



TopTop
« 1 ... 22 23 24 (25) 26 27 »