| Author |
Message |
Wesam
Joined: 29 Sep 2007 Posts: 15 Location: PALESTINE |
|
How to insert image to anther field ?? |
|
Hello every body
Sorry for many questions because i'm intrested in using cutenews.ru more than the original
My question is related to the images.mdu and addnews and editnews
When i click on add image from inserttag option then when the images.mdu.php opens ,, then when i try to insert image the link will be inserted in the short or full story successfully
Now my question is ? how to insert the image in another field like avatar input ?????
Since i don't want the image to be in the story box,, i need it to be inserted in the avatar input field ?
Please help me ?
_________________ LONG LIVE PALESTINE |
|
| Sat Sep 29, 2007 10:44 pm |
 |
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2027 Location: US |
|
|
|
Have you used xfields and cutefields much? Would you like the flat-file (xfields) or mysql (cutefields) explanation?
If you feel like trying yourself.. you can make an xfield and it becomes [xfvalue_nameofxfield] in your templates
For cutefields, make one and it becomes {cf:nameofcutefield} in your templates.
Example: <img border=0 src="{cf:newimage}">
So just put the URL to the image in the cutefield in the add/edit news page. It won't pop out like the {avatar} field does.. but it'll still work.
_________________ www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me  |
|
| Sun Sep 30, 2007 3:11 am |
|
 |
webbber
Joined: 15 May 2008 Posts: 105
|
|
|
|
hi there
my question is related to images.mdu too.
When I want to insert an image into my short news template, I get this (example: this is an image I uploades called aic.jpg):
 |  | <img src="{imagepath}/subfolders/images/aic.jpg" alt="aic.jpg" border="0" width="80" height="80" /> |
and what I want to get is,or change to,is:
 |  | <div id="left">
<img src="http://www.mywebsite.com/images/aic.jpg" alt="aic.jpg" border="0" width="80" height="80" />
</div> |
Understand?
Cause I have change the image upload path to mywebsite.com/images (chmodded to 777 )
I have tried that out, but it doesnt work so far,cause i dont know where to edit
best regards.
|
|
| Sat May 17, 2008 5:15 pm |
|
 |
nam

Joined: 23 Dec 2006 Posts: 141
|
|
|
|
If you are uploading images to yoursite.com/image, the {imagepath} will still work for you.
Go to System Settings and in the "Path to image folder:", enter the new path for the images (http://www.mywebsite.com/images)
|
|
| Sat May 17, 2008 8:00 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 105
|
|
|
|
 |  | If you are uploading images to yoursite.com/image, the {imagepath} will still work for you.
Go to System Settings and in the "Path to image folder:", enter the new path for the images (http://www.mywebsite.com/images) |
It's configured that way and doesnt work. 
|
|
| Sat May 17, 2008 9:08 pm |
|
 |
nam

Joined: 23 Dec 2006 Posts: 141
|
|
|
|
When you insert {imagepath} in any article, by what address is it replaced when you view the page?
Can you access the images on that folder when you directly access them from Explorer?
Give me a link to a page where you've inserted in image that way but it does not work.
|
|
| Sun May 18, 2008 12:14 am |
|
 |
webbber
Joined: 15 May 2008 Posts: 105
|
|
|
|
 |  | When you insert {imagepath} in any article, by what address is it replaced when you view the page? |
As I said before I changed the image upload path to
 |  | site.com/noticias/images
| , and I when I add a news and click on the image button to add an avatar, i get (besides,image cant be seen):
 |  | <img src="{imagepath}/subfolders/images/aic.jpg" alt="aic.jpg" border="0" width="80" height="80" />
|
and I wanna get:
 |  | <img src="http://www.website.com/images/aic.jpg" alt="aic.jpg" border="0" width="80" height="80" />
|
 |  | Can you access the images on that folder when you directly access them from Explorer? |
Yes, the folder is 777 and you can access,though you cant see the images cause it has a blank index.
best regards.
|
|
| Tue May 20, 2008 12:11 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
Open inc/mod/images.mdu and find this (multiple times):
 |  | $insert = |
That's the place where the code is created. Change it as you like.
|
|
| Wed May 21, 2008 7:37 pm |
|
 |
Partyism
Joined: 25 Sep 2007 Posts: 301
|
|
|
|
you know in firefox the alt="" isnt beeing displayed. This is only beeing display by title=""
however the alt="" uses .$file. so you get the filename. Let say we have a file named wicked_lol.jpg
So the alt would be wicked_lol.jpg
Is there a way we can change this to wicked lol ?
|
|
| Wed Sep 17, 2008 7:33 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
Change this:
 |  | .$file. |
to this:
 |  | .str_replace(".jpg", "", $file). |
|
|
| Thu Sep 18, 2008 6:31 pm |
|
 |
|