292611
YourHelp
Re: IP Addresses in Forums
  • 2003/7/5 1:34

  • YourHelp

  • Friend of XOOPS

  • Posts: 479

  • Since: 2003/6/9 6


this is another reason why i enjoyed 1.3 XOOPS better also the avatars on registration where another thing that i wished was not taken out of xoops2 oh well



292612
Jack404
Re: IP Addresses in Forums
  • 2003/7/5 0:34

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


I've gotten as far as having the IP.gif show up in the forums, but I'm not sure what to put in alt="" for the img tags. I've tried <{$poster_ip}>, and this doesn't work. Where does XOOPS assign things like <{$topic_post.poster_from}> that are used in the templates? If someone can point that to me, I'd be able to figure out the rest



292613
kain
Re: IP Addresses in Forums
  • 2003/7/5 0:30

  • kain

  • Just popping in

  • Posts: 56

  • Since: 2002/1/9 9


not sure of this, since i don't know much about x2's code, but maybe you have to modify templates.. the way your forums looks like.



292614
Jack404
Re: IP Addresses in Forums
  • 2003/7/4 23:53

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


I also found this, starting on line 221:

Quote:

function getPost($id) {
$sql = 'SELECT p.*, t.post_text, tp.topic_status FROM '.$this->db->prefix('bb_posts').' p LEFT JOIN '.$this->db->prefix('bb_posts_text').' t ON p.post_id=t.post_id LEFT JOIN '.$this->db->prefix('bb_topics').' tp ON tp.topic_id=p.topic_id WHERE p.post_id='.$id;
$array = $this->db->fetchArray($this->db->query($sql));
$this->post_id = $array['post_id'];
$this->pid = $array['pid'];
$this->topic_id = $array['topic_id'];
$this->forum_id = $array['forum_id'];
$this->post_time = $array['post_time'];
$this->uid = $array['uid'];
$this->poster_ip = $array['poster_ip'];
$this->subject = $array['subject'];
$this->nohtml = $array['nohtml'];
$this->nosmiley = $array['nosmiley'];
$this->icon = $array['icon'];
$this->attachsig = $array['attachsig'];
$this->post_text = $array['post_text'];
if ($array['pid'] == 0) {
$this->istopic = true;
}
if ($array['topic_status'] == 1) {
$this->islocked = true;
}
}



292615
Jack404
Re: IP Addresses in Forums
  • 2003/7/4 23:52

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


I found this text in XOOPS 2 in modules/newbb/class/class.forumposts.php on lines 383 to 385:

Quote:

function posterip(){
return $this->poster_ip;
}


How would I go about using this function in association with the IP.gif file?



292616
kain
Re: IP Addresses in Forums
  • 2003/7/4 23:18

  • kain

  • Just popping in

  • Posts: 56

  • Since: 2002/1/9 9


i'm speaking for XOOPS 1.3.8
i don't like the ip.gif so i replaced with a piece of code

in /modules/newbb/class/class.forumposts.php
find
$ip_image

and take this:
Quote:

if ( $adminview ) {
?>
<script>
function whois(url) {
test=window.open(url,'nome','SCROLLBARS=1,STATUS=NO,TOOLBAR=NO,RESIZABLE=YES,LOCATION=NO,MENU=NO,WIDTH=600,HEIGHT=400,LEFT=0,TOP=0');
}
</script>
<?php

$ip_image = "IP: <b><font color='#FF0000'>".$this->posterip()."</font> - <a href=\"javascript:whois('http://stats.kuht.it/inc/whois.php?IP=".$this->posterip()."');\">WHOIS</a></b><br />";

} else {

$ip_image = "IP: <b><font color='#FF0000'>nascosto</font></b><br />";



please don't consider whois.php, is a php page that can whois a certain ip, remove it.

for the lazy:

Quote:

if ( $adminview ) {
$ip_image = "IP: <b><font color='#FF0000'>".$this->posterip()."</font> </b><br />";

} else {

$ip_image = "IP: <b><font color='#FF0000'>nascosto</font></b><br />";

}

i've made also an algorithm to crypt the ip for non admin user, but i think that is better leaving "nascosto" (hidden or protected)



292617
destrux
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/4 22:56

  • destrux

  • Moderator

  • Posts: 57

  • Since: 2002/6/3 1


nobody's the least bit interested in this whatsoever? Am I the only person trying to use gallery with XOOPS 2.0.3?



292618
Catzwolf
Re: WF-Sections V1 Released
  • 2003/7/4 22:33

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

bosello wrote:
Bugs:

With the new version 1.0.1 if i try to see (blocks conf / wf topics "yes" to show) the topics the white page apperars.

If i select in the configuration to "show linked path" in the page will not be visible the subsections.

Bos


On the first bug, could you please turn on php debugging and tell me any error that is displayed.

The second one I will have a look at.



292619
Catzwolf
Re: WF-Sections V1 Released
  • 2003/7/4 22:31

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


In WF-Section configuration,

Change 'Articles sort order' to weight.



292620
Jack404
Re: IP Addresses in Forums
  • 2003/7/4 22:09

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


BUMP!

I saw the IP.gif file in the images directory, but how would we go about implementing this in XOOPS2? I really liked that feature in XOOPS 1.3.8, and I'm a bit disappointed it was taken out.

Could someone please help us find the code we need?

Thanks in advance!







Login

Who's Online

246 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

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

Latest GitHub Commits