vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   User profile generic link (https://vborg.vbsupport.ru/showthread.php?t=245467)

HermetiC 06-28-2010 08:12 PM

User profile generic link
 
Hi all
Please, I need some help with the user profile links.
Im intalling CommetChat in my 3.8.5 vBulletin Board and im trying to set some links in the bar like the User Profile link.
I have instaled vBSEO in my forums and the standar user profile link is http://www.acuavida.com/forum/members/username.html

So I need the way to do a generic user profile link for whatever user logged in.
The problem is that the CometChat buttons configuration are in a .js file located in the folder /forum/cometchat/js/cometchat.js.

Note: My knowledge of php and javascript programming are low, so I appreciate any help
:erm::erm:
Could you help me please!
Thanks a lot!

BirdOPrey5 06-29-2010 04:48 AM

You can still use the original link, for example:
http://www.acuavida.com/forum/member.php?u=1
but nothing will make it 'generic' - you'll need the userid in the original format.

ChopSuey 06-29-2010 05:31 AM

If you need help with CometChat please visit the CometChat official Site.

HermetiC 06-29-2010 10:43 AM

Thank you I'll use http://www.acuavida.com/forum/member.php?u=1 link, but like you say, I need to capture the userid. How can I do that?

--------------- Added [DATE]1277815351[/DATE] at [TIME]1277815351[/TIME] ---------------

Could I use somthing like this??

PHP Code:

<?
require_once('./global.php');
<a href="http://www.acuavida.com/forum/member.php?u=" .$vbulletin->userinfo[userid]."">
?>


BirdOPrey5 06-29-2010 04:10 PM

I really don't know, it looks OK but I'm not sure where you intend to use it, you can't use php in a template for example, you have to make a plugin to do that. I know it sux but the best place to ask these questions is probably the official support site- I got rid of CC for issues like this.

ChopSuey 06-29-2010 11:39 PM

Have a search of

Conditionals - Articles - Titles Only

Look at vB3 conditionals and you'll get what you want.


All times are GMT. The time now is 01:00 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.01099 seconds
  • Memory Usage 1,720KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete