Previous Thread
Next Thread
Print Thread
Hop To
#132319 01/23/2000 12:00 PM
Anonymous
Unregistered
Anonymous
Unregistered
Scream,

Could you possibly edit the URL markup tag so that the actual URL may be hidden? Below is an example and I am using ()'s in place of []'s:

<font color=blue>(URL=http://www.someplace.com)</font color=blue><font color=red>This is a link!</font color=red><font color=blue>(/url)</font color=blue>.

This is going to be a major question when I get ready to migrate from the UBB to wwwthreads.

#132320 01/23/2000 12:30 PM
Anonymous
Unregistered
Anonymous
Unregistered
That would be possible <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> but would require a bit hacking. It's not in the official release as far as I know.

#132321 01/23/2000 12:54 PM
Anonymous
Unregistered
Anonymous
Unregistered
I know for a fact it is not in the official release - thus my inquiry about it. I'd love to see it added. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> You see, our public forums will never allow for HTML to be active, so the idea above is there to improve the Markup Tags. While I am thinking of it, a couple more tags come to mind:

[center] text [/center] = Equivalent to the [div align="center"].
</font>
  • <font size="" face="">text</font></li>
<font size="" face="">
= Equivalent to the [UL][LI][/LI][/UL].
[font:type] text [/font] = Equivalent to the [FONT] tag. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

#132322 01/23/2000 3:34 PM
Anonymous
Unregistered
Anonymous
Unregistered
This covers both ways of doing it:

<pre> # ---------------------------
# Convert url markup -> html
$Body =~ s,\[url\]http://(.*?)\[/url\],<A HREF="http://$1" target="_new">http://$1</A>,isg;
$Body =~ s,\[url\](.*?)\[/url\],<A HREF="http://$1" target="_new">http://$1</A>,isg;
$Body =~ s,\[url=http://(.*?)\],<A HREF="http://$1" target="_new">,isg;
$Body =~ s,\[url=(.*?)\],<A HREF="http://$1" target="_new">,isg;
$Body =~ s,\[/url\],</A>,isg;</pre>


<pre> # ---------------------------
# Replace html url -> markup
# $Body =~ s,<a href=.*?>(.*?)</a>,\[url\]$1\[/url\],igs;
$Body =~ s,<a href=[.*?)>,\[url=$1\],igs;
$Body =~ s,</a>,[/url\],igs;</pre>



--Eileen
<A HREF="http://www.amdragon.com/cgi-bin/wwwthreads/wwwthreads.pl" target="_new">http://www.amdragon.com/cgi-bin/wwwthreads/wwwthreads.pl</A>

#132323 01/23/2000 5:36 PM
Anonymous
Unregistered
Anonymous
Unregistered
Great thanks! So I can just paste this into my w3t.pm file and then the URL markup should work the way I described it above? That's terrific, thanks! <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

#132324 01/23/2000 5:58 PM
Anonymous
Unregistered
Anonymous
Unregistered
I added those additional lines and it works GREAT!! Thanks again, Eileen! <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

BTW - Have any other good Markup tags you'd care to share? I love providing those types of options to our visitors. The more features the better.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 754 guests, and 182 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)