71
jfebus
newbb link to users xcgallery
  • 2004/9/22 1:46

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Hi All,

Any idea is there is a hack that will show a link in newbb to the user xcgallery albulms?

Best Regards,

jose Febus



72
jfebus
Re: can't present sample [ img ] in [ code ] block!
  • 2004/9/19 17:31

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Thanks a lot!

It worked perfectly...but I noticed that if I edit the post after the update, it will reinsert the [

Thanks a lot!




73
jfebus
can't present sample [ img ] in [ code ] block!
  • 2004/9/19 16:26

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Hi All,

Is there a way to present the code for a [ img ] in a [ code ] block?

[img]www.tumaternidad.com/photo.jpg[/img]


What I am trying to present in the post it's an sample of how insert an image!

Best regards,




74
jfebus
Re: xcGallery problems
  • 2004/9/18 13:17

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Can a user create an album in one category and then another album in another category?

Best regards,

Jose



75
jfebus
Re: Problem @ XOOPS Admin - MASS MAIL SEND :(
  • 2004/9/17 4:02

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


So the final statement is that XOOPS is unable to send mass mail to the users?



76
jfebus
User Photo Module
  • 2004/9/14 19:53

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Hi all,

I am looking for a module that will let my users have their own "Photo Album".

Any one with the next features?
- Only registered users can view the other users albums.
- Can send a ecard using album's photos.
- Can resize on the fly the image if it's too large.

Best Regards,

Jose Febus



77
jfebus
Post Count Synch for all Users
  • 2004/9/14 17:01

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Hi All,

After importing into the newbb forum the data from another forum I was in need for a All Users Postr Count Synch.

I made the following changes to \modules\system\admin\users\users.php

In function modifyUser($user) after:
echo "<form action="admin.php" method="post">n";
        echo 
"<input type="hidden" name="id" value="".$user->getVar("uid")."">";
        echo 
"<input type="hidden" name="type" value="user">n";
        echo 
"<input type="hidden" name="fct" value="users">n";
        echo 
"<input type="hidden" name="op" value="synchronize">n";
        echo 
"<input type="submit" value=""._AM_SYNCHRONIZE."">n";
        echo 
"</form>n";


Add :
echo "<form action="admin.php" method="post">n";
        echo 
"<input type="hidden" name="id" value="".$user->getVar("uid")."">";
        echo 
"<input type="hidden" name="type" value="all users">n";
        echo 
"<input type="hidden" name="fct" value="users">n";
        echo 
"<input type="hidden" name="op" value="synchronize">n";
        echo 
"<input type="submit" value="Synchronize  All Users">n";
        echo 
"</form>n";

This will add a Synchronize All Users button

Create a new function:
function mysynchronize($id)
{
    global 
$xoopsDB;
    
// Array of tables from which to count 'posts'
    
$tables = array();
    
// Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE)
    
include_once XOOPS_ROOT_PATH '/include/comment_constants.php';
    
$tables[] = array ('table_name' => 'xoopscomments',
 
'uid_column' => 'com_uid''criteria' => new Criteria('com_status'XOOPS_COMMENT_ACTIVE));
    
// Count forum posts
    
$tables[] = array ('table_name' => 'bb_posts'
'uid_column' => 'uid');

    
$total_posts 0;
    foreach (
$tables as $table) {
        
$criteria = new CriteriaCompo();
        
$criteria->add (new Criteria($table['uid_column'], $id));
        if (!empty(
$table['criteria'])) {
            
$criteria->add ($table['criteria']);
        }
              
$sql "SELECT COUNT(*) AS total 
FROM "
.$xoopsDB->prefix($table['table_name']) . ' ' $criteria->renderWhere();
              if ( 
$result $xoopsDB->query($sql) ) {
            if (
$row $xoopsDB->fetchArray($result)) {
                
$total_posts $total_posts $row['total'];
                  }
              }
    }
    
$sql "UPDATE ".$xoopsDB->prefix("users")." SET posts = $total_posts WHERE uid = $id";
    if ( !
$result $xoopsDB->query($sql) ) {
        exit(
sprintf(_AM_CNUUSER %,$id));
    }
}


and replace the delivered funtion:
function synchronize($id$type)
{
    global 
$xoopsDB;
       switch(
$type) {
       case 
'user':
        
mysynchronize($id);
           break;
       case 
'all users':
           
$sql "SELECT uid FROM ".$xoopsDB->prefix("users")."";
           if ( !
$result $xoopsDB->query($sql) ) {
               exit(
_AM_CNGUSERID);
           }
           while (
$row $xoopsDB->fetchArray($result)) {
               
$id $row['uid'];
               
mysynchronize($id);
           }
           break;
       default:
        break;
       }
       
redirect_header("admin.php?fct=users&op=modifyUser&uid=".$id,1,_AM_DBUPDATED);
    exit();
}


Enjoy it!




78
jfebus
Re: How do I reset the post count for individual members?
  • 2004/9/14 15:45

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


echo "<form action="admin.php" method="post">n";
echo 
"<input type="hidden" name="id" value="".$user->getVar("uid")."">";
echo 
"<input type="hidden" name="type" value="all users">n";
echo 
"<input type="hidden" name="fct" value="users">n";
echo 
"<input type="hidden" name="op" value="synchronize">n";
echo 
"<input type="submit" value=""._AM_SYNCHRONIZE."">n";
echo 
"</form>n";


I changed the type vlaue to "all users" and it didn;t synch all users...

any idea?



79
jfebus
Re: How do I reset the post count for individual members?
  • 2004/9/14 15:09

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Is there a way I can synchronize data for ALL users?

I noticed this code in /modules/system/admin/users/users.php
case 'all users':
           
$sql "SELECT uid FROM ".$xoopsDB->prefix("users")."";
           if ( !
$result $xoopsDB->query($sql) ) {
               exit(
_AM_CNGUSERID);
           }
           while (
$row $xoopsDB->fetchArray($result)) {
               
$id $row['uid'];
               
synchronize($id"user");
           }
           break;


Is there a button to run this code?

Best Regards,




80
jfebus
Re: Adding a new block to wfsections!
  • 2004/9/9 19:23

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


Is there any other place I must declare a new block?




TopTop
« 1 ... 5 6 7 (8) 9 10 »



Login

Who's Online

164 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 164


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