miniBB ®®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Other miniBB Community Forum / Other /

Link to Message Anchor

 
harootun
Forums Member
#1 | Posted: 10 Feb 2007 15:08
Reply 
I'm sure this one is simple, but I can't figure it out. I would like to point a link to a specific message on a topic in my forum.

On this forum, when you click on the "#" that appears in every post, the page in the browser moves to that anchor (so it is at the top of the browser). On my site, the page doesn't move in the browser when you click on the "#".

On this forum, the link to the "#' contains (as a random example):
(http:)//www.minibb.com/forums/12_2703_0.html#msg16721

On my site, the "#" contains extra info:
(http:)//www.mysite.com/forum/index.php?action=vthread&forum=3&topic=1 6#msg32

How do I adjust this and set it up properly? Do I need to insert an {$anchor} into my main_post_cells.html?

Sorry for my ignorance. I have tried to look in the manual and on this board to figure it out myself, but haven't had any luck. I'm sure it's there but I missed it!
Paul
CEO
#2 | Posted: 11 Feb 2007 03:19 | Edited by: Paul
Reply 
It would be smart from your side just to check original main_post_cells.html template and to know what you are missing in your modified file ;-)

What we have now for the anchor being working correctly, is the tag:

<a name="msg{$cols[6]}"></a>

So the anchor link is:

<a href="#msg{$cols[6]}">#</a>

So msg{$cols[6]} is the variable you need to paste.
harootun
Forums Member
#3 | Posted: 11 Feb 2007 09:57 | Edited by: harootun
Reply 
Thanks, Paul. As you figured out, it was once again my own stupidity -- I mucked about with the original main_post_cells.html and took out the <a name="msg{$cols[6]}" that was wrapped around the {$postername}, and that got rid of the anchor.

Sorry to waste everyone's time!!!
Paul
CEO
#4 | Posted: 11 Feb 2007 10:35
Reply 
No problem, hope this thread will be useful for somebody else as well.
 
Your Reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 22
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®