Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

Function: Link To This Thread

This is a discussion on Function: Link To This Thread within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hi guys and good new year! This functions as on this forum : vBulletin Zone | Ultimate Resource for vBulletin ...

  1. #1
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    184
    Liked
    1 times

    Question Function: Link To This Thread

    Hi guys and good new year!

    This functions as on this forum : vBulletin Zone | Ultimate Resource for vBulletin Admins

    Link To This Thread: www........

    At bottom of first message of thread is a function of VbSEO or no?

    Is no, Is possibile please make a similiar modification?

    Thanks

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    edit, read that wrong...

    no, thats a custom add-on Brent added.

  3. #3
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,484
    Liked
    1 times
    Here is how you do it: Link to this thread - vBulletin Zone

  4. #4
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    184
    Liked
    1 times
    Very thanks friend!


  5. #5
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    184
    Liked
    1 times
    Hi guys

    I want insert a functions "Link this thread" under each first post of thread

    As on this site


    Brent, author of this modification has posted the code he used:

    <if condition="($post[postcount] == 1 and !$GLOBALS['vbulletin']->GPC['ajax'])">
    <div style="padding-top: 5px;"></div>
    <div class="box_bl_blue">
    <div class="box_br_blue">
    <div class="box_tl_blue">
    <div class="box_tr_blue">
    <table cellspacing="0" cellpadding="5" border="0" width="100%">
    <tr>
    <td class="smallfont" style="color: #fff; font-weight: bold; text-align: center; vertical-align: middle;">Link To This Thread: <input type="text" name="link" value="http://www.vbulletinzone.com/t$post[threadid]/" size="50">
    </td>
    </tr>
    </table>
    </div>
    </div>
    </div>
    </div>
    </if>
    Now, I have a different url structure and on my forum I have a little problem!

    Example of thread from my forum P2PSIN Italia :

    Utility - SubEdit Player build 4056 - P2PSIN Forum Italia

    With your code I see the link under as:

    http://www.p2psin.net/forum/t8069 (it's don't work)

    I try to modify in :

    Quote:
    <input type="text" name="link" value="http://www.p2psin.net/forum/$post[threadid]-[thread_title].html
    But now Link to thread is:

    http://www.p2psin.net/forum/8069-[thread_title].html (don't work!)

    Please, How Can I modify exactly the code for my forum's url?

    Very thanks

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello Ranma,

    you can change it to:
    HTML Code:
    <input type="text" name="link" value="http://www.p2psin.net$_SERVER[REQUEST_URI]" size="50">

  7. #7
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    184
    Liked
    1 times
    Hello Oleg!

    Thank you very much, now it's work!

    Internet - Orbit downloader 1.3.1

    Bye

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Great, you are welcome!

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    This code should be better though
    HTML Code:
    <input type="text" name="link" value="http://www.p2psin.net$_SERVER[VBSEO_URI]" size="50">
    Last edited by Oleg Ignatiuk; 01-04-2007 at 08:02 PM.

  10. #10
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    184
    Liked
    1 times
    Hi Oleg

    Mmmh..first code work fine!

    Second code go this error in my ACP when modify template postbit_legacy:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /***/***/b350/***.user/htdocs/forum/includes/adminfunctions_template.php(3593) : eval()'d code on line 243
    Can I continue to use first code o there are problems?

    Thanks!

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Please try the updated code in the post #9 above

  12. #12
    Junior Member
    Real Name
    Ming Keong Kuan
    Join Date
    Nov 2006
    Posts
    12
    Liked
    0 times
    I'm trying to do something similar but the above suggestions will not work as I'm trying to get the rewritten URL of page1 when I'm in page2.

    It's probably best if I just reference my site directly as an example - The main page of iStyles - iPod, PSP & DS Fashion Accessories contains a list of the latest news. Each post has links to digg and so on. For example:

    <a href="http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$news[threadid]&title=$news[title]" target="_blank"><img class="inlineimg" src="$stylevar[imgdir_button]/digg.png" alt="Submit to Digg" border="0" /></a>
    How can I send the correct rewritten URL for the thread instead of "$vboptions[bburl]/showthread.php?t=$news[threadid]"?

    For example: "http://forum.istyles.com/istyles-announcements/6688-designers-wanted.html" instead of "http://forum.istyles.com/showthread.php?t=6688"?

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Please try to use:
    HTML Code:
    <a href="http://digg.com/submit?phase=2&url=$vbseo_linkback_uri&title=$news[title]" target="_blank">

  14. #14
    Junior Member
    Real Name
    Ming Keong Kuan
    Join Date
    Nov 2006
    Posts
    12
    Liked
    0 times
    Thanks for the suggestion but it unfortunately didn't work. The variable came out blank.

    The main page displaying those links is not a vBulletin page but it includes a vBulletin page, which is the news section. This vBulletin page pharses the seo urls correctly simply because it's a vBulletin page where vbseo automatically converts all forum ahrefs. The problem comes about when I try to pass the url of this target vbseo page as a parameter for another URL to process as vbseo doesn't process such links automatically.

    vbseo doesn't phase it as it's not recognized as a valid local forum url. $_SERVER[VBSEO_URI] doesn't work as we're not in the vbseo page yet. The $vbseo_linkback_uri looks like it's heading in the right direction but it was blank. Is there a function to pass maybe something like vbseonow('$vboptions[bburl]/showthread.php?t=$news[threadid]') or is $vbseo_linkback_uri missing something?
    Last edited by Cavatina; 02-22-2007 at 06:39 AM.

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Please try $GLOBALS[vbseo_linkback_uri] instead.

Page 1 of 2 1 2 LastLast

Posting Permissions

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