|
#1
|
|||
|
|||
Rename on upload(ts gallery)
Hello guyw. I have tsse 5.4.1 and i have installed gallery plugin. The problem is the users have uploaded plenty of pictures and now is difficult to find an easy name for your pictures. How can i rename the photos on upload and give them a number(1,2,3...)which(the number) will ascend???
|
#2
|
||||
|
||||
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
you well want to run a check to make sure that # dose not exsest already!
some thing like this Code:
$cnt = 1; do { if(!is_file($target = $target . $ran2.$ext;))$cnt = 0; } while ($cnt > 0);
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
#4
|
|||
|
|||
Thanks guys!! I'll try it
|
Tags |
gallery , rename , uploadts |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove or rename Powered by TS Special Edition v.4.3 | UzAkLArDaN | Template Shares | 12 | 28th November 2013 22:20 |
Photo gallery for TS v 5.1 | zenja7777 | Template Shares | 3 | 17th August 2008 22:10 |
How to Remove or Rename v1.3.1 by xam in Forums | D3SI | Template Shares | 1 | 23rd June 2008 22:12 |