PDA

View Full Version : User profile generic link


HermetiC
06-28-2010, 08:12 PM
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 1277815351 at 1277815351 ---------------

Could I use somthing like this??


<?
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.