| Author |
Message |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
hi fi-dd, just a quick suggestion which i really really hope u cud integrate.
Can we just attach a file that has been uploaded?? then the admin can give a link to the file from may be a text link or even a small image
for example if its a mp3 files, i wold want to put the singers photo wich will link to the mp3!! not necessary to embed
Thanx
|
|
| Wed Oct 04, 2006 7:51 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
 |  | But where do you create the reziseble pop-up? |
1. Set "Popup" to yes.
2. Upload an image with a thumbnail.
3. When clicking on the thumbnail in your news the full image should open in a popup.
 |  | and how about being able to insert padding between the thumbs, so it will be as mutch space between them as over and under them... can't explain what i mean better... haha...  |
You can use CSS for that, can't you?
img {padding:10px}
 |  | Thought of one more thing... let's say that you have all images for one news (i use the news as a photogallery) in one folder (one folder for each newsitem), how about when you click an image and it opens in a pop-up and in the pop-up you can brows between the images in that folder (like using pagination for each image or something in the pop-up). Is that posible to create? |
Don't know. I have to think about it.
|
|
| Wed Oct 04, 2006 7:58 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
 |  | hi fi-dd, just a quick suggestion which i really really hope u cud integrate.
Can we just attach a file that has been uploaded?? then the admin can give a link to the file from may be a text link or even a small image
for example if its a mp3 files, i wold want to put the singers photo wich will link to the mp3!! not necessary to embed |
I don't know if I completely understood you but you want to have a link to the image that has just been uploaded?
Change this:
 |  | if ($shadow) {
@make_shadow($folder.'/thumbs/'.$image);
}
}
}
}
header('Location: '.$PHP_SELF); |
to this:
 |  | if ($shadow) {
@make_shadow($folder.'/thumbs/'.$image);
}
}
if($i == 0){
$quick_link = '<a href="'.$config_path_image_upload.'/'.$image.'">'.$image.'</a><br />';
}
}
}
//header('Location: '.$PHP_SELF); |
and find this:
 |  | echo '<a href="'.$PHP_SELF.'&act=configuration">'.$echo['configuration'].'</a>'; |
add above:
 |  | if($quick_link) echo 'Last image: '.$quick_link; |
|
|
| Wed Oct 04, 2006 8:22 pm |
|
 |
maqs

Joined: 20 Aug 2006 Posts: 112 Location: Lund, Sweden |
|
|
|
Ah, found it, I didn't see the Configuration-link.
And thank you for the CSS-tip, didn't know that I could put that info in the css, I'm really a newbe at creating webpages so I learn new things all the time.
And I can say this: I have NEVER been at a forum were I have got so mutch help and were all the people are so nice. So thank you ALL for that!
_________________ www.eldar.se
marcus@eldar.se |
|
| Wed Oct 04, 2006 8:24 pm |
 |
 |
maqs

Joined: 20 Aug 2006 Posts: 112 Location: Lund, Sweden |
|
|
| Thu Oct 05, 2006 12:00 am |
 |
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
fi-dd, thanx for the quick fix but that is somewhat not what i suggested. Ok let me explain.
First of all this matter is not regarding 'images' but its for any other multimedia files that i uploaded into the sever. for example video / mp3 / ppt.
What i want to do is, in my news article to give a link to download any such file.
For video i know u hav given video embed but this is as a alternative whr u can let them download it.
This is just like giving a hyperlink to the files on the server.
Hope u understood what i'm trying to explain??
By the way i'm noy quite sure i understood what the coding u have given above does!! Could u explain pls?? i just have feeling we could modify this fix to achive what i suggested cos what ur doing is linkin to images that are up on the server rite??
thanx
|
|
| Thu Oct 05, 2006 2:04 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
 |  | What i want to do is, in my news article to give a link to download any such file. |
That's already available. There are two links for videos: embed video and insert link.
|
|
| Thu Oct 05, 2006 9:35 am |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
sorry!! i spoke without first chekin it out!!
uhmmm!! Am i doin sumtin wrong?? hey all i gotta do is replace the images.mdu file in /mod and the images.ini in the /lang rite??
Do i have to set any configurations??
I'm asking cos it doesnt seem to be working!!!!!
I am stiall having the old image management module and dont see anything on video!!! i just chekd in the server and its the updated images.mdu file that is ther!!!
|
|
| Thu Oct 05, 2006 6:08 pm |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
ok i found what was wrong, it was just that i emptied the images folder before trying the script and if there aint any media files in the folder the video options are no whr to be seen. Its all there once i upload a .mpg file
Ok fi-dd, i need ur help with 2 things pls.
1. For users of WYSIWYG editors (tinyMCE / spaw) --> Is it possible to have a standalone button outside of the WYSIWYG editors that will call the cutenews image manager?? Cos otherwise WYSIWYG editor users wont b able to use this advanced manager.
2. Just as u have given 'insert as link' option for video can we use it for any other file format? For example i want to link to powerpoint files. I can easily upload the file by adding the ppt extension in the image manager config page. But then cutenews will recognize .ppt as a video file and allow options for embed or link??
Hope u can have a look into this.
Thanx
|
|
| Fri Oct 06, 2006 2:23 am |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
Done |
|
Ok guys, i have good news
I modified the image manager of the SPAW editor successfully.
Now u can upload absolutely any kind of file u want (ofcourse u need to add the extensions in the config file) and then in ur news articles u can attach any of them as a link so viewers can download it.
The editor already has the flash embed code biult in although it has been commented off!! (cudnt figure out why!!) So u need to uncomment the code if u need it and there is also a hack for video embed in the support forum, u cud just integrate that as well. Otherwise the updated version spaw 1.12 has the video embed code in it, u cud copy paste from there.
Adios then, all my file manager requirments for the moment have been fullfilled so i'm gona concentrate on couple of other issues. If any of u spaw users want the code just put a request here. I didnt put it here cos this is the cutenews forum and not the spaw forum. Unlike the cutenews forum, the spaw forum really sux, i posted several requests but not a single one has been answered
By the way fi-dd i think it still would be grt if u cud do the suggestions i made cos it'l be usefull for any users who use other editors.
Thanx
|
|
| Fri Oct 06, 2006 12:31 pm |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
Ohh and i know i'm pushing u way too far, but i think its time if we had a plugin to integrate the SPAW editor as well (as a alternative to tinyMCE). I know i wrote the how-to but it'l be so much more easier for a new comer to CNR to just use it as a plugin.
Hey i have no idea on how to do plugins but if u guide me i can give it a try!!
I only learnt abit of PHP by reading codes so dont expect me to any big stuff though 
|
|
| Sat Oct 07, 2006 4:58 am |
|
 |
maqs

Joined: 20 Aug 2006 Posts: 112 Location: Lund, Sweden |
|
|
|
 |  | 1. Copy popup.js in the same folder as your news page.
|
Where do I find popup.js so I can copy to mainfolder?
_________________ www.eldar.se
marcus@eldar.se |
|
| Wed Nov 22, 2006 11:17 am |
 |
 |
|