81
jayjay
Re: Only recent files in Mydownloads "top downloads" block
  • 2004/5/4 5:36

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi brash!

Thanks for answering. I actually did look around, but maybe I should try a bit harder If I find a block that does only show recent top downloads I'll post it here.

Bye!

Jay Jay



82
jayjay
Only recent files in Mydownloads "top downloads" block
  • 2004/5/3 20:23

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi everybody!

Would it be possible to only show let's say the most popular downloads of the last 7 days in the "top downloads" block of mydownloads?

Has anyone accomplished this already?

Greets

Jay Jay



83
jayjay
Re: HTML code: "javascript" splitted up with a blank space: "java script" by default
  • 2004/4/27 5:58

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


The answer may be a bit late, but here it is anyway

You could replace the ":" with its equivalent in the html coded character set (works for me!). I'm not posting it here for the obvious reasons.

Greets!



84
jayjay
Re: Show "recent files" of every category in mydownloads
  • 2004/4/2 8:44

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi catzwolf,

Thanks for your quick response! I'm quite happy with the current version (hacked mydownloads rc1), though I'm looking forward to the new one.

Still i wish to have this functionality in the current version, because it is running stable now and it cost me some time to get it that way.

I read this thread which could bring a solution:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=17767&forum=4#forumpost77273

I understand I have to call the parent id or "pid" record in "xoops_mydownloads_cat". Every "pid" has a bunch of "cid" records under it. Can I group these "cid" records so that when you call a parent category, all subcategory files are listed?

This is the code which is mentioned in the thread:

SELECT lidcidtitledatehits
FROM mydownloads_downloads 
AS d
LEFT JOIN mydownloads_cat 
AS c ON c.pid d.cid


Somehow I think this code can help me, but I don't know how to implement it.

Any help would be appreciated...

Greets!



85
jayjay
Show "recent files" of every category in mydownloads
  • 2004/4/1 13:56

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi everybody!

I'm looking for a way to show the files of parent categories in the mydownloads module. In this module the page "index.php" gives a list of "recent files" from all categories. I want the same thing for empty parent categories that only have subcategories.

Example: the index page shows all categories and a list of "recent files". If you click on a category "sports" with no subcategory in it, files from the category will be listed. If the category "sports" has subcategories, lets say football and tennis, the files from these subcategories will not be shown in "sports".

I've been looking around in "viewcat.php", the page that generates categories. At around line 100 I changed the following:

if($numrows>0){


to

if($numrows>=0){


Otherwise "show_links" won't be set to true if you have subcategories, so that your links won't be shown.

Then I wanted to edit this string around line 120:
$q "SELECT d.lid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE cid=".$cid." AND d.status>0 AND d.lid=t.lid ORDER BY ".$orderby."";


If I understand correctly, this string will only show what's in the current category, but will not know anything about any subcategories, because these are defined in "mydownloads_cat" and this record isn't being called. But how can I make XOOPS look in subcategories?

As I don't know too much about mysql, I'd like to ask a friendly fellow xoopser to help me a bit.

Thanks in advance...

Greets!



86
jayjay
Re: phpwiki - search function added
  • 2004/3/10 9:04

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


This is fantastic man!

I've been using the phpwiki module for a while now. It's a great tool for managing a site and with your solution for the search functionality it's even become better!

Thanks!



87
jayjay
Re: 2MB upload limit in Downloads Module
  • 2004/2/12 10:26

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi there!

It's not a secret, Beast is talking about mydownloads rc1:
https://xoops.org/modules/news/article.php?storyid=1037

With the proper bugfixes it works fine. rc2 will be released... soon

Bye!



88
jayjay
Re: security bug in control panel
  • 2004/2/6 12:32

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


What I mean by "god user" is a predefined user that has access rights to every part of the site and whose rights cannot be changed. This means uncareful webmasters can't should themselves out (as long as they remember their password )

I'll try to explain the phpwiki issue again: in order to give people write access to the phpwiki module, they must be in the 'webmasters' group. You can't modify the wiki as a normal XOOPS 'user'.

However I don't want to give the wiki moderators access to the entire site. That's why I restricted access rights for the original 'webmasters' group, renamed it to 'moderators' and made a new 'webmasters' group.

PS: I think deleting the entry for the admin group in mainfile.php will make it impossible to edit my wiki, because users in that group won't be recognized as "admins" anymore.



89
jayjay
Re: security bug in control panel
  • 2004/2/6 7:27

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Quote:
I guess that can be changed if you really want... but I'd rather do something about that phpwiki module.


Hi mithrandir,

I'd rather have this backdoor removed from xoops. What changes would I have to make?

Also, wouldn't it be safer to make XOOPS create a "god" user when installing?

Greets



90
jayjay
Re: security bug in control panel
  • 2004/2/6 7:20

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi Mithrandir and Dave_l,

Thanks for replying! I agree that this recovery 'feature' should be better documented. I admit however that my method of restricting access to the original 'webmasters' group is a bit unorthodox.

I needed it to give moderators the chance of editing pages in my wiki, but restrict their access to other parts of the site. The phpwiki module now sees my moderators as 'admins'. It was the fastest and easiest way of doing this, without touching too much wiki code.

Bye!




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



Login

Who's Online

153 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits