Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Naxon] Simple WhatIsMyIP Page Details »»
[Naxon] Simple WhatIsMyIP Page
Version: 2.1, by Naxon Naxon is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 08-27-2007 Last Update: 09-18-2007 Installs: 17
DB Changes Template Edits
Code Changes Additional Files  
No support by the author.

This is a simple WhatIsMyIP page.

Installation (2.0):
  1. Upload the attached "whatismyip.php" to your root forum folder (where index.php).
  2. Create a new template, called WHATISMYIP, and put this content:
    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
     <!-- no cache headers -->
     <meta http-equiv="Pragma" content="no-cache" />
     <meta http-equiv="Expires" content="-1" />
     <meta http-equiv="Cache-Control" content="no-cache" />
     <!-- end no cache headers -->
     $headinclude
     <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
    </head>
    <body>
    $header
    $navbar
    <!-- Start Main Script -->
    <if condition="$naxon[ipenabled] == '1'">
    <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
    <tr>
    <td class="tcat">
    WhatIsMyIP
    </td>
    </tr>
    <tr>
    <td class="thead">
    Your IP Address
    </td>
    </tr>
    <tr>
    <td class="alt1" align="center" valign="middle">
    <b><h1>Your IP Is <font color="orange">$naxon[ip]</font></h1></b>
    </td>
    </tr>
    <tr>
    <td class="thead">
    Information About IP
    </td>
    </tr>
    <tr>
    <td class="alt1">
    $naxon[ipinfo]
    </td>
    </tr>
    </table>
    <else />
    <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
    <tr>
    <td class="tcat">
    WhatIsMyIP
    </td>
    </tr>
    <tr>
    <td class="alt1">
    The Administrator has turned off the WhatIsMyIP Page.
    </td>
    </tr>
    </table>
    </if>
    <br /><br />
    <div class="smallfont" align="center">
    $naxon[ip_rights]
    </div>
    <!-- End Main Script -->
    $footer
    </body>
    </html>
  3. Upload "admincp/whatismyip.php" to "admincp/whatismyip.php".
  4. Upload the "ipinstall.php" to you forum's root directory (where index.php), and run it.
  5. Open: includes/xml/cpnav_vbulletin.xml.
  6. Find:
    Code:
      <navoption displayorder="10">
       <phrase>vbulletin_options</phrase>
       <link>options.php?null=0</link>
      </navoption>
  7. Add Below:
    Code:
      <navoption displayorder="10">
       <text>WhatIsMyIP Page</text>
       <link>whatismyip.php</link>
      </navoption>
  8. Edit the setting at the AdminCP (Category: vBulletin Options, Entry: WhatIsMyIP Page).
  9. Have Fun
Versions:
1.0: Released.
1.1: Added a NavBit.
2.0: Added AdminCP Nav, Control from the AdminCP (enable \ disable, IPInfo Text).
2.1 (Current): Fixed installer (ipinstall.php).

This is a very simple "mod", but usefull .
I tookthe information about the IP from Wikipedia, so change it

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-29-2007, 08:13 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I will look out for version 2 which will have more features
Reply With Quote
  #13  
Old 08-29-2007, 09:10 AM
gforce75 gforce75 is offline
 
Join Date: Sep 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
Reply With Quote
  #14  
Old 08-30-2007, 05:03 PM
Naxon Naxon is offline
 
Join Date: Oct 2006
Location: Israel
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas for the next version?
Reply With Quote
  #15  
Old 08-30-2007, 10:57 PM
Naxon Naxon is offline
 
Join Date: Oct 2006
Location: Israel
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated: From: 1.0. To: 1.1.
Added a NavBit.
Reply With Quote
  #16  
Old 08-31-2007, 10:56 AM
Naxon Naxon is offline
 
Join Date: Oct 2006
Location: Israel
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 2.0 Released:
Added AdminCP Nav, Control from the AdminCP (enable \ disable, IPInfo Text).
Reply With Quote
  #17  
Old 09-04-2007, 02:13 AM
Twisted Chaos Twisted Chaos is offline
 
Join Date: Nov 2004
Location: Geneva, NY
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey do you mind if i modify this add-on alot???

I have vast experience in vBulletin Products and I think this could be expanded alot to fit everyones needs...

Settings within the actual admincp would include...

- IP Display Syntax
-- Color, Font, Size, Bold, Italic, Underlined, Strike-through (Basically ALL regular options for displaying text on a page)

- Slight Template Modifications

- Page Viewing Options (Display in Who's Online Page.. Etc..)

- My IP in postbit Add-On
(User will see their IP only visible to them only in their own postbits, wont even show to anyone but them... so user will see "My IP: x.x.x.x" in post bit but wont see anything about IP's in other users...)

Example: If i were Naxon I would see

Quote:
Naxon
Administrator

Join Date: Jan. 1, 2000
Posts: 26
My IP: x.x.x.x

------------------------------------------------------------

SilverSkull
Member

Join Date: Jan. 2, 2000
Posts: 300000000
and If i were SilverSkull i would see

Quote:
Naxon
Administrator

Join Date: Jan. 1, 2000
Posts: 26

------------------------------------------------------------

SilverSkull
Member

Join Date: Jan. 2, 2000
Posts: 300000000
My IP: x.x.x.x
I have alot more suggestions but this is just an example.
Permission to edit this hack and place Naxon as Originator requested.
Reply With Quote
  #18  
Old 09-04-2007, 07:07 AM
ruger's Avatar
ruger ruger is offline
 
Join Date: Sep 2004
Location: Texas
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Running 3.6.8 and had problems with the ipinstall.php file giving errors. Never had any problems on other progs like this. Deleted all.
Reply With Quote
  #19  
Old 09-05-2007, 03:57 PM
Naxon Naxon is offline
 
Join Date: Oct 2006
Location: Israel
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the problem?
Reply With Quote
  #20  
Old 09-06-2007, 06:42 PM
Cornie Cornie is offline
 
Join Date: Mar 2006
Location: Berlin
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the problem is


Quote:
Invalid SQL:
INSERT INTO `vbulletin`.`whatismyip` (
`id` ,
`enabled` ,
`ipinfo`
)
VALUES (
'1', '1', 'An IP address (Internet Protocol address) is a unique address that certain electronic devices use in order to identify and communicate with each other on a computer network utilizing the Internet Protocol standard (IP)—in simpler terms, a computer address. Any participating network device—including routers, computers, time-servers, printers, Internet fax machines, and some telephones—can have their own unique address.
<br />
<br />
From WikiPedia ?'
);;

MySQL-Fehler : Table 'vbulletin.whatismyip' doesn't exist
Fehler-Nr. : 1146
Datum : Thursday, September 6th 2007 @ 09:38:59 PM
Skript : http://www................/forum/ipinstall.php
Referrer :
IP-Adresse : 84.191.56.117
Benutzername : Cornie
Klassenname : vb_database
Reply With Quote
  #21  
Old 09-06-2007, 11:49 PM
ruger's Avatar
ruger ruger is offline
 
Join Date: Sep 2004
Location: Texas
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same thing here.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04987 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete