Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
How to insert image to anther field ??

 
Reply to topic    Forum Index » Help View previous topic
View next topic
How to insert image to anther field ??
Author Message
Wesam



Joined: 29 Sep 2007
Posts: 15
Location: PALESTINE

Post How to insert image to anther field ?? Reply with quote
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 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 2027
Location: US

Post Reply with quote
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 Wink
Sun Sep 30, 2007 3:11 am View user's profile Send private message Visit poster's website AIM Address
webbber



Joined: 15 May 2008
Posts: 105

Post Reply with quote
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):
Code:
 <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:
Code:
<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 Laughing

best regards.
Sat May 17, 2008 5:15 pm View user's profile Send private message
nam



Joined: 23 Dec 2006
Posts: 141

Post Reply with quote
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 View user's profile Send private message
webbber



Joined: 15 May 2008
Posts: 105

Post Reply with quote
nam wrote:
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. Confused
Sat May 17, 2008 9:08 pm View user's profile Send private message
nam



Joined: 23 Dec 2006
Posts: 141

Post Reply with quote
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 View user's profile Send private message
webbber



Joined: 15 May 2008
Posts: 105

Post Reply with quote
nam wrote:
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
Code:
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):
Code:
 <img  src="{imagepath}/subfolders/images/aic.jpg" alt="aic.jpg" border="0" width="80" height="80" />

and I wanna get:
Code:
 <img  src="http://www.website.com/images/aic.jpg" alt="aic.jpg" border="0" width="80" height="80" />

Quote:
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Open inc/mod/images.mdu and find this (multiple times):
Code:
$insert =


That's the place where the code is created. Change it as you like.
Wed May 21, 2008 7:37 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 301

Post Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Change this:
Code:
.$file.


to this:
Code:
.str_replace(".jpg", "", $file).

Thu Sep 18, 2008 6:31 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.