Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Comment Permalinks to CommentID

edited July 2009 in Vanilla 2.0 - 2.8
I'm using this:

<?php /* Extension Name: Comments Permalinks Extension Url: http://lussumo.com/docs/ Description: Adds a "permalink" link to every comment, so you can share a single comment's url. Version: 1.0 Author: Remi Cieplicki Author Url: http://remouk.alt-tab.org/ You should cut & paste this language definition into your conf/your_language.php file (replace "your_language" with your chosen language, of course): */ $Context->Dictionary['Permalink'] = 'permalink'; function CommentGrid_Permalinks(&$CommentGrid) { global $RowNumber; $Comment = &$CommentGrid->DelegateParameters['Comment']; $CommentList = &$CommentGrid->DelegateParameters["CommentList"]; $CommentList .= '<a class="PermLink" href="#Item_'. $RowNumber .'" id="Permalink_'. $RowNumber .'">#'.$Comment->CommentID.'</a>'; $RowNumber++; } $RowNumber = 1; $Context->AddToDelegate("CommentGrid", "PostCommentOptionsRender", "CommentGrid_Permalinks"); ?>

What would be the easiest way for the words permalink to become "#CommentID"? Not like the other permalink addon where it's #1, #2, #3 ... and so on in every thread. Their actual number from the database.

Edit: I've edited the above code, as I got it to work. If anyone is interested in using it.
Sign In or Register to comment.