vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Bookmarks Next to the reply button (https://vborg.vbsupport.ru/showthread.php?t=270324)

M Shaker 09-14-2011 10:00 PM

Bookmarks Next to the reply button
 
1 Attachment(s)
/*==========================================*\
|| ########################################### ||
|| #
Bookmarks Next to the reply button
|| # ----------------------------------------------------------------------------
|| # Arabic Version By :
M.Shaker ---- English Version By : M.Shaker
|| #
This file may only be redistributed to vBulletin license holders
|| # ----------------------------------------------------------------------------
|| # --------------
Ported by M.Shaker ----------------------------------------
|| #
This Hack was ported to work with vB 3.X.X
|| # ---------------------------------------------------------------- |
|| # ----------------
VBULLETIN IS NOT FREE SOFTWARE ------------------------
|| # http://www.Shmmo5.com || http://wwwabirelshouq.com || http://www.vbulletin.com
||
|| #########################################||
\*=========================================*/
Important : This has been tested on 3.8.7 PL2 - and should work good for 3.X.X , please test with caution - and as always BACKUP FIRST!

What this hack do ?
This mod will allow you to add Bookmarks sites next to the reply button

Demo ?
https://vborg.vbsupport.ru/attachmen...1&d=1316097101


Install ?

- Download the attached images and upload it to ~~~-> ~forumpath/images/misc

- Open Template (( SHOWTHREAD ))
Search for
PHP Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<
tr valign="bottom">
    <if 
condition="$show['largereplybutton']">
        <
td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a></td

Replace with
LTR ( Left to Right )Languages
use this
PHP Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px; float: left;">
<
tr valign="bottom">
    <if 
condition="$show['largereplybutton']">
        <
td class="smallfont"><a style="float:left" href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a>

        <!-- 
social bookmarking links -->
            <
ul style="list-style-type:none; margin:0px; padding:0px;height:20px;display:inline"><li class="smallfont" style="text-align:center; float:left; margin-left:15px;">
    
        <
a rel="nofollow" href="http://www.facebook.com/share.php?u=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_facebook.png" border="0" alt="Submit Thread to Facebook" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="http://www.facebook.com/share.php?u=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Facebook</a>

</
li><li class="smallfont" style="text-align:center; float:left; margin-left:15px;">
    
        <
a rel="nofollow" href="http://twitter.com/home?status=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_twitter.png" border="0" alt="Submit Thread to Twitter" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="http://twitter.com/home?status=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Twitter</a>
</
li><li class="smallfont" style="text-align:center; float:left; margin-left:15px;">
    
        <
a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_google.png" border="0" alt="Submit Thread to Google" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Google</a>
</
li><li class="smallfont" style="text-align:center; float:left; margin-left:15px;">

    
        <
a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_live.png" border="0" alt="Submit Thread to Live" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Live</a>
</
li></ul>
        <!-- / 
social bookmarking links -->

</
td



Or

RTL ( Right to Left )Languages
use this

PHP Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<
tr valign="bottom">
    <if 
condition="$show['largereplybutton']">
        <
td class="smallfont"><a style="float:right" href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a>

        <!-- 
social bookmarking links -->
            <
ul style="list-style-type:none; margin:0px; padding:0px;height:20px;display:inline"><li class="smallfont" style="text-align:center; float:right; margin-right:15px;">
    
        <
a rel="nofollow" href="http://www.facebook.com/share.php?u=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_facebook.png" border="0" alt="إرسال الموضوع إلى Facebook" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="http://www.facebook.com/share.php?u=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Facebook</a>

</
li><li class="smallfont" style="text-align:center; float:right; margin-right:15px;">
    
        <
a rel="nofollow" href="http://twitter.com/home?status=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_twitter.png" border="0" alt="إرسال الموضوع إلى Twitter" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="http://twitter.com/home?status=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Twitter</a>
</
li><li class="smallfont" style="text-align:center; float:right; margin-right:15px;">
    
        <
a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_google.png" border="0" alt="إرسال الموضوع إلى Google" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Google</a>
</
li><li class="smallfont" style="text-align:center; float:right; margin-right:15px;">

    
        <
a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark"><img src="images/misc/bookmarksite_live.png" border="0" alt="إرسال الموضوع إلى Live" class="inlineimg" /></a>
    <
br />
    
    <
a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=$vboptions[bburl]/showthread.php?t=$threadidtarget="socialbookmark" style="text-decoration:none;">Live</a>
</
li></ul>
        <!-- / 
social bookmarking links -->

</
td

- Check it and see it Work :D and Click Install:up:

fahad_althobian 09-16-2011 07:51 AM

Thank you for this effort

mesdar 09-16-2011 01:41 PM

Thank you

sonbol1111 09-22-2011 07:12 AM

Something good thanks you

Last_Zero 10-05-2011 04:30 PM

Thanks Ya Man :)

matrex722 09-01-2012 07:02 PM

thanks man
تسلم ايدك

usHealthy 03-23-2013 06:12 PM

Jut to add to the Mod there are 2 instances for the default code on SHOWTHREAD. If you want to have the bookmarks on top and below you need to edit both instances. :p


All times are GMT. The time now is 01:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01268 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete