Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Pages: 1 2 
Send Topic Print
Suggestion for image upload page (Read 1922 times)
Jan 17th, 2006 at 7:08pm

Nitro   Offline
Colonel

Gender: male
Posts: 277
*****
 
Is it possible that the page that say "Your images are uploaded successfully" to display the full URL of the image?

An example:
If I upload an image with the name myimage.jpg, the page would say something like "You can find your image at http://www.simviation.com/yabbuploads/myimage.jpg "

When you want to insert the image in your post you can just copy the URL and add image tags and it's done. It works a lot faster and you will have less typo's.
 

...&&&&To be sure of hitting the target, shoot first and, whatever you hit, call it the target.&&&&There's no sense in being precise when you don't even know what you're talking about.&&&&No matter where I go, the place is always called
IP Logged
 
Reply #1 - Jan 18th, 2006 at 2:36am

eno   Offline
Colonel
Why you shouldn't light
your farts!!
Derbyshire UK

Posts: 7802
*****
 
Simpler suggestion .......  cut and paste the following into a notepad and then just add your image name.

http://www.simviation.com/yabbuploads/
 

...
IP Logged
 
Reply #2 - Jan 18th, 2006 at 2:57am

pete   Offline
Admin
'That would be a network
issue'
Cloud Cuckoo Land

Posts: 8500
*****
 
It kind of does already - this is the page you get ......
 

Think Global. It's the world we live in.
IP Logged
 
Reply #3 - Jan 18th, 2006 at 5:50am

Craig.   Offline
Colonel
Birmingham

Gender: male
Posts: 18590
*****
 
I think he wants "yourpic.jpg" replaced with the exact file name of the picture uploaded to save the red X box with incorrect filenames. Is that even possible?
 
IP Logged
 
Reply #4 - Jan 18th, 2006 at 6:00am

Woodlouse2002   Offline
Colonel
I like jam.
Cornwall, England

Gender: male
Posts: 12574
*****
 
Probably but it would require up to 8 different urls being displayed. Easier as it is methinks.
 

Woodlouse2002 PITA and BAR!!!!!!!!&&&&Our Sovereign Lord the King chargeth and commandeth all persons, being assembled, immediately to disperse themselves, and peaceably to depart to their habitations, or to their lawful business, upon the pains contained in the Act made in the first year of King George the First for preventing tumults and riotous assemblies. God Save the King.&&&&Viva la revolution!
IP Logged
 
Reply #5 - Jan 18th, 2006 at 10:37am

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
My opinion is that it would take too much of a rewrite of the yaBB code to get it done.

It would be a useful addition (many times I've wished for it) but in the end, .......



Hmmm - perhaps more useful would be to hunt down the script section that puts the [ img]URL[ /img] tags and replace it with [ img]http://www.simviation.com/yabbuploads/[ /img]  ?

(extra spaces added so the tag shows up)....

 

Felix/FFDS...
IP Logged
 
Reply #6 - Jan 18th, 2006 at 10:51am

pete   Offline
Admin
'That would be a network
issue'
Cloud Cuckoo Land

Posts: 8500
*****
 
Quote:
Hmmm - perhaps more useful would be to hunt down the script section that puts the [ img]URL[ /img] tags and replace it with [ img]http://www.simviation.com/yabbuploads/[ /img]  ?


Good idea - though even customising with the Yabb  is scary enough - not to mention going into the scripts ..

FFDS would be a good testbed for this.  Smiley

(reminds me Felix - you should back that one up. Nothing like a killed forum to ruin breakfast ...)
 

Think Global. It's the world we live in.
IP Logged
 
Reply #7 - Jan 18th, 2006 at 1:37pm

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
Quote:
Good idea - though even customising with the Yabb  is scary enough - not to mention going into the scripts ..

FFDS would be a good testbed for this.  Smiley

(reminds me Felix - you should back that one up. Nothing like a killed forum to ruin breakfast ...)


I thought of testing it in the FFDS forum, but I don't have the image hosting that we have here.

However, I may just play around....  let me see if I can find it and let you know privately.


 

Felix/FFDS...
IP Logged
 
Reply #8 - Jan 18th, 2006 at 1:59pm

Fly2e   Offline
Global Moderator
It's 5 O'clock Somewhere!
KFRG

Gender: male
Posts: 199132
*****
 
Quote:
let me see if I can find it and let you know privately.

Lost it again Felix?  Wink
 

Intel Core i7 Extreme Processor 965, 4.2GHz/8MB L3 Cache, Asus P6T Deluxe V2 Intel X58 Chipset Cross
Fire & SLI Supported, Mushkin Redline 6GB (3X2GB) Memory, eVGA NVIDIA GeForce GTX 285, Vista 64.

...

IP Logged
 
Reply #9 - Jan 18th, 2006 at 3:03pm
Souichiro   Ex Member

 
Or alternatively...When you have entered one complete filename with the link and proper filename and image tags hit preview post if it works then copy the name and only change the number You'll have to make serious though like

Ivanrussianstuff1
Ivanrussianstuff2
                        3
etc

etc
 
IP Logged
 
Reply #10 - Jan 18th, 2006 at 3:20pm

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
Quote:
Lost it again Felix?  Wink



LOL - trying to find something in the yabb scripts is worse than trying to find a needle in a haystack!
 

Felix/FFDS...
IP Logged
 
Reply #11 - Jan 18th, 2006 at 5:04pm

Nitro   Offline
Colonel

Gender: male
Posts: 277
*****
 
Copying and pasting is something I already do. I never have problems when I post an image but it's just to make life a little easier  Smiley

An image upload system like this site uses isn't very complicated or difficult (at least it doesn't need to be Smiley ). I think that If you send me the file yabbupload.cgi that I can get it to work.

Quote:
Probably but it would require up to 8 different URLs being displayed. Easier as it is methinks.

If it's done right displaying 1000 URLs can be done in 3 lines of code

Quote:
Hmmm - perhaps more useful would be to hunt down the script section that puts the [ img]URL[ /img] tags and replace it with [ img]http://www.simviation.com/yabbuploads/[ /img]  ?

I think that's more difficult
 

...&&&&To be sure of hitting the target, shoot first and, whatever you hit, call it the target.&&&&There's no sense in being precise when you don't even know what you're talking about.&&&&No matter where I go, the place is always called
IP Logged
 
Reply #12 - Jan 18th, 2006 at 5:47pm

pete   Offline
Admin
'That would be a network
issue'
Cloud Cuckoo Land

Posts: 8500
*****
 
The image upload isn't part of the yabb forum - but a perl script I added & running separately -

To get the upload  to display the URL would require hacking the scripts - & they are far from obvious.

I wish it was a case of changing a line of code ... Smiley  I regularly customise perl scripts but this is not customising - it is hacking (aka modifying) - going into the script itself- & possibly more than one as yabb uses a handful of scripts to run.

The bright side is that the new yabb has a file attachment (same thing) built in. (dark side is that our forums have so far failed to convert even with the help of the yabb team). We will probably have to delete all messages over a year of 2. to make it possible ....  8)
 

Think Global. It's the world we live in.
IP Logged
 
Reply #13 - Jan 18th, 2006 at 5:53pm

Nitro   Offline
Colonel

Gender: male
Posts: 277
*****
 
I am not talking about changing the YaBB scripts. Just some changes to the image upload script and the upload successful page.
 

...&&&&To be sure of hitting the target, shoot first and, whatever you hit, call it the target.&&&&There's no sense in being precise when you don't even know what you're talking about.&&&&No matter where I go, the place is always called
IP Logged
 
Reply #14 - Jan 18th, 2006 at 8:22pm

Felix/FFDS   Offline
Admin
FINALLY an official Granddad!
Orlando, FL

Gender: male
Posts: 1000000627
*****
 
Quote:
I am not talking about changing the YaBB scripts. Just some changes to the image upload script and the upload successful page.



The problem is that what you're suggesting actually is a major (re)programming task.  You're asking the script to recognize the files uploaded by name, and then create the URLs for them directly for you to copy/paste into your post.

Finding out where in the script the tag "[ IMG]URL[ /IMG]" is and changing that URL to the simviation uploads URL is probably easier, and in the end, "reminds" someone who may want to link to an outside image that it shouldn't be done.

 

Felix/FFDS...
IP Logged
 
Pages: 1 2 
Send Topic Print