1
xtrem
hacking wf-downloads
  • 2006/2/5 0:44

  • xtrem

  • Just popping in

  • Posts: 12

  • Since: 2005/6/21


Hi,

my english is poor but I try it. I need two things to make in this module:
-Block that show in title order the downloads for all categories and subcategories
-Make that the reviews can write a Unregister User.

Sorry my english please.

If anyone can helpme I like it :)

Thanks.

2
xtrem
Re: hacking wf-downloads
  • 2006/2/9 19:25

  • xtrem

  • Just popping in

  • Posts: 12

  • Since: 2005/6/21


pleaseeeeeeeeeeeeeeeeeeeeeeeeeee

3
m0nty
Re: hacking wf-downloads
  • 2006/2/9 19:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


not sure about the block, but reviews can be modified.. i kinda included that feature in my development version, which won't be till 3.1 tho at least..

but for now here's how..

open modules/wfdownloads/review.php

find on lines 15 - 19:

if (!is_object($xoopsUser) && !$xoopsModuleConfig['anonpost'])
{
    
redirect_header(XOOPS_URL '/user.php'1_MD_WFD_MUSTREGFIRST);
    exit();
}


REPLACE WITH

$gperm_handler =& xoops_gethandler('groupperm');
$groups is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;

if (!
$gperm_handler->checkRight("WFDownCatPerm"$cid,$groups$xoopsModule->getVar('mid'))) {
redirect_header(XOOPS_URL.'/modules/wfdownloads/index.php',3_NOPERM);
exit();
}


Find on line 81 (or thereabouts):

case "default";
    default:


ADD RIGHT AFTER

if (!is_object($xoopsUser) && !$xoopsModuleConfig['anonpost'])
            {
                
redirect_header(XOOPS_URL '/user.php'1_MD_WFD_MUSTREGFIRST);
                exit();
            }



save and you're done..

the only thing is, you have to now turn anonymous submission on in admin for it to allow anonymous to post reviews (which will also allow anonymous to post downloads if you have allowed user submissions)

4
xtrem
Re: hacking wf-downloads
  • 2006/2/14 7:25

  • xtrem

  • Just popping in

  • Posts: 12

  • Since: 2005/6/21


thanks, i'm going to make this, I hope that I will get.

A lot of thanks

5
xtrem
Re: hacking wf-downloads
  • 2006/2/14 7:39

  • xtrem

  • Just popping in

  • Posts: 12

  • Since: 2005/6/21


Ok, It's FINE!!! Thanks,

uhmm... about block if you are not sure, dont worry, say me that the you hopes, and I try it, happy. :)

thanks

6
lucky_phd
Re: hacking wf-downloads
  • 2006/2/14 7:52

  • lucky_phd

  • Just popping in

  • Posts: 84

  • Since: 2005/11/13


I would also like to make some hacks in this modul.
I have a website about flyfishing (for those who don’t know this is fishing with artificial flies). I searched high and low to find a module for flies repository, and I find it with this module. I like many features (like section, possibility to rate a download file , search engine, etc) but I would like help to make them suitable for my purpose:
1. The existents of block with information about download. I mean the gray block with information like version, file size etc. As I saw this block has 5 columns. I would like to have more of them with different names. My site is in Serbian language and help with this will be much appreciated.
2. Within download there is a picture of disk, with purpose for downloading. I would like to have a picture of that download (read fly, because that is the purpose) instead, and without link for downloading.
THX
First Serbian flyfishing website
http://www.musicarenje.org

7
xtrem
Re: hacking wf-downloads
  • 2006/2/14 15:32

  • xtrem

  • Just popping in

  • Posts: 12

  • Since: 2005/6/21


Hi all,

Uhm another interesting hack will be that the admin can rate the downloads.

thanks a lot.

8
davidl2
Re: hacking wf-downloads
  • 2006/2/14 15:45

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


If you want to make any module suggestions - please log them here

9
m0nty
Re: hacking wf-downloads
  • 2006/2/14 15:53

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


admin can rate downloads.. you just can't rate your own downloads that you submit.

10
xtrem
Re: hacking wf-downloads
  • 2006/2/14 16:30

  • xtrem

  • Just popping in

  • Posts: 12

  • Since: 2005/6/21


uhm m0nty thanks, can you say me how can admin rate your own downloads?
thanks, i'm going for another web, expouse in this or in this?
thanks, sorry my english

Login

Who's Online

236 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

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

Latest GitHub Commits