xoops forums

Forum Index


Board index » All Posts (sarahmx)




sarahmx

Quite a regular
Posted on: 5/18 9:30
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#1

XOOPS Single sign on ?

Hello..if i I have two Xoops websites and I was looking for a way to allow visitors use same user credential on both sites. Is this possible with XOOPs



Any guide on how to implement this?

Thanks


sarahmx

Quite a regular
Posted on: 4/9 21:46
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#2

Re: newbb - advertisement displayed after first post?

try here

http://xoops.org/modules/smartfaq/faq.php?faqid=482


sarahmx

Quite a regular
Posted on: 3/10 16:45
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#3

Re: Publisher and xoops 2.5.8 tests

i figured out the problem

the uploads/publisher/content and uploads/testing/content are not created automatically

i created the folder and now is ok


but still have this problem

Resized Image


sarahmx

Quite a regular
Posted on: 3/10 10:12
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#4

Re: Publisher and xoops 2.5.8 tests

i download the latest XOOPS from github just for testing purpose

publisher 1.05 Beta
PHP 5.6.29
mySQL 5.6.34

a. Download and installed Publisher
Resized Image

wrong translation ?

arent it should be clone ?

2. Clone publisher module named testing

Install testing module

3. create a new category

4. set permission Fields available in articles submission forms
Resized Image


5. try to create an article ihave page like this..with no style and missinf editor buttons
Resized Image


sarahmx

Quite a regular
Posted on: 3/10 10:05
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#5

Re: how do is sort select boxes alphabetically in profile module ?

Thank you trabis..its working


sarahmx

Quite a regular
Posted on: 3/8 6:37
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#6

Re: how do is sort select boxes alphabetically in profile module ?

i saw this code in modules/profile/class/field.php
case 'select':
                
$element = new XoopsFormSelect($caption$name$value);
                
// If options do not include an empty element, then add a blank option to prevent any default selection
//                if (!in_array('', array_keys($options))) {
                
if (!array_key_exists(''$options)) {
                    
$element->addOption(''_NONE);

                    
$eltmsg                          = empty($caption) ? sprintf(_FORM_ENTER$name) : sprintf(_FORM_ENTER$caption);
                    
$eltmsg                          str_replace('"''"'stripslashes($eltmsg));
                    
$element->customValidationCode[] = "nvar hasSelected = false; var selectBox = myform.{$name};" "for (i = 0; i < selectBox.options.length; i++) { if (selectBox.options[i].selected == true && selectBox.options[i].value != '') { hasSelected = true; break; } }" "if (!hasSelected) { window.alert("{$eltmsg}"); selectBox.focus(); return false; }";
                }
                
$element->addOptionArray($options);
            
                break;


what do i need to change ?


sarahmx

Quite a regular
Posted on: 3/7 22:09
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#7

Re: how do is sort select boxes alphabetically in profile module ?

Bumping 6 year old thread

Resized Image

anyone ? How do i sort the select box created using the profile module


sarahmx

Quite a regular
Posted on: 3/7 21:58
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#8

Re: extcal database query

noted and tq Bleek


sarahmx

Quite a regular
Posted on: 3/7 1:12
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#9

Re: extcal database query

Thank you zyspec...all now is working



$time time();  
$today=date("d/m/Y"strval($time)); 


global  
$xoopsDB
$sql "SELECT * FROM " $xoopsDB->prefix('extcal_event') . " ";  
if (
$result===false) {  
    die(
$xoopsDB->error());   
}  
$result $xoopsDB->query($sql);  

while(
$row=$xoopsDB->fetchArray($result)) { 
$event_title $row['event_title'];  
$event_start=date("d/m/Y"strval($row["event_start"])); 
$event_end=date("d/m/Y"strval($row["event_end"])); 

//if ((date('d/m/Y', $row['event_start'])) == $today OR (date('d/m/Y', $row['event_end'])) == $today){  

if ($event_start == $today OR $event_end==$today OR $row['event_start'] <= $time && $time <= $row['event_end']){ 
 echo 
$row['event_title'];  
    }  
}


sarahmx

Quite a regular
Posted on: 3/6 23:30
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 373
Since: 2007/10/28
#10

Re: extcal database query

i tried it something like this but its not working

$time time(); 
$today=date("d/m/Y"strval($time));


global  
$xoopsDB;
$sql "SELECT * FROM " $xoopsDB->prefix('extcal_event') . " "
if (
$result===false) { 
    die(
$xoopsDB->error());  

$result $xoopsDB->query($sql); 

while(
$row=$xoopsDB->fetchArray($result)) {
$event_title $row['event_title']; 
$event_start=date("d/m/Y"strval($row["event_start"]));
$event_end=date("d/m/Y"strval($row["event_end"]));

//if ((date('d/m/Y', $row['event_start'])) == $today OR (date('d/m/Y', $row['event_end'])) == $today){ 

if ($event_start <= $today  && $today <= $event_end){ 
 echo 
$row['event_title']; 
    } 
}



TopTop
(1) 2 3 4 ... 31 »