xoops forums

Forum Index


Board index » All Posts (sgshell)




sgshell

Just popping in
Posted on: 2005/1/1 0:57
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#31

Re: Thinking About Dumping PHP-Nuke

There is no support from the core of phpnuke ....that what i know in the pass 3 yrs with phpnuke....security is patch by and support by nuke cop....but the main programmer have already left....

Phpnuke have too many security hole that was ignore by the core...i think is becoz it have lack the manpower to do so...

I use phpnuke coz of the many modules they have .... but i drop phpnuke becoz is it too easily hack...

I was happy that XOOPS have become better and btter...many of XOOPS modules are high quality...but is it far less QUANTITY in term of modules compare to phpnuke...i hope more expert will join XOOPS and more great modules are created for this year 2005.

Happy new year xoopers.......



sgshell

Just popping in
Posted on: 2004/12/26 13:35
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#32

Re: some question on build in comments system

yes..that what i think to do but i do not know where could i insert code to give permission to the users just for that particular module and his own page....so that it will have a edit and delete permission just like site admin.


sgshell

Just popping in
Posted on: 2004/12/26 12:19
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#33

Re: some question on build in comments system

user profile is a custom made page example profile.php which is use to show users information.....

example users id 88 will have link profile.php?user=88, and i have use your buildin comments system.....

like to know is there a way to give permission to user profile owner to manage, edit and delete their own comments appear in their profile page, instead of site admin to do it?


sgshell

Just popping in
Posted on: 2004/12/26 11:11
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#34

Re: some question on build in comments system

thks.....I have already read it before i post here....

I didn't find any solution with it.....or did i miss it?


sgshell

Just popping in
Posted on: 2004/12/26 7:50
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#35

Re: some question on build in comments system

no one know how??

one more question.....how to use 2 Built-in Comment System in one modules ?




sgshell

Just popping in
Posted on: 2004/12/24 17:40
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#36

some question on build in comments system

Hi, i was doing a custom module that using the build in comments system....

Is it possible that i could give permission on specify users to delete and edit on a specfic link that use the comments page :
example : profile.php?user=88 <===which are user 88 link and i wish to let him edit and del his own profile links comments....

Do any one know how to hack it?


sgshell

Just popping in
Posted on: 2004/12/22 3:48
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#37

How to use the function xoopsFormDateTime in the form;

Quote:
XoopsFormDateTime( mixed $caption, mixed $name, mixed $size = 15, mixed $value = 0 )


Please inform me how to use this funtion...i read the dev wiki but it do not show example to code it.


sgshell

Just popping in
Posted on: 2004/12/18 10:22
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#38

Re: script needed for input birthday date in a custom make form of xoops

any one help?


sgshell

Just popping in
Posted on: 2004/12/17 14:57
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#39

Re: script needed for input birthday date in a custom make form of xoops

Hi, thks .... i see the site but i do not know how to modify and use the example they give....

could any one give example on how to do it in XOOPS data?


I saw this javascipt on date selecter it is small n nice:

dsInput.js

Quote:
/**
* Date Selector Input
*
* An intelligent set of 3 combo boxes for entering dates.
* The boxes update according to which day/month/year has been selected
* to account for days in each month (including leap years).
*
* @author Kevin Southworth <southwo8@msu.edu>
* @link http://kevin.tridubdesign.com
* @modified 2004-04-06
* @version 0.2
*/

/**
* The date selector constructor
*
* @access public
* @param string objName Name of the object that you create
* @param string formName Name of the form this object is in (OPTIONAL)
*/
function dsInput( objName, formName ) {

/* Properties */
this.objName = objName;
this.today = new Date();
this.date = this.today.getDate();
this.month = this.today.getMonth()+1;
this.year = this.today.getFullYear();
if(this.year < 2000) this.year += 1900; //for Netscape
this.yearComboRange = 5;
this.formName = arguments[1] ? arguments[1] : 'none';
this.dayObj = '';
this.monthObj = '';
this.yearObj = '';
this.monthNames = new Array( '','January','February','March','April','May','June','July','August','September','October','November','December' );


/* Public Methods */
this.setToToday = ds_setToToday;
this.adjustDaysInMonth = ds_adjustDaysInMonth;
this.setDate = ds_setDate;
this.setDateParts = ds_setDateParts;
this.getSelYear = ds_getYear;
this.getSelMonth = ds_getMonth;
this.getSelDay = ds_getDay;

/* Private Methods */
this._initOptions = ds_initOptions;
this._writeYearOptions = ds_writeYearOptions;
this._writeMonthOptions = ds_writeMonthOptions;
this._writeDayOptions = ds_writeDayOptions;
this._getDaysInMonth = ds_getDaysInMonth;

/* Constructor Code */
if( this.formName == 'none' ) {
this.dayObj = eval("document.forms[0]." + this.objName + "D");
this.monthObj = eval("document.forms[0]." + this.objName + "M");
this.yearObj = eval("document.forms[0]." + this.objName + "Y");
} else {
this.dayObj = eval("document." + this.formName + "." + this.objName + "D");
this.monthObj = eval("document." + this.formName + "." + this.objName + "M");
this.yearObj = eval("document." + this.formName + "." + this.objName + "Y");
}
this._initOptions();
this.setToToday();
this.adjustDaysInMonth();
}

/* Class Methods */

/**
* Set the date boxes to today's date
*/
function ds_setToToday() {
this.setDateParts( this.year, this.month, this.date );
}
/**
* Set the date boxes to specific date
* @param string dateStr 'YYYYMMDD'
*/
function ds_setDate( dateStr ) {
var y, m, d;
y = dateStr.substr(0,4);
m = dateStr.substr(4,2);
d = dateStr.substr(6,2);
this.setDateParts( y, m, d );
}
/**
* Set the date boxes to today's date
* @param integer year
* @param integer month
* @param integer day
*/
function ds_setDateParts( year, month, date ) {
this.dayObj[date-1].selected = true;
this.monthObj[month-1].selected = true;
for( i=0; i < this.yearObj.length; i++ ) {
if( this.yearObj[i].value == year )
this.yearObj[i].selected = true;
}
this.adjustDaysInMonth();
}


function ds_getYear() {
return this.yearObj[this.yearObj.selectedIndex].value;
}

function ds_getMonth() {
return this.monthObj[this.monthObj.selectedIndex].value;
}

function ds_getDay() {
return this.dayObj[this.dayObj.selectedIndex].value;;
}

/**
* Adjust the 'days' box according to the
* current month and year
*/
function ds_adjustDaysInMonth() {
Month = this.monthObj[this.monthObj.selectedIndex].value;
//alert( Month );
Year = this.yearObj[this.yearObj.selectedIndex].value;
//alert( Year);

DaysForThisSelection = this._getDaysInMonth(Month, Year);
PrevDaysInSelection = this.dayObj.length;

if (PrevDaysInSelection > DaysForThisSelection) {
for (i=0; i<(PrevDaysInSelection-DaysForThisSelection); i++) {
this.dayObj.options[this.dayObj.options.length - 1] = null
}
}
if (DaysForThisSelection > PrevDaysInSelection) {
var prevLastDay = this.dayObj.options.length;
for( i = prevLastDay+1; i <= DaysForThisSelection; i++ ) {
var newOption = new Option( i, i );
var optionsColl = this.dayObj.options;
optionsColl[optionsColl.length] = newOption;
}
}
if (this.dayObj.selectedIndex < 0)
this.dayObj.selectedIndex == 0;
}

/* Private Methods */

function ds_initOptions() {
this._writeYearOptions();
this._writeMonthOptions();
this._writeDayOptions();
}

function ds_getDaysInMonth( m, y ) {
monthdays = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
if (m != 2) {
return monthdays[m];
} else {
return ((y % 4 == 0 && y % 100 != 0) || y % 400 == 0 ? 29 : 28);
}
}

function ds_writeYearOptions() {
for( i=(this.year-this.yearComboRange); i<=(this.year+this.yearComboRange); i++ ) {
var newOption = new Option( i, i );
var optionsColl = this.yearObj.options;
optionsColl[optionsColl.length] = newOption;
}
}

function ds_writeMonthOptions() {
for( i=1; i <= 12; i++ ) {
var newOption = new Option( this.monthNames[i], i );
var optionsColl = this.monthObj.options;
optionsColl[optionsColl.length] = newOption;
}
}

function ds_writeDayOptions() {
for( i=1; i <= 31; i++ ) {
var newOption = new Option( i, i );
var optionsColl = this.dayObj.options;
optionsColl[optionsColl.length] = newOption;
}
}



the html to use it:

Quote:
<html>
<head>

<script type="text/javascript" src="include/dsInput.js"></script>

<script type="text/javascript">
// Calendar callback. When a date is clicked on the calendar
// this function is called so you can do as you want with it
function calendarCallback(date, month, year)
{
//date = date + '/' + month + '/' + year;
//document.forms[0].date.value = date;
mydate.setDateParts( year, month, date );
}
</script>
</head>

<body>

<form name="form1">

<select name="mydateD">
</select>

<select name="mydateM" onChange="mydate.adjustDaysInMonth()">
</select>

<select name="mydateY" onChange="mydate.adjustDaysInMonth()">
</select>
</form>
<script type="text/javascript">
mydate = new dsInput( 'mydate' );
</script>

</body>
</html>


It is nice but i can't get it to work with xoops...it work fine without xoops...but after i add in the main.php and header, footer of XOOPS ...it refuse to work and I do not know why...

i m noob in javascript, could any one help to see what happen? thks you


sgshell

Just popping in
Posted on: 2004/12/17 6:05
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#40

script needed for input birthday date in a custom make form of xoops

hi,
I need to make a form that will need to input BIRTHDAY

Do anyone know any javascript or others that i could make a drop down selection for day,month,year... which could be use in XOOPS without problem?

Thks



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