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 12-15-2005 12:42 PM

@djinth, You can add them as custom user fields and then those show up in members profile, if you also want to show them in userpage, you'll have to add something like:
$userinfo[fieldcustomfieldid] where customfield id is the id of the custom field (like $userinfo[field30]
And then you plase those in the userpage template.

@pharkas: We are aware of that problem. Only some people have it and we don't really know how to fix it right now, as we don't have the problem, srry.

grz,
seba

nintendo 12-15-2005 12:55 PM

How do you keep the header/footer from showing up twice when you try to delete a page, and then how do you delete the page?

MissKalunji 12-15-2005 02:29 PM

Hey i need to know what condition would i have to put in the postbit

to show when a user has a userpage

<if ......?

Thanks

waza 12-16-2005 10:58 AM

@MissKulanji: i'm afraid this isn't possible just with a template condition at this time.

MissKalunji 12-16-2005 12:36 PM

Quote:

Originally Posted by waza
@MissKulanji: i'm afraid this isn't possible just with a template condition at this time.

what would i need then?

waza 12-16-2005 01:32 PM

I think the only way you can do it for now is add a plug-in that checks per post if the user has a userpage or not.
But this would add a query per post per user!
I also don't know right now where to put the plug-in.
But it should look like:

$hasuserpage=$db->query_read("SELECT id FROM ".TABLE_PREFIX."userpage WHERE userid='".$userinfo['userpage']."'");
if($db->num_rows($hasuserpage)){
$hasuserpage=1;
}else{
$hasuserpage=0;
}

And then add in postbit template:
<if condition="hasuserpage">
<a href="userpage.php?u=$userinfo[userid]">Visit's $userinfo['username']'s userpage</a>
</if>

But again, I don't think this is a good way to do it.

joseduddy 12-19-2005 10:28 AM

I would like to get this running on my board VB 3.5.2
http://www.dollchatter.com

Downloaded the zip............tryed everything!!!!!

Went through all code!!!!

It will not run on 3.5.2

Usergroup mgr. not even showing options, even after adding phrases.


Posted a message on 8 different forums in regards to this and no one will help me....

Jose Duddy
http://www.joseduddy.com

thanks in advance

MissKalunji 12-19-2005 11:04 AM

Quote:

Originally Posted by waza
I think the only way you can do it for now is add a plug-in that checks per post if the user has a userpage or not.
But this would add a query per post per user!
I also don't know right now where to put the plug-in.
But it should look like:

$hasuserpage=$db->query_read("SELECT id FROM ".TABLE_PREFIX."userpage WHERE userid='".$userinfo['userpage']."'");
if($db->num_rows($hasuserpage)){
$hasuserpage=1;
}else{
$hasuserpage=0;
}

And then add in postbit template:
<if condition="hasuserpage">
<a href="userpage.php?u=$userinfo[userid]">Visit's $userinfo['username']'s userpage</a>
</if>

But again, I don't think this is a good way to do it.

Ill try it thanks :)

MissKalunji 12-19-2005 11:05 AM

Quote:

Originally Posted by joseduddy
I would like to get this running on my board VB 3.5.2
http://www.dollchatter.com

Downloaded the zip............tryed everything!!!!!

Went through all code!!!!

It will not run on 3.5.2

Usergroup mgr. not even showing options, even after adding phrases.


Posted a message on 8 different forums in regards to this and no one will help me....

Jose Duddy
http://www.joseduddy.com

thanks in advance

Did you do everything in the read me file/install?

LoOnEyToOnZ 12-19-2005 11:24 AM

Hi any idea why my show threads page the content width is abit shrunk? Example here:
http://www.dota.sg/forums/showthread.php?t=45

Thanks


All times are GMT. The time now is 12:49 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.01703 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)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