News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Unable to delete old attachments

Started by clothahump, January 24, 2012, 05:38:58 AM

Previous topic - Next topic

clothahump

Thanks, trying to find a better host.

Illori

check the hosting board here for some suggestions.

clothahump

Found another host, sites will be migrated in the next few hours, lets hope it is a better server this time.

Illori


clothahump

http://www.justhostme.co.uk

They have very good feedback and are moving my 18 sites for free.

Illori

they are not an overseller so that is a plus. you will see how well their server works.

clothahump

There is too much choice out there, took me ages to decide on giving them a try, nice thing is their servers are on a quick connection.

Illori

the repair process has completed, your forum now says you have 20208 attachments. although under file maintenance it says you have 9842 attachments.

clothahump

Wow, thank you very much, I should be able to adjust those figures by deleting the missing images from the posts now.
Once again, thank you.

Illori

you can also disable my account now, this way i will no longer get emails about your new members.

clothahump

Account disabled, now the wait for the server move............

clothahump

Quote from: Joker™ on January 25, 2012, 12:18:28 PM
Quote from: clothahump on January 25, 2012, 07:29:30 AM
I have found defaultMaxMessages in DB set to 15, I reckon it is that but if I change to 150 that will affect the main forum as well, I might take you up on the offer if I am unable to find another way round it.

Just went through the topic and if you want to increase that to 150, it might impact the server. Try it with 100

Make back of the file before editing it

Sources/ManageAttachments.php

Search for "function list_getFiles" (without quotes)

In that function line 23 (or overall file line 506)
Code (Find:) Select
'per_page' => $items_per_page,

Code (Replace it with:) Select
'per_page' => 100,


Note - Don't forget to change it afterwards.

I tried this the other day and it made no difference but since then if I click Recent Unread Topics I get a list of 52 items per page, how and where do I change that?

Joker™

Well the code I gave you doesn't change anything on recent topics page.

Administration Center » Posts and Topics » Topic Settings -- (Number of topics per page in the message index) check that value.

Moreover I'm interested in the fact is why the code refused to work. Give me few hrs to debug the code at my test install.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

clothahump

It gets better, or worse depending on how you look at it.

Joker™

Quote from: clothahump on January 30, 2012, 11:52:09 AM
It gets better, or worse depending on how you look at it.
Worst.

What happens when you revert the manual changes I mentioned in the file?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

clothahump

Nothing, I changed the file back when I realised nothing happened.

Joker™

If you are comfortable with phpmyadmin, then go in there and run this simple query

SELECT *
FROM prefix_settings
WHERE variable LIKE 'defaultMaxTopics'


Replace prefix_ with the prefix you are using for you SMF database. Post the result displayed in value column over here.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

clothahump


Joker™

Attach your Source/Recent.php.

Moreover whats mods do you have on your forum?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

clothahump


Advertisement: