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)

Wordplay 10-30-2004 05:16 PM

what's not workin, maybe i can help out?

Loki12 10-30-2004 08:03 PM

Quote:

Originally Posted by Wordplay
what's not workin, maybe i can help out?

Nothing is showing up. I tried just about everything mentioned in this thread.

However, when I go here:

/profile.php?do=editwebpage

.. then I can see the edit page. But the link to that doesn't show up on my user cp, and also not on my profile when edited. Also, the admincp options are not there:

https://vborg.vbsupport.ru/attachmen...chmentid=21434

I have used the most recently updated files from Swedie's script (today's).

Lionel 10-30-2004 08:29 PM

that's because your group members do not have permissions. Go in DATABASE itself, and make sure that permissions are set properly.

P.S. I don't believe you read that thread. All you mentioned was covered.

rex_b 10-30-2004 08:33 PM

Quote:

Originally Posted by Swedie
That would mean I'd have to write a PHP script that you'd have to execute, otherwise I can't have it so that it autodetects what your vb prefix is for your forum database tables. hmm


So uhh.. What do I do?

Loki12 10-30-2004 08:40 PM

Quote:

Originally Posted by Lionel
that's because your group members do not have permissions. Go in DATABASE itself, and make sure that permissions are set properly.

P.S. I don't believe you read that thread. All you mentioned was covered.

I read everything. I also edited all usergroup permissions through phpMyadmin for "canuseguestbook" and "canusewebpage" to show "1" in the columns. Still not working.

Lionel 10-30-2004 08:59 PM

Quote:

Originally Posted by Loki12
I read everything. I also edited all usergroup permissions through phpMyadmin for "canuseguestbook" and "canusewebpage" to show "1" in the columns. Still not working.

here is the reason why you are not seeing the settings in admin
https://vborg.vbsupport.ru/showpost....7&postcount=15

Loki12 10-30-2004 09:02 PM

Quote:

Originally Posted by Lionel
here is the reason why you are not seeing the settings in admin
https://vborg.vbsupport.ru/showpost....7&postcount=15

I did read that post, thank you, and I assumed that Swedie had fixed that in his latest update... that is how I understand it. I downloaded a fresh file pack today from his first post.

Loki12 10-30-2004 09:11 PM

Quote:

Originally Posted by Loki12
I did read that post, thank you, and I assumed that Swedie had fixed that in his latest update... that is how I understand it. I downloaded a fresh file pack today from his first post.

Damn... I see what you mean... the values from the first script are still there... I have to change them.

Loki12 10-30-2004 09:26 PM

Excellent! I got it to work! :D

Thanks Lionel & Swedie!

Swedie 10-30-2004 09:31 PM

Quote:

Originally Posted by rex_b
So uhh.. What do I do?

If you know the prefix, just place it before each table name. Say "phrase" it would then be "vb_phrase" in your case if your prefix is "vb_". let me know if you figure it out. Do let me know what your prefix is anyhow, and I'll create a special .SQL file for you.

Loki12, great to hear you got it to work. Now send me some love! (money... :D) And don't forget to click on the "INSTALL" button to show you've installed it. :ninja:

rex_b 10-30-2004 09:49 PM

Quote:

Originally Posted by Swedie
If you know the prefix, just place it before each table name. Say "phrase" it would then be "vb_phrase" in your case if your prefix is "vb_". let me know if you figure it out. Do let me know what your prefix is anyhow, and I'll create a special .SQL file for you.

Loki12, great to hear you got it to work. Now send me some love! (money... :D) And don't forget to click on the "INSTALL" button to show you've installed it. :ninja:


Thanks. My prefix is vb3

Swedie 10-30-2004 10:40 PM

Quote:

Originally Posted by rex_b
Thanks. My prefix is vb3

okay, download the attached file. Rename it the file to .SQL instead of .txt.

The two databases created will not have a vb3 extension. I'd have to rewrite the scripts. that's not difficult though. hum...

maybe I should create an installation proggy. it's rather simple really. let me know and give me a few days if so.

rex_b 10-30-2004 11:00 PM

Quote:

Originally Posted by Swedie
okay, download the attached file. Rename it the file to .SQL instead of .txt.

The two databases created will not have a vb3 extension. I'd have to rewrite the scripts. that's not difficult though. hum...

maybe I should create an installation proggy. it's rather simple really. let me know and give me a few days if so.

Error
#1146 - Table 'rexb3_vb.usergroup' doesn't exist

rex_b 10-30-2004 11:01 PM

Ok I read this thread about 10 times and finally figured out that those sql statements to run to change those defaults to 1 instead of 0 were not doing the job so I did it manually and now I'm waiting for my db to update and hopefully that will fix it!

rex_b 10-30-2004 11:02 PM

nevermind there was one missing vb3 in the new text.

rex_b 10-30-2004 11:25 PM

OK I've got everything installed but I can't find the permissions to update in the admin/usergroup area under general permissions. Nothing is there. :(

rex_b 10-30-2004 11:28 PM

BWAHAHAHAH IT WORKS.. I SAY MAN..!! IT WOOORRRKSSSS.....

Now try to install it on the live site.. :)

Skyline_GT 10-30-2004 11:47 PM

how to fix this?

rex_b 10-30-2004 11:48 PM

Quote:

Originally Posted by Skyline_GT
how to fix this?

Go into phrases and search for can view guestbook and can view webpage and make sure you have the text in the "english" block which is the empty block.

:)

Skyline_GT 10-31-2004 12:00 AM

n/m fixed

rex_b 10-31-2004 12:44 AM

So I'm trying to get it to work on my live site but I'm having problems again. I did the SQL change from 0 to 1 and I assume that means the userid? B/c I am admin but my userid is 3 so I changed it from 0 to 3 now and hopefully when sql updates it will work but just wondering if I am on the right track?

Swedie 10-31-2004 08:21 AM

Quote:

Originally Posted by rex_b
So I'm trying to get it to work on my live site but I'm having problems again. I did the SQL change from 0 to 1 and I assume that means the userid? B/c I am admin but my userid is 3 so I changed it from 0 to 3 now and hopefully when sql updates it will work but just wondering if I am on the right track?

Which value did you change over to 3 from 0?

Here is a new memberpage code. overwrite what you first pasted into member.php. This file includes a change over so that it detects who's got admin rights. This user can delete messages in any of your users guestbooks.

And like I said earlier in a post. Run this SQL query:
(this one has the vb3 prefix for rex_b table structure!)
UPDATE vb3usergroup SET canuseguestbook = '1';
UPDATE vb3usergroup SET canusewebpage = '1';

I uploaded a new .SQL file to my post before.

Wordplay 10-31-2004 11:29 AM

first error / conflict >

if my users set the guestbook to show up on the bottom, it doesn't show at all.

Snow 10-31-2004 12:34 PM

I've got a slight permissions problem. I hadn't made this hack available to regular members yet but it appears they've been able to create webpages and guestbooks. I've double checked the usergroup permissions and triple checked them and they are all set to "Can use Guestbook?" - No "Can use webpage?" -No. Does anyone else have this problem as it's got me stumped as to how they can use the webpage and guestbook when they don't have permission to. :confused:

Swedie 10-31-2004 12:41 PM

Quote:

Originally Posted by Snow
I've got a slight permissions problem. I hadn't made this hack available to regular members yet but it appears they've been able to create webpages and guestbooks. I've double checked the usergroup permissions and triple checked them and they are all set to "Can use Guestbook?" - No "Can use webpage?" -No. Does anyone else have this problem as it's got me stumped as to how they can use the webpage and guestbook when they don't have permission to. :confused:

Crapholios.. works splendid for me. I think. I'll check and get back to you all.

Lionel 10-31-2004 01:19 PM

Works splendid for me too. Only the guestbook not showing at the bottom like Wolrplay

rex_b 10-31-2004 01:22 PM

Quote:

Originally Posted by Swedie
Which value did you change over to 3 from 0?

Here is a new memberpage code. overwrite what you first pasted into member.php. This file includes a change over so that it detects who's got admin rights. This user can delete messages in any of your users guestbooks.

And like I said earlier in a post. Run this SQL query:
(this one has the vb3 prefix for rex_b table structure!)
UPDATE vb3usergroup SET canuseguestbook = '1';
UPDATE vb3usergroup SET canusewebpage = '1';

I uploaded a new .SQL file to my post before.


I've done all of that. and uploaded the new memer.php and I still can't see it in the admincp/usergroup manager

StarBuG 10-31-2004 01:32 PM

Quote:

Originally Posted by Wordplay
first error / conflict >

if my users set the guestbook to show up on the bottom, it doesn't show at all.

Same problem here!

I have a design that has a defined width and doesn?t use the whole screen and the position option doesn?t work.
If I use left or right it both looks like this:
https://vborg.vbsupport.ru/

and if I select bottom then it?s missing totaly!

What I would need is:

a) how to fix the position problem
b) How can I do it that the questbook uses the forum size
c) I want the guestbook to be at the bottom for all users (no choice for them)

Can you PLEASE help me

StarBuG

Swedie 10-31-2004 01:45 PM

Quote:

Originally Posted by StarBuG
Same problem here!

I have a design that has a defined width and doesn?t use the whole screen and the position option doesn?t work.
If I use left or right it both looks like this:
http://www.hiphop-battles.com/images/profile.jpg

and if I select bottom then it?s missing totaly!

What I would need is:

a) how to fix the position problem
b) How can I do it that the questbook uses the forum size
c) I want the guestbook to be at the bottom for all users (no choice for them)

Can you PLEASE help me

StarBuG

Let a few days pass. I need to redo the scripts so you have more design settings to play with such as width for webpage/guestbook table, font size/type/color etc.

any more bugs? please report and I'll fix it.

StarBuG 10-31-2004 01:48 PM

Quote:

Originally Posted by Swedie
Let a few days pass. I need to redo the scripts so you have more design settings to play with such as width for webpage/guestbook table, font size/type/color etc.

any more bugs? please report and I'll fix it.

It is not only the design flaw that I could fix myself but why is the guestbook not showing up when I select bottom?

Please help

StarBuG

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 07:08 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.02278 seconds
  • Memory Usage 1,870KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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