Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: IP Addresses in Forums
by mouacy on 2003/10/30 8:30:07

It doesn't work for me. I'm using XOOPS 2.0.5. I used the exact template but it only show from "edit.php....". The Ip doesn't show anywhere. Any suggestion?
Re: IP Addresses in Forums
by YourHelp on 2003/7/16 9:11:58

Nice work indeed .. must have taken yonks to work it out. My site works so much better with this in place thanks mate
Re: IP Addresses in Forums
by brash on 2003/7/5 5:46:45

That's some nice work there Jack404! Well done!
Re: IP Addresses in Forums
by Jack404 on 2003/7/5 4:46:52

Hehe, just figured it out. XOOPS actually already defines a template variable for it. Just put <{$topic_post.post_poster_ip}> where you'd like the IP address to show up. For example, this is my template for newbb_thread.html:

Quote:

<!-- start comment post -->
<tr>
<td class="head"><a id="forumpost<{$topic_post.post_id}>"></a> <{$topic_post.poster_uname}></td>
<td class="head"><div class="comDate"><span class="comDateCaption"><{$lang_postedon}></span> <{$topic_post.post_date}></div></td>
</tr>
<tr>

<{if $topic_post.poster_uid != 0}>

<td class="odd"><div class="comUserRank"><div class="comUserRankText"><{$topic_post.poster_rank_title}></div><{$topic_post.poster_rank_image}></div><img class="comUserImg" src="<{$xoops_url}>/uploads/<{$topic_post.poster_avatar}>" alt="" /><div class="comUserStat"><span class="comUserStatCaption"><{$lang_joined}>:</span> <{$topic_post.poster_regdate}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_from}>:</span> <{$topic_post.poster_from}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_posts}>:</span> <{$topic_post.poster_postnum}></div><div class="comUserStatus"><{$topic_post.poster_status}></div></td>

<{else}>

<td class="odd"> </td>

<{/if}>

<td class="odd">
<div class="comTitle"><{$topic_post.post_title}></div><div class="comText"><{$topic_post.post_text}></div>
</td>
</tr>
<tr>
<td class="even"></td>

<{if $xoops_isadmin || $xoops_ismoderator == true}>

<td class="even" align="right">
<img src="<{$xoops_url}>/images/icons/ip.gif" alt="<{$topic_post.post_poster_ip}>" /><a href="edit.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href='delete.php?forum=<{$forum_id}>&topic_id=<{$topic_id}>&post_id=<{$topic_post.post_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>'><img src="<{$xoops_url}>/images/icons/delete.gif" alt="<{$lang_delete}>" /></a><a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{elseif $xoops_isuser == true && $xoops_userid == $topic_post.poster_uid}>

<td class="even" align="right">
<img src="<{$xoops_url}>/images/icons/ip.gif" alt="" /><a href="edit.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{elseif $viewer_can_post == true}>

<td class="even" align="right">
<img src="<{$xoops_url}>/images/icons/ip.gif" alt="" /><a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{else}>

<td class="even"> </td>

<{/if}>

</tr>
<!-- end comment post -->
Re: IP Addresses in Forums
by Jack404 on 2003/7/5 2:22:21

Ack, I guess I'd better hope a Dev reads this and can point me in the right direction...

I've looked EVERYWHERE for where the template <{$variables}> are defined, but no luck yet. Does anyone have an idea?

Who's Online

871 user(s) are online (749 user(s) are browsing Support Forums)


Members: 0


Guests: 871


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits