181
demian
Re: URL changer
  • 2008/7/28 11:56

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


hi..i tried to installed this plugin in xampp (mod-rewrite enabled check through phpinfo)

i want to try to use with the news module

after the setup in root/header.php

//xoRewritemodule
$xoopsTpl =& $xoTheme->template;
$xoopsTpl->load_filter('output''xoRewriteModule');

xoRewriteModule.ini.php
[xoRewriteModule]
 
news="news"

and making htacess
RewriteEngine on
RewriteRule 
^news/(.*) /modules/news/$[QSA,L]

and also news/header.php
if(strpos(getenv('REQUEST_URI'), '/modules/news/') === 0)
{
$oldurl getenv('REQUEST_URI');
$newurl str_replace("modules/news""news"$oldurl); header("HTTP/1.1 301 Moved Permanently");
header("Location: $newurl");
}


when i accesshttp://localhost/project/news/ i received a 404 error

while when i accesshttp://localhost/project/modules/news/

all the link is displayed ashttp://localhost/project/news/ but when i clicked any of the link I received 404 message..

anyone know how to fix this ? do i need anything in the xoRewriteHtaccess.ini.php
[xoRewriteHtaccess]
 
SERVER_NAME "localhost"
 
SERVER_ADDR "127.0.0.1"


the mod_rewrite is ok..in my other project using xampp it is working normally



182
demian
Upgrading xoops 2.2 to 2.3 question
  • 2008/7/28 11:39

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


i have a friend asking me to help him upgrade his XOOPS 2.2.6 to 2.3

i have a question , what about the PM module and profile module in XOOPS 2.2.6 will it still work if the upgrading is done right now with XOOPS 2.3 RC ?

Thank you



183
demian
Re: Yogurt and Smartprofile
  • 2008/7/28 10:33

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


sorry..i justy rechecked the step #2...i missed a closing }

..i've edited the post...it should work now i think



184
demian
Re: Yogurt and Smartprofile
  • 2008/7/28 10:30

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


Quote:

thank you demian...one more thing i think we need to redirect the yogurt/edituser.php

to smartprofile/edituser.php

yup..forgot that one...

Quote:

Really, it does not work…

In addition, when installing SmartObject 1.0.1 Final (oficial) get a blank page side admin...

I use:

XOOPS 2.0.18.1
Smartprofile 1 Final
Yogurt 3.2
PHP Version 5.2.3
MySQL 5.0.45-community-nt



i use this php/mysql version and it works for me

# MySQL 5.0.51b
# PHP 5.2.6

maybe you can try enable debugging, reupload all files, clear templates_c, update module from admin etc...



185
demian
Re: is myReferer safe to use
  • 2008/7/28 10:23

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


thank you solo ..any plan tu update it with new features ?

great module..should be included in core..



186
demian
Re: Yogurt and Smartprofile
  • 2008/7/27 16:55

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


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, and also redirect the yogurt/edituser.php or root/edituser.php to smartprofile/edituser.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......



187
demian
Re: Yogurt and Smartprofile
  • 2008/7/27 16:05

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29





188
demian
is myReferer safe to use
  • 2008/7/27 14:51

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


Quote:

myReferer is a module wich will record and analyse datas from referers, webspiders, search engine and keywords used to visit your website.


http://www.arma-sa.com/modules/mydownloads/singlefile.php?cid=3&lid=28

is this safe to use ? last update was on 2005

thank you



189
demian
Re: how to integrate tag 1.60 with CBB 3.08 and News 1.61
  • 2008/7/27 14:37

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


anyone ?



190
demian
Re: Profile Summary Block ?
  • 2008/7/27 14:34

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


bump




TopTop
« 1 ... 16 17 18 (19) 20 21 »



Login

Who's Online

105 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 105


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