Home arrow Forum

Remository Forum

 


<< Start < Previous 1 2 Next > End >>
121books.org
User
 
File Size change Kb to MB - 2005/12/25 02:34 Anyone know in which file, and line #, the Fils Size is listed? Actually, I would like to have the default size multiplied by 1024 and then change the Kb to MB. ReMository is already handling decimal points, so that shouldn't be a problem. I've been hunting around in the files but am obviously missing it.
Thanks,
www.121books.org
  | | The administrator has disabled public write access.
admin
User

Platinum Boarder
Posts: 3093
graph
Karma: 53  
Re:File Size change Kb to MB - 2005/12/27 02:28 You would need to make a few changes in different places, and it is not dead easy, since the size is held as a text string including both the numeric part and the text "Kb". But it could be done. One day Remository may change, but there are a lot of people holding quite small files where Kb is still a better option. Martin Brampton aka Counterpoint
http://black-sheep-research.com
http://mamboguru.com
  | | The administrator has disabled public write access.
121books.org
User
 
Re:File Size change Kb to MB - 2005/12/28 07:08 I just want invite any of the ReMository users to post thier solution if they have managed to implement this on thier site.
Looking forward to v.3.4
www.121books.org
  | | The administrator has disabled public write access.
121books.org
User

Junior Boarder
Posts: 6
graphgraph
Karma: 0  
Re:File Size change Kb to MB - 2006/06/15 23:20 Anyone out there know which files need to be moded to enable newly added files to show filesize in MB? I tried using the Admin's hints and made a few changes to startdown and remository.php, but no luck. Surely someone has done this to avoid manually changing the filesize field.

Post edited by: 121books.org, at: 2006/06/15 18:21
  | | The administrator has disabled public write access.
121books.org
User

Junior Boarder
Posts: 6
graphgraph
Karma: 0  
Re:File Size change Kb to MB - 2006/06/27 15:23 Recently tried to manually change the file size field on the Admin side. But after a few days everything reverted back to Kb Thought about changing the filesize in MySQL, but this is the same field from the Admin side, so it should have the same result.

Anyway, if the admin comes across this post; please let me know which files I need to mod to make this happen. If this is already implemented or planned in v. 3.4 I can wait. I’m just waiting for the final release version b4 playing with the betas.
  | | The administrator has disabled public write access.
tony121
User

Platinum Boarder
Posts: 71
graphgraph
Karma: -2  
Re:File Size change Kb to MB - 2007/07/12 15:10 We recently received a PM about how we implemented this on our site. I’m posting the answer here so it is available for everyone (and as a hint to the developer that ppl may like to see this feature added ).

All of our files are added from the Admin side. We manually overwrite the file size field with the equivalent MB size. If you ever search for missing files, this field will be reset to the KB size (for all of the files). You’ll then need to reset them again, so don’t search for missing files.

This could be done with a daily script that searches and modifies these fields. You could determine where and what to modify in the Remository files, we tried but kept missing something . We ended up using a free app called autohotkey that we already use for a wide range things. In this case; the relevant portion when adding files selects this field, removes the letters and commas, divides it by 1024, writes the result, adds a space, and “MB.” Autohotkey can automate just about anything that can be laid out in a logical order so you don’t have to repeatedly do the same thing.

I know the person who PMd us was looking for a simple mod that would do this automatically. Sorry.
  | | The administrator has disabled public write access.
<< Start < Previous 1 2 Next > End >>

Menu

Login Form

Username

Password

Remember me
Password Reminder
No account yet?
Create one

Who is Online

Remository welcomes guests and registered users.

We have 7 guest online