Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 URL tags [url][/url]
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

icoombs
Starting Member

United Kingdom
5 Posts

Posted - 14 January 2008 :  07:49:14  Show Profile  Visit icoombs's Homepage
Hi all

I am trying to include some posts from my forum database on other pages in my site i.e. on my home page i have the 5 latest topics displaying. What i need to know is how do i convert the url tags from the posts to display correctly as hyperlinks i.e translate [url][/url] to <a href=""></a> so the links are clickable on the page.

I have found a function called FormatStr(fstring) and tried that but it seems to do nothing, could someone point me in the right direction on how to achieve this.

Regards
Ian

Hope this advice helps.

- Post your code - Post your errors - Be clear - Be courteous -

AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed.
(We are only here to help each other).

Podge
Support Moderator

Ireland
3776 Posts

Posted - 14 January 2008 :  08:09:55  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Are you using the Syndication mod ? If not, how are you showing the 5 most recent topics ?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

icoombs
Starting Member

United Kingdom
5 Posts

Posted - 14 January 2008 :  08:19:55  Show Profile  Visit icoombs's Homepage
I am just searching wit the following SQL query coded into the page.

strSQL = "SELECT TOP 5 * FROM forum_topics ORDER BY t_date DESC"
Set rsTopics = my_Conn.Execute (StrSQL)


Then a loop that displays the results but i need to change the url tags in the message to html links.

Hope this advice helps.

- Post your code - Post your errors - Be clear - Be courteous -

AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed.
(We are only here to help each other).
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 14 January 2008 :  09:45:06  Show Profile  Visit HuwR's Homepage
FormatStr is what you need, so what do you mean by it seems to do nothing ?
Go to Top of Page

icoombs
Starting Member

United Kingdom
5 Posts

Posted - 14 January 2008 :  10:48:33  Show Profile  Visit icoombs's Homepage
Hi thanks for the reply, i think the FormatStr is not working because other forum variables are missing.

After reading through the code in FormatStr i found the ReplaceURLs function which i now pass the string to directly and it works fine

Hope this advice helps.

- Post your code - Post your errors - Be clear - Be courteous -

AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed.
(We are only here to help each other).
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 14 January 2008 :  10:51:06  Show Profile  Visit HuwR's Homepage
the formatstr is not just for url's it is to formatted ALL forumcode, like smilies fonts etc
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07