We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Where to find the place to change how oxwall names attachments? [Answered] | Forum

Greg
Greg Apr 7 '14
I want to add more to the file name oxwall gives to new attachments. This will help make it harder for unauthorized people to view photos by just changing the number at the end of attach_1 or attach_2 ect. I found this fix which looks like it will work for me but in 1.6 the file is different. http://www.oxwall.org/forum/topic/15786 So can someone tell me a new way to do this?
The Forum post is edited by Alia Apr 10 '14
Alia Team
Alia Apr 9 '14
Greg, latest build of "Photo" plugin already has an improvement  you are looking for.
There are two types of photo links :

1. Direct link to the image uploaded via photo plugin on the server. These types of link come in following format: sitename.com/ow_userfiles/plugins/photo/photo_27_53184870d3fe3.jpg  where "53184870d3fe3" is a random hash code. It is almost impossible for unauthorized users to guess what the hash code will be.

2. Link to photo within your site ( link you see when you view the photo in ajax box).
These type of links come in following format: sitename.com/photo#view-photo=24
Where "24" number varies from one photo to another. If you don't want unauthorized users to view this kind of links, why not just restrict this within user role permissions?


Greg
Greg Apr 9 '14
Thank you Aliia, The photo plug in is perfect in how it does the random hash code. If a user uploads a photo to the photo plug in it works and all is well. If they upload a photo in a comment or post to their wall it is back to the old way ow_userfiles/plugins/base/attachments/attach_8.jpg What I am trying to prevent with this change is to make it so an authorized user can not share a link to one of their photos with an unauthorized user then have the unauthorized user just change the number at the end to view all the photos ever attached to the newsfeed. I tried the code change that was mentioned in the thread I linked to above (the old fix) but it did not work. Can i use the same script that the photo plugin uses to add the random hash code? if so can you help me with where to find it and what to copy and replace. Thank you for your time.
Greg
Greg Apr 9 '14
I must have not done it right the first time. I tried again and it works great now. Thank you
Alia Team
Alia Apr 10 '14
You are welcome =)_

Marking this topic as [Answered]
Amity Sherlock
Amity Sherlock Mar 16 '23

To change how Oxwall names attachments, you can follow these steps:


Log in to your Oxwall admin page.

Select the "Configuration" menu and then select "System Configuration".

Search for the "Attachment Settings" section Pokemon Showdown and click the "Modify" button.

Here you can change the format of the attachment name by using variables like {timestamp} or {random} to generate a random filename or a time-based filename.by using variables like {timestamp} or {random} to ge erate a random filename or a time-based filename.

Save changes by clicking the "Save" button. 

ali
ali Apr 11 '23
В Арт Академи в София, децата могат да се научат на различни техники за рисуване, керамика, крафт с полимерна глина и много други изкуствени дейности. През последните години, училището се е утвърдило като един от най-добрите центрове за изкуство за деца в София. Една от големите предимства на Арт Академи е, че децата не само могат да се забавляват, но и да учат много полезни умения като търпение, точност и творческо мислене. Децата могат да се развиват в своите умения и да изразят своята индивидуалност. В Арт Академи има и опитни учители, които ще насочат децата и ще им помогнат да развият своя талант. Всички материали и оборудване, необходими за изкуството, са на разположение в училището. Арт Академи
salmawisoky
salmawisoky Apr 17 '23
Me -> Directory -> My Public info -> Personal details -> Name > click Candy Crush on Edit (Action Name change) > Attachment section is missing. 
HIGH Quality Backlinks
Speedily this excellent website may possibly without doubt always be well-known amidst virtually all blogs folks, to the thoughtful articles or blog posts or maybe testimonials. a course in miracles
HIGH Quality Backlinks
Thank you for this incomparable article. I especially enjoyed reviewing it and ought to discuss it with everyone. acim
HIGH Quality Backlinks
Hi there, I’m an advanced university student and also I’m finding out considerably about writing as a result of writing about blogs and forums. I adore look in composing. It’s simple to implement though with very good information. A person’s language causes it to become pleasurable to learn to read and even have an understanding of. That’s an immense portion of producing. An individual’s admirers have to be rrn a position to realise what you’re indicating as well as posting really need to be interesting. You’ll want to challenge your readers, to make sure they will come back for much more. You are doing a great job wonderful a lot of these elements. Appreciate it! searchable acim audio
HIGH Quality Backlinks
Whats up, I’ve been havin a tough time trying to rank high for the words “victorias secret coupon codes”… Please approve my comment!! acim
HIGH Quality Backlinks
this kind of reminds me of that time when I was a kid learning to tie my shoes. yah frustrating. acim
HIGH Quality Backlinks
I located your own entry intriguing do I’ve additional the Trackback into it on my website ?–?– 청주출장안마
HIGH Quality Backlinks
I located your own entry intriguing do I’ve additional the Trackback into it on my website ?–?– 대전출장안마
HIGH Quality Backlinks
Thanks for the feature again! I guess it means I am doing a lot of things right. memek
HIGH Quality Backlinks
A nice read, but where is your rss? I might be blind but can’t see it. lol. memek
HIGH Quality Backlinks
A nice read, but where is your rss? I might be blind but can’t see it. lol. memek
HIGH Quality Backlinks
A nice read, but where is your rss? I might be blind but can’t see it. lol. memek
HIGH Quality Backlinks
Some genuinely great info , Glad I discovered this. carpet cleaning newcastle
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... » »»