[generator] Customizing link text in navigation banner

Dec 30, 2003 22:05


The code below will replace the entire set of links in the navigation banner shown at the top of your recent entries page when you are using the 'Generator' system style (the links to your userinfo page, calendar page, and the optional website link). The default links (including any specified website link) will be completely hidden and replaced with the links you specify. If you would still like to have the original navigation links, you will need to include them in the override, as shown below.

IMPORTANT NOTES: This override will only work if you have specified a website in your user profile. To specify a website you will need to visit the editinfo page and add any valid URL to the "Webpage URL" box.

If you are using the filter for a semi-transparent background alpha(opacity=XX) in your overrides, regardless which numbers are represented by XX, the override below will not work and the customized links will be hidden. You may switch to full transparency background: transparent; instead, since this feature is not affected. For further information see this tutorial on opacity and transparency.

If you want this override to work on your friends, calendar or day view, you will have to replace the LASTN_* override below with a FRIENDS_*, CALENDAR_* or DAY_* override. Please do not try using a "GLOBAL_WEBSITE" override, since this will not work.

Please replace the URLs represented in blue with your own links and the text shown in green with any text of your choice. Feel free to use any further customizations you'd like such as bold, italic and underlined text, or different text or background colors. You can even insert pictures using an img tag. You can find information on these types of customization in the "Journal Entries" FAQ Section.

If you have customized the links for your journal, those customizations will also apply to any links in this override.

The code shown below will make your navigation links appear in the original 'Generator' design with [square brackets and | vertical bar]. But you can put anything between the orange and as long as you label any table cells in that table as class="meta" to keep them visible.

LASTN_WEBSITE<=

[
my website
|
http://www.example.com">please come and see
]

[
something about me
|
http://www.livejournal.com/userinfo.bml?user=YOUR_USERNAME">my profile
]

[
past times
|
http://www.livejournal.com/users/YOUR_USERNAME/calendar">that happened before
]

[
important for me
|
http://www.livejournal.com/tools/memories.bml?user=YOUR_USERNAME">my memories
]

<=LASTN_WEBSITE

In addition, non-Plus users will need to add the following code:

LASTN_HEAD<=

<=LASTN_HEAD

Note: Plus accounts need to modify this part of the override as shown below, to adapt it to the structure that the ads require. Note that for Paid and Permanent account holders, the page will display incorrectly, if this override is used. You may wish to switch to the S2 version of Generator, if you would like to ensure consistent look for all the visitors.

LASTN_HEAD<=

<=LASTN_HEAD

Variable Reference:LASTN_WEBSITE
Additional References:
Only one override is permitted for each specific override block.
If you are currently using a LASTN_WEBSITE override, then that override would need to be revised to reflect changes presented here or otherwise merged.

contributed by henningz

- generator, changing navigation links, navigation banner, navigation links

Previous post Next post
Up