PDA


View Full Version : HTML links in description field


kasei
07-04-2004, 10:49 PM
I use html links in the description fields for forums. Links Directory does not allow this feature?

Brian
07-05-2004, 01:17 AM
Currently that is not how things are set up. If you would like to change that though, open your linksadmin.php file and look for:


'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes(htmlspecialchars($description)) . "'

Change that to:


'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes($description) . "'


Then find:

'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes(htmlspecialchars($description)) . "'


Change to:

'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes($description) . "'

Note that you will still have to edit any current directories and change them as this will change the way they are stored in the database.

kasei
07-05-2004, 01:26 AM
Thanks. I guess that begs the question is there some benefit for it not doing it the way vBulletin does? Will I be losing some functionality?

Brian
07-05-2004, 01:29 AM
Not really... Just didn't think about the fact that some people may want to use HTML in their descriptions. I will probably change this in the next version since there's really no reason not to allow HTML here. :)

MikaK
01-30-2005, 01:33 PM
Currently that is not how things are set up. If you would like to change that though, open your linksadmin.php file and look for:


'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes(htmlspecialchars($description)) . "'

Change that to:


'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes($description) . "'



I could only find vba_linksadmin.php. The correct file?


Then find:

'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes(htmlspecialchars($description)) . "'


Change to:

'" . addslashes(htmlspecialchars($title)) . "', '" . addslashes($description) . "'

Note that you will still have to edit any current directories and change them as this will change the way they are stored in the database.


The same as duplicate in the same file? I only changed the first one but that didn't deliver.

This is about allowing html tags in the category/directory descriptions? I would like to add a link to some of my directory descriptions as some directory titles in my case are very close to each others... Is this possible?

Regards,
-Mika

Polo
02-05-2005, 06:27 AM
Not really... Just didn't think about the fact that some people may want to use HTML in their descriptions. I will probably change this in the next version since there's really no reason not to allow HTML here. :)
I dont think you should... why I think that? well because sooner or later people are going to start submitting links with different images and stuff in their description to make people click on their links and stuff...

I dont know that is what I think...

DrMirth
02-05-2005, 10:06 AM
Made these changes as specified but the HTML within my descriptions is not parsed. The HTML source is just displayed on the screen along with the description itself. Any ideas?

MikaK
02-11-2005, 05:08 AM
I could only find vba_linksadmin.php. The correct file?



The same as duplicate in the same file? I only changed the first one but that didn't deliver.

This is about allowing html tags in the category/directory descriptions? I would like to add a link to some of my directory descriptions as some directory titles in my case are very close to each others... Is this possible?

Regards,
-Mika

*bump*

mrjbs
09-05-2005, 05:55 PM
I had this working, but I took down my old site and I am trying to make it work again. I think I had an older version of the link program before. Now I can only find one line to replace. I also changed took the "hmtlspecialchars" out of this line:

'" . addslashes(htmlspecialchars($title)) . "', description = '" . addslashes($description) . "'

Still nothing.

Thanks for the help,
Justin Slife

Rob Locke
01-18-2006, 03:07 PM
Hi Brian,

Any chance of an update on the code changes/replacements needed to achieve html parsing in the Directory descriptions for vB 3.5.x and Links 1.01?

As has been mentioned earlier, the first code change can be located in vba_links_admin.php but the second one is not present. All ways round I can't get it to work and very much need to add html to the Directory descriptions, to match my forums and gallery.

Many thanks,