31
blueteen
Re: Formulaire Broken Image?
  • 2008/3/18 8:55

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


I try to delete these folders, and i can see this in my ftp client
Quote:

[R] 550 /web/xoops/uploads/formulaire/imgform: Permission denied


"formulaire" module creates theses folders with bad rights (owner).

if you can't change yourself the owner, you must ask your host to delete these folder for you. (or change the owner)



32
blueteen
Re: Formulaire Broken Image?
  • 2008/3/17 19:52

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hum, I thaink that these folders : /formulaire/imgform/
are created with wrong rights (owner) by the module.
can you check this ?

can you remove, then create /formulaire/imgform/ again from your ftp client ?



33
blueteen
Re: Formulaire Broken Image?
  • 2008/3/17 17:56

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


With this link
you can edit your form, and uncheck this option.

This picture : Resized Image

you must send images into /xoops/uploads/formulaire/imgform/ with your ftp client.



34
blueteen
Re: Formulaire Broken Image?
  • 2008/3/17 16:15

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


http://crabstreetjournal.com/xoops/modules/formulaire/admin/mailindex.php?id=3

Form's picture = uncheck "Display"

Or choose an image available in your /xoops/uploads/formulaire/imgform/ folder.

You can assign an image to each form.



35
blueteen
Re: Forumlair- forms not visible to anon
  • 2008/3/17 12:48

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello,
which formulaire version ?
maybe 3.33 ?
https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&type=&topic_id=62900&forum=28



36
blueteen
Re: Smarty function
  • 2008/3/13 9:37

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello, here's how i proceed to do something similar.

Create a new file "my_functions.php" in your theme folder.
Copy this code inside
<?php
if ($_SERVER['REQUEST_URI'] == "/modules/news/")
{
    
$this->assign('newsok''1');
}
?>

Then, in your theme, add this line, right under the body tag
<{include_php file="$xoops_rootpath/themes/YOUR_THEME_NAME/my_functions.php"}>


and you can now use this piece of code in your theme :
<{if $newsok == "1"}>
your code here
<{/if}>


I use this code too for personnal use
if (eregi('viewpmsg',$_SERVER['SCRIPT_NAME']) || eregi('readpmsg',$_SERVER['SCRIPT_NAME']))
{
    
$this->assign('messagerie''1');
}


So, for your question, I think that you can use this :

if (eregi('storytopic,$_SERVER['SCRIPT_NAME']))
{
    $this->assign('
storytopic', '1');
}


and in your theme
<{if $storytopic == "1"}>
your code here
<{/if}>


i'm using this, to display a custom block, only onhttp://www.website.fr/modules/news/ webpage.

and not onhttp://www.website.fr/modules/news/index.php?storytopic=12 for example.



37
blueteen
Re: in CBB 3.8 where is the "Yesterday" and "today"
  • 2008/3/10 9:51

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Try :

Quote:

define("_MD_TODAY", "\B\U\GÜN G:i:s");
define("_MD_YESTERDAY", "\DÜ\N G:i:s");


Works for me (into posts)

IPxxx.xxx.xx.xx Posted onDÜN 8:48:06



38
blueteen
Re: in CBB 3.8 where is the "Yesterday" and "today"
  • 2008/3/10 9:21

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello !
-> cbb 3.08

In /modules/cbb/language/english/main.php (or any other language)

Line 465 and 466 :

Quote:

define("_MD_TODAY", "\T\o\d\a\y G:i:s");
define("_MD_YESTERDAY", "\Y\e\s\\t\e\\r\d\a\y G:i:s");

Ok ?



39
blueteen
Re: Multimenu PM Inbox Count
  • 2008/3/10 9:14

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello,
in your menu, you can use something like this :
PM <font color="red">({pm_new})</font>


Same with {pm_total}

For your second question, you can modify multimenu's code to create your own variable (to display name instead of user_id).

Here's a file with this new variable {user_name} : /modules/multiMenu/blocks/multimenu_functions.php
Based on multimenu 1.9 code (rc1 but really stable since months).

<?php
/**
* XOOPS - PHP Content Management System
* Copyright (c) 2001 - 2006 <https://xoops.org/>
*
* Module: multiMenu 1.90
* Licence : GPL
* Authors :
*           - solo (http://www.wolfpackclan.com/wolfactory)
*            - herve
*            - blueteen
*            - DuGris
*/

function multimenu_makelink$options$myrow ) {
    global 
$xoopsUser$xoopsConfig;
    global 
$columns_limit$columns_limit_drop$align;

    
$myts =& MyTextSanitizer::getInstance();
    
$imenu['submenu'] = $myrow['submenu'];

    
///////////////////////// Create Titles /////////////////////////
    // Link title
    
if ( eregi('{alt}'$myrow['title']) )  {
        
$titles explode'{alt}'$myrow['title'] );
        
$title $myts->makeTareaData4Show($titles[0]);
        
$alt_title strip_tags$myts->makeTareaData4Show$titles[1] ) );
     } else {
        
$title $myts->makeTareaData4Show($myrow['title']);
        
$alt_title strip_tags($myts->makeTareaData4Show($myrow['title']));
    }

    if ( ((
$options[0] == 'dyn_02' OR $options[0] == 'dyn_03' )
    AND ( 
$myrow['submenu'] == 1  OR $myrow['submenu'] == ) ) OR $options[0] == 'dyn_06' OR $options[0] == 'dyn_07' OR $options[0] == 'dyn_10' )
    { 
$title addslashes($title);  $alt_title addslashes($alt_title); }  // Get ride of special characters which cause dynamic's menu crash

    // If link title is too long...
    
if ( $options[4] ) {
         
//if ( $options[0] == 'dyn_06') { $title = strip_tags($title); } //Get ride of html if context menu
        
if (strlen($title) >= $options[5]) {
            
$mm_title $myts->makeTboxData4Show(substr($title,0,($options[5]-1)))."...";
        } else {
            
$mm_title $myts->makeTareaData4Show($title);
        }
        
$imenu['title'] = $mm_title;
    } else {
        
$imenu['title'] = '';
    }

    
// PM detection and conversion
    
if ( eregi("{pm_new}"$title) || eregi("{pm_readed}"$title) || eregi("{pm_total}"$title) || eregi("{user_id}"$title) || eregi("{user_name}"$title) ) {  //xoops username
        
$new_messages 0;
        
$old_messages 0;
        
$som 0;
        
$user_id 0;
        
$user_name '';//xoops username
        
if (is_object($xoopsUser)) {
            
$user_id $xoopsUser->getVar('uid');
            
$user_name XoopsUser::getUnameFromId($user_id);//xoops username
            
$pm_handler =& xoops_gethandler('privmessage');
            
$uid $xoopsUser->getVar('uid');
            
$criteria_new = new CriteriaCompo(new Criteria('read_msg'0));
            
$criteria_new->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
            
$new_messages $pm_handler->getCount($criteria_new);

            
$criteria_old = new CriteriaCompo(new Criteria('read_msg'1));
            
$criteria_old->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
            
$old_messages $pm_handler->getCount($criteria_old);
            
$som =  $old_messages +  $new_messages;

            
$title preg_replace('/{pm_new}/',     $new_messages,     $title);
            
$title preg_replace('/{pm_readed}/',     $old_messages,     $title);
            
$title preg_replace('/{pm_total}/',     $som,         $title);
            
$title preg_replace('/{user_id}/',     $user_id,         $title);
            
$title preg_replace('/{user_name}/',     $user_name,         $title);//xoops username

            
$imenu['title'] = $title;

        } else {
            
$imenu['title'] = 'Message';
        }

        
//    $links = XOOPS_URL."/viewpmsg.php"; // Unquote if you want to automatically send to the PM box
    
}

    
// Create and remove html for alt title
    // $alt_title = strip_tags($myts->makeTareaData4Show($title));
    
$imenu['alt_title'] = $alt_title;

    if (
is_object($xoopsUser))    {
        
$user_id $xoopsUser->getVar('uid');
        
$user_name XoopsUser::getUnameFromId($user_id);//xoops username
    
}

    
//gère ces balises PM dans le title et le alt (pour les blocs)
    
if ( eregi("{pm_new}"$imenu['alt_title']) || eregi("{pm_readed}"$imenu['alt_title']) ||
         
eregi("{pm_total}"$imenu['alt_title']) || eregi("{user_id}"$imenu['alt_title']) || eregi("{user_name}"$imenu['alt_title']) ) {      //xoops username

        
$imenu['alt_title'] = preg_replace('/{pm_new}/'$new_messages$imenu['alt_title']);
        
$imenu['alt_title'] = preg_replace('/{pm_readed}/'$old_messages$imenu['alt_title']);
        
$imenu['alt_title'] = preg_replace('/{pm_total}/'$som$imenu['alt_title']);
        
$imenu['alt_title'] = preg_replace('/{user_id}/'$user_id$imenu['alt_title']);
        
$imenu['alt_title'] = preg_replace('/{user_name}/'$user_name$imenu['alt_title']);
    }
    
//fin gestion de ces balises PM dans le title et le alt (pour les blocs)


    ///////////////////////// Create urls /////////////////////////
    // Link url
    
if ($myrow['link']) {
        
$user_id 0;
        
$user_name '';//xoops username
        
if (is_object($xoopsUser)) {
            
$user_id $xoopsUser->getVar('uid');
            
$user_name XoopsUser::getUnameFromId($user_id);//xoops username
            
}

        
// Link Type
        
if ((eregi("mailto:"$myrow['link'])) || (eregi("http://"$myrow['link']))  ||
            (
eregi("https://"$myrow['link'])) || (eregi("file://"$myrow['link']))  || (eregi("ftp://"$myrow['link']))) {

            
$link $myrow['link'];
            
$link preg_replace('/{user_id}/'$user_id$link);
            
$link preg_replace('/{user_name}/'$user_name$link);//xoops username
        
} else {
            
$link XOOPS_URL."/".$myrow['link'];
            
$link preg_replace('/{user_id}/'$user_id$link);
            
$link preg_replace('/{user_name}/'$user_name$link);//xoops username
        
}

        
// Target function
        
if ($myrow['target'] != '_self') {
            
$target 'target="'.$myrow['target'].'" ';
        } else {
            
$target ' ';
        }
        
$imenu['target'] = $target;
        
$imenu['target_context'] = $myrow['target']; // utilisé dans le menu contextuel 2

        // Create link
        
$imenu['link'] = '<a href="'.$link.'" '.$target.'title="'.$alt_title.'">';
        
$imenu['linkurl'] = $link;
        
$imenu['a'] = '</a>';
    } else {
        
$imenu['link'] = '';
        
$imenu['linkurl'] = '';
        
$imenu['a'] = '';
    }

    
///////////////////////// Create images /////////////////////////
    // Create image
    
if( $myrow['imageurl'] AND $options[6] ) {

//        Image type : relative or absolute link
/*
        if ((eregi("http://", $myrow['imageurl'])) || (eregi("file://", $myrow['imageurl'])) || (eregi("https://", $myrow['imageurl']))) {
            $image = $myrow['imageurl'];
        } else {
*/
            
$image XOOPS_URL.'/uploads/multiMenu/'.$myrow['imageurl'];
/*
        }
*/

        // Theme and module tag replace
        
$image str_replace('{theme}'$xoopsConfig['theme_set'], $image);
        if ( !empty(
$xoopsModule) ) {
               
$image str_replace('{module}'$xoopsModule->getVar('dirname'), $image); } else { $image str_replace('{module}''default'$image);
        }

        
// Image resize if bigger
        
if     ( $options[7] == '' ) {
            
$image_width '';
            
$width '1';
        } else {
            
$image_size getimagesize("$image");
            
$width     $image_size[0];
            if (
$options[1] <= $width) {
                
$image_width 'width="'.$options[7].'" ';
            } else {
                
$image_width 'width="'.$width.'" ';
            }
        }

        
// Create image
        
$imenu['image'] = '<img src="'.$image.'" '.$image_width.'alt="'.$alt_title.'" '.$align.' style="vertical-align:middle;" />';
        
$imenu['imageurl'] = $image;

        if ( !
$width ) {
            
$imenu['image'] = '<img src="'.XOOPS_URL.'/modules/multiMenu/images/error.gif" '.$image_width.'alt="'.$alt_title.'" '.$align.' style="vertical-align:middle;" />';
        }
    } else {
        
$imenu['image'] = "";
    }

    return 
$imenu;
}

?>



40
blueteen
Re: sent pm messages. Can user see them at Xoops 2.0.16?
  • 2008/3/9 15:52

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello, right.
You need to install mpmanager.
No other solution to keep a copy of sent private messages.




TopTop
« 1 2 3 (4) 5 6 7 ... 33 »



Login

Who's Online

97 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 97


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