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)

waza 11-27-2005 06:36 PM

Quote:

Originally Posted by dholaholic
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...

Uhu but it also shows it for people who don't have a userpage...

@tradjick: I don't get you, can you say more specific what you want to do?

Tradjick 11-27-2005 07:14 PM

Quote:

Originally Posted by waza
@tradjick: I don't get you, can you say more specific what you want to do?

I?m trying to delete those tables, so that i can install the product. Cause this is the error that i get otherwise:

Database error in vBulletin 3.5.1:

Invalid SQL:
CREATE TABLE vb3_userpage (
userid int(15) unsigned NOT NULL default '0',
pagedata text NOT NULL,

(and so on...)

amykhar 11-27-2005 07:16 PM

Here's a product you can use that won't wipe out your data.

Tradjick 11-27-2005 07:57 PM

Quote:

Originally Posted by amykhar
Here's a product you can use that won't wipe out your data.

Thank you, miss, much appreciated! It?s up and working now!

Tradjick 11-27-2005 08:11 PM

One question though: How can i get the navbar to show up under the header? In userpage_home template, i tried this, but it´s not working:

$stylevar[htmldoctype]
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$navbar
<tr>
<td class="tcat" colspan="3">Userpages Home OOO</td>
</tr>
<tr>
<td class="thead" width="5%">

Moncal 11-27-2005 08:25 PM

Uhm...does the new product create the database tables?

http://www.secondwar.net/member.php?u=1

amykhar 11-27-2005 10:12 PM

Moncal, the one in the base directory does. The one in the upgrade directory does not. And, I don't see the relevance of the link you posted to a profile page? This mod doesn't touch profile pages.

Anarchy 11-27-2005 10:14 PM

Quote:

Originally Posted by waza
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

How do i add a plugin unde memberr_complete. can't find that anywhere...

Anarchy 11-27-2005 10:18 PM

Can I request the ability for the members who post shouts to be able to edit their own shouts, I only installed this plugin last night and already got two people asking how they can edit their own shouts they made to other people.

Anarchy 11-27-2005 10:33 PM

Also limiting the votes on someones userpage to once or once per month or something.


All times are GMT. The time now is 04:06 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.02252 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)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