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)

Skyline_GT 11-26-2005 12:08 AM

Quote:

Originally Posted by waza
k, people here it is, run uninstaller if already installed, overwrite/install product, overwrite userpage.php & bitfield_userpages.xml and rebuild bitfields.

Some enhancements:
Rate userpages (once per user) + show rate in list page
Index page with most views, top rated & last updated userpages
Error message if a userpage doesn't exist.

grz,
seba

EDIT: ATTACH BACK ONLINE

IT doesn't work.. I still can't see the usergroup permission thing..

waza 11-26-2005 08:34 AM

Quote:

Originally Posted by Skyline_GT
IT doesn't work.. I still can't see the usergroup permission thing..

Hmm, I did a little edit, and I did a fresh install on a clean board and a upgrade and they both worked.
So delete the product and install the new one.
make sure you have overwritten bitfield_userpages.xml & userpage.php
rebuild bitfields
It must work if you do all these steps

Boofo 11-26-2005 12:07 PM

Quote:

Originally Posted by waza
Hmm, I did a little edit, and I did a fresh install on a clean board and a upgrade and they both worked.
So delete the product and install the new one.
make sure you have overwritten bitfield_userpages.xml & userpage.php
rebuild bitfields
It must work if you do all these steps

Do I need to upgrade from the version I downloaded in the link in your PM? ;)

Watson 11-26-2005 04:29 PM

heh, removed the whole thing, then tried a completely fresh install. Still nothing :(

[edit]Scrap that, seem to have sorted it now :)

Thanks for this update :)

EasyTarget 11-26-2005 05:19 PM

hey waza, can you provide some code that will make it so if someone has a userpage and you click on their name in a post that you'll have the option to view/visit their page? Also in their profile if its not already there? thanks.

waza 11-26-2005 06:21 PM

Quote:

Originally Posted by Boofo
Do I need to upgrade from the version I downloaded in the link in your PM? ;)

I don't know what version you downloaded, it was in the same post.
If everything works you shouldn't upgrade

waza 11-26-2005 06:30 PM

Quote:

Originally Posted by EasyTarget
hey waza, can you provide some code that will make it so if someone has a userpage and you click on their name in a post that you'll have the option to view/visit their page? Also in their profile if its not already there? thanks.

Hey,
Do the following (not tested, but it should work):
make a new plug-in in member_complete:
give it a name and add this code to it:
PHP Code:

$hasuserpageresult=$db->query_read("SELECT id FROM ".TABLE_PREFIX."userpages WHERE userid=".$userinfo['userid']."");
$hasuserpage=$db->num_rows($hasuserpageresult); 

Then add somewhere in your MEMBERINFO template:
HTML Code:

<if condition="$hasuserpage">
<a href="userpage.php?u=$userinfo[userid]">Visit $userinfo[username] 's userpage</a>
</if>

grz

EasyTarget 11-27-2005 05:30 AM

thanks, I'll give that a try.

Snoop-It 11-27-2005 03:55 PM

OR do a simple way...

<td class="alt2"><div class="smallfont" align="left"><a href="userpage.php?do=main&userid=$userinfo[userid]">View My Personal Webpage</a></div></td>

Thats what i chose to do, and it works fine! It automatically links any one who has chosen to create a userpage thing...

Example - check my profile.. www.dholaholic.com/forum/jazz :)

Tradjick 11-27-2005 06:23 PM

waza, i just get the tables "userpage" and "usershout" removed. The others remain. Could you update you script, so that it makes a "hard"-install, please?


All times are GMT. The time now is 11:10 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.01871 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_html_printable
  • (1)bbcode_php_printable
  • (5)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