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)
-   -   Add-On Releases - vB Frappr Member Map: Better Page (https://vborg.vbsupport.ru/showthread.php?t=174750)

|Jordan| 03-31-2008 10:00 PM

vB Frappr Member Map: Better Page
 
Hack name: vB Frappr Member Map: Better Page
Version: 1.0
Author: |Jordan|

Note: You need vB Frappr Member Map for this mod to work as intended.

This is a simple template edit that makes the member map page look more like other pages on your forums. You can see what it looks like here

Instructions

Edit "custom_membermap" (or whatever you named the template). Delete everything and replace with the following:

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$vboptions[bbtitle]</title>
</
head>
<
body>

$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center" id="table1">
    <
tr>
        <
td class="tcat">$vboptions[bbtitle] - Member Map</td>
    </
tr>
    <
tr>
        <
td class="alt1" colspan="3">
<
center>

< ! --------- 
INSERT YOUR FRAPPER CODE HERE --------- ! >

        </
td>
    </
tr>
</
table>

$footer 

Don't forget to re-add your frapper code.

Also, if you want the page to display a shorter cleaner url (giving the illusion that the page is a seperate php file), use the following trick:

Create/Edit a .htaccess file in the same directory as your "misc.php" file. Add the following code into it:

PHP Code:

Options All -Indexes
Options 
+FollowSymlinks
RewriteEngine on

RewriteRule 
^membermap.phpmisc.php?do=page&template=membermap$[L

Note: If you named your membermap template something else, be sure to replace "membermap" in the code above with the name of your template (without the "custom_").

Doing this will make going to YOURSITE.com/forum/membermap.php be the same as if going to YOURSITE.com/forum/misc.php?do=page&template=membermap

You can see it in action here

gwerzal 04-01-2008 12:10 AM

Thanks, il install it on my test forum and see what it looks like

Lombardo 04-03-2008 12:11 AM

Couldn't get the shorter url to work :S

|Jordan| 04-08-2008 05:00 AM

Did you name the template custom_membermap? If you named it something else, than change the code in red below to whatever you named your template (without the "custom_"):

Options All -Indexes
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^membermap.php$ misc.php?do=page&template=membermap$1 [L]

SVTCobraLTD 04-08-2008 10:42 AM

Quote:

Originally Posted by |Jordan| (Post 1485685)
Did you name the template custom_membermap? If you named it something else, than change the code in red below to whatever you named your template (without the "custom_"):

Options All -Indexes
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^membermap.php$ misc.php?do=page&template=membermap$1 [L]


Mine is called custom_membermap yet the shorter url will not work. I copied exactually as you have in your inital post. Any ideas? The longer verison work though, thank you.

|Jordan| 04-08-2008 02:57 PM

Some web hosts may not allow you to create an .htaccess with rewrite rules (they may not even have mod_rewrite installed). I suggest you ask your host if they support it.


All times are GMT. The time now is 10:30 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.01169 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete