15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
The Other miniBB Support Forums / The Other /   

Link to Message Anchor

Author harootun
#1 | Posted: 10 Feb 2007 15:08 
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):

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!

Author Paul
Lead Developer
#2 | Posted: 11 Feb 2007 03:19 | Edited by: Paul 
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:


So the anchor link is:


So msg{$cols[6]} is the variable you need to paste.

Author harootun
#3 | Posted: 11 Feb 2007 09:57 | Edited by: harootun 
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
Sorry to waste everyone's time!!!

Author Paul
Lead Developer
#4 | Posted: 11 Feb 2007 10:35 
No problem, hope this thread will be useful for somebody else as well.

The Other miniBB Support Forums / The Other / Link to Message Anchor Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums 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.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB