vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Use HTML anchors

Coder1
04-13-2006, 04:35 PM
If you use a plugin which creates a template/module etc. that's located in a certain position on the page, you should edit that template to make sure it contains a unique "id" in one of the main elements.

For example, say the template looks like this:


<table class="myTable">
<tr>
<td>This is a whiz-bang template plugin.</td>
</tr>
</table>


And it's designed to be on a footer, or at the bottom of your vbAdbanced CMPS page, etc. then you should add a unique ID:



<table id="myUniqueID" class="myTable">
<tr>
<td>This is a whiz-bang template plugin.</td>
</tr>
</table>


Why? So you can link right to it!

For example: http://www.tgreer.com/cmps_index.php#TipJar will jump right to the Donations module, because I added the id "TipJar" to that module's template's table. Here's another example: http://www.tgreer.com/printforum/forumdisplay.php?f=18#invite - that will jump to the bottom of the page because of the "invite" table.

Note: this won't work on showthread, because the system already adds an anchor to jump to the last post in the thread.

Make sense? Simply code your link to the page, adding a pound-sign and the id: #myUniqueID. People who follow the link will be taken directly to that element on the page.

Joeychgo
04-13-2006, 04:58 PM
Very nice! I like that.

Peggy
04-13-2006, 05:23 PM
hmmmmmm...

Coder1
04-13-2006, 07:53 PM
You'll have to elaborate, Peggy. The main use for this would be if, say, in a post, you wanted to direct attention to a different part of your site, a particular part of a page. It's a basic HTML technique that has gone, for some reason, into disuse, so it works with static pages, as well.

Instead of saying, "go to this page and scroll half-way down, you'll notice...". Just link directly to the "halfway" mark/anchor.

It's also handy for jumping directly to a post within a thread, in fact, that's what vBulletin does. Thus you can say, Peggy said "hmmmmm... (http://www.vbulletin-faq.com/forum/showthread.php?t=231#post_message_1804)".

Peggy
04-13-2006, 09:14 PM
I understood what it does darlin'.. thank you ;)

hakan_72_123
05-02-2007, 10:32 PM
Very nice! I like that.


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum