vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - [Naxon] Simple WhatIsMyIP Page (https://vborg.vbsupport.ru/showthread.php?t=156454)

Naxon 08-27-2007 10:00 PM

[Naxon] Simple WhatIsMyIP Page
 
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 ;)

Naxon 08-28-2007 04:11 PM

Version 2.1 Released:
Fixed installer (ipinstall.php).

DieselMinded 08-28-2007 05:03 PM

Demo?

wizardan 08-28-2007 06:54 PM

Quote:

Originally Posted by DiesellMinded (Post 1327483)
Demo?

I'll second that:)

johnrizz 08-28-2007 09:40 PM

simple... Thanks! **installed**

Naxon 08-28-2007 10:22 PM

Thank's, I uploaded a screenshot, sorry for the quality ^^"
Thank's to Stone0075 for the 2nd screenshot, better quality :)

nir 08-28-2007 11:19 PM

Thanks

Naxon 08-29-2007 12:58 AM

Quote:

Originally Posted by nir (Post 1327725)
Thanks

Please put my copyrights back !! :mad:

FreshFroot 08-29-2007 01:19 AM

and the point of this hack is...?

Really Naxon, so far your hacks have been alrighty, though I REALLY urge that if you want to make a HUGE impact. Go back with the SEO hack you were making, because I think it will have the best impact and results. Also, it's a hack that I think will be most wanted if you can create it.

Naxon 08-29-2007 01:28 AM

I don't have a time for my SEO hack right now.
I'm finishing my university project in a few days, and than I'll continue my SEO hack...


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01121 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete