PDA

View Full Version : Add-On Releases - vB Frappr Member Map: Better Page


|Jordan|
03-31-2008, 10:00 PM
Hack name: vB Frappr Member Map: Better Page
Version: 1.0
Author: |Jordan|

Note: You need vB Frappr Member Map (https://vborg.vbsupport.ru/showthread.php?t=174044) 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 (http://www.gamers-union.net/forums/misc.php?do=page&template=membermap)

Instructions

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

$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:

Options All -Indexes
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^membermap.php$ misc.php?do=page&template=membermap$1 [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 (http://www.gamers-union.net/forums/membermap.php)

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
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.