Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 716
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 707
Total: 707

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Senkusha

Pages: [1] 2
1
Support / Sorted FTP Import Directory
« on: April 24, 2025, 01:20:23 pm »
This is by far no way perfect, it was a quick hack, but it seems to work.  Please give this a look over.  Modified code in Themes/default/Downloads2.1.template.php around line 5066

Code: [Select]
// Check to see if there's anything in my special array.
if (isset($myFileArray))
if (count($myFileArray) > 0)
unset($myFileArray);

// Create a new array.
$myFileArray = array();

// Dump the contents of the directory into the new array...
// Loop through all the images in the folder.
$dir = opendir($fpath);
$count = 0;
while ($file = readdir($dir))
{
// Skip the directories!
if (!is_dir($fpath . '/' . $file))
{
$myFileArray[] = $file;
$count ++;
}
}
closedir($dir);

natcasesort($myFileArray);

// Now let's list these files.
// Loop though all the images in the folder
foreach ($myFileArray AS $fkey => $fvalue)
echo '
<tr>
<td><input type="checkbox" name="fimage[]" checked="checked" value="',$fvalue,'" /></td>
<td><a href="',$modSettings['down_url'], $fpath2 ,'/', $fvalue,'" target="_blank">',$fvalue,'</a></td>
<td>',Downloads_format_size(filesize($fpath . '/' . $fvalue),2),'</td>
</tr>';


2
I've been poking around on the modifications page looking for a mod that will automatically assign membergroups upon registration.  But, I want to assign these membergroups on the Additional Membergroups section, but not changing the Primary Member Group (I'm using membergroups as a method of Access Control.

I would love a full mod for this, but a simple database/php hack would be acceptable for a quick and dirty fix in the Registration php file.

I have two membergroups that I want all members to be initially assigned.  I'm thinking that the database query could be modified to include:
Code: [Select]
$query = $smcFunc('','
  UPDATE {db_prefix}members
  SET additional_groups = {string:memberGroups}
  WHERE id_member = {int:newMember}',
  array(
    'memberGroups = '15,16',
    'newMember' => $ID_MEMBER,
  )
);
Where:
  15, 16 are the ID's of the membergroups I want to add.
  $ID_MEMBER is the newly generated ID

Does this look correct?

3
Support / How does a member add a Classified Listing?
« on: March 28, 2025, 07:33:58 pm »
I'm at a loss.  I'm testing the Classified Mod with a regular member, and I'm not seeing how I'm supposed to add a listing.  Using the Default Theme here:

[ Guests cannot view attachments ]

[ Guests cannot view attachments ]

4
Support / Bulk Upload Frozen
« on: March 26, 2025, 05:58:27 am »
I attempted to use the bulk upload feature this morning, and watched this for an entire minute with nothing happening.
[ Guests cannot view attachments ]

I opened a second window to check my error logs, and I found the problem!
[ Guests cannot view attachments ]

The file name is: __fate_testarossa_and_chrono_harlaown_lyrical_nanoha_and_2_more__7fee20be9eba5e1bf933056c4bb040c2-1841383317.jpg", which is 111 characters long.

For a bulk import, either the file name should be renamed as "Image ####" or perhaps the field Title should also be 255 characters to match the filename field.

I have a work around, I could manually rename all my image files.  Actually, I'll probably just make up a PHP script to do that for me in the meantime.  Or I could modify the database table.


5
Support / Downloading with Zero Credits?
« on: March 23, 2025, 06:00:13 am »
Last night I upgraded to Downloads Pro 6.2.3, (wonderful job so far!)  And this morning I thought, I should test this, so I did.  This is the result:

[ Guests cannot view attachments ]
[ Guests cannot view attachments ]
[ Guests cannot view attachments ]

Although, I'm the Administrator, I guess I'm still allowed to download anything I want, despite having zero credits?

Shouldn't this be reading shopMoney if using ST Shop?
[ Guests cannot view attachments ]

Also just noticed this error:
[ Guests cannot view attachments ]

6
Feature Requests / Some minor Layout modifications
« on: March 21, 2025, 07:31:47 pm »
First, if an image is used, I think it would look better centered instead of aligned to the left.
[ Guests cannot view attachments ]

Second, I noticed (the 1 at the bottom of the listing) what appears to be possible debugging output on the Category listing screen? [ Guests cannot view attachments ]

Third,  Adding an admin link that takes you back to the Downloads Configuration options inside the Administration Center.

Fourth, Under My Credits, using a number_format to break up large numbers would be more easing to the eyes, in my opinion.
[ Guests cannot view attachments ]

7
Support / Uploading Bulk files to a Category?
« on: March 21, 2025, 05:47:14 pm »
I could have sworn I remember seeing an option to upload a bulk of files for the Downloads Pro system somewhere, but now, I can't seem to locate it.  Was I high?

Thanks!

8
Support / SMF Shop / ST Shop Credits?
« on: February 22, 2025, 12:10:53 pm »
I am poking around the Store, contemplating what I'd like to eventually sell in my store when I ran across this.  I do have ST Shop installed (since SMF Shop isn't compatible with 2.1.4 (to my knowledge), although, it would be nice to have a single packaged solution...) anyway...

What does _this_ do?

Quote
SMF Shop/ST Shop Credits Give:

Also, How difficult would it be to apply "credits" based on forum participation to reduce the cost of a product?  Like a coupon of up to 10% or 25% off?  I don't have a definite vision in my mind yet, but I do see as how a mechanic like this could prove beneficial towards driving sales.

9
Support / Down_sendpm Error
« on: February 22, 2025, 07:49:24 am »
I was just reviewing my Downloads settings and noticed this error in my log.

[ Guests cannot view attachments ]

10
Support / Badge Icon on Board Index
« on: February 17, 2025, 06:32:43 am »
How difficult would it be to add the badge icon to the Latest Badges Awarded section of the Board Index?

[ Guests cannot view attachments ]

11
Modifications Talk / Administration Center Clean Up
« on: February 14, 2025, 07:30:31 am »
I'm just curious, I'm willing to do this, but I just need to know where/what to look for.  What controls this:

[ Guests cannot view attachments ]

What I want to do is place all these separate groups into one group called "SMF Hacks".  (I'll be contacting the author of the ReSeller Theme to update the icons in a bit.)

I figure it may be in the Themes/{name}/Admin.template.php?  And if my custom theme doesn't have an Admin.template.php file, I'm also assuming that SMF is using the default files for the layout then?

12
Support / Unknown Column: money
« on: February 13, 2025, 05:38:31 pm »
I just enabled the credits system in the Downloads Pro mod, and I'm not sure if something went foobared during installation, because I'm not seeing anything in my error logs.  But I get the following error when I try to click on an upload:

[ Guests cannot view attachments ] [ Guests cannot view attachments ]

I'm assuming this column 'money' is added to the members table?  I've looked at my database and I'm not seeing it listed.

13
Presales for Products / Downloads vs. Downloads Pro
« on: August 31, 2009, 08:51:43 am »
Hi,

I've been using Downloads System for a while now, and I think it's great.  I recently inquired about some features to be added that are currently avialable in the Pro version (subtracting "points" for downloads, etc)  But, I'd like to know if a few issues have been corrected in the Pro version that don't seem to work in the non-Pro version.

1.  Does the sub-categories on the main category page list in alphabetical order?
2.  When adding a new download, the list of the Categories is... unorganized.  I'd love to see something like:
     Main Category
     -- Sub Category 1
     -- Sub Category 2
     -- -- Sub Sub Category 1
     -- -- Sub Sub Category 2
     -- Sub Category 3
     Another Category
(all alaphabetized would be awesome!)
3.  The numerical counts on the main category page includes all the sub categories.

4.  As an admin, I'd like to be able to set the member via a drop down box (listing real_name).

5.  I'd love for the downloads to be sorted properly if there are more than one page.  Right now, I have a work-around where I've set the number of downloads insanely high (like 100).  If I don't do this, page 2 doesn't continue to list the unseen downloads from page 1, it like lists the same downloads out of order.

One feature I would absolutely adore would be like a URL browser.  Right now, I have some members that upload files to my server via FTP.  I would love the ability to just browse to a set directory tree on my server to add the URL (and generate the file size -- I have a script snippet that I use to do this manually).  I'm not sure if this is possible, but if it is, I would love to see it.

I think that's all I've got.  Great product, just a little tweaking -- perhaps some of these issues have been fixed in a subsequent release of the basic Downloads System.  I would feel better about spending the cash for the Pro version knowing that these issues aren't... issues. :)

Thank you!

14
Modifications Talk / Downloads + Gallery
« on: July 31, 2009, 08:47:20 pm »
I'm not sure where to put this.....

What I want to do is see if there is a way to automatically populate the Downloads system with specific media files from the Gallery (like music only:  mp3...)

Also, while I'm on the subject of Downloads:  Is there a way to add support for the SA Shop (SMF 2.x version of the SMF Shop).  What I would like to do is deduct a number of credits from the member's account who downloads a file.  Maybe something like 1 point per every 5KB?

Thank you!

15
Bugs / Multiple Qty with shipping
« on: May 05, 2009, 12:43:42 am »
I think I may have found a bug:

When shipping is required, I bought 2 of the same product, yet the total didn't compute shipping for two items, only one item shipping was added.

Also, if I have multiple different items, is there a way to set the Store to ship everything as a group?  Is that what the Group check box is for?  Is there a way to increase the shipping cost to compensate for the weight increase?

Thanks!

Pages: [1] 2

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as &#39; in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal