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)

Insert Username 03-25-2006 07:15 PM

arcadian_girl, you need to go into the admin CP, then the Styles section. You have to edit the style templates directly. The links should be in either the 'header' or 'navbar' templates.

arcadian_girl 03-25-2006 07:43 PM

i know, i get that part, i'm saying where exactly in the navbar code do i put the link?

arcadian_girl 03-25-2006 11:15 PM

also, is there a way to add a link to someone's user page either in the postbit or in their profile page? ideally, you'd be reading a post, click on the person's username, and in the drop down menu, it would say "go to this persons userpage".

mvannote 03-26-2006 12:41 AM

i love this hack, but am having trouble with it. none of my pages are saving. i have checked my permissions and all are fine under the usergroups... furthermore, my shouts do not save either. using vb. 3.5.4 and a downloaded style, just wondering what i should check

thanks in advance

UManiac 03-31-2006 12:43 AM

I keep getting "Invalid File Specified" when I try to import the product. I found another xml file in the thread and although it does install it does not seem to be working - I don;t see where in user group to change permissions...

Any help would be appreciated.

amykhar 03-31-2006 12:48 AM

Are you trying to import it as a plugin or a product?

UManiac 03-31-2006 12:57 AM

Quote:

Originally Posted by amykhar
Are you trying to import it as a plugin or a product?

I've tried both...

demios 03-31-2006 01:04 PM

I am using this with vb 3.5.4 and the message editor does not appear on the page when people try to edit their page.

Any ideas?

taherk 04-03-2006 07:40 PM

How do I make this a paid feature... Meaning only if user pays, he can create userpages, else he can view userpages

amykhar 04-03-2006 07:46 PM

Create a usergroup that users are promoted to if they purchase a paid subscription. Set the usergroup permissions so that only paid users can have or edit a userpage. My forum is set up this way.

TheFocusElf 04-04-2006 05:00 PM

Awesome hack Amy. I think the above user should be required to donate to you if your pages are part of the reason he makes cash for his forums.

I am not using your hack, but used it on another board I ran once -- offering it for free.

arob42 04-08-2006 05:52 AM

As admin, I would like to add a user page for a user. Is that possible?

slank 04-10-2006 12:25 PM

nice idea...will give it a shot

amykhar 04-10-2006 01:07 PM

Quote:

Originally Posted by arob42
As admin, I would like to add a user page for a user. Is that possible?

Not through the interface, but you could easily do it with a query. To me 'personal page' means it's something created by the user to express their personality. And, as it's no more difficult to use than posting a message in a thread, I don't really see a need to create an interface for somebody else to create the page.

welo 04-10-2006 02:22 PM

They could always login as user and create the page that way.

arob42 04-11-2006 04:49 AM

It appears that the webpage author can vote multiple times for his/her own webpage, while others can vote only once. Is this how it works or did I miss an edit somewhere. I'd like to prevent the author from doing this.

kellee88 04-17-2006 12:07 AM

Hi Amy, We are using your custom page on our website. One of my users asked me to delete her page. I am Admin there and was not able to delete the page. I received a message that I didn't have permission to do that. I checked the permissions in the AdminCP and there was nothing specifially for deleting a page.

Any suggestions?

Chris Lang 04-17-2006 12:23 AM

Kellee, read the Updates (via link on the first post of this topic). There's a complete explanation and fix there.

rinkrat 04-20-2006 02:44 AM

It's a shame that I can't uninstall this hack without getting mysql errors. It's always nice to be able to remove a hack if you change your mind.

dwbro1 04-20-2006 06:12 PM

I just started a new board and installed this hack. One thing I notice right away (3.5.4) is that when a new user signs up it automatically creates a page for them or atleast adds them to the list of users with pages, even if they have not done it themselves. Anyway, I would prefer it Not to do this as I hate to have every one on the board listed as having a page when they really don't.

demios 04-22-2006 10:04 AM

I noticed that the userpage list was filled with empty pages. I changed two lines so that it only lists pages that have some pagedata.

first change line 530 of userpage.php

Original code
PHP Code:

FROM " . TABLE_PREFIX . "userpage 

Modified code ( the '' at the end it two ' symbols NOT a single " )
PHP Code:

FROM " . TABLE_PREFIX . "userpage WHERE pagedata <> '' 

second change line 584 of userpage.php

Original code
PHP Code:

$users $db->query_read("SELECT * FROM " TABLE_PREFIX "userpage ORDER BY username ASC LIMIT $limitlower,$perpage"); 

Modified code
PHP Code:

$users $db->query_read("SELECT * FROM " TABLE_PREFIX "userpage WHERE pagedata <> '' ORDER BY username ASC LIMIT $limitlower,$perpage"); 


dwbro1 04-22-2006 05:40 PM

These changes just gave me a blank page.. sorry..

demios 04-22-2006 07:57 PM

Quote:

Originally Posted by dwbro1
These changes just gave me a blank page.. sorry..

I have made the post easier to read now.

Cut and Paste the lines or just add the

WHERE pagedata <>''

sections

Insert Username 04-22-2006 08:38 PM

Excellent, demion! Fantastic change to the code. Keeps me from having to go through all the time and delete blank pages.

Keyser S?ze 04-23-2006 02:09 AM

i did everything it said to upgrade from 1.0.1 to this version, it seemed to go fine, yet in my list of products it still says im on ver 1.0.1

dwbro1 04-23-2006 02:23 AM

well not getting blank page anymore but still showing the other users in the list. Something else must be causing them to think there is info there. Here is link you can see.

http://thebluelodge.org/forums/userpage.php

Nachtfalke 04-23-2006 11:50 AM

Great Hack, I installed it without any trouble. I have a suggestion: Would it be possible to enhance the Hack that way, that I can use the Shoutbox feature as a personal guestbook? Since you used the datafield-type "longtext", the only thing that has to be changed is to show up the full and the quick editor. I am no coder, so I have no clue how to realize that. Any help is gladly apreciated!

demios 04-25-2006 12:20 PM

If anyone is having a problem with the rating popup this is because there is a ">" missing in the userpage template.

It is missing from a table tag which appears as <\table rather than <\table>.
It is just above "<if condition="$show['popups']">" if anyone wants to fix theirs.

demios 04-25-2006 12:34 PM

Quote:

Originally Posted by dwbro1
well not getting blank page anymore but still showing the other users in the list. Something else must be causing them to think there is info there. Here is link you can see.

http://thebluelodge.org/forums/userpage.php

Ok this needs you to modify three lines of code just adding the same bit:

On line 142 original code
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS t2 ON(t1.userid=t2.userid

Modified code
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS t2 ON(t1.userid=t2.useridWHERE pagedata <> '' 


On line 147 original code
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS t2 ON(t1.userid=t2.userid

Modified code
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS t2 ON(t1.userid=t2.useridWHERE pagedata <> '' 


On line 152 original code
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS t2 ON(t1.userid=t2.userid

Modified code
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS t2 ON(t1.userid=t2.useridWHERE pagedata <> '' 

You will notice that all the changes are identical, this is not a mistake.

All you are really doing is adding a WHERE command to the end of each of these rows:
PHP Code:

 WHERE pagedata <> '' 

So the database now only returns records WHERE pagedata is NOT EQUAL TO empty.

dwbro1 04-25-2006 01:32 PM

That did it Demios thanks a lot..

dwbro1 04-25-2006 01:36 PM

Quote:

Originally Posted by demios
If anyone is having a problem with the rating popup this is because there is a ">" missing in the userpage template.

It is missing from a table tag which appears as <\table rather than <\table>.
It is just above "<if condition="$show['popups']">" if anyone wants to fix theirs.

ah ha thought something did not look right with that section.. Nice catch..

demios 04-27-2006 02:57 PM

Quote:

Originally Posted by dwbro1
ah ha thought something did not look right with that section.. Nice catch..

I have just got to sort out the editor now as that does not work on 3.5.4

Insert Username 05-17-2006 05:03 PM

So tell me if you think this userpage script can be modified to do what I'm looking for.

Right now, you have a large text area for input. How possible would it be to modify it to have multiple (unlimited) custom fields, created by the admin, and then customize how they show up on the userpage.

Anyone have an idea how to do that?

FeralTitan 05-22-2006 03:46 PM

Amykhar, If you have the time have a look at this page...
http://www.treqna.com/forum/userpage...=main&userid=1

Any idea why there is so much space before the personal page area starts - I used HTML.

Great hack, thanks :)

cdoyle 05-22-2006 09:00 PM

Are you using tables?

I had this problem when I tried this hack on my test forum. I finally gave up, I was hoping it was fixed by now..

oninuva 05-27-2006 01:46 AM

grats on MoTm

doggy1 05-28-2006 03:17 PM

Excellent hack and thank you very much for sharing. I have two questions though.

1. It does not appear that Admins/Moderators can delete member pages. When trying to delete one a no permission message comes up. All the settings for these user groups are set to yes for moderating pages.

2. The SAVE button is way down on the right side of the page. Is there a way to center it?

Thanks again! :)

amykhar 05-28-2006 03:40 PM

1. The fix for that is in the post that's linked in the very first post of the thread.
2. You can arrange things on the templates however you see fit.

Eq4bits 05-29-2006 04:31 PM

I've installed this on my 3.5.4 'test' forum with no problem except for the 'report bad' thing not posting into the forum i set it to post to in the userpages.php file.
Also
Added the link to userpage from viewprofile, no problem
Added the link to the user pages list on the navbar, no problem

But, on my live board instead of having the link as described on the navbar would it be possible to change 'Memberlist' link on navbar to just 'Members' and turn it into a drop-down with the choice of 'Memberlist' link and 'Member/User Pages' link, similar to how the 'quick links' and 'usercp' dropdowns work. Or even add it to the Quick Links Drop-down.....but would prefer it under the 'Members' description above.

Reason being on my live board the navbar is already a bit crowded..UserCP/FAQ/Members List/Calendar/Chat Room/New Posts/Search/Quick Links it's getting a tad crowded and I really don't want to sqoosh things up or have to add another row, I think that would be too confusing for my users besides not looking all that great.

I know it will simply be a matter of editing the navbar accordingly, but I'm afraid of totally screwing it up. Any help would be appreciated :D

Eq4bits 05-31-2006 01:40 AM

n/m figured above out, works like a charm


All times are GMT. The time now is 04:04 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.02265 seconds
  • Memory Usage 1,841KB
  • 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
  • (11)bbcode_php_printable
  • (6)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