vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Webpage & Guestbook Script (https://vborg.vbsupport.ru/showthread.php?t=71065)

Swedie 10-28-2004 03:51 PM

Quote:

Originally Posted by KirbyDE
@swedie
I'd suggest to use complete INSERTs to avoid problems with different column ordering.

Eg.

[sql]INSERT INTO foobar (foo, bar) VALUES ('foo', 'bar')[/sql]

Yeah, I'm gonna do that now. I didn't have in my calculations that the field order would be different on different computers. I've tried it on two different servers and it works on both. But yeah, just to be sure I'm gonna force to the correct fieldname. I'm on it...

Swedie 10-28-2004 03:57 PM

Quote:

Originally Posted by Swedie
Yeah, I'm gonna do that now. I didn't have in my calculations that the field order would be different on different computers. I've tried it on two different servers and it works on both. But yeah, just to be sure I'm gonna force to the correct fieldname. I'm on it...

Okay! I've updated again. The new .SQL file now included complete INSERTS and cannot fail. Sorry, I should've done this in the first place!

Thanks all for assisting and making it work (at all?).

Nordinho 10-28-2004 05:41 PM

Heya,

I'm having some trouble displaying/viewing the hack...it doesn't show up anywhere. I've changed the permissions, logged in and out and cleared my cache...

I think the problem is in the general permissions screen, since it isn't showing up correctly (see attachment)

I tried changing the general permissions in the init.php file since this looked wrong...I think...

PHP Code:

'caneditownusernotes'      => 131072,
'canuseguestbook'          => 262144,
'canusewebpage'            => 524288,
'canseehiddencustomfields' => 262144

to this
PHP Code:

'caneditownusernotes'      => 131072,
'canseehiddencustomfields' => 262144,
'canuseguestbook'          => 524288,
'canusewebpage'            => 1048576

could someone help me out??

greets Nordinho,

Polo 10-28-2004 06:47 PM

Thanks swedie :)

Swedie 10-28-2004 07:10 PM

Quote:

Originally Posted by Nordinho
Heya,

I'm having some trouble displaying/viewing the hack...it doesn't show up anywhere. I've changed the permissions, logged in and out and cleared my cache...

I think the problem is in the general permissions screen, since it isn't showing up correctly (see attachment)

I tried changing the general permissions in the init.php file since this looked wrong...I think...

PHP Code:

'caneditownusernotes'      => 131072,
'canuseguestbook'          => 262144,
'canusewebpage'            => 524288,
'canseehiddencustomfields' => 262144

to this
PHP Code:

'caneditownusernotes'      => 131072,
'canseehiddencustomfields' => 262144,
'canuseguestbook'          => 524288,
'canusewebpage'            => 1048576

could someone help me out??

greets Nordinho,

I can see that what is missing is the text. Because you have the two fields. So what you need to do is make sure that you have added the phrases called:
can_use_guestbook, can_use_webpage
They should be under: Permissions
in the Phrase Manager.

Or run this SQL again.
INSERT INTO `phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '-1', 'can_use_guestbook', 'Can use Guestbook?', 3);
INSERT INTO `phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '-1', 'can_use_webpage', 'Can use Webpage?', 3);

Nordinho 10-28-2004 07:23 PM

Quote:

Originally Posted by Swedie
I can see that what is missing is the text. Because you have the two fields. So what you need to do is make sure that you have added the phrases called:
can_use_guestbook, can_use_webpage
They should be under: Permissions
in the Phrase Manager.

Or run this SQL again.
INSERT INTO `phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '-1', 'can_use_guestbook', 'Can use Guestbook?', 3);
INSERT INTO `phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '-1', 'can_use_webpage', 'Can use Webpage?', 3);

thanks for the reply Swedie, but both the phrases allready do exist...any other idea's??

Or should I change this back??

Quote:

'caneditownusernotes' => 131072,
'canseehiddencustomfields' => 262144,
'canuseguestbook' => 524288,
'canusewebpage' => 1048576,

Swedie 10-28-2004 07:27 PM

Quote:

Originally Posted by Nordinho
thanks for the reply Swedie, but both the phrases allready do exist...any other idea's??

Or should I change this back??

Make your genericpermissions array look like this:

// field names for general permissions
$_BITFIELD['usergroup']['genericpermissions'] = array(
'canviewmembers' => 1,
'canmodifyprofile' => 2,
'caninvisible' => 4,
'canviewothersusernotes' => 8,
'canmanageownusernotes' => 16,
'canseehidden' => 32,
'canbeusernoted' => 64,
'canprofilepic' => 128,
'canseeraters' => 256,
'canuseavatar' => 512,
'canusesignature' => 1024,
'canusecustomtitle' => 2048,
'canseeprofilepic' => 4096,
'canviewownusernotes' => 8192,
'canmanageothersusernotes' => 16384,
'canpostownusernotes' => 32768,
'canpostothersusernotes' => 65536,
'caneditownusernotes' => 131072,
'canuseguestbook' => 262144,
'canusewebpage' => 524288,
'canseehiddencustomfields' => 1048576
);

Just like that!

Nordinho 10-28-2004 07:30 PM

Quote:

Originally Posted by Nordinho
thanks for the reply Swedie, but both the phrases allready do exist...any other idea's??

Or should I change this back??

I've just changed the default permissions in phpmyadmin back and forth, now the webpage is starting to show...still no guestbook or editing options...

I can see it's installed by going to http://www.nordinho.com/vbull/profil...do=editwebpage....

Snow 10-28-2004 07:41 PM

I'm having exactly the same problems as Nordinho. I don't know much about php but the genericpermissions array actually continues further down in my init.php file.

// field names for general permissions
$_BITFIELD['usergroup']['genericpermissions'] = array(
'canviewmembers' => 1,
'canmodifyprofile' => 2,
'caninvisible' => 4,
'canviewothersusernotes' => 8,
'canmanageownusernotes' => 16,
'canseehidden' => 32,
'canbeusernoted' => 64,
'canprofilepic' => 128,
'canuseavatar' => 512,
'canusesignature' => 1024,
'canusecustomtitle' => 2048,
'canseeprofilepic' => 4096,
'canviewownusernotes' => 8192,
'canmanageothersusernotes' => 16384,
'canpostownusernotes' => 32768,
'canpostothersusernotes' => 65536,
'caneditownusernotes' => 131072,
'canuseguestbook' => 262144,
'canusewebpage' => 524288,
'canseehiddencustomfields' => 1048576,

// Reputation

'canseeownrep' => 256,
'canuserep' => 524288,
'canhiderep' => 1048576,
'cannegativerep' => 2097152,
'canseeothersrep' => 4194304,
'canhaverepleft' => 8388608,
);

Can 2 field names (or whatever their called) have the same value?

Nordinho, my phrases were "missing" even though the phrases were there but when I provided a US translation they work now.

Nordinho 10-28-2004 07:55 PM

Quote:

Originally Posted by Snow
I'm having exactly the same problems as Nordinho. I don't know much about php but the genericpermissions array actually continues further down in my init.php file.

// field names for general permissions
$_BITFIELD['usergroup']['genericpermissions'] = array(
'canviewmembers' => 1,
'canmodifyprofile' => 2,
'caninvisible' => 4,
'canviewothersusernotes' => 8,
'canmanageownusernotes' => 16,
'canseehidden' => 32,
'canbeusernoted' => 64,
'canprofilepic' => 128,
'canuseavatar' => 512,
'canusesignature' => 1024,
'canusecustomtitle' => 2048,
'canseeprofilepic' => 4096,
'canviewownusernotes' => 8192,
'canmanageothersusernotes' => 16384,
'canpostownusernotes' => 32768,
'canpostothersusernotes' => 65536,
'caneditownusernotes' => 131072,
'canuseguestbook' => 262144,
'canusewebpage' => 524288,
'canseehiddencustomfields' => 1048576,

// Reputation

'canseeownrep' => 256,
'canuserep' => 524288,
'canhiderep' => 1048576,
'cannegativerep' => 2097152,
'canseeothersrep' => 4194304,
'canhaverepleft' => 8388608,
);

Can 2 field names (or whatever their called) have the same value?

Nordinho, my phrases were "missing" even though the phrases were there but when I provided a US translation they work now.

Thanx Snow, the translation thingie worked...the phrases are showing up now...

I'm actually having the exact same permissions list as you got...indeed there are some double values...Swedie has the one below as well, which I don't got...Can the double values just be changed or are they specific??

'canseeraters' => 256,


All times are GMT. The time now is 09:29 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.01768 seconds
  • Memory Usage 1,773KB
  • 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
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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