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)

MR-2ZZ 05-02-2005 05:12 PM

Already did that.

can_use_guestbook searched it, saved it, nothing. Is there a removal script so I can start over.

Rich 05-02-2005 06:31 PM

Hello,
I installed this on vb 3.0.7 without any problems. Everything appears, even the edit functions etc.

The problem that I am having is that the settings in the Usergroup permissions are not sticking. They are there, I set them, and then they do what they want. For example:

Admins have the ability to create ,view,and post in the guestbook and webpage. I hit update, and I can't see the webpage or the guestbook. (I am admin 1) So I go back into the settings and they are not saved. So I do it again, with the same results. (yes, I created a webpage first. lol)

How does this work? Is there a bug? How can I make my settings for user permissions stay?

I want my admins to have webpages and guestbooks. Everyone can see them. Everyone can post to the guestbook.

I am creating a new usergroup, and they too get the guestbook and webpage. Everyone sees it, everyone can sign the guestbook.

These settings aren't staying as I make them. Why?

MR-2ZZ 05-02-2005 06:49 PM

*EDIT

I am a freaking dork. I have been doing so many edits....

I FORGOT TO UPLOAD THEM!!! :ninja:

Works great, Clicking Install, Will donate paypal on payday!

FightRice.com 05-02-2005 08:33 PM

Hey i've installed this on 3.0.7 and it works great, only letting my Mods have the web pages and everyone else can use just the guest book.

Awesome mod, but it isn't picking up the template color scheme and seems to only use the VBdefault colors any advice on where to change this, I know its gonna be in MemberINfo template somewhere probably but i'm just not sure what to change. Thanks

MR-2ZZ 05-02-2005 08:35 PM

Did anyone figure out how Defi, did his custom CSS hack?

I would love to use this.

MR-2ZZ 05-02-2005 08:36 PM

Quote:

Originally Posted by FightRice.com
Hey i've installed this on 3.0.7 and it works great, only letting my Mods have the web pages and everyone else can use just the guest book.

Awesome mod, but it isn't picking up the template color scheme and seems to only use the VBdefault colors any advice on where to change this, I know its gonna be in MemberINfo template somewhere probably but i'm just not sure what to change. Thanks

Edit the webgbset.php file I think.

Lizard King 05-02-2005 08:55 PM

Quote:

Originally Posted by FightRice.com
Hey i've installed this on 3.0.7 and it works great, only letting my Mods have the web pages and everyone else can use just the guest book.

Awesome mod, but it isn't picking up the template color scheme and seems to only use the VBdefault colors any advice on where to change this, I know its gonna be in MemberINfo template somewhere probably but i'm just not sure what to change. Thanks

Add the following code in Styles & Templates - All Style Options - Additional CSS Definitions and change the colors matching to your board style. If you have more then one style you have do it to each style.
Code:

.wg_menu
{
        background-color: #060606;
        color: #999999;
        font-size: 8pt;
        font-family: Helvetica;
}
.wg_gbalt1
{
        background-color: #060606;
        color: #999999;
}
.wg_gbalt2
{
        background-color: #060606;
        color: #999999;
}
.wg_form
{
        background-color: #060606;
        color: #999999;
}


FightRice.com 05-02-2005 09:20 PM

Thanks for the quick reply. Works wonders

Now i am trying to set this so regular members can not have a web page, and i choose that option in my user group editor but its not saving it and they are getting web pages that i don't want them to have :mad:

*Fixed, had my init.php file slightly messed up :devious:

Rich 05-03-2005 10:13 AM

Hello,
I looked my init.php file over several times and it is exactly as it is stated to be. I still can't get the usergroup permissions to stay. I change them, and they revert. I am using 3.0.7. Could someone show me how they have their init file set so I can see if we have it set the same way?

amykhar 05-03-2005 10:54 AM

Quote:

Originally Posted by iguanairs
Hello,
I looked my init.php file over several times and it is exactly as it is stated to be. I still can't get the usergroup permissions to stay. I change them, and they revert. I am using 3.0.7. Could someone show me how they have their init file set so I can see if we have it set the same way?

your init file won't necessarily look like somebody else's. It depends on what other hacks you have installed.

Rich 05-03-2005 11:33 AM

Hello,
Amy, I have my init file exactly layed out the way the instructions for this hack described. Everything went great, except none of my user permissions stick in regards to this hack. Everything works, including creating the webpage. I really need this set so that admins and a new usergroup are allowed to make webpages and use the guestbook feature. I would like for everyone to have the ability to see them, but I would only like for the admin/added group to create.

Would someone more adepth with the init file be interested in seeing where the problem lies?

T3MEDIA 05-03-2005 12:18 PM

Quote:

Originally Posted by iguanairs
Hello,
Amy, I have my init file exactly layed out the way the instructions for this hack described. Everything went great, except none of my user permissions stick in regards to this hack. Everything works, including creating the webpage. I really need this set so that admins and a new usergroup are allowed to make webpages and use the guestbook feature. I would like for everyone to have the ability to see them, but I would only like for the admin/added group to create.

Would someone more adepth with the init file be interested in seeing where the problem lies?

yes take a look in your usergroups. You may have overlooked it since this is a quite large hack.

Take a look you should see Webpage and Guestbook new entries.... adjust to how you feel fit.

FightRice.com 05-03-2005 02:44 PM

IS this what you are looking for
Code:

// 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, // Permission removed in 3.0.2 ## Maintain backwards compatibility with 3.0.0 and 3.0.1
        'canuseavatar'            => 512,
        'canusesignature'          => 1024,
        'canusecustomtitle'        => 2048,
        'canseeprofilepic'        => 4096,
        'canviewownusernotes'          => 8192,
        'canmanageothersusernotes' => 16384,
        'canpostownusernotes'      => 32768,
        'canpostothersusernotes'  => 65536,
        'caneditownusernotes'      => 131072,
        'canseehiddencustomfields' => 262144,

        // Reputation

        'canseeownrep'            => 256,
        'canuserep'                => 524288,
        'canhiderep'              => 1048576,
        'cannegativerep'          => 2097152,
        'canseeothersrep'          => 4194304,
        'canhaverepleft'          => 8388608,
        'canhaveguestbook'        => 16777216,
    'canhavewebpage'          => 33554432,
    'canviewwebpage'          => 67108864,
    'canviewguestbook'        => 134217728,
    'canpostguestbook'        => 268435456,


Rich 05-03-2005 04:11 PM

Hello,
Thanks for posting that. That is EXACTLY how mine appears.lol Everything is working on my site, except the usergroup permissions. I see them listed, I have made changes, and I have updated those usergroups. The problem is, my settings are not staying. Once I tell it to save them, they revert back to how they were.

This is crazy. lol What could be causing them to not be saved? They are in the usergroup manager, and I have done everything as outlined. Everything appears to work fine, but I can't change the user permissions and have them stay!

*****UPDATE*****

If anyone else runs into this problem, and you have cpanel, use the "repair" feature beside the database that houses your forums. I ran both the "repair" feature as well as the maintenance via the forums ACP, and that corrected the settings not staying. They now appear to be working. Thanks everyone. :D

//Rich Clicked install.

Rampag33 05-09-2005 01:41 PM

Installed and works perfectly Now if I can find some memberinfo templates.

deathemperor 05-10-2005 05:32 PM

This is incredible, I even intend to make this myself.

Thanks !

Rampag33 05-11-2005 04:06 AM

I'm having a problem. Everything seems to be working just fine except Guest can't view guest book.

I looked at everything from the init.php file and the usergroup permission.

At first nothing showed up for guest but I saw that I messed up 1 of the numbers when I typed it in and nothing came up for Guest. Now that I fixed the init.php file the webpage shows up but not the guestbook.

smacklan 05-12-2005 02:56 PM

When I click on Web Page Content in the UserCP i get the following error:

PHP Code:

Warningmysql_num_rows(): supplied argument is not a valid MySQL result resource in /profile.php on line 320

Warning
mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /profile.php on line 327 

Any suggestions?

Lizard King 05-12-2005 03:37 PM

Quote:

Originally Posted by Rampag33
I'm having a problem. Everything seems to be working just fine except Guest can't view guest book.

I looked at everything from the init.php file and the usergroup permission.

At first nothing showed up for guest but I saw that I messed up 1 of the numbers when I typed it in and nothing came up for Guest. Now that I fixed the init.php file the webpage shows up but not the guestbook.

did you check guest usergroup settings ?

Rampag33 05-13-2005 02:29 AM

Yes I made the uergroup settings too. I guess that's why its not working for prior v303. Damn didn't want to upgrade the forums yet but I guess no way to get this to work without it. But strange how this is the only thing not working since the rest of the website shows with no problem.

bouncey 05-13-2005 11:22 AM

Quote:

Originally Posted by bouncey
What are the security risks with enabling HTML?

Bump! :speechless:

Anyone??? :D

KTBleeding 05-13-2005 12:41 PM

There are way too many risks to list. Opening up your site to HTML allows virtually anyone to post malicious code.

sully02 05-13-2005 03:11 PM

Quote:

Originally Posted by Lizard King
Add the following code in Styles & Templates - All Style Options - Additional CSS Definitions and change the colors matching to your board style. If you have more then one style you have do it to each style.
Code:

.wg_menu
{
        background-color: #060606;
        color: #999999;
        font-size: 8pt;
        font-family: Helvetica;
}
.wg_gbalt1
{
        background-color: #060606;
        color: #999999;
}
.wg_gbalt2
{
        background-color: #060606;
        color: #999999;
}
.wg_form
{
        background-color: #060606;
        color: #999999;
}


As far as this is concerned, I just removed the custom CSS, and it works fine for all of my styles.

smacklan 05-13-2005 04:42 PM

Quote:

Originally Posted by smacklan
When I click on Web Page Content in the UserCP i get the following error:

PHP Code:

Warningmysql_num_rows(): supplied argument is not a valid MySQL result resource in /profile.php on line 320

Warning
mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /profile.php on line 327 

Any suggestions?

Bumpity anyone?

bouncey 05-15-2005 06:27 PM

Quote:

Originally Posted by KTBleeding
There are way too many risks to list. Opening up your site to HTML allows virtually anyone to post malicious code.

What kind of malicious codes?

Would it be safer if I restrict the HTML tags to only these ones?

<hr><a><br><b><h1><h2><h3><h4><i><img><li><ol><p>< strong><table><tr><td><th><u><ul><font><b><div><ce nter>

CrazyLady 05-17-2005 01:28 PM

Question

Could the members have the option to upload attachments to use in their web page? Was wondering if this feature was already part of this mod, or could be added in the future.

Thanks
CL

cdoyle 05-17-2005 08:43 PM

I've asked about this having this feature earlier, and most people didn't find it necessary.

I think it would help promote use of the webpage feature, since many members don't have server space.

Nordinho 05-17-2005 08:48 PM

Quote:

Originally Posted by cdoyle
I've asked about this having this feature earlier, and most people didn't find it necessary.

I think it would help promote use of the webpage feature, since many members don't have server space.

it's the only feature I'm missing as well...

T3MEDIA 05-18-2005 12:41 AM

use gal photopost popup add on but you will have to ask him how to intergrate it with this.
it works with photopost and other photo software

SpankMe 05-18-2005 09:54 AM

Quote:

Originally Posted by stephend23
And when i change it 2 HTML it NEVER lets me use the smilies.


Got the same problem. When I "Go HTML", the clickable smilies just get the javascript error: 'theform.message' is null or not an object

Rampag33 05-19-2005 05:17 AM

ok I'm having real problems. I just got done upgrading from 300 to 307. I have a I tried some of the solutions above becuase when I did a search for the phrase it couldn't find it. I missing basically everything as far as what goes get install with the SQL file.

Does anyone have a SQL that will totally delete all the modifications so I can reuse the insert.SQL

bouncey 05-20-2005 02:40 PM

Quote:

Originally Posted by bouncey
What kind of malicious codes?

Would it be safer if I restrict the HTML tags to only these ones?

<hr><a><br><b><h1><h2><h3><h4><i><img><li><ol><p>< strong><table><tr><td><th><u><ul><font><b><div><ce nter>

Bump! :rolleyes:

Anyone??? :nervous:

Rampag33 05-20-2005 04:21 PM

Quote:

Originally Posted by bouncey
Bump! :rolleyes:

Anyone??? :nervous:

Yes but I would remove the <table><td><tr> command s since thouse can mess up the look of the profile easily. Unless you think your users actually know html.

cdoyle 05-20-2005 08:51 PM

We just set some guidelines on our forum, and I restricted this option to paying members.

We haven't had a problem as of yet.

I was wondering, has anyone thought about hard it might be once VB 3.5 is released to upgrade our forums with this hack installed? Also hoping this hack will still work with 3.5.

altsounds 05-23-2005 07:42 PM

I have made lots of my own mods to your original script nothing other than making the look and feel work a little better with my site.

Anyway you can put up a version with changes to the original code so people like myself can just add the differences?? That would be awesome if you could.

Let me know

Thoki 05-25-2005 01:09 PM

Hello,
first of all: A GREAT SCRIPT.
maybe now a stupid question: How do I prevent my Super-Moderators from editing Users Guestbook-Entries an Quick-Edit their Webpages??

--
Greets Thoki.

kevinrstruck 05-25-2005 09:55 PM

Very Cool **Clicked Install***

Had it up and running in about 20 minutes with no problems at all. Great script.

Thanks.

waza 05-26-2005 07:28 PM

hey, everything works except the webgbset.php file
I just get a blank page...

nnjj.net 05-28-2005 06:11 AM

is it working for 3.0.7?

Lizard King 05-28-2005 08:54 AM

Quote:

Originally Posted by nnjj.net
is it working for 3.0.7?

Yes working with 3.0.7


All times are GMT. The time now is 10:28 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.02271 seconds
  • Memory Usage 1,850KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)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