1
EnglishManIn
hack for WF-downloads (v2.05)

Anyone got a hack for WF-downloads (v2.05) ?

What I want is a table of who downloaded.

I think the hack could go in the visit.php at line 76 where the hits are updated.
Quote:
$sql = sprintf("UPDATE "
. $xoopsDB -> prefix('wfdownloads_downloads')
. " SET hits = hits+1 WHERE lid =$lid");


Any ideas ?

2
davidl2
Re: hack for WF-downloads (v2.05)
  • 2005/12/6 13:28

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Please can you submit the request to: the feature request here

Thanks

3
EnglishManIn
Re: hack for WF-downloads (v2.05)

Quote:

davidl2 wrote:
Please can you submit the request to: the feature request here

Thanks


Depends if you see it as a hack or a feature
I'd like to do like you said, but I can't log in there
Is dev.xoops.org different to http://www.xoops.org ? do I have to register there too ?

I've been working on it and I think something like
Quote:
$uid = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
$uname= !empty($xoopsUser) ? $xoopsUser->getVar('uname') : "";
$ip = getenv("REMOTE_ADDR");
$sql = sprintf("INSERT INTO %s (lid, cid, uid, uname, hostname, timestamp) VALUES ( %u, %u, %u, '%s', '%s', %u)", $xoopsDB -> prefix('wfdownloads_downloadedinfo'), $lid, $cid, $uid, $uname, $ip, $datetime);
$xoopsDB -> queryF($sql);

Would do it, but I have to create the right 'wfdownloads_downloadedinfo' table first.
Then I'd need to add a listing hack to the Admin and it's finished.

4
davidl2
Re: hack for WF-downloads (v2.05)
  • 2005/12/6 14:31

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


You don't need to register - entries will be submitted anonymously

5
EnglishManIn
Re: hack for WF-downloads (v2.05)

Ok I did it here:
http://dev.xoops.org/modules/xfmod/forum/forum.php?forum_id=959

But it doesn't at all look popular, I'm not even sure I'll get a resopnse...

Well I guess I'll just have to find out on my own
( along with google )

6
davidl2
Re: hack for WF-downloads (v2.05)
  • 2005/12/6 15:04

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


"Doesn't look popular"? I'm not sure what you mean....

It has got a response from one SmartFactory member already ... although I'm not a coder so theres not a lot I can do

7
EnglishManIn
Re: hack for WF-downloads (v2.05)

Quote:

davidl2 wrote:
"Doesn't look popular"? I'm not sure what you mean....

It has got a response from one SmartFactory member already ... although I'm not a coder so theres not a lot I can do


Eh ? where do you see that ?

I've just put a feature request right now :
http://dev.xoops.org/modules/xfmod/tracker/?group_id=1289&atid=1328

The other one (abt. 30mins ago) is for Basedoc, which I think it's their new version (???)
http://dev.xoops.org/modules/xfmod/forum/forum.php?forum_id=959

Can you tell me where you're looking ?

Login

Who's Online

391 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 391


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