TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 27, 2024, 01:28:48 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 90
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 40
  • Total: 40

SMF Downloads block?

Started by Heero, March 09, 2008, 02:45:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Heero

Hey people!
I've recently returned to Tiny Portal from MKPortal,
because Tiny Portal is a better support and addition to SMF.
Anyway,
now I am stuck with a question.

Does there already exist a block which can show the latest uploaded downloads (or something similar) from the SMF Download hack?

I've been searching around on the forums with no result,
it seems that the search doesn't filter it out.
http://custom.simplemachines.org/mods/index.php?mod=992
-> Download system.

With a friendly greet and thanks in advance  ;),
Heero

JPDeni

I don't think it exists.

What do you want?

Dragooon

#2
OK here is a shot in the dark, I haven't tested this but give it a try


<See later posts>

Heero

Thank you for the replies
JPDeni,
I'd like to have a simular 'latest downloads' block as like the one from Tiny Portal.

Hey Dragooon,
thanks for your quick reply but you're shot in the dark didn't worked ;)
It makes the full page 'blank'.
Any further assistence is welcome :)

Thanks in advance,
~- Heero

JPDeni

Heero, can I get your example of what you want it to look like and what you want it to include? That way we'll both know that we're on the same page.

Dragooon

Can you tell me if any errors are there in error log?
Seems like the DB query is messed up.

Heero

Well of course.
Just something similar then the block :
tpmodule:
Downloads show x New Files.
Example : http://img517.imageshack.us/my.php?image=downloadsct4.jpg


Dragooon,
It gives the following error :
Table 'databaseName_smf.smf_down_files' doesn't exist
File: /home/xxx/domains/domain.org/public_html/smf/Sources/Load.php(1770) : eval()'d code(209) : eval()'d code
Line: 9

Thanks for the support again.

Dragooon

#7
OK try this

<See later posts>

With some modifications it can be made like that, I'll do that tomorrow :)

Heero

Great, it works!
Thank You Dragooon,
also thanks for your support JPDeni.
And yeah it might be adjusted a bit, but I'm glad it works :).

Dragooon

Glad it worked, I'll post the code to make it look like TP's recent downloads block tomorrow.(Unless someone else does it :))