31
sgshell
Re: Thinking About Dumping PHP-Nuke
  • 2005/1/1 0:57

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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.......




32
sgshell
Re: some question on build in comments system
  • 2004/12/26 13:35

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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.



33
sgshell
Re: some question on build in comments system
  • 2004/12/26 12:19

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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?



34
sgshell
Re: some question on build in comments system
  • 2004/12/26 11:11

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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

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



35
sgshell
Re: some question on build in comments system
  • 2004/12/26 7:50

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


no one know how??

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





36
sgshell
some question on build in comments system
  • 2004/12/24 17:40

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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?



37
sgshell
How to use the function xoopsFormDateTime in the form;
  • 2004/12/22 3:48

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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.



38
sgshell
Re: script needed for input birthday date in a custom make form of xoops
  • 2004/12/18 10:22

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


any one help?



39
sgshell
Re: script needed for input birthday date in a custom make form of xoops
  • 2004/12/17 14:57

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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>
* @linkhttp://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



40
sgshell
script needed for input birthday date in a custom make form of xoops
  • 2004/12/17 6:05

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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 »



Login

Who's Online

202 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits