Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 178
Total: 178

Author Topic: [Mod] Downloads System for SMF  (Read 150418 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: [Mod] Downloads System for SMF
« Reply #105 on: April 02, 2009, 08:34:51 pm »
Maybe heh I can add settings to Gallery Pro to increase download credits as well.

Credits do not have to be based on money payments but the option is there.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline propyl

  • Full Member
  • ***
  • Posts: 159
    • View Profile
Re: [Mod] Downloads System for SMF
« Reply #106 on: April 02, 2009, 10:44:02 pm »
id just be happy if we could get 3 things

thumb previews of downloads

large images of downloads

store all files behind the public folder for security of files.

I've been waiting a year to pay ya for that release. lol quit workin on that portal stuff  ;)

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: [Mod] Downloads System for SMF
« Reply #107 on: April 03, 2009, 01:48:54 am »
Solved Thanks by changing values in php.ini

Were do I find php.ini


Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 519
  • SMF 2.0.17
    • View Profile
    • Digiscrap.nl
Re: [Mod] Downloads System for SMF
« Reply #108 on: April 03, 2009, 01:48:53 pm »
Maybe heh I can add settings to Gallery Pro to increase download credits as well.

Credits do not have to be based on money payments but the option is there.

Okey! Thank you!

Vincent

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 519
  • SMF 2.0.17
    • View Profile
    • Digiscrap.nl
Re: [Mod] Downloads System for SMF
« Reply #109 on: April 05, 2009, 10:02:38 am »
 
Today we'd go 'live' with the downloads system.

Is there a way to display the latest download(s) in a 'php block'? Couldn't find that in the forum.
We're running SMF2RC1

Thanks!
Vincent

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 519
  • SMF 2.0.17
    • View Profile
    • Digiscrap.nl
Re: [Mod] Downloads System for SMF
« Reply #110 on: April 06, 2009, 05:50:58 am »
Hello mr SMFHacks,

I rewrote an SSI script (stolen from the gallery SSI  ::) ) to display random downloads.... see below. There's only one problem with the script. The text $txt['downloads_text_by'] isn't displayed. This text is present in Downloads.english.php and Downloads.Dutch.php
The rest of the script is working good.

Maybe you can help?

EDIT: In the errorlog= 8: Undefined index: downloads_text_by

Vincent

SSI script:
Code: [Select]
//Begin Random Downloads horizontaal
function ssi_downloads_randomdownloads_hor( $limit = 5, $output_method = 'echo')
{
   global $smcFunc, $modSettings, $boardurl, $scripturl, $txt;

    $limit = (int)  $limit;
   
   $dbresult = $smcFunc['db_query']('', "
   SELECT p.id_file, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.title, p.id_member, m.real_name, p.date, p.description
   FROM {db_prefix}down_file as p
   LEFT JOIN {db_prefix}members AS m ON (m.id_member = p.id_member)
   WHERE p.approved = 1 GROUP by RAND() LIMIT $limit");
   
   echo '<table cellspacing="20"><tr>';

   if ($output_method == 'echo')
   {
     while($row = $smcFunc['db_fetch_assoc']($dbresult))
     {
     
      echo '<td width="20%"><div align="center"><a href="' . $scripturl . '?action=downloads;sa=view;down=' . $row['id_file'] . '">'  . $row['title'] . '</a><br /><br />';
     
      if ($row['real_name'] != '')
         echo $txt['downloads_text_by'] . '<br /> <a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">'  . $row['real_name'] . '</a><br />';
     
      else
         echo $txt['downloads_text_by'] . ' ' . $txt['downloads_guest'] . '<br />';
         
      echo '</div></td>';
     }
     $smcFunc['db_free_result']($dbresult);
     
   }
   else
   {  $data = array();
      while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {
         $data[] = $row;
      }
     
     
      return $data;
   }
echo '</tr></table>';

}

//END Random downloads horizontaal

« Last Edit: April 06, 2009, 06:40:55 am by Vincent Volmer »

Offline rumboogy

  • Full Member
  • ***
  • Posts: 215
    • View Profile
    • Smorgasboard Forums
Re: [Mod] Downloads System for SMF
« Reply #111 on: April 20, 2009, 06:59:18 pm »
Mr. Hacks...just upgraded to SMF 2.0 RC on one of my sites. The downloads section will not let my moderator approve downloads. I have his permissions set to "moderate downloads", but I get this message when I try and approve a download.

You are not allowed to access this section

I am sure it is a permissions problem...but I don't know how to fix it. Any insights?

Wally
Rumboogy
"Yeah, I got way too many irons in the fire"
Biker Site:      http://www.razorbiker.com
Biker Site:      http://www.arkansasbiker.net
Zumo GPS:     http://www.zumoforums.com
Personal Site:  http://www.wallyjarratt.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: [Mod] Downloads System for SMF
« Reply #112 on: April 20, 2009, 09:33:01 pm »
Is it just approval for downloads? Does it occur for other options such as approving comments, deleting files, editing file, settings page.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline rumboogy

  • Full Member
  • ***
  • Posts: 215
    • View Profile
    • Smorgasboard Forums
Re: [Mod] Downloads System for SMF
« Reply #113 on: April 20, 2009, 09:43:44 pm »
Just downloads. My moderators can do other things...just not any kinds of approvals for downloads.

Here is my permissions file...but I don't know if that is it or not.

Wally
Rumboogy
"Yeah, I got way too many irons in the fire"
Biker Site:      http://www.razorbiker.com
Biker Site:      http://www.arkansasbiker.net
Zumo GPS:     http://www.zumoforums.com
Personal Site:  http://www.wallyjarratt.com

Offline rumboogy

  • Full Member
  • ***
  • Posts: 215
    • View Profile
    • Smorgasboard Forums
Re: [Mod] Downloads System for SMF
« Reply #114 on: April 22, 2009, 08:54:51 pm »
Any other things I can try Mr. Hacks?

Thank you...

Wally
Rumboogy
"Yeah, I got way too many irons in the fire"
Biker Site:      http://www.razorbiker.com
Biker Site:      http://www.arkansasbiker.net
Zumo GPS:     http://www.zumoforums.com
Personal Site:  http://www.wallyjarratt.com

Offline rumboogy

  • Full Member
  • ***
  • Posts: 215
    • View Profile
    • Smorgasboard Forums
Re: [Mod] Downloads System for SMF
« Reply #115 on: April 27, 2009, 12:39:40 am »
Can anyone provide an example of what the permissions for the downloads would look like for a moderator so that I can edit my permissions to allow my moderators to MANAGE the downloads mod.

Thanks for any help.

Wally
Rumboogy
"Yeah, I got way too many irons in the fire"
Biker Site:      http://www.razorbiker.com
Biker Site:      http://www.arkansasbiker.net
Zumo GPS:     http://www.zumoforums.com
Personal Site:  http://www.wallyjarratt.com

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 519
  • SMF 2.0.17
    • View Profile
    • Digiscrap.nl
Re: [Mod] Downloads System for SMF
« Reply #116 on: April 29, 2009, 09:07:55 am »
Hello,

After update the downloads system to 1.2.1 I get an error in the log:

Code: [Select]
8: Undefined index: label
File: /shared/usr/wcen1234567/DOMAIN/www.digiscrap.nl/HTML/Themes/default/Downloads2.template.php (generic_menu_dropdown_above sub template - eval?)
Line: 306

This apears only when in admin section

Thanks for your support!
Vincent

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: [Mod] Downloads System for SMF
« Reply #117 on: April 29, 2009, 07:01:20 pm »
I looked at that line and it does not mention any label.
This error generic_menu_dropdown_above sub template

Looks like it is coming from the theme it self. On smf search for disabletmpeval I believe and that should search for the true location of the error.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 519
  • SMF 2.0.17
    • View Profile
    • Digiscrap.nl
Re: [Mod] Downloads System for SMF
« Reply #118 on: April 30, 2009, 01:46:43 am »
I looked at that line and it does not mention any label.
This error generic_menu_dropdown_above sub template

Looks like it is coming from the theme it self. On smf search for disabletmpeval I believe and that should search for the true location of the error.

Thanks for your answer.
I switched to the default theme and still get the same error. I only get this error when I go into the settings of the Downloads System. So it must be something with the Downloads System... I presume.

I installed the new version 'over' the old one. Maybe that wasn't the best way? Maybe I needed to un-install the previous version before installing the new v1.2.1 ?

Vincent

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: [Mod] Downloads System for SMF
« Reply #119 on: April 30, 2009, 06:58:41 pm »
Check out this topic to get accurate error line number and source file:
http://www.simplemachines.org/community/index.php?topic=290186.0
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
5640 Views
Last post May 19, 2008, 08:57:52 pm
by ApplianceJunk
2 Replies
5834 Views
Last post November 11, 2008, 09:29:41 am
by SNewman
1 Replies
6132 Views
Last post January 25, 2009, 09:45:41 am
by SNewman
1 Replies
5866 Views
Last post July 10, 2011, 09:34:24 am
by SMFHacks
7 Replies
10964 Views
Last post January 20, 2014, 11:17:32 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal