1
bordacs
Shared forum in different websites
  • 2006/2/21 20:15

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


I am loooking for a solution:

There are some websites using different CMS or only static HTML pages.
I would like to open a forum (or a guestbook that is simplier but forum have more topics) that content is shared among the different websites. Every user of that website can read or post the forum on his local website. The design of the forum must be locally stored so the forum design is like the website design but the content is similar.
I hope you understand what I mean.
I don't need complex forum but easy usage. No attachment or similars. One thing is important, every website's owner should moderate only his user's post.

Do you have any idea how to solve it?



2
bordacs
Re: Random pic slideshow code
  • 2006/2/14 17:11

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


It doesn't work for me.
No slideshow regardless of the interval.
I looked at the code and I didn't find the cycling routine so it seems that this is unfinished yet.
Anybody have an idea to implement this feature?
Here it is:

function b_myalbum_rphoto_show( $options )
{
global $xoopsDB ;

// For myAlbum-P < 2.70
if( strncmp( $options[0] , 'myalbum' , 7 ) != 0 ) {
$photos_num = intval( $options[1] ) ;
$box_size = intval( $options[0] ) ;
$mydirname = 'myalbum' ;
} else {
$photos_num = intval( $options[2] ) ;
$box_size = intval( $options[1] ) ;
$mydirname = $options[0] ;
}
$cat_limitation = empty( $options[3] ) ? 0 : intval( $options[3] ) ;
$cat_limit_recursive = empty( $options[4] ) ? 0 : 1 ;
$cycle = empty( $options[5] ) ? 60 : intval( $options[5] ) ;
$cols = empty( $options[6] ) ? 1 : intval( $options[6] ) ;

include( XOOPS_ROOT_PATH."/modules/$mydirname/include/read_configs.php" ) ;

// Category limitation
if( $cat_limitation ) {
if( $cat_limit_recursive ) {
include_once( XOOPS_ROOT_PATH."/class/xoopstree.php" ) ;
$cattree = new XoopsTree( $table_cat , "cid" , "pid" ) ;
$children = $cattree->getAllChildId( $cat_limitation ) ;
$whr_cat = "cid IN (" ;
foreach( $children as $child ) {
$whr_cat .= "$child," ;
}
$whr_cat .= "$cat_limitation)" ;
} else {
$whr_cat = "cid='$cat_limitation'" ;
}
} else {
$whr_cat = '1' ;
}

// WHERE clause for ext
// $whr_ext = "ext IN ('" . implode( "','" , $myalbum_normal_exts ) . "')" ;
$whr_ext = "1" ;

$block = array() ;
$myts =& MyTextSanitizer::getInstance() ;

// Get number of photo
$result = $xoopsDB->query( "SELECT count(lid) FROM $table_photos WHERE status>0 AND $whr_cat AND $whr_ext" ) ;
list( $numrows ) = $xoopsDB->fetchRow( $result ) ;
if( $numrows < 1 ) return $block ;

if( $numrows <= $photos_num ) {
$result = $xoopsDB->query( "SELECT lid , cid , title , ext , res_x , res_y , submitter , status , date AS unixtime , hits , rating , votes , comments FROM $table_photos WHERE status>0 AND $whr_cat AND $whr_ext" ) ;
} else {
$result = $xoopsDB->query( "SELECT lid FROM $table_photos WHERE status>0 AND $whr_cat AND $whr_ext" ) ;
$lids = array() ;
$sel_lids = array() ;
while( list( $lid ) = $xoopsDB->fetchRow( $result ) ) $lids[] = $lid ;
srand( intval( time() / $cycle ) * $cycle ) ;
$sel_lids = array_rand( $lids , $photos_num ) ;
if( is_array( $sel_lids ) ) {
$whr_lid = '' ;
foreach( $sel_lids as $key ) $whr_lid .= $lids[ $key ] . "," ;
$whr_lid = substr( $whr_lid , 0 , -1 ) ;
} else {
$whr_lid = $lids[ $sel_lids ] ;
}
$result = $xoopsDB->query( "SELECT lid , cid , title , ext , res_x , res_y , submitter , status , date AS unixtime , hits , rating , votes , comments FROM $table_photos WHERE status>0 AND lid IN ($whr_lid)" ) ;
}

$count = 1 ;
while( $photo = $xoopsDB->fetchArray( $result ) ) {
$photo['title'] = $myts->makeTboxData4Show( $photo['title'] ) ;
$photo['suffix'] = $photo['hits'] > 1 ? 'hits' : 'hit' ;
$photo['date'] = formatTimestamp( $photo['unixtime'] , 's' ) ;
$photo['thumbs_url'] = $thumbs_url ;

if( in_array( strtolower( $photo['ext'] ) , $myalbum_normal_exts ) ) {
// width&height attirbs for <img>
if( $box_size <= 0 ) {
$photo['img_attribs'] = "" ;
} else {
// list( $width , $height , $type ) = getimagesize( "$thumbs_dir/{$photo['lid']}.{$photo['ext']}" ) ;
list( $width , $height , $type ) = getimagesize( "$photos_dir/{$photo['lid']}.{$photo['ext']}" ) ;
if( $width > $box_size || $height > $box_size ) {
if( $width > $height ) $photo['img_attribs'] = "width='$box_size'" ;
else $photo['img_attribs'] = "height='$box_size'" ;
} else {
$photo['img_attribs'] = "" ;
}
}
} else {
$photo['ext'] = 'gif' ;
$photo['img_attribs'] = '' ;
}

$block['photo'][$count++] = $photo ;
}
$block['mod_url'] = $mod_url ;
$block['cols'] = $cols ;

return $block ;
}



3
bordacs
jvsongvoting module
  • 2005/10/4 23:55

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


Hello, is there a way to get this songvoting module? This is what I looking for. Please send me a download link here or via mail.



4
bordacs
Mail to selected users in a module
  • 2005/2/9 21:57

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


I am developing a module that organizes an event in the way that users can join to the list (based on LanMod).
I want a feature that admins can send emails or pms to the joined users only. I prefer use XOOPS mailusers feature because it is already done.
My problem is how to call this mailusers "function" from a module? So my module uses sql tables storing joined users but how can I connect this sql query to mailusers method?

Please help if I finish it I post this mod because it is very useful.



5
bordacs
LanMod register problem
  • 2005/1/25 11:30

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


I installed LanMod module but user can't register to event. Not stored in sql user data.
Does anybody use this module?
I tried both versions...



6
bordacs
wfsection 1.01 & line breaks
  • 2005/1/3 17:12

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


I am, using wfsection 1.01
It is configured to use wysiwyg editor.

If I send an article to the homepage as user and I look it in the submitted articles list klicking on its name, it displayed correctly.
But when I click on to "edit" it showed in the wysiwyg editor without line breaks, so editing is not possible in this way. The only method is that I select the text in the "correct" view and I paste it again in the "edit" view unchecking "no HTML".
But i am tired to do this.
Anybody have an idea what is wrong?



7
bordacs
Re:One Button Backup for the whole site
  • 2004/10/7 13:21

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


That't right cpanel is not widely available, I'd better say nowhere is available in Europe. And in other hand 3rd party solution is not enough for a professional website.



8
bordacs
One Button Backup for the whole site
  • 2004/10/7 9:17

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


I realized the following needs for anyone who is running a website:
A website is always changing eg. themes, blocks, tplsets, uploaded contents.
Some changes made online in different locations so changes are only on the web not on your computer.

What changes?
- database
- tplsets
- uploaded files (albums, downloads etc)

What I need?
- One button click to backup database only (Nagl's Backup is good, but I think put it in mainmenu is easier ti use then in a block)
- One button click to backup to backup selected folders
- configurable which folders to backup
- auto zip folders
- option to mail or download zipped folder
- One button click to backup the whole site
- backup database
- backup every folder
- option to mail or download zipped folder

Nagl's Backup can be the base to develeop this module. It needs to put the above features to be a complete backup solution.
It would spare much time for us and the ultimate and the only reasonable solution.
If you running many XOOPS sites you will understand why I wrote this post.

I do not have enough php exercise to modify the current backup module. Does anybody have it? I am sure this module would top downloads...



9
bordacs
Blank page after login for auto added user
  • 2004/6/17 11:11

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


I have this:
I use auto registration, so no email confirmation needed. The system tells that login first to activate account. After this blank screen shown.

I found in the user database that the theme field left blank. I don't use the default theme, but exist.
And this is the problem, no theme is in the field but in the admin section everything is ok, the used theme is selected in the preferences.

Debugging result, the screen after login:

Notice [PHP]: Undefined index: xoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: xoops_ccblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: xoops_rblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: xoops_clblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: xoops_crblocks in file class/smarty/Smarty.class.php line 626

So, what is the problem? How to solve it?



10
bordacs
How to display the last posted message of forum in a block?
  • 2004/6/10 17:20

  • bordacs

  • Just popping in

  • Posts: 27

  • Since: 2003/2/4 1


So I didn't find the solution to this:

On the index page I want to display the last eg. 3 post message of any forum's any topic.
Not only the poster and the topic, but the posted message.

I think it is not so easy...

Does anybody have any idea?




TopTop
(1) 2 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

62 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

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

Latest GitHub Commits