4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: XBleed on March 22, 2003, 08:49:26 PM

Title: Important question about new fields..
Post by: XBleed on March 22, 2003, 08:49:26 PM
I want to be able to add an image field
for the user to add the image website (if one exists)
Basically so they can add a URL to the images main site.

If I read correctly on one of these threads, they explained that you can only have bullet buttons, and text input on new fields..

Is there any way to do this?  This is very important in my goal with 4images.

Thanks,
Title: Important question about new fields..
Post by: XBleed on March 24, 2003, 06:16:00 AM
:( I've still had no luck with this..

Anyone know anything on it?
Title: Important question about new fields..
Post by: V@no on March 24, 2003, 06:21:30 AM
sorry, I didnt get what do u want to do...
As I understand u are trying add for images new field that will store URL to original site, right? so, where is the problem ?
Title: Important question about new fields..
Post by: XBleed on March 24, 2003, 06:05:32 PM
Quote from: V@no
sorry, I didnt get what do u want to do...
As I understand u are trying add for images new field that will store URL to original site, right? so, where is the problem ?
Yeah, that's exactly right.

My problem is on the "add new field" mod.. (http://www.4homepages.de/forum/viewtopic.php?p=3277#3277)
It only explains how to add new fields with text input..

I need to know how to make a user when they upload a picture, to add the main/related website url to a feild, and then in the image details, it will link to the URL they put in (and open in a new browser)

I can get new fields to work just fine, but like I said.. They're just text, I can't figure out how to make them link..


I hope that makes more sense, I get kind of confused myself.
Title: Important question about new fields..
Post by: V@no on March 24, 2003, 07:56:00 PM
ok, I hope u dont mean store "link" not "text" in database... 8O
because in database stores only text, and u making link from that text.
so, if u said that it works ok, then, u'll need use this patern to make your "link" work as "clickable" link:
<a href="....your link here....">....your link or thext that will be showed on page</a>
Title: Important question about new fields..
Post by: XBleed on March 24, 2003, 11:20:18 PM
Okay, so when adding a new image, the user will have to put html in the field in order for it to become a link?


This is basically just like user profiles on this message board.  You can add your website to your profile, and it will put a link to your website in your profile...

That's what I want to do, except for instead of user profiles, I want it so they can add a webpage to the image they are adding.
Title: Important question about new fields..
Post by: XBleed on March 26, 2003, 09:15:17 PM
bump
Title: Important question about new fields..
Post by: V@no on March 26, 2003, 09:58:35 PM
no, users just put the url, and YOU make from plain text URL, clickable, by using <a href=""></a>
Title: Important question about new fields..
Post by: XBleed on March 27, 2003, 06:23:23 AM
Hi, sorry.

I'm a little confused.
They would input as text, and I would have to edit them all manually?
Or do I put the html code for a link in one of the files and it will do it automatically?
Title: Important question about new fields..
Post by: V@no on March 27, 2003, 09:59:09 AM
Quote from: XBleed

Or do I put the html code for a link in one of the files and it will do it automatically?

yes
Title: Important question about new fields..
Post by: XBleed on March 27, 2003, 05:53:30 PM
:phew:

Alright, is there any way you can go into detail as to how I do this?  I'm very new with php/mysql..

I appreciate your help.
Title: Important question about new fields..
Post by: V@no on March 27, 2003, 08:21:16 PM
Quote from: XBleed
Alright, is there any way you can go into detail as to how I do this?  I'm very new with php/mysql..

I could, if u atleast tell us what exactly are u trying to do, how do u pull the info from the database, where do u want it be displayed...u know, details ;)
Title: Important question about new fields..
Post by: XBleed on March 27, 2003, 09:49:18 PM
Quote from: V@no
Quote from: XBleed
Alright, is there any way you can go into detail as to how I do this?  I'm very new with php/mysql..

I could, if u atleast tell us what exactly are u trying to do, how do u pull the info from the database, where do u want it be displayed...u know, details ;)
Okay. :D

I'll try and go into full detail and still make sense.

I need to create a new field by using this mod here.. http://www.4homepages.de/forum/viewtopic.php?p=3277#3277

This new field I want to allow a user to add a link to the images main site when they upload an image.

I can do this, but when I make it so the field input shows up in the image details, it is not a link to the site.  Just text saying, "www.mysite.com"  
(which is okay, it's just easier to be able to click the URL they add than to copy and paste it into the browser.)

Finding out how to make it so it is a link in the details instead of plain text is what I'm trying to get.

I hope that made more sense.. ;)
Thanks,
Title: Important question about new fields..
Post by: V@no on March 27, 2003, 09:58:12 PM
ok, now its clear what u are trying to do, but, tell me how do u put on the page the url, like do use {..} tags?
for example, in the template, u put something like this:
{url_photographer} it shows just plain text.
so, to make it "clickable", use this format:
<a href="{url_photographer}">{url_photographer}</a>
hope thats what u need
Title: Important question about new fields..
Post by: XBleed on March 28, 2003, 10:00:27 AM
Quote from: V@no
ok, now its clear what u are trying to do, but, tell me how do u put on the page the url, like do use {..} tags?
for example, in the template, u put something like this:
{url_photographer} it shows just plain text.
so, to make it "clickable", use this format:
<a href="{url_photographer}">{url_photographer}</a>
hope thats what u need
OH MAN... hahaha, it makes so much sense to do that.  I really have no idea why I didn't think of that.

Thank you so much, v@no..