Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4274
Latest: kellanphil
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43648
Total Topics: 7571
Most Online Today: 83
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 48
Total: 48

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.


Messages - Anwendungsfehler

Pages: [1] 2
1
Modifications Talk / Re: Clipboard image support for the editor
« on: January 24, 2024, 03:07:25 pm »
Hmmm... what I found somewhere else... :)

Preinfo:
However the file "*smfpack*.js" doesn't exist - I found the quote inside "jquery.sceditor.smf.js" instead.

Code: [Select]

Hi I have a quick little patch you can do to improve the SMFPacks WYSIWYG Editor. Many thanks to Sam Clarke, the author of the SCEditor for helping me with this! Please proceed at your own risk.

The SCEditor is the underlying editor code that the SMF Packs editor uses, its basically the heart of this mod. Updating it fixes many issues this mod has that have gone unresolved.


Download the latest SCEditor code here: Releases · samclarke/SCEditor · GitHub
Unzip it, open the "minified" folder and copy the "jquery.sceditor.bbcode.min.js" and "plugins" folders to your desktop.
Go to your forum files open /Themes/default/scripts/advanced_editor
Replace the "jquery.sceditor.bbcode.min.js" and plugins folders with the new ones from your desktop.
Open jquery.sceditor.smfpacks.js in a text editor and make these edits

Find:
CodeSelect
sceditor.formats.bbcode.set(
'quote', {

Replace
sceditor.formats.bbcode.set(
'quote', {
tags: {
blockquote: null,
cite: null
},
quoteType: $.sceditor.BBCodeParser.QuoteType.never,
breakBefore: false,
isInline: false,
format: function (element, content) {
var element = $(element);
var author = '';
var date = '';
var link = '';

// The <cite> contains only the graphic for the quote, so we can skip it
if (element[0].tagName.toLowerCase() === 'cite')
return '';

          // Changed these to use data- attributes
if (element.attr('data-author'))
author = ' author=' + element.attr('data-author').php_unhtmlspecialchars();
if (element.attr('data-link'))
link = ' link=' + element.attr('data-link');
if (element.attr('data-date'))
date = ' date=' + element.attr('data-date');

return '[quote' + author + link + date + ']' + content + '[/quote]';
},
html: function (element, attrs, content) {
var attr_author = '', author = '';
var attr_date = '', sDate = '';
var attr_link = '', link = '';

if (typeof attrs.author !== "undefined" && attrs.author)
{
attr_author = attrs.author;
author = bbc_quote_from + ': ' + attr_author;
}

// Links could be in the form: link=topic=71.msg201#msg201 that would fool javascript, so we need a workaround
// Probably no more necessary
for (var key in attrs)
{
if (key.substr(0, 4) == 'link' && attrs.hasOwnProperty(key))
{
var attr_link = key.length > 4 ? key.substr(5) + '=' + attrs[key] : attrs[key];

link = attr_link.substr(0, 7) == 'http://' ? attr_link : smf_scripturl + '?' + attr_link;
author = author == '' ? '<a href="' + link + '">' + bbc_quote_from + ': ' + link + '</a>' : '<a href="' + link + '">' + author + '</a>';
}
}

if (typeof attrs.date !== "undefined" && attrs.date)
{
attr_date = attrs.date;
tDate = new Date(attr_date * 1000);
sDate_string = tDate.toLocaleString();
sDate = '<date timestamp="' + attr_date + '">' + sDate_string + '</date>';
}

if (author == '' && sDate == '')
author = bbc_quote;
else if (author == '' && sDate != '')
author += ' ' + bbc_search_on;

            // Changed this to use data- attributes
content = '<blockquote data-author="' + attr_author + '" data-date="' + attr_date + '" data-link="' + attr_link + '"><cite>' + author + ' ' + sDate + '</cite>' + content + '</blockquote>';

return content;
}
}
);

3
Modifications Talk / Clipboard image support for the editor
« on: January 19, 2024, 05:12:26 pm »
Hi guys,

I really like smf, but there is a feature I have in xenForo / wpForo which I miss here.

When I create a support/tutorial thread, I use several programs to take screenshots, such as Snagit, or I use Affinity Photo/Designer.
I use the "Copy to clipboard" function very often. In the mentioned forum softwares I can paste any picture directly by pressing Ctrl+V.

It would be super convenient to have a mod like this!

Cheers,
Alexander

4
Feature Requests / Re: User Gallery Feature: move / bulk move images
« on: January 19, 2024, 02:56:53 pm »
Ah a user gallery category would need to add that to user galleries. If you want to move to one user gallery to another.
Right now only part of main gallery categories.

Ah, I meant if a user adds a sub category to a category, for example a new chapter in a graphic novel, and he wants to move some pictures in this sub category....

main category
.. story a
....chapter 1
....chapter 2

it would be nice to be able to move files back and forth. It is working picture by picture, but not bulkwise :)
Btw, does the gallery support PDF? /lazyalexander  ;D


5
Feature Requests / Re: User Gallery Feature: move / bulk move images
« on: January 19, 2024, 02:47:24 pm »
If you are in a main gallery category there should be checkboxes then on the bottom of the page use with selected to change to a different category

Nope - can't see any checkboxes. (2.1.4, latest gallery pro, nameX Theme for 2.1 (latest))
Tried it with my testuser and as admin.


6
I haven't worked with the dropbox api so not sure. I have used amazon s3 which is an option in Downloads pro for storage.

The issue with gallery though you have to generate thumbanils/different sizes, so has to have a local copy of at least the large image in order to do just gets messy.

Most of our images are between 2 and 8 MB in size. It would not be a problem to save the thumbnails locally, unlike the images themselves :)

7
Feature Requests / User Gallery Feature: move / bulk move images
« on: January 19, 2024, 02:27:47 pm »
Is there a way to let the user move selected images from one category into another?
(Forgive me if I've overseen such a feature  ::) )

8
Feature Requests / Re: Download Gallery Option
« on: January 19, 2024, 02:24:35 pm »
What about a file containing the links to the files? Then a member could bulk download them by using jdownloader or similar tools...

9
Hi,

it would be nice having an external storage solution for dropbox.
Would this be possible? I have something similar for wordpress available.
(see https://www.wpcloudplugins.com/wp-content/plugins/out-of-the-box/_documentation/index.html)

I am pretty sure that such a Gallery Pro solution would be perfect for lot of other customers as well :)

Cheers,
Alexander

10
Support / Re: Categories Posting Options
« on: January 19, 2024, 10:25:55 am »
Argh!Thanks!

have totally overseen the empty row, was looking for -none- or anything like this! 

11
I mainly use adminer for php or database workbench  to handle my databases

Oh my! Thank you for the adminer info - this makes it easier for me in this case.
(Normally I create any sql commands for development databases by hand since I started with AnsiSQL97^^)

12
Support / Categories Posting Options
« on: January 19, 2024, 03:38:15 am »
Is there a way to reset/clear this option? (see attachment)

Cheers,
Alexander

13
Support / Re: “Insert from Gallery”
« on: January 18, 2024, 03:02:18 pm »
Is that what appears? What SMF version?

Yes.

Version Information:
Forum version: SMF 2.1.4
Current SMF version: SMF 2.1.4

And the latest Gallery Pro.
(SMF Gallery Pro   10beta1   Jan 17, 2024, 05:29 PM)

14
Yeah the tables are kept on uninstall. Mainly to protect data loss.

No problem with that! - I would do it in the same way - however to beta test the routines from scratch they have to be purged.
Not sure if there's any event fired before the uninstall is started, but if yes, a drop table message would be nice :)
(On the other hand, a little script to do this by sql is written in one or two minutes..)

Cheers and thanks for your fast support,
Alexander

15
Support / Re: “Insert from Gallery”
« on: January 18, 2024, 02:16:04 pm »
I'll second that  :)

I wanted to add such a request as well^^

Thank you @smfhacks for the link to the mini mod - it works as expected - however if you have the board category action active, the auto generated post is messed up!
Code: [Select]
Just a short test\n\n[img$extraheightwidth]https://whatever.com/gallery/0/1-180124212432.png[/img]\n\nhttps://whatever.com/index.php?action=gallery;sa=view;id=5\n\n

Pages: [1] 2

+- Recent Topics

RESOLVED: Store Not Logging Transactions or Sending Emails by SMFHacks
January 23, 2025, 06:24:27 pm

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
January 22, 2025, 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Denying members some admin settings by rickk
November 17, 2024, 12:02:55 pm

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Powered by EzPortal