11
philfire
smartprofile, install, sysadmin blank problem
  • 2008/7/27 20:53

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I'm trying to install smartprofile, specifically to get it working with yogurt.
Upon install page goes to modules/system/admin.php and it's just white.
Possibly a permissions problem since I got paranoid this afternoon and tightened some of them up but am not entirely sure which.
system/admin I've set to 777 but still a white page.

Any help appreciated, thanks.



12
philfire
Re: Yogurt and Smartprofile
  • 2008/7/27 20:48

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


That's very useful Denian thank you :)Quote:

demian wrote:
I got this working with XOOPS 2.0181, Yogurt 3.2rc and smartprofile 1.0 (0fficial)

this is what i do based on shiva's instruction


1. Open yogurt/index.php

find this at the end on the file

/**
 * Closing the page
 */ 
include("../../footer.php");
?>


Before that line Add the following code

$gperm_handler = & xoops_gethandler'groupperm' );
$groups is_object($xoopsUser) ? $thisUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS);

// Dynamic User Profiles
$thisUsergroups =& $thisUser->getGroups();
$fieldids xoops_getmodulehandler('visibility','smartprofile')->getVisibleFields($groups$thisUsergroups);

$profile_handler =& xoops_getmodulehandler('profile','smartprofile');
$fields =& $profile_handler->loadFields();

$profile $profile_handler->get($thisUser->getVar('uid'));
// Add dynamic fields
foreach (array_keys($fields) as $i) {
    
//If field should be shown
    
if (in_array($fields[$i]->getVar('fieldid'), $fieldids)) {
        
//echo "VAL0:".$value."<P>";
        
$value $fields[$i]->getOutputValue($thisUser$profile);
        if (
is_array($value)) {
            
$value implode('<br />'array_values($value));
        }
        if(
$value){
        
$fieldattr=array('title' => $fields[$i]->getVar('field_title'), 'value' => $value);
        
$fieldname=$fields[$i]->getVar('field_name');
        
$xoopsTpl->assign($fieldname$fieldattr);    
        }
    }
}



2. open smartprofile/class/field.php and go to somewhere in line 341

replace this
function getUserVars() {
        return 
xoops_getmodulehandler('profile')->getUserVars();
    }
}

with this one
function getUserVars() {
        return 
xoops_getmodulehandler('profile','smartprofile')->getUserVars();

    }


3. Now you can refer to smartprofile variables in your yogurt social networking index template:

(modules/yogurt/templates/yogurt_index.html)

example if you created a field named age

put this in the yogurt index template

Age: <{$age.value}>

* make sure to set the permission for the field you created in smartprofile module
* clear templates_c and cache
* don't forget to change the link for the register.php in the login block to modules/smartprofile/register.php,
you can do this manually or by using htaccess
* also edit root/userinfo.php to make the yogurt userpage as the main userpage of your site:

Open userinfo.php in the root of your site, search at the very beggining of the file for
$uid intval($_GET['uid']);
if (
$uid <= 0) {
    
redirect_header('index.php'3_US_SELECTNG);
    exit();
}

Add after this the following lines:
header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);
exit();


thank you shiva......



13
philfire
Re: Yogurt and Smartprofile
  • 2008/7/26 21:12

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I got the first two edits but couldn't get this one right, I'm unsure where it goes ...

3. Now you can refer to smartprofile vars in your yogurt social networking index template like so:
<{$user_book.value}>
<{$<fieldname>.value}> e.g. <{$user_ICQ.value}>


xoops 2.0.18.1
yogurt 3.2
smartprofile 1



14
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 12:01

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I don't know how you do it trabis ... but it is good when you do.


Can I offer you the use of my girlfriend for a few weeks?


It is working.
Well done and thank you very much, both yogurt and piCal are important mods for my site, I can't thank you enough.

There are still a few small things to sort but I should try to solve them myself, I need to learn more.

I think I'm turning into a geek

Thanks again trabis.



15
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 11:29

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I tried that adjustment, I'm afraid it did not work, still same user info problem.

I have yogurt working on the site without piCal, so there is some good progress.

Just this piCal thing that stops me using piCal aswell with yogurt.

The 'line 163' to which it refers is
while( $event mysql_fetch_object$rs ) ) {


Or might it be the colour issue I mentioned earlier?


Thanks.



16
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 10:53

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I edited some colours in piCal before I installed yogurt.
I tested it and it seemed fine, but it looks like that is the problem.
I may have used a nonweb hex colour, do you think that might be it?

I think I will now try uninstalling piCal and installing yogurt.

What do you think?

(Sorry for taking so much of your time.)



17
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 10:49

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I've deactivated piCal and userinfo is working ok now.

Trabis, I owe you several drinks, a couple of good meals and a weekend in Paris.

Thanks so much for your help.

I'll see if I can sort this issue with piCal.

Do you have any other advice for me based on the info above?



18
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 10:44

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


Trabis,
I get this...
Fatal errorCannot access empty property in /home/thealtuk/public_html/xop/modules/piCal/class/piCal_xoops.php on line 163

and these errors...
Errors
Notice: Use of undefined constant desc - assumed 'desc' in file /modules/myguestbook/xoops_version.php line 92
Notice: Use of undefined constant desc - assumed 'desc' in file /modules/myguestbook/xoops_version.php line 115
Notice: Undefined variable: downloads_lids in file /modules/wfdownloads/include/search.inc.php line 182
Notice: Use of undefined constant desc - assumed 'desc' in file /modules/myguestbook/xoops_version.php line 92
Notice: Use of undefined constant desc - assumed 'desc' in file /modules/myguestbook/xoops_version.php line 115

and other 'queries, blocks and timers'



19
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 10:19

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


Do you mean the 'Check templates for modifications'?

I have set that to yes.
And I have deleted templates_c and recreated it with the (saved) index file in there.
Still the same problem though with userinfo.



20
philfire
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 10:09

  • philfire

  • Just popping in

  • Posts: 25

  • Since: 2008/7/13


I am doing this now trabis, it's taking a while, it doesn't want to delete them as a group so I'm doing it file by file.

Appreciate your help.

I'll come back as soon as I've done it.




TopTop
« 1 (2) 3 »



Login

Who's Online

206 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 206


more...

Donat-O-Meter

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

Latest GitHub Commits