xoops forums

Forum Index


Board index » All Posts (metin)




metin

Just popping in
Posted on: 2005/9/4 12:41
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#11

Re: how can i do a user points system ?

no body there who could help me with my problem ?

My problem is that i want when an download is done points should be lost and an comment to the download module written points should be given. you did realize an version with news read more and it could be helpfull for me solve my problem with yours after understanding your changes.

Another problem which i have is to difference points for comments in modules. Downloads module more points but for as example news or image comments less points.

i would also would give different points for forumpostings in different forum sections. or when an forum posting had do be delete also points should be delete like comments in modules which have to be delete late.

What do you think - difficult to realize ?


metin

Just popping in
Posted on: 2005/9/2 23:56
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#12

Re: search only for users without comments in one modul ?

did install it on a test site with 2.0.13 and have 2 problems.

first: it doesn´t work with my theme at frontside. I had to change to default theme to see the form.

second: when i send the form i get a blank page on "membership" and "manage group membership" side.

How can i now solve my problem to get only a list of users who posted comments in pd-downloads with this module ?

Difficult to realize ?


metin

Just popping in
Posted on: 2005/9/2 22:24
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#13

Re: search only for users without comments in one modul ?

fine
thank you very much

could download this module here

http://dev.xoops.org/modules/xfmod/pr ... 0&release_id=634#selected

hope it will help


metin

Just popping in
Posted on: 2005/9/2 17:11
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#14

search only for users without comments in one modul ?

i am looking for an possibility to see after search with xoopsmembers or admin find user form a list of members who did or didn´t post comments only in pd-downloads.

Problem is that accounts of new members who didn´t post there a comments have to be delete.

When i am searching for members with xoopsmembers modul or admin find user form and select less than 1 post the result is that members who did post comments in other unimportant moduls or in our cbb forum are NOT listed !!! But they didn´t post in pd-downloads comments, too.

it´s important for me to delete all member accounts without comments in pd-downloads module.

A little help would be very nice.


metin

Just popping in
Posted on: 2005/9/1 21:53
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#15

Re: how can i do a user points system ?

is it possible with userpoints or your module to point only comments from one modul not all ?

only comments of pd-download modul should get points !


metin

Just popping in
Posted on: 2005/8/30 19:08
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#16

change user group automatically after written or not written comments ?

We are using pd-downloads and want that every registered user write comments after downloading our artists music tracks. Every registered user can download now all tracks but we want to add another group which then can download most of the tracks and new registered user should come in this group automatically if they write an comment after downlading as example 3 tracks of allowed downloads. When they don´t write an comment in the new group they should come in new registered user group again.

I hope i could explain our problem and am waiting for ideas to solve this problem.

Note: we are approving comments for pd-downloads to see which is one and which not.


metin

Just popping in
Posted on: 2005/7/7 21:52
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#17

summary rating for categories in pd-downloads - how to do

Every download in pd-downloads have an rating function. Want to make a summary rating for all downloads in an category and then list those categorie ratings in another new page ( like the existing top ten list page for each download ).

Is it too difficult to realise this ?


metin

Just popping in
Posted on: 2005/6/30 22:05
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#18

Re: Link only for special group - code problem

OK. I could solve the problem. Finito.


metin

Just popping in
Posted on: 2005/6/30 20:09
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#19

Re: Link only for special group - code problem

Where i could add the right code in the followin ratefile.php

anonymous & normal users cannot vote.

<?php 
/* $Id: ratefile.php,v 2.3 11 july 2004 Liquid Exp $
 * Module: PD-Downloads
 * Version: v1.0
 * Release Date: 04. März 2005
 * Author: Power-Dreams Team
 * Licence: GNU
 */
 
include 'header.php';

global 
$myts;

if (!empty(
$_POST['submit']))
{
    if (empty(
$xoopsUser))
    {
        
$ratinguser 0;
    } 
    else
    {
        
$ratinguser $xoopsUser -> getVar('uid');
    } 
    
// Make sure only 1 anonymous from an IP in a single day.
    
$anonwaitdays 1;
    
$ip getenv("REMOTE_ADDR");
    
$lid intval($_POST['lid']);
    
$cid intval($_POST['cid']);
    
$rating intval($_POST['rating']); 
    
// Check if Rating is Null
    
if ($rating == "--")
    {
        
redirect_header("ratefile.php?cid=" $cid "&lid=" $lid ""4_MD_PDD_NORATING);
        exit();
    } 
    
// Check if Download POSTER is voting (UNLESS Anonymous users allowed to post)
    
if ($ratinguser != 0)
    {
        
$result $xoopsDB -> query("SELECT submitter FROM " $xoopsDB -> prefix('PDdownloads_downloads') . " WHERE lid=$lid");
        while (list(
$ratinguserDB) = $xoopsDB -> fetchRow($result))
        {
            if (
$ratinguserDB == $ratinguser)
            {
                
redirect_header("index.php"4_MD_PDD_CANTVOTEOWN);
                exit();
            } 
        } 
        
// Check if REG user is trying to vote twice.
        
$result $xoopsDB -> query("SELECT ratinguser FROM " $xoopsDB -> prefix('PDdownloads_votedata') . " WHERE lid=$lid");
        while (list(
$ratinguserDB) = $xoopsDB -> fetchRow($result))
        {
            if (
$ratinguserDB == $ratinguser)
            {
                
redirect_header('index.php'4_MD_PDD_VOTEONCE);
                exit();
            } 
        } 
    } 
    else
    { 
        
// Check if ANONYMOUS user is trying to vote more than once per day.
        
$yesterday = (time() - (86400 $anonwaitdays));
        
$result $xoopsDB -> query("SELECT COUNT(*) FROM " $xoopsDB -> prefix('PDdownloads_votedata') . " WHERE lid=$lid AND ratinguser=0 AND ratinghostname = '$ip'  AND ratingtimestamp > $yesterday");
        list(
$anonvotecount) = $xoopsDB -> fetchRow($result);
        if (
$anonvotecount >= 1)
        {
            
redirect_header("index.php"4_MD_PDD_VOTEONCE);
            exit();
        } 
    } 
    
// All is well.  Add to Line Item Rate to DB.
    
$newid $xoopsDB -> genId($xoopsDB -> prefix('PDdownloads_votedata') . "_ratingid_seq");
    
$datetime time();
    
$sql sprintf("INSERT INTO %s (ratingid, lid, ratinguser, rating, ratinghostname, ratingtimestamp) VALUES (%u, %u, %u, %u, '%s', %u)"$xoopsDB -> prefix('PDdownloads_votedata'), $newid$lid$ratinguser$rating$ip$datetime);
    
$xoopsDB -> query($sql); 
    
// All is well.  Calculate Score & Add to Summary (for quick retrieval & sorting) to DB.
    
PDd_updaterating($lid);
    
$ratemessage _MD_PDD_VOTEAPPRE "<br />" sprintf(_MD_PDD_THANKYOU$xoopsConfig['sitename']);
    
redirect_header('index.php'4$ratemessage);
    exit();

else
{
    
$xoopsOption['template_main'] = 'PDdownloads_ratefile.html';
    include 
XOOPS_ROOT_PATH '/header.php';
    
$lid intval($_GET['lid']);
    
$cid intval($_GET['cid']);
    
$imageheader PDd_imageheader();

    
$result $xoopsDB -> query("SELECT title FROM " $xoopsDB -> prefix('PDdownloads_downloads') . " WHERE lid=$lid");
    list(
$title) = $xoopsDB -> fetchRow($result);
    
$xoopsTpl -> assign('file', array('id' => $lid'cid' => $cid'title' => $myts -> htmlSpecialChars($title), 'imageheader' => $imageheader));
    include 
XOOPS_ROOT_PATH '/footer.php';

include 
XOOPS_ROOT_PATH.'/footer.php';

?>


metin

Just popping in
Posted on: 2005/6/30 19:44
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#20

Re: Link only for special group - code problem

monty i did try it without \n too but have the same blank page. All other blocks are visible.

It´s interesting that i had in the beginning not this problem. At first i did get an error page and not the ratefile page that had to be shown.

Now when i add the code in the singlefile template the singlefile content doesn´t shown and if i add the code in ratefile template this does not show the content, but the rest of the site.

i only want that only an special group can reach the ratingfile page or can vote there. It cannot be so difficult to get this, but i have no expirience with php too.



TopTop
« 1 (2) 3 4 5 6 »