vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   V3 Pad (https://vborg.vbsupport.ru/showthread.php?t=112910)

Aesma Deva 04-12-2006 10:00 PM

V3 Pad
 
Credit for the idea goes to Chen and his VBPad for VB 2.2.
Basically, this hack does the same. You can save a certain number of notes, with a certain number of characters each. HTML, BB code, the IMG tag and smilies can be used, everything set in the Admin CP.
The only feature missing (comparing to Chen's hack) that I know of is the date when the notes were last updated, which I'll probably be adding soon.
Installation:
1. Update the product-vbpad.xml from your admin CP
2. In the USERCP template find:
Code:

<!-- ############## END NEW REPUTATION ##############  -->
</if>

Add below:
Code:

<if condition="$padactivated">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="5">
                        My VB Pad Notes
                </td>
        </tr>
</thead>
<tbody>
$padoutput
</tbody>
</table>
</if>

3. In the USERCP_SHELL template find:
Code:

<tr>
        <td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td>
</tr>

Add below:
Code:

<tr>
        <td class="$navclass[v3pad]" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editpad">Edit VB Pad</a></td>
</tr>

4. Make any changes you want in the VBPad options, in VBulletin options, and you're over

Screenshots:

rareclownfish 04-13-2006 03:23 PM

Screen shot

dsotmoon 04-13-2006 03:37 PM

sounds good, can you make it usergroup based?

Stangsta 04-13-2006 03:39 PM

Quote:

Originally Posted by dsotmoon
sounds good, can you make it usergroup based?

Just add a usergroup based conditional to the template edit.

Use this for reference: https://vborg.vbsupport.ru/showthread.php?t=109279

Aesma Deva 04-13-2006 03:45 PM

Screenshot added (you can of course change the text field's width/height by changing the cols/rows attributes of the textarea tag).

The Chief 04-13-2006 03:50 PM

looks interesting...

trainer 04-13-2006 04:03 PM

can you save more than i message? do you have a screen shot of mltiple messages?

Aesma Deva 04-13-2006 04:08 PM

You can save anything that you write in there, in as many lines as you want, if that's what you mean.
Edit ~ New screenshot attached to this post.
I'm open to suggestions by the way.

Oblivion Knight 04-13-2006 04:48 PM

Suggestion:

Try to use vB's editor rather than a textarea. Not that it would offer many improvements, but at least user's would be able to Increase/Decrease the editor size as they please, and if they use the WYSIWIG editor they could have quite a nicely formatted Notepad area.

apdcanari 04-13-2006 04:49 PM

My code :

Code:

<!-- ############## BLOC NOTES ##############  -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="7">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_blocnotes')"><img id="collapseimg_usercp_blocnotes" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_blocnotes].gif" alt="" border="0" /></a>
                        Notepad
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_blocnotes" style="$vbcollapse[collapseobj_usercp_blocnotes]">
                <tr class="thead">       
                <td class="alt1">
                                <form action="profile.php" method="POST">
                                <input type="hidden" name="userid" value="$bbuserinfo[userid]" />
                                <input type="hidden" name="do" value="pnotes" />
                                <p align="center">
                                <textarea name="pnotes" rows="7" style="font-family:'courier new'" cols="80">$persnotes</textarea><br />
                                <input type="submit" value="Save" />
                                </p>
                                </form>
                </td>
                </tr>
</tbody>
</table>
<br />
<!-- ############## END BLOC NOTES ##############  -->



All times are GMT. The time now is 08:11 AM.

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.01081 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (1)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