1851
trabis
Re: Help, Login recognizes you, but doesn't give permissions - solved
  • 2007/12/13 2:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


That´s a diferent problem. You might want to do another painless instalation and remember your login info. You may be providing the wrong password.



1852
trabis
Re: Logging into the site problems
  • 2007/12/13 2:27

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


You could already had your answer if you used the search form.
Please do a "repair" on your session table.



1853
trabis
Re: Add user to a specific group.
  • 2007/12/11 20:15

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Precisas de direcionar o botão para um ficheiro que contenha estas linhas (entre outras claro)
$uid 120//deve conter o id do usuário que irá ser adicionado
$groupid 3//id do grupo ao qual vais adicionar.

$member_handler =& xoops_gethandler('member');
                            
// adicionar um usuário a um grupo
                            
if($groupid && $uid){

$result $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix('groups_users_link')." WHERE groupid='".$groupid."' AND uid=".$uid."");

list(
$group_check) = $xoopsDB->fetchRow($result);

$xoopsDB->freeRecordSet($result);

if(
$group_check == 0){

//Caso não esteja já adicionado então adicionar ao grupo

$member_handler->addUserToGroup($groupid$uid);

}
}


Atenção, eu não experimentei isto ainda mas deverá resultar.



1854
trabis
Re: Problem with Tag module and XoopsTube
  • 2007/12/10 21:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Here is more info about it poste on the wiki!

https://xoops.org/modules/mediawiki/in ... s_api&curid=361&oldid=738



1855
trabis
Re: Problem with Tag module and XoopsTube
  • 2007/12/10 1:29

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Sorry McDonald but you won´t get it that easly. I have browsed you youtube module and did not find a class named xoopstube so

xoops_getModuleHandler("xoopstube","xoopstube");

wont find xoopstube handler in you xoopstube class folder.

You will need to build a class that have getobject() and getvar() to populate the required info so the above code could work. :(

Otherwise you will have to find a way to do it inside that function
example:

function xoopstube_tag_iteminfo(&$items)
{
    
$items_id = array();
    foreach(
array_keys($items) as $cat_id){
        
// Some handling here to build the link upon catid
            // if catid is not used, just skip it
        
foreach(array_keys($items[$cat_id]) as $item_id){
            
// In article, the item_id is "art_id"
            
$items_id[] = intval($item_id);
        }
    }
    
//$item_handler =& xoops_getModuleHandler("xoopstube","xoopstube");
    //$items_obj = $item_handler -> getObjects(new Criteria("lid", "(".implode(", ", $items_id).")", "IN"), true);
    
    
foreach(array_keys($items) as $cat_id){
        foreach(
array_keys($items[$cat_id]) as $item_id){
            
//$item_obj =& $items_obj[$item_id];
          //Do your querie here to get video info based on $item_id as the video id 
            
$items[$cat_id][$item_id] = array(
                
"title"        => $row['title'],
                
"uid"        => $row['submitter'],
                
blablablablablabla



1856
trabis
Re: Help, Login recognizes you, but doesn't give permissions - solved
  • 2007/12/9 14:48

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


How to repair the session table is covered here:

https://xoops.org/modules/newbb/viewto ... id=279099#forumpost279099



1857
trabis
Re: How can I re-locate the Submit link for news module.
  • 2007/12/9 13:18

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


OHHH, sorry. I mean modules/news/index.php and not the root one.



1858
trabis
Re: Static URLs - SEO - Targeted Advertising
  • 2007/12/7 13:52

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


It´s a good ideia but you will get duplicate content on your site and I don´t think that´s very good for SEO.
It´s very easy to do I think. Create a module that asks the URL you want to convert. Then it opens the url, get the file contents and search and replace current keywords, description, etc for the ones you want. Saves as html with the name you want and it´s done. The module could have a block to get the pages you created and present them as a menu. Is that the ideia?



1859
trabis
Re: How can I re-locate the Submit link for news module.
  • 2007/12/6 13:59

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Add this lines before the end of index.php:
//start
$groups is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler =& xoops_gethandler('groupperm');
if (
$gperm_handler->checkRight('news_submit'0$groups$xoopsModule->getVar('mid'))) {
    
$perm 1;
} else {
    
$perm 0;
}
$xoopsTpl->assign('perm'$perm);
//end

include_once XOOPS_ROOT_PATH.'/footer.php';
?>


Then you could use preachur code with a small change.
(Use the following code in news_index.html and news_by_topic.html)
<{if !$perm}>
    
You must be a <a href="<{$xoops_url}>/register.php">registered user</ato post news.
<{else}>
    <
FORM METHOD='LINK' ACTION='<{$xoops_url}>/modules/news/submit.php'>
<
INPUT TYPE='submit' VALUE='Add Your News'></FORM>
<{/if}>


I made this changes because XOOPS user might not have previlege for submit news.

PS: Not tested it but it should work



1860
trabis
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 20:04

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

With regards to the last two posts.

If it's a mainfile, db issue, how would that result in a 403 forbidden page, it would show DB errors?

Normally this are made by .htaccess, or index.ext missing.

if index.php is there then it should work.

Just wondering in case I ever hit the same issue.


But the forum page works and the index.php is readed so there is not a index.ext missing either.

But that forbiden page... hum, yes maybe file permissons.




TopTop
« 1 ... 183 184 185 (186) 187 188 189 190 »



Login

Who's Online

53 user(s) are online (26 user(s) are browsing Support Forums)


Members: 0


Guests: 53


more...

Donat-O-Meter

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

Latest GitHub Commits