Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
tDigg - Digg like system for threads Details »»
tDigg - Digg like system for threads
Version: 1.00, by Coders Shack Coders Shack is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.7 Rating:
Released: 06-26-2007 Last Update: 06-26-2007 Installs: 215
DB Changes Uses Plugins
 
No support by the author.

[hr]value[/hr]
. . . . . . . . Brought to you by

. . . http://www.Scriptasy.com
[hr]value[/hr]
Installation Time: < 1 mins
Product: 1
File: 1
VB Version: 3.6.X


Description: [hr]value[/hr]
Creates a digg-like system that runs alongside your threads, stuck threads always stay on top but threads with more than one "digg" will show up before threads with 0 or less than zero "diggs"

[DEMO]

Installation Instructions: [hr]value[/hr]
  1. Install Product
  2. Upload the misc folder to your style directory
[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 07-02-2007, 02:28 PM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek View Post
Cool idea, but I cant seem to get it to work on my site. I have put 0,39 in the forumids but its a no go. If I check the page source, no dig info was added to the page so I am assuming either the forumid check failed or the preg_replace did. No errors in the php error log either.

Any advice?
I've changed the hook forumdisplay_query:
PHP Code:
if ($vbulletin->options['tDigg_enabled'])
{
    
$show['tDigg_forums'] = false;

    if (
in_array($foruminfo['forumid'], explode(','$vbulletin->options['tDigg_forums'])))
    {
        
$lastpost_info2 .= ', thread.tdiggs';
        
$sqlsortfield 'tdiggs DESC,' $sqlsortfield;
        
$show['tDigg_forums'] = true;
    }

I've removed the threadbit patch in hook parse_templates.

Open template threadbit and search for:
Code:
        $thread[title_editable]
        <div>
insert below:
Code:
            <if condition="$vbulletin->options['tDigg_enabled'] AND $show['tDigg_forums'] AND !$show['rmanage']">
                <span style='float: right'>&nbsp;<b><span id='votecount_$threadnum' style='position: relative; top: -5px;'>$thread[tdiggs]</span></b>
                    <if condition="$thread['tdiggs'] >= 0">
                        <img src="$stylevar[imgdir_misc]/t-us.png" width="18px" height="18px">
                    <else />
                        <img src="$stylevar[imgdir_misc]/t-ds.png" width="18px" height="18px">
                    </if>
                </span>
            </if>
Done!

@Coders Shack
Good work, nice idea. Thank you very much


Regards, Stoebi
Reply With Quote
  #73  
Old 07-02-2007, 04:22 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey coders if you want to PM me your email addy, Ill send you a package I tweaked. It includes the ability to sort by default, sort on click, usergroup restrictions on viewing and digging and several other overhead tweaks.
Reply With Quote
  #74  
Old 07-03-2007, 11:49 AM
Vic123 Vic123 is offline
 
Join Date: Jun 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this great mod! Works fine for me.

I think this mod can replace the standart vb- thread rating very easy. It would be awesome if it could be rewritten like this:

- allow threads in forums 1,2,3,... to be rated.
- when rated: do NOT sort them in forums 1,2,3,... by diggs
- show top-digged threads in extra forum, extra site, forumhome and/or in extra box.


So it would end up in a forumwide rating system where only threads from certain forums (e.g. no off-topic) can be digged. I think such a system could motivate users to post informative and helpfull topics.

please excuse my humble english

bye
Vic
Reply With Quote
  #75  
Old 07-03-2007, 05:10 PM
tyrionlannister tyrionlannister is offline
 
Join Date: May 2007
Location: New York
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the rating supposed to work when the thumb is pressed on forumdisplay? By default, it only seems to work when pressed inside of the thread. Perhaps I'm doing something wrong.
Reply With Quote
  #76  
Old 07-03-2007, 05:42 PM
abg abg is offline
 
Join Date: Dec 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed it, but have the following problem when trying to vote:

Quote:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in /ajax.php(44) : eval()'d code on line 3

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /ajax.php(44) : eval()'d code on line 3

Database Error Database error
Your database has encountered a problem.
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open your home page, then try to open another page.
Click the Back button to try another link.
The forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
Reply With Quote
  #77  
Old 07-04-2007, 06:39 AM
Lowfyr Lowfyr is offline
 
Join Date: Feb 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome!

just some suggestions:
https://vborg.vbsupport.ru/showthread.php?t=150177
Reply With Quote
  #78  
Old 07-04-2007, 11:27 PM
iamcommie iamcommie is offline
 
Join Date: Jul 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to show the tdiggs on the "new posts" results page?
Reply With Quote
  #79  
Old 07-05-2007, 07:55 AM
Vic123 Vic123 is offline
 
Join Date: Jun 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lowfyr View Post
that's exactly what I am searching for, too.

bye
Vic
Reply With Quote
  #80  
Old 07-06-2007, 06:41 AM
Lowfyr Lowfyr is offline
 
Join Date: Feb 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, I think this could improve the whole thread/overview quality of any forum.
Reply With Quote
  #81  
Old 07-08-2007, 09:31 PM
anzo's Avatar
anzo anzo is offline
 
Join Date: Sep 2005
Location: Latvia
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can get it to work Help please!
I can see green thumbs and diggs count (http://latforums.lv/forum1.html), but no "digg this" button (http://latforums.lv/thread21237.html)
How do I fix this? What is wrong?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08463 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete