Scandal |
12-10-2010 01:09 PM |
If anyone wants the notepad ONLY on a separate page (for example, you want to put it on a popup window):
1. Download the vbnotepad.php (it attached on this post) and upload it to your forum directory.
2. Set a new template to your style with the name vbNotepad and paste inside it the following code:
Code:
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
<if condition="!$show['member']">
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>System Message:</strong></td>
</tr>
<tr><td class="alt1">
<div style="margin: 5px 20px 20px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="panel">
<br>
<br>
This function is only for Member. <a href="/register.php" target="_blank">Click here</a> to register !
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody>
</td>
</table>
</div>
</tr>
</table>
</body>
</html>
<else />
<if condition="$vboptions['personal_notepad_onoff']==1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>Personal Notepad</strong></td>
</tr>
<form name="personalnotepad" method="post" action="usercp.php$session[sessionurl_q]">
<table class="tborder" width="100%" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" align="center">
<tr>
<td class="tcat" align="center">$vbphrase[personal_notepad]</td>
</tr>
<tbody id="collapseobj_notepad" style="$vbcollapse[collapseobj_notepad]">
<tr>
<td class="panelsurround" align="center">
<div class="alt1">
<textarea name="notepad" id="notepad" rows="25" cols="$vboptions[personal_notepad_cols]"<if condition="$vbulletin->options['personal_notepad_liquid']"> style="width:95%"</if>><if condition="$vbulletin->userinfo['notepad']">{$vbulletin->userinfo['notepad']}<else />$vbphrase[personal_notepad_explanation]</if></textarea>
<tr>
<td class="alt2" align="center">
<input type="hidden" name="do" value="savenotepad" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="submit" value="Save" />
</td>
</tr>
</td>
</tr>
</tbody>
</table>
</form>
</table>
<else />
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>System Message:</strong></td>
</tr>
<tr>
<td class="alt1">The service is temporary unavailable!</td>
</tr>
</table>
</body>
</html>
</if>
</if>
</body>
</html>
3. Go to Admincp > Plugins & Products > Plugin Manager and open the plugin Save personal notepad and add template. Find usercp.php and replace it with vbnotepad.php
4. Find the template personal_notepad and delete its content.
5. Done! :D Visit the link http://www.youforum.x/vbnotepad.php to see the personal notepad!
6. It is not based on vbulletin phrase system. If you want to change phrases, find them on the template vbNotepad and make the changes...
Sorry if my English are bad...
|