vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBpad - Your personal notepad! (v1.0) (https://vborg.vbsupport.ru/showthread.php?t=29760)

Lucky 01-10-2002 11:06 PM

This hack works perfect for me on 2.2.1.

Just follow the directions to a T.

I found this hack extremely easy to install.

Shenlong 01-10-2002 11:21 PM

Well I am glad you think so, but it wouldn't work for me, I don't know why that error just kept coming up, I wanted this to work but I guess it won't oh well, 1 hack i cant install :(

Stretchr 01-11-2002 10:55 AM

I've done quite a few hacks on our boards and initially had a problem with this one. Not saying it's the same for you but I found that, somehow, I'd missed a step. Even though I thought I'd gone over everything, still had made a mistake. With so many steps on the one page, I'd just skipped one. Once I corrected my error, the hack works great! Thanks!

Admin 01-11-2002 12:04 PM

Shenlong, you didn't run the queries you were told to run (CREATE TABLE and some more).

Xelation 01-23-2002 08:24 PM

Just installed it with no problems.... I have a question though... Is it possible to have admins and moderators to have a different ammount of characters than members? I want my mods and admins to have a 2000 character limit.

Lucky 01-24-2002 01:18 AM

Quote:

Originally posted by Xelation
Just installed it with no problems.... I have a question though... Is it possible to have admins and moderators to have a different ammount of characters than members? I want my mods and admins to have a 2000 character limit.
That is a good idea!

Sparkz 01-26-2002 03:30 PM

I was looking through the code in the installscript, and I saw something that made me wonder a bit, namely:
Code:

INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES ('40','vBpad','32')
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,'40','Maximum Characters per note','maxpadsize','250','The maximum number of characters that you want to allow per note. Set this to 0 to disable it.','','1')

For actions like this wouldn't it be wiser to do something like this:
PHP Code:

$DB_site->query_first ("INSERT INTO settinggroup (title,displayorder) VALUES ('vBpad','32')");
$settinggroupid $DB_site->insert_id ();
$DB_site->query_first("INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,$settinggroupid,'Maximum Characters per note','maxpadsize','250','The maximum number of characters that you want to allow per note. Set this to 0 to disable it.','','1')"); 

That way you should (in theory) be sure that you don't try to use some settinggroupid that is already in use.

Sure, it might be easy to edit the install file if this happens, but isn't my way much cleaner (again, in theory)? :)

Sparkz 01-26-2002 04:25 PM

...only now realising that you don't actually run the queries from your code *tired* :)

But my way would work pretty well, I think :p

PhotoGenie 01-31-2002 01:08 PM

I just installed this hack on 2.2.2 .. This hack was a brilliant idea in my opinion. Only thing i ran into during the install was in /root/members2.php where it tells you

Find this code:

$cpnav[7]="{secondaltcolor}";

Replace it with this code:
(3 times)

$cpnav[7]="{secondaltcolor}";
$cpnav[8]="{secondaltcolor}";

I only found it twice so I only made 2 of the changes. I had it installed on 2.2.1 and its working just as well now as then. Colors are alternating right and everything. My personal rating on this hack is a 10!

Admin 01-31-2002 01:16 PM

I hate this hack. :(


All times are GMT. The time now is 11:01 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.01428 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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