Announcement

Collapse
No announcement yet.

Graphic instead of number of blogs in postbit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graphic instead of number of blogs in postbit

    Is it possible to have an image which will take users to a poster's blog from the postbit instead of the 'Blogs: 1'?
    Also, how can I disable the 'Blogs:1' in my postbit legacy as it does not fit in my website theme?
    Thanks.

  • #2
    You just need to edit the Postbit: Add link to blog plugin, change the entry text to your image.

    Comment


    • #3
      I changed it to this:
      Code:
      if ($post['entries'] > 0)
      {
       $template_hook['postbit_userinfo_right_after_posts'] .= <a href=\"blog.php?$session[sessionurl]u=$post[userid]\"><img src="http://www.readmyblog.gif"></a>;
       // just putting the HTML in the plugin for now
       $template_hook['postbit_user_popup'] .= "<tr><td class=\"vbmenu_option\"><a href=\"blog.php?$session[sessionurl]u=$post[userid]\">$vbphrase[view_blog]</a></td></tr>";
      }
      But it doesnt work. Any ideas?

      Comment


      • #4
        You need to have quotes (") around your code.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          Thanks. I changed it to
          Code:
          $template_hook['postbit_userinfo_right_after_posts'] .= "<a href=\"blog.php?$session[sessionurl]u=$post[userid]\"><img src="http://www.readmyblog.gif"></a>   ";
          But it still doesnt work.

          Comment


          • #6
            Can anyone tell me what I am doing wrong?

            Comment


            • #7
              Anybody?

              Comment


              • #8
                Originally posted by Wattie View Post
                I changed it to this:
                Code:
                if ($post['entries'] > 0)
                {
                 $template_hook['postbit_userinfo_right_after_posts'] .= <a href=\"blog.php?$session[sessionurl]u=$post[userid]\"><img src="http://www.readmyblog.gif"></a>;
                 // just putting the HTML in the plugin for now
                 $template_hook['postbit_user_popup'] .= "<tr><td class=\"vbmenu_option\"><a href=\"blog.php?$session[sessionurl]u=$post[userid]\">$vbphrase[view_blog]</a></td></tr>";
                }
                But it doesnt work. Any ideas?
                Where are you putting your code?

                Comment


                • #9
                  Originally posted by Zachery View Post
                  Where are you putting your code?
                  Im putting it in the product Postbit: Add link to blog

                  Comment


                  • #10
                    Can anyone help?

                    Comment


                    • #11
                      Put the default code back and make your changes to the blog_postbit_entries_link template.

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X