Gossamer Forum
Home : Products : Links 2.0 : Customization :

some modifications

 
some modifications
Hello
how can make a _blank link in the templates ex: when someone click on a link a new window
will open
and I wanna know how to change icon of new, cool, pop.......
Thanks
 
Re: some modifications In reply to
By searching this forum for codes or learning the basics of HTML!

Go to link.html, add the following attribute to link codes, like the following:

Code:
<a href="<%URL%>" target="_newwin"><%Title%></a>

YOU SHOULD NOT use _blank as it will open multiple windows and crash people's computer...Want to see what I mean....click on all the following links and leave all the windows open:

www.altavista.com
www.lycos.com
www.looksmart.com
www.yahoo.com
www.magellan.com
www.metacrawler.com

See...UBB uses _blank rather than giving a distinctive name to new windows.

Computer hasn't crashed yet, then keep on clicking...

www.altavista.com
www.lycos.com
www.looksmart.com
www.yahoo.com
www.magellan.com
www.metacrawler.com

Still hasn't crashed...click on these links:

www.altavista.com
www.lycos.com
www.looksmart.com
www.yahoo.com
www.magellan.com
www.metacrawler.com

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








 
Re: some modifications In reply to
Yes I see thanks Smile
 
Re: some modifications In reply to
Good.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








 
Re: some modifications In reply to
Eliot:

I've been searching high and low for this post and when I made the changes as specified it didn't work. Here's what I did:

Here is the section of the link.html template that I altered:
<ul><li>

<%if Details%>
<a href="<%build_detail_url%>/<%ID%>.html"><%Title%></a>
<%endif%>

<%ifnot Details%>
<a class="link" href="<%db_cgi_url%>"target="_newwin"><%ID%>"><%Title%></a>
<%endif%>

Which is how you showed in your example (except for the fact that your example showed %url% and not %db_cgi_url%)

I assume I inserted this in the proper location. However, using this string caused an error: You are not authorized to view this page! and the link showing in the status bar was totally incomplete (made reference to a directory on my HD but it DID open in a new window!)

Am I inserting this incorrectly? Thanks for the help.

And changed just the one line to this:

<a class="link" href="<%db_cgi_url%><%Title%></a>

 
Re: some modifications In reply to
Uh...your HTML is all messed up...and if you want to use the DYNAMIC INFO.CGI script, then you definitely are using the WRONG codes....thus you do NOT have the codes in the "correct location"!

You need to use:

Code:

<a href="<%db_cgi_url%>/info.cgi?ID=<%ID%>" target="newwin"><%Title%></a>


See the difference??!?!/!?!?!

Regards,

Eliot Lee
 
Re: some modifications In reply to
Uhhh...that's NOT my HTML, Eliot. That's what shipped with the script! The 'list.html' is right out of the box. Ok, I see the difference in the placement. I'll give it a try!



 
Re: some modifications In reply to
Uh...I beg to differ...I believe you are copying the codes incorrectly....

Look again at the default link.html file...the codes you posted should look like:

Code:

<a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>



Regards,

Eliot Lee
 
Re: some modifications In reply to
I stand corrected...there WAS some odd code in there but that was not the line used in the 'link.html' template I was using.

I inserted the code you posted verbatim and it no workie. When I click on the link it still opens up in the same window (sigh). Here's what I inserted:

<a href="<%db_cgi_url%>/info.cgi?ID=<%ID%>" target="newwin"><%Title%></a>

There must be an answer!

 
Re: some modifications In reply to
Yea, the answer is quite simple...

1) Add the CORRECT HTML codes in your link.html.
2) Upload the EDITED link.html to your templates folder in your web server.
3) Then RE-BUILD your directory via the nph-build.cgi script.

Trust me....it will, should, and does work...

Regards,

Eliot Lee
 
Re: some modifications In reply to
Eliot, you're absolutely right! It will, should, and DOES work! But, I must mention that we were editing the wrong line. I have the script set to NOT show the details view and we were trying to add the 'target="newwin"' in that line and not the 'if nodetails' line. Once I pulled my head out of my arse and noticed that it worked fine.

Thanks!

 
Re: some modifications In reply to
Well, the LOGIC in the codes (which is HTML 101) applies to any of your link codes. Thought you would be able to figure it out...might I suggest HTML for Dummies??? Wink

Regards,

Eliot Lee
 
Re: some modifications In reply to
Hehe....cute, Eliot...real cute. Is that like one of those 'Yo momma's so ugly...' things??

 
Re: some modifications In reply to
Actually it is a real book...

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

 
Re: some modifications In reply to
Looks like you need the book more than I thought...The "Dummies" series is a good starting point to learn about pretty much anything (programming, gardening, using computers and the Internet, etc.).

Want to find out more???

http://www.dummies.com

I've bought a number of them, including:

SQL for Dummies
Gardening for Dummies

Regards,

Eliot Lee
 
Re: some modifications In reply to
I have owned that book for 4 years, read it, know it, and live it. Let's not forget, dear Eliot, that YOUR post (as shown below) showed the modified HTML in the wrong location:

<a href="<%db_cgi_url%>/info.cgi?ID=<%ID%>" target="newwin"><%Title%></a>

Albeit, I had some wandering HTML in my code that I recognized and fixed. And, I did insert your suggestion in the CORRECT line of the 'link.html' template to produce the winning results. Laugh

This whole extravaganza could have been handled with one easy post for all to see that clearly stated the solution:

If you are using details insert target="newwin" here.

If you are NOT using details insert target="newwin" here.

Posting it 'generically' only causes more confusion. So, if you're going to be a forum helper let's use a little less wiseass and perhaps a little more common sense? Laugh

FYI: Do these look like the sites of a novice?
http://www.simcoweb.com
http://www.eagleopportunity.com
http://www.thepalmspringswebsite.com

Have a great day, and thanks for all of you who contributed to this thread. I hope it helps others!

Regards,

GQwebguy



 
Re: some modifications In reply to
EXCUSE ME!!! I did NOT post the codes in the wrong position!

Listen, you ungrateful piece of *(&^, the reality is that you have no clue about HTML programming based on your simple questions! Mad

And those sites have many accessible problems, which you should double check through HTML validators!

Tongue

Oohhh...you know how to use Front Page, wow! Now, that is a feat! haha!

Regards,

Eliot Lee
 
Re: some modifications In reply to
Come on guys. Im far from perfect myself but even I can see that this is not necessary.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/