|
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.
Messages - Senkusha
1
« 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
// 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
« on: April 24, 2025, 06:20:28 am »
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:
$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
« on: April 03, 2025, 02:30:43 pm »
I really like the idea of a common used emojis feature. Like the MOD could remember which emojis are used, and maybe order the list based on popularity (individual user, not collective as the forum). I think this would really add some umph, usefulness to the mod. I mean most people use their Smartphones today, and there is a way to get these emojis in Windows, but it's kinda a pain (at least on my keyboard it's a pain to access the popup window). But having a "most used" emoji's feature built in would really add useful benefit.
4
« 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 ]
5
« 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.
6
« 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 ]
7
« on: March 22, 2025, 06:30:31 pm »
Couldn't you read the FTP directory, load the files into a String Array and then sort() that array before outputting to the browser?
Oh, and THANK YOU for the all select/deselect!!
8
« on: March 21, 2025, 07:49:58 pm »
Thank you for the quick reply!
I found a couple other minor, really helpful things. On the FTP / Bulk import, having the ability to Select/Deselect all checkboxes would be REALLY helpful. Also, having a sorted list, or the ability to sort by Title would be helpful too. [ Guests cannot view attachments ]
9
« 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 ]
10
« on: March 21, 2025, 06:45:52 pm »
Found it! Also found two potential issues?
First: I had the Delete files in ftp folder on successful import setting checked. Yet, the files didn't get deleted. [ Guests cannot view attachments ] [ Guests cannot view attachments ] Edit: I think they did actually delete, because when I attempted to manually delete the files, I got an error message stating there was no file or directory.... so, disregard this one, please!
Second: I'm still getting an error about the missing money database field. I don't recall if this was fixed yet, so if you're working on it, please disregard. [ Guests cannot view attachments ]
Edit: A couple more issues.
Third: The child category works, but is listed... funny? [ Guests cannot view attachments ] [ Guests cannot view attachments ]
Fourth: The number 1 is being appended to my categories in this listing? (see attachment #4)
11
« 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!
12
« on: March 18, 2025, 07:33:13 pm »
Thank you! I believe all works! I'll give a through run through on Thursday (my Saturday).
13
« on: March 18, 2025, 06:11:41 am »
[ Guests cannot view attachments ]
Okay. I think I see the problem. When I create a new topic/reply I get this:
[ Guests cannot view attachments ]
When I look at the code, I see this:
function Downloads_AddMemberCredits($memberID, $filesize, $credits = 0) { global $smcFunc, $downloadSettings;
if ($credits != 0) { $extraSMFShop = '';
if ($downloadSettings['down_set_intergrate_smfshop_money']) $extraSMFShop = ', money = money + ' . $credits. " ";
$smcFunc['db_query']('', " UPDATE {db_prefix}members SET downpro_credits = downpro_credits + " . $credits . " $extraSMFShop WHERE ID_MEMBER = $memberID LIMIT 1"); return; }
And there's other checks a bit further down that use the database field money as well. Shouldn't this be updated to use the same logic as above for full ST Shop support?
14
« on: March 17, 2025, 08:09:39 pm »
Did you have SMF Shop installed before?
If so delete the variable shopVersion from smf_settings table shopVersion
I've never had SMF Shop installed on this forum, but I'm still getting this error, when enabling SMF Shop, even after updating to 6.2.1 Is there another place somewhere that I'm not seeing to use ST Shop instead?
15
« on: March 16, 2025, 08:33:15 pm »
Nope. Thanks! I didn't even notice the option was Upgrade, not Install. It's been a long day.
|
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 ' in Most Viewed (and Recent Items ?)
by SMFHacks
August 22, 2026, 11:01:56 pm
|
|
|