Drupal 6 + Permalink Module to show Comment ID in each comment

Category:

With Permalink module, I can have the real link to the comment. Without Permalink, the comment link will not work correctly with multiple comment pages.  It will always link you to the first page of that node (In this case, node 33034) if that comment you are looking for is not on the first page. The comment link will be like below :

  • Without Permalink -> http://www.bxtra.net/node/33034#comment-45673
  • With Permalink -> http://www.bxtra.net/comment/45673#comment-45673

Permalink is great but when it display the link, it will only show the word Permalink which is good but I also would like it to display the comment id which is #45673.  With Comment ID in each comment, user knows and can refer to the comment easily. It does not need to go into order start from 1 in every node. I want to use just the real Comment ID (cid) which is good enough.  However, I don't see anyway to do that via Permalink module.

What I did to make it works is to replace text in the Permalink variable ( $permalink) with the comment ID using str_replace. Then, print it out in the theme file comment.tpl.php.  Below is the small code to make it work :

    <?php $permalink_number = str_replace("Permalink", $comment->cid, $permalink); ?>
    <?php print '#'.$permalink_number; ?>

 

Software Tested :

  • Pressflow 6.26
  • Permalink 6.x-1.6
  • Zen Theme 1.2

Comments

As the great air con to be had in the marketplace, the Blaux Portable AC additionally has a superb charge, not to say it does the job of an air cleaner and air humidifier too. https://www.smore.com/utv4k-blaux-portable-ac-review-latest During these times of pandemic, the air excellent in houses is very critical, indivuals want to additionally experience comfortable inside the vicinity they’re spending their time in, something that excessive warmth doesn’t allow them to. More than this, the air humidity all through summertime may be very risky for the breathing system.

We have a confirmed Instagram marketing strategy to develop your Instagram follower base manifolds. Our services include each natural and paid sports to reinforce engagement and grow your fans. https://skfollowerspro.in We do a number of of factors for growing organic attain of your Instagram content material. It includes leveraging the hashtags and locating right target audience which are like minded and equipped to have interaction.

I take into account that Parc Central Residences has not been launched however. Therefore, this could feature a initial overview on the expected Parc Central Residences price at release, alongside facet different noteworthy points that we feel can be crucial for the purchaser. https://www.parc-central-residence.com.sg/ This will assist you to begin prioritizing your budget as purchasing an EC may be difficult because of the charge distinction from a HDB.

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work <a href="https://www.scripps.org/physicians/6749-andrea-natale">Dr. Andrea Natale cardiology</a>

It comes with 6 locking bolts which may be 1″ diameter each, with three on each aspect of the door. Those and the recessed door make this comfortable nearly no longer viable to crack. https://fingerprintgunsafehq.com/best-winchester-gun-safe-reviews/ The bottom of the secure is pre-drilled, so mounting the comfortable to the floor should be a breeze. This is a amazing, comfy safe, and although it’s small, it stores weapons properly.

The Normanton Park Condo District 05 is located proper beside one of the essential expressways, Ayer Rajah Expressway(AYE). On one direction it leads drivers to the western part of Singapore at Tuas and finally to the Tuas Checkpoint. https://www.normantons-park.com The different leads closer to the east linking Tanjong Pagar, Sentosa, Keppel, Marina Bay, Gardens by using the Bay and CBD. It also connects with the Marina Coastal Expressway(MCE) which in the end leads to Changi Airport.

This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. also check my profile https://genius.com/RexaMiles

Before starting the test, they will ask about your gender. Actually, the concern is the same in rice purity test only want to check your purity; it doesn’t matter whether you are a girl or boy.

Before starting the test, they will ask about your gender. Actually, the concern is the same in rice purity test only want to check your purity; it doesn’t matter whether you are a girl or boy. https://300195.8b.io/

XEvil - the best captcha solver tool with unlimited number of solutions, without thread number limits and highest precision!
XEvil 5.0 support more than 12.000 types of image-captcha, included ReCaptcha, Google captcha, Yandex captcha, Microsoft captcha, Steam captcha, SolveMedia, ReCaptcha-2 and (YES!!!) ReCaptcha-3 too.

1.) Flexibly: you can adjust logic for unstandard captchas
2.) Easy: just start XEvil, press 1 button - and it's will automatically accept captchas from your application or script
3.) Fast: 0,01 seconds for simple captchas, about 20..40 seconds for ReCaptcha-2, and about 5...8 seconds for ReCaptcha-3

You can use XEvil with any SEO/SMM software, any parser of password-checker, any analytics application, or any custom script:
XEvil support most of well-known anti-captcha services API: 2Captcha.com, RuCaptcha, AntiGate.com (Anti-Captcha.com), DeathByCaptcha, etc.

Interested? Just search in Google "XEvil" for more info
You read this - then it works! ;)

http://xrumersale.site/

Regards, LoliteRix2193

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.