1
defwind77
Web links that can automatically go to the site?
  • 2005/12/22 9:23

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Hi I'm wanting a list of the most popular weblinks on my site and I've tried using the module weblinks.

However this module means that when a user clicks on one of the links, it goes through to a page telling them about the site they just click on and they then have to click another link to go to the site.

I'd like the functionality of such a module - ie rearranging the links by the most popular and an option to 'read more' however I'd like the user to be able to click on the link and go straight to that website.

Does anyone know a link module that'll permit this or a way I can modify this existing module?

Many Thanks!

2
jdseymour
Re: Web links that can automatically go to the site?

HMM, Do not know why you go to another page first in weblinks. When I click on a link at my site I go directly to the page, unless I click on the "More Details" link at the bottom of the link entry, which does take you to a page to view the entire information of the site.

3
defwind77
Re: Web links that can automatically go to the site?
  • 2005/12/22 10:16

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


So when the user clicks one of the sites in the 'most popular' block it goes stright to the site?!

Have a look at mine here

It's in the top right under 'most popular linnks'

4
jdseymour
Re: Web links that can automatically go to the site?

Quote:

defwind77 wrote:
So when the user clicks one of the sites in the 'most popular' block it goes stright to the site?!

Have a look at mine here

It's in the top right under 'most popular linnks'


OK, I see what you are saying. I thought you were talking about clicking the link itself, not the block.

5
defwind77
Re: Web links that can automatically go to the site?
  • 2005/12/22 10:47

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Any ideas then? Could I include an image or link within the title that work hyperlink there?

6
tzvook
Re: Web links that can automatically go to the site?
  • 2005/12/22 13:24

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hello defwind77

Simply go to /modules/weblinks/templates/ ..... choose the one you need and tweak them as you need ..... quite simple as it sounds

just remember to update the module through admin when you done ...

7
defwind77
Re: Web links that can automatically go to the site?
  • 2005/12/22 13:44

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Hi tzvook!

Well you certainly made it sound simple, but I'm a bit dumb...

Ok so I've opened the top_ten.html file (I presume that's the one that lists the top ten! ;) ) Now what part would I need to change to make it link straight to the website I want - or to show a small icon image that'd link straight there?

Many thanks for all your help - I've included the code below!


<{include file="db:weblinks_header.html"}>

<{$lang_topten_title}>








<{foreach item=ranking from=$rankings}>





<{$ranking.title}> (<{$lang_sortby}>)



<{foreach item=link from=$ranking.links}>
<{include file="db:weblinks_linklist.html" link=$link}>
<{/foreach}>




<{/foreach}>

8
tzvook
Re: Web links that can automatically go to the site?
  • 2005/12/22 14:42

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hi

since the top_ten.html uses another template file to present the single links loop ( as you see in the end of your pased code)

<{include file="db:weblinks_linklist.html" link=$link}>


you need to edit this file .... but it will effect your regular listing too since it is being used in some other teplates too. but if you want the links to always go to the target site , you can do it anyway ... just keep a copy of the original .... just in case ...

Login

Who's Online

446 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 446


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits