vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Give Your Users a Custom Page on Your Site (https://vborg.vbsupport.ru/showthread.php?t=91903)

Sovereign 07-21-2005 01:02 PM

Oh and one more thing: the installer script is full of duplicate phrases. I don't know why they are there as they cause duplicate key names etc. Like:
Code:


$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', -1, 'kill_userpage', 'Delete This User\'s Page',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'kill_userpage', 'Delete This User\'s Page',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', -1, 'shoutbox_archive', 'Shoutbox Archive',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'shoutbox_archive', 'Shoutbox Archive',1 ,'vbulletin')");         
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1,'page_reported', 'Page Reported', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'page_reported','Page Reported', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'shouts_deleted','Shouts Deleted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'shouts_deleted','Shouts Deleted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'shout_posted','Shout Posted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'shout_posted','Shout Posted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'page_views','Page Views', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'page_views','Page Views', 1, 'vbulletin')");

Every one is duplicated. I have to reinstall cause the upgrade did not work. So for my own sanity I am rewriting the queries in the install script so that I can run them. In addition, the phrase deletion queries in the installer are incomplete, they leave phrases behind!

amykhar 07-21-2005 01:51 PM

ok hold up a bit. Let me fix the upgrade script errors and move on to the other problems.

amykhar 07-21-2005 01:59 PM

Sovereign, the phrases are duplicated for a reason. One is the default language. One is English. They will run as written.

amykhar 07-21-2005 02:01 PM

Quote:

Originally Posted by john1744
I do not see an option in the Usergroup manager to allow access to the page. When I try to manually access the page: http://www.yoursite.com/forum/userpage.php?userid=1

then it gives me the old, "You do not have permission to access this page" error.

There is no access in the usergroup manager to the pages. There will not be because that would require code mods because there are no hooks in the admincp.

Put a link somewhere on your site to the list of personal pages. Where you put the link to the list is up to you.

amykhar 07-21-2005 02:20 PM

Quote:

Originally Posted by cecdah
I was about to ask the same. I cannot edit my personal page after creating it, get a databaseerror. The link points to userpage.php?do=create, which causes a DB error if you already have a userpage. I cannot access my userpage after creating it because there are no link to the personal page exept for this. Furthermore, how to access other members userpages?

I fixed the usercp link so that if you have a page, it shows the edit link. If you don't have a page, it shows the create link.

I fixed the upgrade script and updated the install and upgrade instructions as well.

If you have already installed last night's version, all you need to do is re-import the plugin and make the usercpshell template edit again.

Later today, I will put a wrapper around the query so that if you have already created the page, it won't try to do it again. That will stop that one database error.

john1744 07-21-2005 03:15 PM

Hmm, I must not understand, I cannot access any Userpages, or the list of pages, as it gives me an error that I the admin cannot access the page due to insufficient privelages.

*Goes to install update*

amykhar 07-21-2005 03:26 PM

NO! If you have done a fresh install, don't try to install the update. Hold on a minute and let's try to figure out what you are missing.

john1744 07-21-2005 03:29 PM

haha ok Amy.

john1744 07-21-2005 03:30 PM

I'm really not sure what the deal could be, as it seems the features are all there, and it was a very simple install, I just am not able to access these features.

amykhar 07-21-2005 03:31 PM

Send me a link to your site please. I hate trying to debug in the dark. But, if I had to guess, I'd say you didn't update the bitfields. That would make the usergroup permissions not stick.


All times are GMT. The time now is 11:58 PM.

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.04660 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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