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-26-2004 10:00 PM

Webpage & Guestbook Script
 
Webpage and Guestbook for vBulletin 3.0.x

This script installs a Webpage and a Guestbook on your users profile page.

Upcoming fixes:
* Adding leads to user's guestbooks via post icons.
* More? Send me suggestions by posting in this thread.

LATEST VERSION NEW FEATURES v1.0.4 - November 14th, 2005 (Re-released)
* Now comes with an easy to use installer that does all the database entries.
* Also includes an uninstaller (works even though you don't have version 1.0.4 installed)
* Includes upgrade from v1.03 to v1.04 (previous versions are left unsupported)
* Corrected some Javascript errors with the Editor.
* Optimized code (less rows)
* Smilie icon show when enabled in HTML mode
* Quick Edit works better and also updates Webpage name and Description.
- Added Cancel button
- Only show Quick Edit box when editing
* BUG for large Guestbooks fixed. (Altering of table)

NEW FEATURES v1.0.3
* Webpage editing is now improved and stable (had javascript error before)
(only need to update template modify_webpage and file profile.php with new code)

NEW FEATURES v1.0.2
* Admin edit ability
* Improved code
* Using more of CSS from vBulletin rather than through a control file
* FIXED: Removal / Editing of posts (includes a FIX file that you need to run ONCE)
* FIXED: Avatar now show when file based system is used.

(VERSION 1.02 .ZIP FILE HAS BEEN UPDATED! DOWNLOAD CURRENT FILE)

NEW FEATURES v1.0.1
* Added ability to edit or remove his/her guestbook entry within the default vB's timeout setting
* Lots more Usergroup settings (that actually work )
* Colors etc are changed from one configuration file (didn't add to vBulletin admin area because it was just too much for one settings page...)
* PM or Email Notification option, or none (Default option is set by Admin)
* HTML or vBcode when creating webpage content (not both)
* HTML is limited to Admin set HTML tags in the Administration area
* Language controlled through vB's Language system
* Option to display users Avatars (controllable FORCED sizing)
* Smilies option (On or Off)

Usergroup settings added
* Can have Webpage
* Can have Guestbook
* Can view Guestbook
* Can view Webpage
* Can post in Guestbook

------------------------------------------------------------------

THIS SCRIPT IS NOT FOR COMPLETE NEWBIES!
If you are not used to changing script code. Please let someone else do the job for you that know more 'scripting'.

This script requires modification to your database.

I take no responsibily as to what happens to your website after you install this script.

Good luck and I hope you enjoy my contribution!

Andreas 10-27-2004 05:30 PM

English screenshots would be nice :)

Swedie 10-27-2004 06:16 PM

Quote:

Originally Posted by KirbyDE
English screenshots would be nice :)

Not possible, sorry. My system is in Swedish. No need for it to be in English to understand what is going. I think. Please read this thread for possibly more insight:
https://vborg.vbsupport.ru/showthread.php?t=69827

Maybe someone else installing this script (if anyone is successful) can post up screenshots?!

Loki12 10-27-2004 07:11 PM

Thanks for your hard work Swedie, I'm going to attempt at installing it. :)

Surtain23 10-27-2004 08:03 PM

Great job! Thanks for finally releasing!

Loki12 10-27-2004 08:14 PM

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/virtual/site87/fst/var/www/html/forum/includes/init.php on line 721
Parsing functions.php Time before: 1098911616.135 Time after: 1098911616.1649 Time taken: 0.029879093170166

:surprised:

Loki12 10-27-2004 08:19 PM

Quote:

Originally Posted by Loki12
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/virtual/site87/fst/var/www/html/forum/includes/init.php on line 721
Parsing functions.php Time before: 1098911616.135 Time after: 1098911616.1649 Time taken: 0.029879093170166

:surprised:

Nevermind, problem fixed. :)

There should be a " , " after 'canusewebpage' => 524288 in init.php

So --> 'canusewebpage' => 524288,

Swedie 10-27-2004 08:25 PM

Quote:

Originally Posted by Loki12
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/virtual/site87/fst/var/www/html/forum/includes/init.php on line 721
Parsing functions.php Time before: 1098911616.135 Time after: 1098911616.1649 Time taken: 0.029879093170166

:surprised:

Line 721 for me the wrong place. This is how the array for general permissions should look like:

// 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
);

Loki12 10-27-2004 08:39 PM

Quote:

Originally Posted by Swedie
Line 721 for me the wrong place.

I think it is maybe not a good idea to specify certain lines... because in hacked templates, the lines may differ...

I have just tried to run the query from my admincp. Here is an error I get:

Quote:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';

CREATE TABLE `user_webpage` (
`userid` int(11) NOT NULL default '0',
' at line 10

HiDeo 10-27-2004 09:28 PM

Nice job but I would like to see english screens !

Loki12 10-27-2004 09:33 PM

I don't know what is wrong, but looking in my admincp options it displays like this:

dndog 10-27-2004 11:35 PM

Has anybody gotten this successfully running? I'd like to see a live English version.

/me clicks install anyway because this is an awesome hack.

Lionel 10-28-2004 12:46 AM

It would be nice if you could be more specific for those of us who have installed hacks instead of telling us to go lines numbers

member.php
Line 223:
* PASTE ALL CODE FROM memberpage.txt *

profile.php
Line 141:
* PASTE ALL CODE FROM profilepage.txt *

admin/usergroup.php
Line 103:

etc...

Lionel 10-28-2004 02:01 AM

you also got the settings inserts all messed up

INSERT INTO `setting` VALUES ('allowguestbook', '1', 'yesno', 10, 'guestbookwebpage', '1', 0, 1);
guestbookwebpage belongs to the second value

Lionel 10-28-2004 02:25 AM

Quote:

Originally Posted by Loki12
I don't know what is wrong, but looking in my admincp options it displays like this:

Loki12 that's because he's got all the settings inserts in the wrong order

Lionel 10-28-2004 05:14 AM

I've got it to work. It's really nice, but you should update those instructions. Also, how do I prevent the avatar and picture table above *not* to show crooked if user has no webpage.

P.S. Thank you for that hack. It was long overdue that someone did it.

Tradjick 10-28-2004 07:04 AM

Quote:

Originally Posted by Swedie
Hello all friendly people,

This is a script I've been working my rearend off to finish after hearing how wanted it was by several members here on this site. I even received PM's threatening me if i did not finish it and released it to everyone. Haha! Just kidding. I did ask if I was going to make this script something you will have to pay for. but I was convinced I should rely on donations instead. So... everyone using this script...Please consider donating, it'd be much appreciate and make the time I've put down on this script worth my while. Thank you!

My PayPal email is: swedie@wheeliepimp.com. Or click here:
https://www.paypal.com/xclick/busine...rency_code=USD

Webpage features:
- global On/Off
- usergroup On/Off
- html/vbcode/smilies On/Off (globaly or user set)

Guestbook features:
- global On/Off
- usergroup On/Off
- smilies On/Off (globaly or user set)

Umh, what else... well. Here are some screenshots!

I've attached a ZIP file for you to download. It holds a bunch of text files and a .SQL file.

As usual, I take no responsibily as to what happens to your website after you install this script, I just know it works for my website and I'm happy as well as all my users using it!

Cheers and enjoy! :)

UPDATED WITH A NEW .ZIP FILE THAT INCUDES A NEW IMAGE

Thanks for this great hack! I?m gonna install it when the bugs are out because i?m so dumbass at PHP. Unfortunately.

Swedie 10-28-2004 10:02 AM

Quote:

Originally Posted by Lionel
I've got it to work. It's really nice, but you should update those instructions. Also, how do I prevent the avatar and picture table above *not* to show crooked if user has no webpage.

P.S. Thank you for that hack. It was long overdue that someone did it.

Please post up a picture as I cannot see what is going on.

Swedie 10-28-2004 10:08 AM

Quote:

Originally Posted by Tradjick
Thanks for this great hack! I?m gonna install it when the bugs are out because i?m so dumbass at PHP. Unfortunately.

I double checked my .SQL file and ran it on a new database (copied my forum) and it installed flawlessly. Only trouble I saw was that it was saved using Unix style or somethign so if the SQL file is run as it is, some line brakes may not appear correctly, hence causing a problem.

This problem has been addressed in the new .ZIP file in my first post here in this thread.

I've also updated the installation instructions for your convenience.

Lionel 10-28-2004 10:10 AM

It got fixed after a few minutes, like you said. Once all the groups got updated. I had to change the bitfields as they were conflicting with other hacks. I also had to update permissions manually in mysql. For some reasons they were not updating. Overall, it's a very nice hack.

Lionel 10-28-2004 10:13 AM

Quote:

Originally Posted by Swedie
I double checked my .SQL file and ran it on a new database (copied my forum) and it installed flawlessly. Only trouble I saw was that it was saved using Unix style or somethign so if the SQL file is run as it is, some line brakes may not appear correctly, hence causing a problem.

This problem has been addressed in the new .ZIP file in my first post here in this thread.

I've also updated the installation instructions for your convenience.

Got more than that. Perhaps the Sweedish version is different? For example nothing was showing up in Control Panel as pictured above by someone. That was due to the fact that all names were inserted in the wrong fields. I had to manually adjust every single one of them.

Swedie 10-28-2004 10:21 AM

Quote:

Originally Posted by Lionel
Got more than that. Perhaps the Sweedish version is different? For example nothing was showing up in Control Panel as pictured above by someone. That was due to the fact that all names were inserted in the wrong fields. I had to manually adjust every single one of them.

hmm! odd... are you talking about the languageid field .. please specify and I'll make the correction to the .SQL file. thanks

Lionel 10-28-2004 10:24 AM

I am talking about the setting groups.

Lionel 10-28-2004 10:27 AM

here, all the ones in that series were wrong:
INSERT INTO `setting` VALUES ('allowguestbook', '1', 'yesno', 10, 'guestbookwebpage', '1', 0, 1);

the value 'guestbookwebpage' for example should have been the second one. The yesno is wrong etc...

Swedie 10-28-2004 10:45 AM

Quote:

Originally Posted by Lionel
here, all the ones in that series were wrong:
INSERT INTO `setting` VALUES ('allowguestbook', '1', 'yesno', 10, 'guestbookwebpage', '1', 0, 1);

the value 'guestbookwebpage' for example should have been the second one. The yesno is wrong etc...

Thing is that I've done a simple SQL dump and copied the INSERT's that PHPMYADMIN created for me for re-creating the database. I can't see how it would create the fields wrongly.

The fields goes like this:
varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile
the order in the INSERT CODE is correct... if you look at above line

Also when I am executing the SQL file and I'm looking at the database for any wrong inputs I can't see any wrongs. Everything is where it should be.

The .SQL file that you downloaded was saved incorrectly and had messed up line brakes. Maybe that is what caused it.

Sorry if I'm blind to see the problem, but I'm sitting here re-creating the database structure with my last .SQL file and everything is the way it should be.

Wordplay 10-28-2004 11:54 AM

Lionel can you please rerelease an install script that works? because as it seems nobody was able to really get this to work, right away, and i can't afford my board to not work for a while, it has to work right away.

where should we donate too? once i get it to run on my system i will definately do that, because this hack i've been waiting for.

Lionel 10-28-2004 12:01 PM

here is a snapshot of mysql and the order of the fields

you will see that grouptitle is number2. That is why no one can see it

Lionel 10-28-2004 12:03 PM

Wordplay all you have to do is rearrange the order. I had to do it manually in phpadmin.
Sweedie has a paypal account in first post :-)

and where he says before of after linebreak (there are a ton of them) simply put it in the general permissions group as he stated

Andreas 10-28-2004 12:06 PM

@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]

oldfan 10-28-2004 03:11 PM

/me will install and donate once this a bug free
Thanks for you hard work swedie!!

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 12:20 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.02123 seconds
  • Memory Usage 1,878KB
  • 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
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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