This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Storyteller and vbulletin, comment authors


avatar
jfranco 0
From: -
Storyteller and vbulletin, comment authors

Hi Philipp,

Quick question. I'm using vbulletin integration with the news comments, is there any way we can link to the author's member pages or getting their user ID's for building such a link?

This is how an individual news story looks like:
 http://www.techspot.com/news/27425-3way-sli-here-in-november.html

So in the first comment: " Posted by icye on October 11, 2007 at 4:08 PM" I would like to link to icye's vb profile page (once again the member ID would suffice).

Thank you.

Julio

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Storyteller and vbulletin, comment authors
avatar
OP 0
From: -
Storyteller and vbulletin, comment authors

Thanks for the tip Philipp, it's great that you keep supporting your CMS like this. No wonder I keep waiting for 2.0 and don't move anywhere else Winking Face
1 Re: Storyteller and vbulletin, comment authors
avatar
Administrator
1340
From: Vienna, Austria
Storyteller and vbulletin, comment authors

You could add the following in the PHP part of the comments template:

BBConnect(); 

$query = mysql_query("SELECT * FROM user WHERE username = '$insert[comment_author]'");
$vbdata = mysql_fetch_array($query);
dbconnect();

and then use this link in the HTML part:

<a href="https://www.contentteller.com/vb/member.php?u=$vbdata[userid]">

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.