Results 1 to 3 of 3

Template edit - need help

This is a discussion on Template edit - need help within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I'm trying to make a template edit, so I edited postbit_legacy. I have a code like this: Code: <if ...

  1. #1
    Member
    Real Name
    Goran
    Join Date
    Jan 2008
    Posts
    46
    Liked
    0 times

    Template edit - need help

    Hi,
    I'm trying to make a template edit, so I edited postbit_legacy.

    I have a code like this:

    Code:
    <if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
    <div style="float: right; height: 200px;">
    <script type="text/javascript">
    croportal_url = 'Pronađen neobjavljeni album Jimija Hendrixa -';
    </script>
    <script src="http://www.croportal.net/assets/js/croportal.js" type="text/javascript"></script>
    
    </div>
    </if>
    where I need to somehow replace
    Code:
    http://www.dojaja.biz/dforum/muzika/pronaden-neobjavljeni-album-jimija-hendrixa-5959.html
    "

    with some variable of current url.

    One other thing is that I link must be to a first post, so like:
    not:
    so #post127626 part is what I don't need, I hop you understand my problem.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    You can try this:
    HTML Code:
    croportal_url = '$_SERVER[VBSEO_URI]';

  3. #3
    Member
    Real Name
    Goran
    Join Date
    Jan 2008
    Posts
    46
    Liked
    0 times
    I had to add this, but it's working,thanks!
    Code:
    croportal_url = 'http://www.dojaja.biz/$_SERVER[VBSEO_URI]';

Similar Threads

  1. Replies: 3
    Last Post: 04-03-2008, 07:22 PM
  2. Quick edit bug still there...
    By dutchbb in forum Bug Reporting
    Replies: 14
    Last Post: 08-21-2006, 09:57 AM
  3. style edit?
    By MentaL in forum Off-Topic & Chit Chat
    Replies: 1
    Last Post: 01-18-2006, 11:26 PM
  4. When I edit a post I get this....
    By BamaStangGuy in forum Troubleshooting
    Replies: 3
    Last Post: 11-25-2005, 07:02 PM

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
  •