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)

Snow 02-18-2005 06:32 AM

Quote:

Originally Posted by shortbus1662
okay, I'm going to need a little help here....:)

the query worked fine when I ran it on the wrong database.

when I ran it on the right one, it said somethin phrase or something didn't exist. I "almost" copied it to post it here, but instead, I just clicked "go" to try and do it again.

Then, I got a different error that said guestbook something something already exists...

AM I SCREWED?

Please help!

I don't know about the first error, but it sounds like at least some of the queries were run succesfully as it's now erroring when you try to re-run the INSERT queries. Use the attached delete.txt (rename it to delete.sql before using phpmyadmin to run it) and this will remove all the phrases and settings that the install.sql inserted then you can try again from scratch.

Edit: Actually I've just had a thought, do you use a table prefix? Maybe the first error was table phrase didn't exist or something like that?

shortbus1662 02-18-2005 02:14 PM

yes, here is the error I got when I deleted:

SQL-query:

DELETE FROM `phrase` WHERE varname = 'setting_allowguestbook_desc'

MySQL said: Documentation
#1146 - Table 'ostatesp_forum.phrase' doesn't exist
-----------------------

so, what should I do now? Thanks for the help Snow.

Snow 02-18-2005 02:25 PM

Quote:

Originally Posted by shortbus1662
yes, here is the error I got when I deleted:

SQL-query:

DELETE FROM `phrase` WHERE varname = 'setting_allowguestbook_desc'

MySQL said: Documentation
#1146 - Table 'ostatesp_forum.phrase' doesn't exist
-----------------------

so, what should I do now? Thanks for the help Snow.

I'm no expert when it comes to MySQL, but I don't think that full stop should be there :speechless: I thought it's supposed to be tableprefix_table e.g. if your prefix is vb then it would be vb_phrase Maybe someone more experienced with MySQL can shed some light on the matter.

shortbus1662 02-18-2005 03:09 PM

well, that's the first sql query I've done in my life, so I have absolutely no idea :). Thanks for the help. Hopefully someone else can pitch in and help.

Marco van Herwaarden 02-18-2005 04:09 PM

You are probably using a table prefix. Edit the query sa follows:
[sql]DELETE FROM TABLE_PREFIXphrase WHERE varname = 'setting_allowguestbook_desc'[/sql]
replacing TABLE_PREFIX with your prefix.

shortbus1662 02-18-2005 06:47 PM

I'm lost.

I don't see table_prefix anywhere in there...

in the delete file SNOW posted I there is, "delete from 'phrase' where VARNAME = yadda yadda yadda.

Sorry I don't understand, I'm just learning.

Snow 02-18-2005 06:49 PM

Quote:

Originally Posted by shortbus1662
I'm lost.

I don't see table_prefix anywhere in there...

in the delete file SNOW posted I there is, "delete from 'phrase' where VARNAME = yadda yadda yadda.

Sorry I don't understand, I'm just learning.

What is your table prefix?

Detomah 02-18-2005 10:01 PM

Think this could possibly be a bit of a bug that i've found, not sure if anyone else is suffering it or it could be confirmed that i've either gone mad or it is actually happening.

Basically:

Write a message in a guestbook and confirm it, then basically refresh and it is duplicated, if a user refreshes over and over, the message can be duplicated sever times in quick succession, which also sends a pm every time too.

I can delete guestbook messages no problem, but i;ve had to disable the guestbook featur for the moment, until I can either get a fix for this or until I am told I have gone mad.

Besides that, super hack. :)

shortbus1662 02-19-2005 04:55 PM

the prefix is ostatesp_forum

Snow 02-19-2005 07:03 PM

Quote:

Originally Posted by Detomah
Think this could possibly be a bit of a bug that i'vefound, not sure if anyone else is suffering it or it could be confirmedthat i've either gone mad or it is actually happening.

Basically:

Write a message in a guestbook and confirm it, then basically refreshand it is duplicated, if a user refreshes over and over, the messagecan be duplicated sever times in quick succession, which also sends apm every time too.

I can delete guestbook messages no problem, but i;ve had to disable theguestbook featur for the moment, until I can either get a fix for thisor until I am told I have gone mad.

You're lucky, you can deleteguestbook entries. I guess since the 'post guestbook entry' partis a form it would make sense that refreshing the page would repost theentry.... I suppose. The other day, some of my users told me theywere getting duplicate entries in the guestbooks and they swore theyweren't clicking the submit button twice (I assumed they were not alsorefreshing the page). I don't know, maybe this is a bug. :ermm:

Snow 02-19-2005 07:17 PM

Quote:

Originally Posted by shortbus1662
the prefix is ostatesp_forum

Where are the experts when you need them? :rolleyes:

I'm not sure, but could your table prefix actually be ostatespnotostatesp_forum (it just seems like a rather odd prefix to me, butI'm no expert). If you go into your phpMyadmin, and look at the list oftables on the left, you'll see the name of the table you need to use inthequeries. For example, my test forum has the table prefix tvb3. So myphrase table is actually tvb3_phrase. Therefore, in the queries itwould look like:

Code:

DELETE FROM `tvb3_phrase`WHEREvarname= 'setting_allowguestbook_desc';
Am I making sense? Sobasically, in phpmyadmin, look for the phrase table, make a note ofwhat it's called and do a search replace on the insert.sql filereplacing phrase with yourprefix_phrase, (do the same for thesettingtable and the settinggroup table) save and re-run. (sorry I'mterrible at explaining things)

shortbus1662 02-19-2005 08:41 PM

ostatesp_forum is the name of my database.

tables in that database are user_guestbook and user_webpage

all the other ones are vb_

that's all I know. I know nothing :disappointed:

Oreamnos 02-20-2005 06:42 AM

help!

i am upgrading from 3.0.6 to 3.0.7 and when i try to run upgrade.sql i get the following error:

Code:

SQL-query:

ALTER TABLE user_webpage DROP usevbcode

MySQL said: Documentation
#1091 - Can't DROP 'usevbcode'. Check that column/key exists

everything worked fine in 306. any reason i am getting this error?

thanks

Oreamnos 02-20-2005 06:55 AM

do i have to re-install (run insert.sql) this and if so, will the previous data(webapges and guestbooks) remain?

Lizard King 02-20-2005 07:52 AM

I just upgraded to 3.0.7 and after the upgrade I just run the following queries and saved any guestbook phrases and now it is working again.

Code:

INSERT INTO `settinggroup` (grouptitle, displayorder, volatile) VALUES ('guestbookwebpage', 199, 1);

INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('allowguestbook', 'guestbookwebpage', '1', '1', 'yesno', 10, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('allowwebpage', 'guestbookwebpage', '1', '1', 'yesno', 20, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('guestbooksmilies', 'guestbookwebpage', '1', '1', 'yesno', 30, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('webpageallowvbcode', 'guestbookwebpage', '1', '1', 'yesno', 40, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('webpageallowhtml', 'guestbookwebpage', '1', '0', 'yesno', 50, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('webpagesmilies', 'guestbookwebpage', '1', '1', 'yesno', 60, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('webpagevbcodeorhtml', 'guestbookwebpage', 'vbcode', '1', '<select name=\\"setting[$setting[varname]]\\" tabindex=\\"1\\" class=\\"bginput\\">\n<option value=\\"vbcode\\" " . iif($setting[\'value\']==\'vbcode\',\'selected="selected"\') . ">$vbphrase[wg_vbcode]</option>\n<option value=\\"html\\" " . iif($setting[\'value\']==\'html\',\'selected="selected"\') . ">$vbphrase[wg_html]</option>\n</select>', 70, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('allowedhtmltags', 'guestbookwebpage', '<hr><a><br><b><h1><h2><h3><h4><i><img><li><ol><p><strong><table><tr><td><th><u><ul><font><b><div><center>', '<a><br><b><h1><h2><h3><h4><i><img><li><ol><p><strong><table><tr><td><th><u><ul><font><b><div><center>', 'textarea', 80, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('webpageadvanced', 'guestbookwebpage', '1', '1', 'yesno', 90, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('gb_notification', 'guestbookwebpage', 'pm', 'pm', '<select name=\\"setting[$setting[varname]]\\" tabindex=\\"1\\" class=\\"bginput\\">\n<option value=\\"no\\" " . iif($setting[\'value\']==\'no\',\'selected="selected"\') . ">$vbphrase[wg_no]</option>\n<option value=\\"pm\\" " . iif($setting[\'value\']==\'pm\',\'selected="selected"\') . ">$vbphrase[wg_sendpm]</option>\n<option value=\\"email\\" " . iif($setting[\'value\']==\'email\',\'selected="selected"\') . ">$vbphrase[wg_sendemail]</option>\n</select>', 100, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('gb_showavatar', 'guestbookwebpage', '1', '0', 'yesno', 110, 0, 1);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('gb_avatarheight', 'guestbookwebpage', '50', '50', '<input name=\\"setting[gb_avatarheight]\\" size=1 class=\\"bginput\\" value=\\"".$setting[\'value\']."\\">', 120, 0, 1);

Working with 3.0.7

Lizard King 02-20-2005 07:54 AM

Quote:

Originally Posted by Oreamnos
do i have to re-install (run insert.sql) this and if so, will the previous data(webapges and guestbooks) remain?

If you didn't delete all guesbook and webpages data from your database then you dont have to re run the install.sql. Just make all the file edits and then run the queries I paste the previous post save any guestbook phrase , check your usergroup permissions and save them. After that you shall have the mod working again.

Oreamnos 02-20-2005 07:55 AM

cool, thanks! up and running again in 3.0.7 :)

animate 02-20-2005 01:36 PM

any know when comes new version with installer?

Creed 02-21-2005 03:38 AM

Is there anyway that I could make the webpage show up standalone? Such as the profile having a link to their webpage, then webpage.php?memberid=x would display their webpage and guestbook? That would make it much cleaner on their profile, then members could use the webpage as their "homepage" on the web :) If it hasn't been done yet, I'm sure I could do it. It would just take me a while, no its not that I'm lazy its just that I'm checking to see if its been done yet. ;)

Lizard King 02-21-2005 04:39 AM

Quote:

Originally Posted by Creed
Is there anyway that I could make the webpage show up standalone? Such as the profile having a link to their webpage, then webpage.php?memberid=x would display their webpage and guestbook? That would make it much cleaner on their profile, then members could use the webpage as their "homepage" on the web :) If it hasn't been done yet, I'm sure I could do it. It would just take me a while, no its not that I'm lazy its just that I'm checking to see if its been done yet. ;)

That is something I am looking for if you will code it I may want to make some of the tests ;)

Snow 02-21-2005 04:56 AM

Quote:

Originally Posted by shortbus1662
ostatesp_forum is the name of my database.

tables in that database are user_guestbook and user_webpage

all the other ones are vb_

that's all I know. I know nothing :disappointed:

Okay........then your table prefix is vb. It looks like the first part of theinstall.sql worked fine (create table user_guestbook and user_webpage)as they are present, so now you just need to insert the phrases andsettings. Try running the following query:

Code:

INSERT INTO `vb_phrase` (`languageid`, `varname`, `text`,`phrasetypeid`) VALUES (-1, 'setting_allowguestbook_desc', 'Allow usersto have a Guestbook?', 5000);
If it works without giving you anerror run the rest of the remaining queries (which I've attached tothis post).

shortbus1662 02-21-2005 05:36 AM

You ROCK Snow

Creed 02-21-2005 05:49 AM

I've got it pretty much the way I like it, haven't found any problems yet.

I've attached it with instructions to this post :)

Lizard King 02-21-2005 05:51 AM

Quote:

Originally Posted by Creed
I've got it pretty much the way I like it, haven't found any problems yet.

I've attached it with instructions to this post :)

You are so quick :)

Creed 02-21-2005 06:14 AM

Quote:

Originally Posted by Lizard King
You are so quick :)

Let me know if you have any problems, or ideas for it.

Snow 02-21-2005 06:21 AM

Quote:

Originally Posted by shortbus1662
You ROCK Snow

Glad I could help :smoke:

Creed 02-21-2005 06:33 AM

I've made an additional file edit, so that the new webpages.php shows up on the Who's Online section of the forums :) Its been added to the zip and updated in my previous post.

shortbus1662 02-21-2005 08:47 PM

MAN, I STILL can't get this to work. I followed the directions after finally getting the sql command done, but it doesn't show up anywhere.

In the options section, I didn't find any "update" button or whatever, but I clicked "edit" and saved.

There is no webpage/guestbook permissions section in the user permissions thing...

I have NO IDEA what I've done wrong. I've gone all the way to step one several times and worked through it, but I can't seem to figure it out...

Snow 02-22-2005 04:53 AM

Quote:

Originally Posted by shortbus1662
MAN, I STILL can't get this to work. I followed thedirections after finally getting the sql command done, but it doesn'tshow up anywhere.

In the options section, I didn't find any "update" button or whatever,but I clicked "edit" and saved.

No there isn't any "update"button, I think Swedie meant, click on edit and save to update. You have to do this with most hacks/mods for them to work.

Quote:

There is no webpage/guestbook permissions section in the user permissions thing...

I have NO IDEA what I've done wrong. I've gone all the way to step oneseveral times and worked through it, but I can't seem to figure itout...
I've attached a screenshot of where the webpage/guestbookpermissions shouldbe. So basically, this is the page Usergroups > Usergroupsmanager > Edit usergroup [group you wish to edit e.g.administrators]. Scroll down a bit till you find GeneralPermissions. If you see some blank rows, you haven't "updated"the phrases (!!IMPORTANT PART!! #1 from the installationinstructions). If there are no blank rows and nowebpage/guestbook permissions there at all, then go back and check thatyou edited the admincp/usergroup.php correctly. If you editedusergroup.php you should at least be getting the blank rows.

Lizard King 02-22-2005 06:23 AM

Quote:

Originally Posted by Creed
I've made an additional file edit, so that the new webpages.php shows up on the Who's Online section of the forums :) Its been added to the zip and updated in my previous post.

I'll give it a try within the end of the week. I am right now having a problem with my hosting company and before the edit I must find a good dedicated machine.

shortbus1662 02-23-2005 04:57 AM

I checked that file and reuploaded it, and still it doens't show up.

I'm thinking, "MAN, it can't be THAT freaking hard" but I STILL can't get this.

I HATE SUCKING AT THIS!

Creed 02-23-2005 02:21 PM

Quote:

Originally Posted by Lizard King
I'll give it a try within the end of the week. I am right now having a problem with my hosting company and before the edit I must find a good dedicated machine.


Sorry to hear that, good luck!

Snow 02-23-2005 04:37 PM

Quote:

Originally Posted by shortbus1662
I checked that file and reuploaded it, and still it doens't show up.

I'm thinking, "MAN, it can't be THAT freaking hard" but I STILL can't get this.

I HATE SUCKING AT THIS!

If you've followed all the stepscorrectly it should be working. I've installed this hacksuccesfully on version 3.0.3, 3.0.5 and 3.0.6 (what version are youusing btw?). I'm running out of ideas as to what might have gone wrong.:( I don't know if anyone else can help.

cdoyle 02-23-2005 09:04 PM

I'm just curious have all the bugs been worked out now?
I know somebody brought up that the admins can't edit guestbook or the webpages? Has this been fixed?

I really want to install this (and my members do too) but I want to make sure all the bugs have been worked out.

Thanks

DrkFusion 02-23-2005 10:10 PM

Nice idea, but the coding must be optimized -

utw-Mephisto 02-24-2005 03:54 AM

Nice idea, but actually too many non-working threads ..

Whats the status, will be there an update etc. ?

Lizard King 02-24-2005 06:49 AM

Quote:

Originally Posted by utw-Mephisto
Nice idea, but actually too many non-working threads ..

Whats the status, will be there an update etc. ?

If you follow the instrucions it is pretty easy to get this mod working.

T3MEDIA 02-25-2005 03:10 AM

Quote:

Originally Posted by cdoyle
I'm just curious have all the bugs been worked out now?
I know somebody brought up that the admins can't edit guestbook or the webpages? Has this been fixed?

I really want to install this (and my members do too) but I want to make sure all the bugs have been worked out.

Thanks

nope. some people say this isnt a bug. TRUST me its there...
if that is a issue dont install.

T3MEDIA 02-25-2005 03:14 AM

Quote:

Originally Posted by Creed
Let me know if you have any problems, or ideas for it.

Can I BEG you to have access so the admin can edit users pages.
and that fix for the undeleteable guestbook? I BEG OF YOU.
has something to do with secondary usergroups and or reputations.... new users I can delte... older no go.

Creed 02-25-2005 06:16 AM

Heh, I don't know about that, but I wouldn't mind giving it a shot ;)


All times are GMT. The time now is 05:01 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.02299 seconds
  • Memory Usage 1,857KB
  • 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_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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