Recent Topics

1 Aug 13, 2008 04:33    

My b2evolution Version: 1.10.x

I want to insert javascript or php code to display to the viewer their IP address. There are easy codes for js and php to do this, but the blog writing module keeps anesthetizing the code.

I have turned off all code formatting/checking etc, it is a multi-user blog, but only 2 trusted users.

Ideally it would be to put this into the post:

<?php echo $_SERVER['REMOTE_ADDR']?>

TIA

2 Aug 13, 2008 04:38

You can put that code in the skin (sidebar or above/below the post loop) and it will display at every visit. The other option involves writing a plugin.

Good luck

3 Aug 13, 2008 04:46

Thanks Afwas, that's what I had feared. Don't want it in the skin. Where do I go to learn how to write and embed the plugins for 2.4.2?

4 Aug 13, 2008 05:38

Using a third party, I can insert HTML code into the post thereby producing an image containing the user's IP and ISP.


<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/vipersig.jpg" border="0"></a>Sign by Danasoft - <a href="http://www.danasoft.com">Myspace Layouts and Signs</a>

Resulting blog post:
http://combatwombat.7doves.com/2008/08/13/redirect-ip-addresses

Very handy, thanks Danasoft!


Form is loading...