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)

rex_b 10-31-2004 02:54 PM

Ugh.. why can't I see them in the admincp/usergroup manager.

// set default yes permissions (bitfields)
$ug_bitfield = array(
'showgroup' => 1,
'canview' => 1,
'canviewmembers' => 1,
'canuseguestbook' => 1,
'canusewebpage' => 1,
'canviewothers' => 1,
'cagetattachment' => 1,
'cansearch' => 1,
'canmodifyprofile' => 1,
'canthreadrate' => 1,
'canpostattachment' => 1,
'canpostpoll' => 1,
'canvote' => 1,
'canwhosonline' => 1,
'allowhidden' => 1,
'showeditedby' => 1,
'canseeprofilepic' => 1,
'canusesignature' => 1,
'cannegativerep' => 1,
'canuserep' => 1
);

They are there.. but not.. UGHHH

StarBuG 10-31-2004 02:57 PM

if you only the the radiobuttons but not the text search the two phrases and add the text into the english box!

StarBuG

rex_b 10-31-2004 03:10 PM

Quote:

Originally Posted by StarBuG
if you only the the radiobuttons but not the text search the two phrases and add the text into the english box!

StarBuG

Done that. I've installed it on one site correctly but now on this other one it's giving me problems.

I don't even see the radio buttons. :(

Swedie 10-31-2004 04:42 PM

Quote:

Originally Posted by rex_b
Ugh.. why can't I see them in the admincp/usergroup manager.

// set default yes permissions (bitfields)
blah =)

They are there.. but not.. UGHHH

That array is only for when creating a new usergroup and you want default values added right away. So that's nothing to do with your problem.

The problem you're having is with the phrase language. Please try and run this SQL query: (it will change the value of your languageid to 1 instead of 0)

PHP Code:

UPDATE vb3phrase SET languageid '1' WHERE 
varname 
'setting_allowguestbook_desc' AND 
varname 'setting_allowguestbook_title' AND 
varname 'setting_allowwebpage_title' AND 
varname 'setting_allowwebpage_desc' AND 
varname 'settinggroup_guestbookwebpage' AND 
varname 'setting_webpagevbcode_desc' AND 
varname 'setting_guestbooksmilies_desc' AND 
varname 'setting_webpagevbcode_title' AND 
varname 'setting_webpagesmilies_title' AND 
varname 'setting_guestbooksmilies_title' AND 
varname 'setting_webpagesmilies_desc' AND 
varname 'setting_webpagehtml_title' AND 
varname 'setting_webpagehtml_desc' AND 
varname 'can_use_guestbook' AND 
varname 'can_use_webpage' AND 
varname 'setting_allowedhtmltags_title' AND 
varname 'setting_allowedhtmltags_desc' AND 
varname 'edit_webpage_content' AND 
varname 'edit_guestbook_settings'



StarBuG 10-31-2004 04:49 PM

Hey Swedie

Do u have any idea why the guestbook is not showing up when bottom is selected?

StarBuG

Swedie 10-31-2004 05:02 PM

Quote:

Originally Posted by StarBuG
Hey Swedie

Do u have any idea why the guestbook is not showing up when bottom is selected?

StarBuG

ask me one more time, please do it!

Swedie 10-31-2004 05:10 PM

FIX FOR SHOWING GUESTBOOK

PASTE THIS:
Quote:

<if condition="$vboptions[allowguestbook] == '1'">
<if condition="$userinfo[permissions][canuseguestbook] == '1'">
<if condition="$webpage[gb_status] == 'on'">
<if condition="$webpage[gb_position] == 'bottom'">
$webpage[gb_html]
</if>
</if>
</if>
</if>
before:
<if condition="$show['signature']">

IN TEMPLATE: MEMBERINFO

rex_b 10-31-2004 05:15 PM

Quote:

Originally Posted by Swedie
That array is only for when creating a new usergroup and you want default values added right away. So that's nothing to do with your problem.

The problem you're having is with the phrase language. Please try and run this SQL query: (it will change the value of your languageid to 1 instead of 0)

PHP Code:

UPDATE vb3phrase SET languageid '1' WHERE 
varname 
'setting_allowguestbook_desc' AND 
varname 'setting_allowguestbook_title' AND 
varname 'setting_allowwebpage_title' AND 
varname 'setting_allowwebpage_desc' AND 
varname 'settinggroup_guestbookwebpage' AND 
varname 'setting_webpagevbcode_desc' AND 
varname 'setting_guestbooksmilies_desc' AND 
varname 'setting_webpagevbcode_title' AND 
varname 'setting_webpagesmilies_title' AND 
varname 'setting_guestbooksmilies_title' AND 
varname 'setting_webpagesmilies_desc' AND 
varname 'setting_webpagehtml_title' AND 
varname 'setting_webpagehtml_desc' AND 
varname 'can_use_guestbook' AND 
varname 'can_use_webpage' AND 
varname 'setting_allowedhtmltags_title' AND 
varname 'setting_allowedhtmltags_desc' AND 
varname 'edit_webpage_content' AND 
varname 'edit_guestbook_settings'




Hmm. I ran that and I still don't see the 2 options in admincp/usergroup manager

StarBuG 10-31-2004 06:36 PM

the problem is in admin/usergroup.php

you where told to:

Add on row 174 BEFORE "print_table_break();":

but because of the multiple times this little bastard :D is in the file you propably put it in the wrong place (Like I did the first time!).

So find:

print_table_header($vbphrase['general_permissions']);

the "print_table_break();" after this is the right one ;)

Greetings

StarBuG

ps: You should describe this better in your instructions Swedie. You sometimes tell people to find a text that occures multiple times in the file so people get easily confused ;)

rex_b 10-31-2004 06:45 PM

Yep I figured that out like 2 min ago.. I had it after line 184..

NOW IT WORKS!!!!!


All times are GMT. The time now is 08:43 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.01813 seconds
  • Memory Usage 1,771KB
  • 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
  • (2)bbcode_php_printable
  • (5)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