Results 1 to 4 of 4

Template Replacement Variables

This is a discussion on Template Replacement Variables within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; Hi everyone, I am considering buying this for one of my sites. Before I do I have a question about ...

  1. #1
    Junior Member
    Real Name
    Eric
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    19
    Liked
    0 times

    Template Replacement Variables

    Hi everyone, I am considering buying this for one of my sites. Before I do I have a question about some template variables. I have written in a little code from DIGG that passes off the title and URL of the post. Here is the code:

    Code:
    <!-- Digg -->
    <td class="vbmenu_control" id="digg" nowrap="nowrap">
    <script type="text/javascript">
    digg_url = 'SITE URL/showthread.php?t=$thread[threadid]';
    digg_title = "$threadinfo[title]";
    digg_skin = 'compact';
    digg_window = 'new';
    </script>
    <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
    </td>
    <!-- / Digg -->
    I would like to know how I would change
    $thread[threadid] and $threadinfo[title] accordingly with vbseo, is this possible? These must be passed in order for it to work.

    Incorporating Digg into my site has brought in more traffic than I could imagine, what this does is show how many diggs the post has and whether you have dugg it or not, directly in the post and promotes the use of it. It's important enough to me that I want to keep this mod regardless of SEO but would prefer to have both. And at this point working with this code is the only option due to the integration.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    you can use $_SERVER[VBSEO_URI] to insert "current URL" in template.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member
    Real Name
    Eric
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    19
    Liked
    0 times
    Okay, how about title:
    is it still this $threadinfo[title] or something different?

    Thanks for you assistance with this.

    Edit: Actually, it worked as is with no modification.
    Last edited by ericgtr; 01-18-2008 at 12:44 AM.

  4. #4
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    32 times
    Blog Entries
    9
    Glad to see that you got it working successfully.
    Edit: Actually, it worked as is with no modification.

Similar Threads

  1. Replacement Variables used in vBSEO
    By Danny Bembibre in forum General Discussion
    Replies: 9
    Last Post: 10-22-2009, 05:06 AM
  2. Question about Variables
    By Citricguy in forum Template Modifications
    Replies: 1
    Last Post: 12-12-2007, 12:54 AM
  3. vbseo problem with replacement variables
    By lapinkulta in forum Troubleshooting
    Replies: 11
    Last Post: 10-23-2006, 02:22 PM

Posting Permissions

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