Webmastersite.net
Register Log In

Adding new links
still struggling!

Comments on Adding new links

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 10, 2005 - 12:17 AM:

Your manual for link types and adding states:

Next, edit your 'show links in category' template. In order to create a unique style for this link type (by default it shows with the same HTML as regular links), copy the style which has been used for regular links and change it to fit what you wish for your new group. For example:

<!-- BEGIN MYLINKGROUP LINKS -->
<blink><b>Extra special type of link: <a href="link.php?id={LINKID}">{LINKTITLE}</a>< /b></blink>
<!-- END MYLINKGROUP LINKS -->

You will also need to make use of this link type in your 'search all' and 'search links' templates. In these templates, the HTML is similar but you should use slightly different opening and closing comments:
<!-- BEGIN MYLINKGROUP -->
<blink><b>Extra special type of link: <a href="link.php?id={LINKID}">{LINKTITLE}</a>< /b></blink>


Sounds simple except when you go to the displaylinks.tpl and search for that href string it is not there. Instead you have two separate areas that show the comment <!-- BEGIN REGULAR --> SO, do we have to copy both those entire areas and just change the comments to <!-- BEGIN PREMIUM -->??

Is there anything else we should do?

I hate having to keep posting a message here with small silly queries, and waiting an age (time difference as well) for a reply. Would be so pleased if you could get a better manual written that exlains more fully and is actually up to date. :-)
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 10, 2005 - 11:22 AM:

The only <!-- BEGIN REGULAR --> in displaylinks.tpl is for categories, not links. Do as the manual says for links, which are further down toward the middle of the template where you find <!-- BEGIN RECIP LINKS --> and <!-- BEGIN REGULAR LINKS -->, and leave the category type alone so that your subcategories will continue showing.

I see nothing at all wrong with that manual entry, and I'm just repeating what the manual says here, so I don't see anything to rewrite. If there are spots in the manual that are outdated, someone needs to point them out.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 11, 2005 - 8:00 AM:

grin OK! A light bulb has suddenly come on! (I know I hear you saying about time!) Thanks for saying "open your goddamn eyes" in such a polite way <G>

Trouble is, I'm sure I'll be back <G>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.