Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 3 of 3

Thread: Langtitle not parsed

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default Langtitle not parsed

    I have a custom modification that shows recent user posts in the user cp based on these two queries:

    $getposts = $db->query_read("SELECT distinct b.threadid FROM ". TABLE_PREFIX . "post a, ". TABLE_PREFIX . "thread b WHERE a.userid = " . $vbulletin->userinfo['userid'] . " AND b.visible = 1 AND a.threadid = b.threadid ORDER BY a.postid DESC LIMIT 5");

    Then based off of that query's thread id,
    $getthreadid = $db->query_read("SELECT * FROM ". TABLE_PREFIX . "thread WHERE threadid = $tid");

    When we print this thread's title from the database, the langtitle tag is not parsed. Is there a function I can require + invoke in the plugin on the title in order to parse it?

  2. #2
    MichaƂ Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Which vBET version are you using? Last release have global langtitle parsing functionality.

  3. #3
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Latest version, 3.3.3, which is why I was puzzled.

    I figured it out, however. Added this to my plugin:

    PHP Code:
    if (strpos($rpthread['title'], '[/langtitle]')) {
    require_once(
    DIR'/includes/vbenterprisetranslator_functions_bbcode.php');
    $rpthread['title'] = vbet_parseTitle($rpthread['title']);


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •