PDA

View Full Version : Replace all vbdrupal profiles with vb profiles?


myetalk
04-14-2006, 11:51 AM
Hey all,

Maybe somebody found out a way to take off all the vbdrupal user profile links and make them link to their vb profile.

I really want this as for me the drupal profile is really useless.

So like just basically modify the links in the submitted information to point out to their vb profile, i am sure this is easy to do but it is something in the code that I have no idea how to do...

Maybe tamarian can help with this?

myetalk
04-16-2006, 12:58 PM
Tamarian or sifu, can you help with this??

myetalk
04-18-2006, 11:21 AM
I just found the solution, was pretty easy, and I was like, OMG, why didn't I think of this before.

You need the pathauto module installed.

Go in your pathauto settings, then go to the bottom where you will see the user settings.

Just enter this: http://www.myetalk.com/forums/member.php?u=[uid]

Then it will automatically take for all pages, this link so it will go to their vb profile instead of the drupal one. I still yet have to figure out how to do this for comments :)

sifuhall
04-18-2006, 11:50 AM
What a great idea!

Gman
07-20-2006, 03:17 PM
Is there a way to do this but in reverse? I want to have a vb profile field that stores the drupal profile link in it.

I would also like to link to the drupal blog.

Both have the common www.example.com/blog/userid and /user/userid form, but I can't figure out if vbulletin will let me append the userid variable to the end of a link like drupal can.

Thanks for the help.

myetalk
07-20-2006, 05:49 PM
Is there a way to do this but in reverse? I want to have a vb profile field that stores the drupal profile link in it.

I would also like to link to the drupal blog.

Both have the common www.example.com/blog/userid and /user/userid form, but I can't figure out if vbulletin will let me append the userid variable to the end of a link like drupal can.

Thanks for the help.
Yes, just use the $userinfo[userid] or $bbuserinfo[userid] depending on which templates you are giving this variable.

For now, I am using a redirect as my forums are on a different subdomain and I cannot link to them... :)

antiblank
07-21-2006, 03:11 AM
Actually linking back is pretty simple.

When you installed vBDrupal there was part of the setup that told you to add a hidden profile field called Blogs essentially.

Now open up MEMBERINFO template.

Find:

<tr class="tcat">
<td><strong>User Information</td> </font></strong>
</tr>
<tr class="alt2">
<td valign="top"></td>
</tr>


Below add:

<tr>
<td class="alt2"><div class="smallfont"><a href="$vboptions[drupalurl]/blog/$post[userid]"><phrase 1="$post[username]">$vbphrase[view_user_blog]</phrase><div></td>
</tr>

myetalk
07-21-2006, 09:59 AM
Actually linking back is pretty simple.

When you installed vBDrupal there was part of the setup that told you to add a hidden profile field called Blogs essentially.

Now open up MEMBERINFO template.

Find:

<tr class="tcat">
<td><strong>User Information</td> </font></strong>
</tr>
<tr class="alt2">
<td valign="top"></td>
</tr>


Below add:

<tr>
<td class="alt2"><div class="smallfont"><a href="$vboptions[drupalurl]/blog/$post[userid]"><phrase 1="$post[username]">$vbphrase[view_user_blog]</phrase><div></td>
</tr>
<tr>

What he said makes it easier ;)

Gman
07-22-2006, 07:40 PM
Hey thanks for the help antiblank. That was exactly what I needed.

zendiver
07-24-2006, 08:53 PM
Is this still possible for NG BETA 3

Gman
07-25-2006, 09:24 AM
It should be, since this is a vbulletin method, which is not changed at all by vbdrupal.

hex1848
08-09-2006, 12:24 AM
I just found the solution, was pretty easy, and I was like, OMG, why didn't I think of this before.

You need the pathauto module installed.

Go in your pathauto settings, then go to the bottom where you will see the user settings.

Just enter this: http://www.myetalk.com/forums/member.php?u=[uid]

Then it will automatically take for all pages, this link so it will go to their vb profile instead of the drupal one. I still yet have to figure out how to do this for comments :)

Has anyone tried this using 4.7.3 RC3? I gave it a shot, did the Batch update and the urls showed up after the http://www.site.com/blog so it looked like http://www.site.com/blog/httpwww.site.com/member.php?u=

Am I missing another setting somewhere? Or is the 4.7 pathauto different?

garg
08-27-2006, 03:17 PM
Doesn't work for me with 4.7 either :(

It just goes to drupal profile with URL:
http://domain.com/?q=http%3A/www.domain.com/home/member.php%3Fu%3D1