×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Show id of comments

Show id of comments 14 years 7 months ago #9471

  • Ana
  • Ana's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
How can i show on the comments the value of the id? I mean, i want to show the id of every comment on the main page, how cna i do that?

Show id of comments 14 years 7 months ago #9476

  • Ana
  • Ana's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Please I need some help with this!!

Show id of comments 14 years 7 months ago #9477

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
edit the template and in the <{post} tag you can add{id} -> this should show the id of the comment.

Show id of comments 14 years 7 months ago #9481

  • Ana
  • Ana's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
That's what I need!!! Thanks for your fast response. There is a way to only show that id on the main comment and not in the replies to a comment? And also I want to show the id in the pop-up window that said that the comment will be review by an administrator.
Thanks in advantage!!

Show id of comments 14 years 7 months ago #9494

  • Ana
  • Ana's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
There is not a way to solve that? I try but i cant

Show id of comments 14 years 7 months ago #9502

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ana, you will need the comment.class.php file to make the things you want. It will be a little bit complicated if you can't code with php

Show id of comments 14 years 4 months ago #10138

  • Martin Roeder
  • Martin Roeder's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 0
Oh, sorry for asking. I do not understand it to 100%

Where and what do i need to enter the {id} ?
And will it also be possible to click on these IDs (anchor link) ?
{post}
<ul id='post{id}' style='margin-left:{wrapnum};'>
    <li class='post'>
        <a name='josc{id}'></a>
        <div class='posthead'>
            <span class='postinfo'>
                <span class='postdate'>{date}</span>
                {BLOCK-website}{website}|{/BLOCK-website}
				{notify}
            	{BLOCK-usertype}|<span class='postusertype'>{usertype}</span>{/BLOCK-usertype}|
            </span>
                {username}
            {BLOCK-title}&nbsp;-&nbsp;<span class='posttitle'>{title}</span>{/BLOCK-title}
        </div>
        <div class='postcontent'>
            {BLOCK-avatar_picture}{avatar_picture}{/BLOCK-avatar_picture}<div class='comment_content'>{content}</div>
        </div>
        {BLOCK-footer}
        <div class='postfooter'>
            {voting}
                <span>
                    {editbuttons}
                </span>    
        </div>     
        {/BLOCK-footer}
        <div class="josc_clear"></div>
    </li>
</ul>
{/post}

Thanks for any help :)

Show id of comments 14 years 4 months ago #10139

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
If you want to show it infront of the username:
then add
{id}

before the {username} tag.
{post}
 
<ul id='post{id}' style='margin-left:{wrapnum};'>
 
    <li class='post'>
 
        <a name='josc{id}'></a>
 
        <div class='posthead'>
 
            <span class='postinfo'>
 
                <span class='postdate'>{date}</span>
 
                {BLOCK-website}{website}|{/BLOCK-website}
 
                {notify}
 
                {BLOCK-usertype}|<span class='postusertype'>{usertype}</span>{/BLOCK-usertype}|
 
            </span>
 
                {id}{username}
 
            {BLOCK-title}&nbsp;-&nbsp;<span class='posttitle'>{title}</span>{/BLOCK-title}
 
        </div>
 
        <div class='postcontent'>
 
            {BLOCK-avatar_picture}{avatar_picture}{/BLOCK-avatar_picture}<div class='comment_content'>{content}</div>
 
        </div>
 
        {BLOCK-footer}
 
        <div class='postfooter'>
 
            {voting}
 
                <span>
 
                    {editbuttons}
 
                </span>    
 
        </div>     
 
        {/BLOCK-footer}
 
        <div class="josc_clear"></div>
 
    </li>
 
</ul>
 
{/post}

Show id of comments 14 years 4 months ago #10140

  • Martin Roeder
  • Martin Roeder's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 0
worked! Thanks a lot for your (allways!) fast and helpful answers Daniel !!

:)

*Edit:

i implemented it behind the...
{date}&nbsp; | &nbsp;{id}&nbsp;
;)

Show id of comments 14 years 4 months ago #10145

  • Martin Roeder
  • Martin Roeder's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 0
Hmmm, i noticed something:
Example link:

This work - jumps to the comment
link to comment ID 260 on first page

This works not - stays on the first page
link to comment ID 80 on earlier page

Not sure, but i guess its my template (again)? :-/

Show id of comments 14 years 4 months ago #10147

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It is a bug, no better to say a missing feature. I'll address this in 4.2 .
Daniel

Show id of comments 14 years 4 months ago #10148

  • Martin Roeder
  • Martin Roeder's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 0
Okay, but not a huge problem at all :)
Well, thats it for today, my "question day" is over, i will figure out some more things for the rest of this month, will make a list of my issues (if there are new ones) and once i upgraded/subscribed i will come back to this helpful place here :)

Thanks and great week to you and the whole team! :=D

Show id of comments 14 years 4 months ago #10149

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
-you are welcome - have fun! ;)
  • Page:
  • 1
Time to create page: 0.150 seconds