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)

iceytdot 10-30-2005 05:33 AM

everything seems to work, except where permissions is the 4 options for this are BLANK, i enabled everything for me just 4 now.. but where can i find the phrases so i can install them manually?

Andyrew 10-30-2005 06:04 AM

Quote:

Originally Posted by iceytdot
everything seems to work, except where permissions is the 4 options for this are BLANK, i enabled everything for me just 4 now.. but where can i find the phrases so i can install them manually?

Go to your phrase manager and open any phrase then save it, that will sort out the text thats missing.

Koopa 10-30-2005 02:18 PM

Nice hack, thanks :)

PsiNyde 10-30-2005 02:59 PM

Quote:

Originally Posted by Andyrew
Go to your phrase manager and open any phrase then save it, that will sort out the text thats missing.


that didnt work for me, and i still cant see the phrases in editing the usergroup perms...

hitmanuk2k 11-01-2005 04:20 PM

User pages are just not showing. Hundreds of people have made them, but only the creators can see them, I think... or at least I can see mine but no one elses. All the permissions for each group are set correctly.

Bones_3DFC 11-01-2005 05:06 PM

In the above FAQ
Is that the full address?
I get the http 404 page and my usergroup userpage options won't stay at yes.
I replaced 'yoursite' with my site of course and my forum is at mysite.com/forum

*EDIT:
This works
Ohhhhhhhhhhhh :)
ok
This forum is chopping links
If anyone is as stupid as me
to rebuild bitfields
go to your domain /forum (the directory of your forum) /admincp/index.php?do=buildbitfields

bold 11-03-2005 04:39 AM

I can't get it to work with vb 3.5.1. No options show up in usergroups.

amykhar 11-03-2005 10:53 AM

Have you rebuilt your bitfields? The options still show up for me on my 3.5.1

bold 11-03-2005 12:54 PM

Quote:

Originally Posted by amykhar
Have you rebuilt your bitfields? The options still show up for me on my 3.5.1

yes i have. before and after upgrading to 3.5.1

CyberRanger 11-03-2005 02:11 PM

Quote:

Originally Posted by The Wise One
very cool add on. will be real useful for our users.

i am having a small problem when reporting a user page. as an admin...i can report any page and the report is posted in the forum i specify in userpages.php. my problem is...if any other usergroup reports a page, the report is posted but it is sent directly to the moderation queue....

Did you figure this out? I'm having the reported posts go to an admin folder that normal users can't see. The post show up as moderated but I don't really want that. Any ideas?

amykhar 11-03-2005 02:28 PM

I need to update that code and use the stuff that I have in the create new thread upon registration mod.

CyberRanger 11-03-2005 03:01 PM

Quote:

Originally Posted by westpointer
Did you figure this out? I'm having the reported posts go to an admin folder that normal users can't see. The post show up as moderated but I don't really want that. Any ideas?

Hmmm ... since build_new_post is called to build the new post, looking in functions_newpost.php we find a check for moderators:
PHP Code:

        $dataman->set('visible'0);
        
$post['visible'] = 0;
    }
    else
    {
        
$dataman->set('visible'1);
        
$post['visible'] = 1;
    } 

Unless the user is a moderator, the thread seems to go into moderation.

Here's a not so pretty solution, but it prevents the thread from being moderated:

in userpage.php FIND:
PHP Code:

build_new_post('thread'$foruminfo, array(), array(), $newpost$errors); 

REPLACE with:
PHP Code:

                 $db->query("   INSERT INTO " TABLE_PREFIX "thread(title, lastpost, forumid, open, replycount,
                                postusername, postuserid, lastposter, dateline, iconid, visible, attach)
                                VALUES
                                        ('"
.addslashes($newpost['title'])."', " TIMENOW ", $forumid,1, 0, '" addslashes($vbulletin->userinfo['username']) . "',
                                         "
.$vbulletin->userinfo['userid'].",'" addslashes($vbulletin->userinfo['username']) . "', " TIMENOW ", 0, 1,
                                         0)
                        "
);
                
$thread['threadid'] = $db->insert_id();
                
$db->query("
                        INSERT INTO " 
TABLE_PREFIX "post
                                (threadid, title, username, userid, dateline, pagetext, allowsmilie,
                                 showsignature, iconid, visible)
                        VALUES
                                (
$thread[threadid], '".addslashes($newpost['title'])."',
                                 '" 
addslashes($vbulletin->userinfo['username']) . "', ".$vbulletin->userinfo['userid'].", " TIMENOW ",
                                 '
$message', 1, 1,0, 1)
                "
);
                
$post['postid'] = $db->insert_id();
                
$db->query("
                                UPDATE " 
TABLE_PREFIX "thread
                                SET firstpostid = 
$post[postid]
                                WHERE threadid = 
$thread[threadid]
                        "
);
                
$db->query("
                                UPDATE " 
TABLE_PREFIX "forum
                                SET replycount = replycount +  1,
                                threadcount = threadcount + 1,
                                lastpost = " 
TIMENOW ",
                                lastposter = '" 
addslashes($vbulletin->userinfo['username']) . "',
                                lastthread = '"
.addslashes($newpost['title'])."',
                                lastthreadid = 
$thread[threadid]
                                WHERE forumid = 
$forumid
                        "
); 


The Wise One 11-03-2005 07:37 PM

Quote:

Originally Posted by westpointer
Did you figure this out? I'm having the reported posts go to an admin folder that normal users can't see. The post show up as moderated but I don't really want that. Any ideas?

no i sure havent. i saaw the suggested file edit a few posts before this one...but im trying to avoid any further file edits (added a couple of small ones to improve things personally).

for now, i just made my mods moderators of the forum i designated that the reports go to. hopefully amy will be able to provide a fix that does not involve editing stock vB files.

TJFweb 11-04-2005 03:57 AM

Quote:

Originally Posted by bold
I can't get it to work with vb 3.5.1. No options show up in usergroups.

Me neither. I upgraded to 3.5.1 and even after rebuilding bitfields (yes that xml file is still in includes/xml), I still don't get usergroup options for this mod.

On 3.5.0 I *did* get usergroup options but I don't think that other people could view each others' pages; only their own.

Parture 11-04-2005 11:27 AM

These user pages are driving me coocoo. I upgraded to 3.5.1 and reverted templates. It does not let you install installuserpages.php again, and creates a database error. It looks like a different error from when I tried to install it in 3.50. I would not be able to get back onto my forum if it wasn't for the product which I installed quickly after that.

It does let you reinstall installuserpage.php. So I reinstalled. But in Usergroups the 4 choices are blank. Resetting a phrase and doing the bitfields thing doesn't help. So I installed the product on page 27. That doesn't bring up the 4 choices either, just blanks. I can uninstall the product, but I am unable to uninstall installuserpage.php. I really don't understand this. All I know is I have tried every combination and nothing works. I would just like to have a userpage, but I can't get the 4 choice to show up in User Groups.

What do I do now?

waza 11-04-2005 02:14 PM

I found the bug in the installuserpage.php, fixed it and did a reinstall, but after reinstall, it still doesn't work, so we'll have to wait till a fix comes out.

CyberRanger 11-04-2005 03:08 PM

I'd like to enlarge the editing window used when a user is creating or editing a page. Can anyone point me to what I'd need to change?

Detomah 11-05-2005 03:59 AM

Quote:

Originally Posted by Parture
What do I do now?

Yup, i've pretty much gone through the exact same process and tried a few other things on top and no matter what I do, it won't show the usergroup options for me either. >.<

Baffled why this is happening to be honest. :confused:

waza 11-05-2005 10:34 AM

In the announcement of 351 they say:
usergroup permissions must be linked to a product.
But if i tought the usergroup permissions of the userpages where linked to product: vbulletin...

o1dirtydog 11-05-2005 10:36 AM

can't wait for this to get all the issues worked out. could possibly be one of the best mods in a long time.

Snoop-It 11-05-2005 06:14 PM

The options dont show up either on mine in Usergroup :S

Please could some one help me... i really need this hack working 100% on my forum.......................!!! :nervous:

Parture 11-06-2005 03:10 AM

Quote:

Originally Posted by lcryan
Thank you worked great!

I was able to use the xml product to install and unistall, but I am unable to get userpages to work at all. I don't see the Create User Page in the left panel of USERCP Shell, I am unable to get text next to the 4 choices in Usergroups.

I'll just wait for someone to figure this out.

tteal 11-06-2005 04:11 AM

Any support going on for this hack?

Nixpeiler 11-06-2005 04:48 AM

Quote:

but I am unable to uninstall installuserpage.php
this is a bug in installuserpage.php
in line 190 find this
Code:

$db->query("delete from ".TABLE_PREFIX."phrase where varname = 'last_updated'");
and remove to
Code:

$db->query("delete from ".TABLE_PREFIX."phrase where varname = 'lastupdated'");
thats work to you have no error by the reinstall

regards

stonyarc 11-06-2005 10:30 AM

Quote:

Originally Posted by waza
In the announcement of 351 they say:
usergroup permissions must be linked to a product.
But if i tought the usergroup permissions of the userpages where linked to product: vbulletin...

That might do the trick.

I currently removed this mod on 3.5.1 because of permission and usergroup issue.

Hope there will be an update soon because the users love it.

Snoop-It 11-06-2005 12:47 PM

i know how you feel lol im desprately waiting for the fix.. such an excellent mod!!

funinthesun 11-06-2005 02:18 PM

I've followed the instructions but the only thing I don't know how to do is when it says run installuserpage.php Call me dumb! :) When I import the userpage_plugin I get a big error that takes my whole forum offline, any ideas? :confused:

stonyarc 11-06-2005 02:26 PM

Quote:

Originally Posted by funinthesun
I've followed the instructions but the only thing I don't know how to do is when it says run installuserpage.php Call me dumb! :) When I import the userpage_plugin I get a big error that takes my whole forum offline, any ideas? :confused:


I think you need to take the plugins to non-active or remove till a fix for 3.5.1 is released.

There are several issues with the phrases in the installer to but those are already somewhere in this thread.

funinthesun 11-06-2005 05:14 PM

I'm not using 3.5.1, will I have to upgrade then? Do you know what it means when it says run installuserpage.php? Sorry, I'm having lots of dumbs moments recently! :D

Snoop-It 11-06-2005 05:41 PM

^^ well if it says run that file... run it then init? point your browser to that file..? have you installed it via the installation script found in the admin cp (if u uploaded it that is)??

funinthesun 11-06-2005 05:53 PM

Thanks! I have run the file now. Sorry, I said it was a dumb question but I didn't know how to run the file, now I know that you have to point you browser to it. It's easy when you know how but I was searching the admincp looking for a run button! Hehe lol. Thanks again. :D

Snoop-It 11-06-2005 06:09 PM

LOL yeah i made a silly mistake as well...

MissKalunji 11-06-2005 11:40 PM

or what you guys could do is


remove that code til a fix come sout

Quote:

// Find out if the user has permission to view user web pages If not, boot them.
if (!($permissions['userpagepermissions']& $vbulletin->bf_ugp_userpagepermissions['canview']))
{
print_no_permission();
}
it will remove permissions til the coder comes up :) with a fix

funinthesun 11-07-2005 08:44 AM

Ok, I think I've done everything correctly but nothing is showing up yet??

SB2002 11-07-2005 12:34 PM

ok, I've tried this and it gets the settings showing in usergroup manger. You must install the product on page 27 for this to work, then replace your bitfield_userpage.xml with the one attached here and then rebuild bitfields. It will then appear at the bottom of the usergroup and make it 3.5.1 compliant.

EDIT: I've attached the product again to save people from having to look for it credit for the product goes to cclaerhout

EDIT 2: Working in 3.5.1 clicky

Snoop-It 11-07-2005 07:49 PM

Yeah it works like a charm!! Thanks Man!!

Snoop-It 11-07-2005 08:09 PM

yo how can i get this on my profile page???

Keyser S?ze 11-07-2005 08:12 PM

sorry if this was asked, but is it planned to havee it per option to disable permission, per user, so u dont have to set up a new user group

also there should be an option to allow/not allow javascript, that can do alot of harm, and that should also be per user group

Nixpeiler 11-07-2005 08:23 PM

Quote:

EDIT 2: Working in 3.5.1
not exact only work for moderators + and nobody have access to
a href="userpage.php?do=edit"Edit Your Page
and nobody can delete sides

regards

JoshH 11-07-2005 09:05 PM

When i go to installuserpage.php, and attempt to install (for the first time.) I get this error after clicking procede to add the required phrases.

Database error in vBulletin 3.5.1:

Invalid SQL:
INSERT INTO phrase VALUES ('', -1, 'no_userpage_created', 'This user has not yet created a personal page',1 ,'vbulletin');

MySQL Error : Duplicate entry 'no_userpage_created--1-1' for key 2
Error Number : 1062
Date : Monday, November 7th 2005 @ 06:03:13 PM
Script : http://www.forumslive.net/forum/admi...lluserpage.php
Referrer : http://www.forumslive.net/forum/admi...lluserpage.php
IP Address : 65.80.184.225
Username : Josh
Classname : vb_database


All times are GMT. The time now is 06:27 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.04706 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_code_printable
  • (3)bbcode_php_printable
  • (16)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