PDA

View Full Version : Miscellaneous Hacks - tDigg - Digg like system for threads


Coders Shack
06-26-2007, 10:00 PM
value. . . . . . . . Brought to you by
https://vborg.vbsupport.ru/
. . . http://www.Scriptasy.com

value
Installation Time: < 1 mins
Product: 1
File: 1
VB Version: 3.6.X


Description: value
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] (http://codersshack.com/forums/java-jsp_27/)

Installation Instructions: value
Install Product
Upload the misc folder to your style directoryvalueIf you like then [Mark As Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=150751)]
value

Coders Shack
06-26-2007, 11:42 PM
Also like most of my mods this is an edit-free mod.

Barakat
06-27-2007, 12:35 AM
??

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/**********/public_html/gti/global.php(554) : eval()'d code on line 1012

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/******/public_html/gti/global.php(554) : eval()'d code on line 1012

TTG
06-27-2007, 12:36 AM
Looks interesting but :-

Demo link doesn't work.

Couple of errors when I installed on my test forum :-

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']'

Warning: Unexpected character in input: '\' (ASCII=92)

EDIT .. lol .. Barakat having same problems.

Coders Shack
06-27-2007, 12:58 AM
yea umm i added the wrong XML to the zip.

*updated*

rootnik
06-27-2007, 01:25 AM
The product installation didn't edit my templates? I only assume that it was supposed to because no template modification are provided.

Can you list modifications to the templates we have to make?

Coders Shack
06-27-2007, 01:37 AM
well, does it work on your default template?

i have not provided changes for postbit_legacy yet.

rootnik
06-27-2007, 01:40 AM
well, does it work on your default template?

i have not provided changes for postbit_legacy yet.

On *my* default template, no. I do not have the vbulletin default template installed.

I am not using the legacy template.

edenx
06-27-2007, 01:50 AM
excelent! installing now

Coders Shack
06-27-2007, 01:58 AM
On *my* default template, no. I do not have the vbulletin default template installed.

I am not using the legacy template.
did you add the forum your trying to use it on in the ACP ?

https://vborg.vbsupport.ru/external/2007/06/16.jpg

rootnik
06-27-2007, 02:03 AM
did you add the forum your trying to use it on in the ACP ?

https://vborg.vbsupport.ru/attachment.php?attachmentid=66167&d=1182905931


Yes, and I do use the template cache mod, but have it disabled.

Don't waste to much time on me though. If nobody else reports a problem like this we know it is something wrong with my personal setup.

Thanks for the release, the community has been waiting for this for a while.

glorify
06-27-2007, 02:40 AM
Will install once you get thelegacy template done ;)

Coders Shack
06-27-2007, 03:24 AM
Will install once you get thelegacy template done ;)
both display templates are working now :D

mtlcore
06-27-2007, 03:36 AM
Good work.

Is it possible to have something like that Thank You hack but a Digg system.
What I mean: the thank you button is in every post, but I have seen one where it is only in the first post, and then if you click it(ie digg), it will have 1 vote. Then it will be displayed on the frontpage of the forums.

projectego
06-27-2007, 07:04 AM
Awesome! I like it! :)

* projectego clicks install

s0b
06-27-2007, 08:01 AM
great mod!!

can we have a top page with the most rated topics in last 24h?


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"

Then when the forum have very much threads with +1, a new thread will appear in the second page?

dizzy100
06-27-2007, 08:19 AM
Fantastic and very handy mod. I love it too.

A top digs across the board would be awesome on a separate page. This is really great for social networking sites.

Well done.

Coders Shack
06-27-2007, 08:25 AM
do you have a forum with over 20 threads ? I'm not sure how it will react with 21 threads.

but the way i intended to code it was it grabs the latest X bumped threads then organizes them by diggs.

dizzy100
06-27-2007, 08:29 AM
Ah it only grabs the last 20 ? I thought this would organise them completely depending on the amount of diggs they had.

Coders Shack
06-27-2007, 08:34 AM
Ah it only grabs the last 20 ? I thought this would organise them completely depending on the amount of diggs they had.
well not really the last 20 but like a normal display, like if your on page two it should grab page twos threads and then organize them by their diggs.

I think its better that way because it still factors in the recent topics then the diggs.

dizzy100
06-27-2007, 09:07 AM
doesn't really seem logical that. But your the coder :)

Coders Shack
06-27-2007, 09:29 AM
well i didnt want it to rule out the recent posts, like if 20 threads have over 0 "diggs" your way the next thread would be on the 2nd page, my wayt it ill still display on the first page but not on the top.

edenx
06-27-2007, 10:58 AM
I second to show best rated topics on a separate page... and the functionality to filter threads by the total rating... in forumdisplay

JD45
06-27-2007, 02:31 PM
Installed. Worked perfectly! Thank you.

Nominated for MOTM

dope15gd
06-27-2007, 02:41 PM
this looks to be quite awesome. I'll probably run it on my test install later

TCattitude
06-27-2007, 04:26 PM
Maybe left the "forumdisplay" show thread like vb's default is (not modify that)... but generate a brand new "home page"... even a new index.php, and sort thread in that page how digg.com does; so "news" (hot threads, most voted) will display automatically in that other index.
Show hot threads for today (most voted in the last 24 hours), the last week, the last month, and "all the time". Again, like digg.com or like youtube.com does with the options in the left menu of videos main category.

Even create a new module for vbadvanced and get a new home page, more like digg too.
Will be great to have a separate page to view more "tdiggest" (voted) threads, separate it by forumids maybe, "categorize" the listing.

Nice mod, Coders Shack, really awesome ;)

Brandon Sheley
06-27-2007, 04:37 PM
interesting hack :)

Coders Shack
06-27-2007, 05:00 PM
I second to show best rated topics on a separate page... and the functionality to filter threads by the total rating... in forumdisplay
Well, there might be a file edit involved if you want it to rate it by just the "diggs".

Maybe left the "forumdisplay" show thread like vb's default is (not modify that)... but generate a brand new "home page"... even a new index.php, and sort thread in that page how digg.com does; so "news" (hot threads, most voted) will display automatically in that other index.
Show hot threads for today (most voted in the last 24 hours), the last week, the last month, and "all the time". Again, like digg.com or like youtube.com does with the options in the left menu of videos main category.

Even create a new module for vbadvanced and get a new home page, more like digg too.
Will be great to have a separate page to view more "tdiggest" (voted) threads, separate it by forumids maybe, "categorize" the listing.

Nice mod, Coders Shack, really awesome ;)

well all that is possible because the table added uses timestamps too for future features but i might need to also add a new field "forumid" so if i were to create a mod that displayed top threads in the last 24 hours it could get X for each forum. Unfortunately I'm unfamiliar with vbadvanced add-ons but your welcome to try to come up with something.

I'll tinker with it, more suggestions are welcome.

edenx
06-27-2007, 06:06 PM
Well, there might be a file edit involved if you want it to rate it by just the "diggs".


I dont want to rate by "diggs" I want to be able to do this when viewing a forum

"show me only the threads that have 10+ digg votes"
"show me only the threads that have 5+ digg votes"

:D

Subah
06-27-2007, 06:11 PM
Cool , Thanks :)

rootnik
06-27-2007, 11:17 PM
Coders Shack,

I finally got to play around with this again tonight. It only seems to work for me if I set more than 1 forum. If I only set 1 forum, the array is ignored.

I *THINK* I read somewhere a while back about php5 (at least some versions) handling some array functions differently than php4, where these versions of php expect the array to be a true array (more than 1 item).

Or maybe that was in a dream. Anyhow, it works for me (php 5.2.1) if I have more than 1 forum listed.

Coders Shack
06-27-2007, 11:18 PM
Coders Shack,

I finally got to play around with this again tonight. It only seems to work for me if I set more than 1 forum. If I only set 1 forum, the array is ignored.

I *THINK* I read somewhere a while back about php5 (at least some versions) handling some array functions differently than php4, where these versions of php expect the array to be a true array (more than 1 item).

Or maybe that was in a dream. Anyhow, it works for me (php 5.2.1) if I have more than 1 forum listed.
hmm so if i just added 0, to the array it would be fine?

edenx
06-27-2007, 11:20 PM
Doesn't work for me...

Coders Shack
06-27-2007, 11:32 PM
Doesn't work for me...
enter more than one forum ID?

edenx
06-27-2007, 11:53 PM
enter more than one forum ID?

neither. nothing happens when pressing the thumbs up button

rootnik
06-27-2007, 11:54 PM
hmm so if i just added 0, to the array it would be fine?

Yes, I just tested 0 in my array and it worked as expected.

dope15gd
06-28-2007, 12:34 AM
I dont want to rate by "diggs" I want to be able to do this when viewing a forum

"show me only the threads that have 10+ digg votes"
"show me only the threads that have 5+ digg votes"

:D

I like this idea. I'd also like it if there was a setting where a thread with x amount of negative votes would be locked automatically.

subnet_rx
06-28-2007, 12:43 AM
I think this is an excellent idea, I too would like to see different things happen based on how a thread is modded. Or maybe a algorithm where diggs and replies both come into play when judging what is on the first page of a forum.

rootnik
06-28-2007, 02:22 AM
It may be useful to have an option to not allow 'sticky' threads to be 'dugg'.

glorify
06-28-2007, 02:27 AM
Works great now in postbit legacy :)

If you did something that grabbed the latest digs or most dugg, then added them to the forumhome somewhere, it would be fairly easy to do for vb advanced. I'd replace my current vba news module with this.

4x4 Mecca
06-28-2007, 05:32 AM
I like it, and have installed it in a vehicle gallery forum. But if 15 posts get rated with thumbs ups... and someone else replies to a thread with 0 votes or someone makes a new thread... they display below the ranked threads. That kinda seems like a problem. Is there any way to limit the number? Like let us choose the number of threads... maybe 5 or so. Or to make them stay at the top for X hours or days?

Coders Shack
06-28-2007, 06:07 AM
I like it, and have installed it in a vehicle gallery forum. But if 15 posts get rated with thumbs ups... and someone else replies to a thread with 0 votes or someone makes a new thread... they display below the ranked threads. That kinda seems like a problem. Is there any way to limit the number? Like let us choose the number of threads... maybe 5 or so. Or to make them stay at the top for X hours or days?
hmm ill see what i can do but like if X diggs on thread display before recent post?

4x4 Mecca
06-28-2007, 06:30 AM
Sort of, more like instead of 20 threads with a ranking of +1 being above the other threads, let us choose the number of threads that stay on the top of the forums.

Coders Shack
06-28-2007, 06:39 AM
Sort of, more like instead of 20 threads with a ranking of +1 being above the other threads, let us choose the number of threads that stay on the top of the forums.
well im not sure how many threads you have your display set to but its well over 20, But im pretty sure that a recent post will never be sent to the 2nd page. I'm not sure how to make it work the way you want it to.

4x4 Mecca
06-28-2007, 07:10 AM
No they won't be sent to the 2nd page, but they are put below any post that has been "dugg". I just want it to keep 5 posts above the rest, not 20. I looked in the XML but didn't see the number 20 anywhere. I may be confusing you, so I'll just see if I can get it to do what I want. :) Thanks for your help.

4x4 Mecca
06-28-2007, 07:33 AM
I misread the posts. I was under the impression it only kept the top 20 posts with diggs above the rest. But I created a new thread, and it still displayed below the dugg posts. Is that normal? How many dugg posts will the new threads display under?

Coders Shack
06-28-2007, 07:49 AM
I misread the posts. I was under the impression it only kept the top 20 posts with diggs above the rest. But I created a new thread, and it still displayed below the dugg posts. Is that normal? How many dugg posts will the new threads display under?
ok I havent tested it on a forum with over 10 threads.

but what it is supposed to do is the normal query (the last X recent posts) then its supposed to order them by the total digg count.

yankidank
06-28-2007, 01:53 PM
Yeah, this isn't adding the needed template changes to my postbit. Anyone have example postbit code for me to insert into my template to display the vote buttons on the threads? Right now I can see the vote results on the forum index pages, but not on the individual thread pages.

hollosch
06-28-2007, 03:37 PM
The german translation is available here (http://vbhacks-germany.org/showthread.php?t=9573).

Coders Shack
06-28-2007, 06:35 PM
ok ill work on a replacement var for both, i really don't like edits :P

rootnik
06-28-2007, 11:26 PM
I had to edit the plugin to make it work in my post bit. In most cases, if it doesn't work for you the div container that the plugin is looking to replace has a css class in it.

For example, I had to change

'#<div id=\\\"post_message_\$post\[postid\]\\\">\$post\[message\]</div>#i'


to this:


'#<div id=\\\"post_message_\$post\[postid\]\\\"
class=\\\"vb_postbit\\\">\$post\[message\]</div>#i'


in the "tDigg - Template Edits" plugin.

If you are having trouble, search your postbit template for $post[message], PM me the entire div container that $post[message] is in, and I'll reply with what you need to edit when i have a chance.

hollosch
06-29-2007, 07:51 AM
My vBulletin says version 1.01 is available. Where can I get the new version?

mcyates
06-30-2007, 08:32 AM
Could you make this so there is an option where the posts are not ranked on how many diggs they have? This way, this can be used as another rating of the threads like the vbulletin rating!!

Thanks in advance.

Coders Shack
06-30-2007, 08:46 AM
Could you make this so there is an option where the posts are not ranked on how many diggs they have? This way, this can be used as another rating of the threads like the vbulletin rating!!

Thanks in advance.

Go to your plugin manager and disabled the one titled "tDigg - Change Sort". And thats it.

mcyates
06-30-2007, 01:55 PM
Go to your plugin manager and disabled the one titled "tDigg - Change Sort". And thats it.
oh right nice one, thank you :) Great hack

Expertu
06-30-2007, 09:01 PM
I installed the product, uploaded the misc/ folder, but nothing shows up in the forum.

Nothing at all.

Coders Shack
06-30-2007, 09:32 PM
did you go to the ACP section and add 0, then the forum id's you want. like

0,5,12,28

i haven't had time to build on the idea of this modification yet.

Expertu
06-30-2007, 09:37 PM
There was no mention at all, that I had to add 0 before..

Now it works, altough I have no images on the ratings :

http://forum.seopedia.ro/forumdisplay.php?f=10

As you can see, only a 0 appears.

I uploaded the misc/ in :

cpstyles/vBulletin_3_Default

is that ok ?

Expertu
06-30-2007, 09:41 PM
Moreoever, the old star ratings, as well as the "subscribed" icon show very weird, around that vote image.

4x4 Mecca
06-30-2007, 09:59 PM
In my thread here http://www.4x4mecca.com/forum/other-rides/2645-1969-chevelle-ss.html if I click thumbs down to remove 1 of the 2 votes, it goes to zero. When I click thumbs up again, it jumps back to 2.

Coders Shack
06-30-2007, 10:06 PM
In my thread here http://www.4x4mecca.com/forum/other-rides/2645-1969-chevelle-ss.html if I click thumbs down to remove 1 of the 2 votes, it goes to zero. When I click thumbs up again, it jumps back to 2.
well its working the way i made it to work.

you thumb up right? so its +1 but then you want to thumb down so its subtracting your first vote and gives it another -1. Same if you -1 first then want to +1.

4x4 Mecca
06-30-2007, 10:38 PM
Well someone else thumbs up'd the post, so it had +1. Then later I thumbs up'd it, so it had +2. Then today I wanted to test the ordering thing some more, so I clicked thumbs down on the thread with 2 thumbs up, and it went to zero. It may be how it's written to remove 2 thumbs per click.... but I'm not quite sure if it will do that no matter how many thumbs... I mean if 6 people click thumbs up, and 3 of them click thumbs down, will it zero it out?

Coders Shack
06-30-2007, 10:44 PM
Well someone else thumbs up'd the post, so it had +1. Then later I thumbs up'd it, so it had +2. Then today I wanted to test the ordering thing some more, so I clicked thumbs down on the thread with 2 thumbs up, and it went to zero. It may be how it's written to remove 2 thumbs per click.... but I'm not quite sure if it will do that no matter how many thumbs... I mean if 6 people click thumbs up, and 3 of them click thumbs down, will it zero it out?
well no like i explained before and you said it your self it had +1 by someone else then you added +1 so it was 2. But you decided to thumb down, that means you take away your original +1 and then -1. Like you could of just not thumbed it up in the first place and thumb it down and it would of been zero too :D.

Stoebi
06-30-2007, 11:18 PM
Hi,

thank you very much for this hack. :)

Try to move a digged thread with more than 0 diggs to another forum, where tDigg is not active. The moved thread stays on the first place in this forum, but it's not the actual thread.

A second fix is needed for move thread with the 'Leave Permanent Redirect' option.

Can you make public the template patches for SHOWTHREAD, threadbit, postbit and postbit_legacy, please?


Regards, Stoebi

ayoko555
07-01-2007, 03:23 AM
Go to your plugin manager and disabled the one titled "tDigg - Change Sort". And thats it.

But after I disable the "tDigg - change sort", the Digg numbers don't show on the forumdisplay anymore, it's only showing the green thumb. :confused:

4x4 Mecca
07-01-2007, 04:00 PM
But after I disable the "tDigg - change sort", the Digg numbers don't show on the forumdisplay anymore, it's only showing the green thumb. :confused:
Change the plug in titled "tDigg - Change Sort"
to have this content
if ($vbulletin->options['tDigg_enabled']) {
$lastpost_info2 .= ', thread.tdiggs';
}

I removed the sort order, but left the number displayed. :) If you are worried, copy the original content to notepad before you paste over it.

MikeF
07-02-2007, 01:07 AM
A VBadvanced module for this would be interesting.

The Geek
07-02-2007, 07:53 AM
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?

Coders Shack
07-02-2007, 08:26 AM
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?
try it on the standard vbulletin template if it does work then its a forumid issue.

i really wana expand on this when i have time, but college/parties and shit is time consuming...

Filgga
07-02-2007, 01:38 PM
hey

I installed it on my forum and everything works

but i cant "dig" it just says 0

Stoebi
07-02-2007, 02:28 PM
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:

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:

$thread[title_editable]
<div>insert below:

<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

The Geek
07-02-2007, 04:22 PM
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.

Vic123
07-03-2007, 11:49 AM
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

tyrionlannister
07-03-2007, 05:10 PM
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.

abg
07-03-2007, 05:42 PM
Installed it, but have the following problem when trying to vote:

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.

Lowfyr
07-04-2007, 06:39 AM
awesome!

just some suggestions:
https://vborg.vbsupport.ru/showthread.php?t=150177

iamcommie
07-04-2007, 11:27 PM
is there a way to show the tdiggs on the "new posts" results page?

Vic123
07-05-2007, 07:55 AM
awesome!

just some suggestions:
https://vborg.vbsupport.ru/showthread.php?t=150177

that's exactly what I am searching for, too. (https://vborg.vbsupport.ru/showpost.php?p=1281891&postcount=73) :)

bye
Vic

Lowfyr
07-06-2007, 06:41 AM
yep, I think this could improve the whole thread/overview quality of any forum.

anzo
07-08-2007, 09:31 PM
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?

MiahBeSmokin420
07-08-2007, 09:33 PM
isnt this bassically just like that thanks you hack?

James T Brock
07-15-2007, 11:37 AM
Does this work on version 3.5?

lrmzx9
07-16-2007, 12:31 AM
I imported the mod, uploaded the misc folder to my cpstyles default directory and I get nothing. The options are in the admincp but I get no diggs?

silentwille
07-29-2007, 07:26 AM
Any update ?

BigSoccer Tech.
07-31-2007, 05:52 PM
Nice work. Wish I had found this before we did all the work on our site, which we just relaunched with similar functions. :cool:

bdude
08-02-2007, 06:02 AM
This is a really good plugin, thanks!

cd1986
08-02-2007, 07:23 PM
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?
Just from my own experience (recently installed), I had to open up the plugin and replace:

'#<div id=\\\"post_message_$post\[postid\]\\\">$post\[message\]</div>#i'
With the custom code in my postbit template. I also ended up using str_replace instead of preg_replace, since I couldn't get the replace to work in the postbit template otherwise.

It might be easiest if the author released manual template edits for those who are having trouble with automatic placement? The auto stuff is never universal.

Nice mod btw, I had one of my own from a while back, but decided this looked nicer for a re-development project. A couple of extra features might be nice though, such as the ability to move threads to a new forum after x votes reached, and a customisable list page - to show things like the latest submitted threads from all forums using the voting system, or top voted threads etc. :)

Another possibility, instead of not showing the voting buttons to guests, how about showing a login form or something of that nature when not logged in, and the voting clicked on?

schlottkej
08-03-2007, 08:06 PM
I cannot get the thumbs up to be clickable. I changed the plugin like you said, but still not seeing an active link. the forums are active (I chose 0,1,2,3,4,5,6,7,8,9,10 to cover the gamut, still nothing.

OS Master
08-04-2007, 12:02 AM
I get this error when trying to vote:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string (http://usingyouros.com/forum/function.mysql-real-escape-string)]: Access denied for user 'osmaster'@'localhost' (using password: NO) in /ajax.php(44) : eval()'d code on line 166

Warning: mysql_real_escape_string() [function.mysql-real-escape-string (http://usingyouros.com/forum/function.mysql-real-escape-string)]: A link to the server could not be established in /ajax.php(44) : eval()'d code on line 166
Using Your OS Forum Database Error http://usingyouros.com/forum/image.php?type=dberror Database error The Using Your OS Forum database has encountered a problem. Please try the following:
Load the page again by clicking the Refresh (http://usingyouros.com/forum/#) button in your web browser.
Open the usingyouros.com (http://usingyouros.com/) home page, then try to open another page.
Click the Back (javascript:history.back(1)) button to try another link. The usingyouros.com forum technical staff have been notified of the error, though you may contact them (sankarj12@gmail.com) if the problem persists.
We apologise for any inconvenience.

What now?

schlottkej
08-04-2007, 04:39 PM
I got it figured out..

KHALIK
08-04-2007, 09:27 PM
ah i c

how do I disable threads moving down or increase the number of -minus thumbs down needed to bring the thread down the list.

welovehiphop
08-05-2007, 03:58 PM
great mod!

TheBlackPoet
08-06-2007, 02:07 AM
the rollover doesnt work for me... i wonder if my other rollover effect is conflicting with this...??

Martz
08-06-2007, 10:23 AM
Got it working. Had to add 2 IDs in the tdigg options for it to work on one forum.


Is there anyway I can use this on the forumdisplay page? I'd like people to be able to one-click-digg when viewing a list of threads rather than having to go and view each thread to dig it?
In a busy forum on page 1:
threads with -1 digg stick to the bottom of page
threads with 0 rating/newish posts go to page 2 and are lost
threads on page 2 which have +1 digg only go to the top of page #2
Which means that good stuff cannot be bumped across pages, and bad stuff gets stuck on page 1 forever??
Any ideas :)

skepticality
08-07-2007, 07:19 PM
For the LIFE of me I can't figure out which directory it wants that misc directory to be in...

There is NO directory called 'themes' or 'styles' so where EXACTLY would I put that directory?

paulvon
08-16-2007, 12:54 AM
Using the default template in 3.6.8

I have tried using the first forum id number as 0 and 1

When I click on the thumb up or down button nothing except I see a note on the bottom of IE that there is an "error on the page"

Error details:
Line: 353
Char: 2
Error: Object required
Code: 0

Here is the code from line 353
var threadid = document.getElementById('qr_threadid').value;

Any help would be great.

Thank you

ice chrono
09-09-2007, 11:24 PM
For the LIFE of me I can't figure out which directory it wants that misc directory to be in...

There is NO directory called 'themes' or 'styles' so where EXACTLY would I put that directory?
really old reply. but it goes in the image folder on your root vb directory

glorify
09-20-2007, 09:57 PM
I really like this hack's potential, but the author seems to have abandoned it after 3.6.7. It could be huge.

Any way this could be changed to up the replies to a post? Would be sweet. Example, the comments on this page:

http://www.engadgethd.com/2007/09/10/directvs-new-hd-channels-to-launch-on-the-19th/

turfy
09-20-2007, 10:45 PM
Install
Don't Work
Uninstall

yoyoyoyo
09-20-2007, 11:18 PM
nice idea, but doesn't work right for me. The digg option is not available in certain forums, even when enabled in the ACP, etc..

Alien
09-21-2007, 05:50 AM
I love this, but would definitely rather wait for an update...

This really has major potential...

verrin
09-21-2007, 06:05 AM
Good hack, seems to work fine on vb3.6.8 default, not on other skins

Cubevisions
10-12-2007, 11:24 PM
Requesting a update for this. Anyone?

FleXy
10-16-2007, 11:00 PM
need octions to moderators and administrators to change overall count etc.

ZGeek
10-29-2007, 06:01 AM
Anyone nice enough to get this working in vbadvanced? Pretty please.

winduff
10-29-2007, 08:53 PM
unfortunatly, far too CPU intensive. Can't run it on my current server.

columbusgeek
11-05-2007, 04:51 AM
Worked fine for me.

thanks

zglows
11-14-2007, 03:09 PM
super nice!

toonysnn
11-14-2007, 07:48 PM
It seems that the thread number does not work... Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT * FROM `tdigg` WHERE `userid` = 1 AND `threadid` = ;;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Date : Wednesday, November 14th 2007 @ 03:46:01 PM
Script : http://www.***.net/forum/ajax.php?do=tdigg
Referrer : http://www.***.net/forum/showthread.php?p=65
IP Address : 75.x.x.x
Username : Billy
Classname : vB_DatabaseIs there a fix that I didn't see (Read over the thread quickly)?
Seems like a the javascript or one of the php plugins is not working properly. Everything else works in vBulletin 3.6.8

katan
11-14-2007, 11:46 PM
thanks you!!!

GrendelKhan{TSU
11-15-2007, 11:17 AM
unfortunatly, far too CPU intensive. Can't run it on my current server.


I was gunna install this but this post scared me. does this gunna effect performance that much? :(

I have a big board but a great server... is this a no go for me?

Coders Shack
11-15-2007, 02:00 PM
I was gunna install this but this post scared me. does this gunna effect performance that much? :(

I have a big board but a great server... is this a no go for me?
not sure why it would...

basically it sorts the query by tdiggs and thats abt it..

dashed
11-16-2007, 03:42 AM
i hope for a newer version

dooch
12-10-2007, 06:49 PM
id love to see this mod working

InfoSpyware
12-11-2007, 11:05 PM
Great hack but Don't Work for me :confused:

I put in ACP 0,9 and try everything say here ....

Bye

pxd
01-18-2008, 10:54 PM
Installed on vB 3.7 beta3, uploaded the image files, configured a test forum for the tDig to display on, and.. Nothing shows up. missing anything? or is it not compatible with the beta vB version?

dpimonk
01-20-2008, 04:10 PM
I am running 3.6.8, and I installed everything correctly. But nothing is showing up.

toonysnn
01-29-2008, 10:00 AM
I am running 3.6.8, and I installed everything correctly. But nothing is showing up.
Check Admin CP > vBulletin Options > tDigg Settings
Happy to see this is working on 3.7 Beta 4 :)

Spinball
02-02-2008, 09:10 AM
The demo links to a 3.7 beta 3 installation and this mod is not present there.

montsa007
03-03-2008, 03:14 AM
Mod El Excellente :)

montsa007
03-05-2008, 02:46 AM
Umm how do i digg the thread i like?
any ideas??

montsa007
03-07-2008, 10:30 AM
Can somebody please answer me?

xlguy
03-28-2008, 10:39 AM
See the screenshots, just click on number rating in the postbit - or perhaps you need to be logged in if you can't see the thumbs.

OP: Thanks for making this much needed modification, I'm just checking it out now ready for installing on a live and busy forum :)

Lurk
04-17-2008, 03:47 AM
There a way to disable users from rating their own threads?

trustful88
04-18-2008, 05:26 AM
Don't mean to sound dumb, but how do I install it

thestaton
04-19-2008, 05:58 PM
anyone tried this with 3.7RC3?

apiasto
04-19-2008, 09:56 PM
could be useful.but no pictures showing or ne thing else to use this rating system on the forum.

joellus
04-25-2008, 11:59 PM
how works this addon with new vbulletin 3.6.10

i cant vote currently, about the new security-token Porno M?dchen (http://www.pornogeier.eu)

someone have a solution?

thanks!!

paulvev
04-26-2008, 11:22 PM
Best mod ive seen! Working sweet and exactly what my forum needed!

valdet
04-30-2008, 12:43 AM
I am trying to set the conditional so the rating system shows up on every first post of a multi-page thread.

The following conditional does that in templates, but I am not sure how can we do it on plugin code.
<if condition="(($post[postcount]==1 and !$GLOBALS['vbulletin']->GPC['ajax']))">
CODE
</if>


I tried some variations but there was an error.
Thanks

michael million
06-09-2008, 04:40 AM
I install it at 3.7. Now i have the securitytoken-problem.
Who can help me?

neodan20
06-09-2008, 05:49 AM
Is there something like this for 3.7?

pcoskat
06-17-2008, 12:58 PM
Is there something like this for 3.7?

I would like it , too

derekivey
08-05-2008, 01:45 AM
Hello,

To fix the security token problem, use this modified code for the tDigg - Template Edits plugin:


if ($vbulletin->options['tDigg_enabled']) {
$vbulletin->templatecache['SHOWTHREAD'] = preg_replace('#</head>#i', '
".((!in_array($forum[forumid], explode(",", "' . $vbulletin->options['tDigg_forums'] . '", -1))) ? ("") : ("
<script type=\"text/javascript\" language=\"javascript\">
var tdigg_request = false;
var threadnum = null;
function maketdiggRequest(url, parameters) {
tdigg_request = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
tdigg_request = new XMLHttpRequest();
if (tdigg_request.overrideMimeType) {
// set type accordingly to anticipated content type
//tdigg_request.overrideMimeType(\'text/xml\');
tdigg_request.overrideMimeType(\'text/html\');
}
} else if (window.ActiveXObject) { // IE
try {
tdigg_request = new ActiveXObject(\"Msxml2.XMLHTTP\");
} catch (e) {
try {
tdigg_request = new ActiveXObject(\"Microsoft.XMLHTTP\");
} catch (e) {}
}
}
if (!tdigg_request) {
alert(\'Cannot create XMLHTTP instance\');
return false;
}

tdigg_request.onreadystatechange = alerttdiggContents;
tdigg_request.open(\'POST\', url, true);
tdigg_request.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");
tdigg_request.setRequestHeader(\"Content-length\", parameters.length);
tdigg_request.setRequestHeader(\"Connection\", \"close\");
tdigg_request.send(parameters);
}

function alerttdiggContents() {
if (tdigg_request.readyState == 4) {
if (tdigg_request.status == 200) {
document.getElementById(\'votecount_\' + threadnum).innerHTML = tdigg_request.responseText;
} else {
alert(\'There was a problem with the request.\');
}
}
}

function vote(ID,type) {
var threadid = document.getElementById(\'qr_threadid\').value;
threadnum = ID;
if (type == \'give\'){
var poststr = \"threadid=\" + encodeURI( threadid ) +
\"&action=give&securitytoken=\" + SECURITYTOKEN;
document.getElementById(\'votecount_\' + ID).innerHTML = \'<img src=\"$stylevar[imgdir_misc]/13x13progress.gif\">\';
maketdiggRequest( \'ajax.php?do=tdigg\', poststr);
} else if (type == \'take\') {
var poststr = \"threadid=\" + encodeURI( threadid ) +
\"&action=take&securitytoken=\" + SECURITYTOKEN;
document.getElementById(\'votecount_\' + ID).innerHTML = \'<img src=\"$stylevar[imgdir_misc]/13x13progress.gif\">\';
maketdiggRequest( \'ajax.php?do=tdigg\', poststr);
}
}
</script>
<style type=\"text/css\"> <!--
.topicv {
position:relative;
height: 18px;
}
.countbg {
position:relative;
top: -5px;
text-align: center;
color: #000000;
font-weight:bold
}
.news-tDigg {
 position: relative;
top: 0.8em;
text-align: center;
font-size: 85%;
margin: 0;
padding: 0;
list-style: none;
background: url($stylevar[imgdir_misc]/t-shade.gif) no-repeat;
}
.news-tDigg li {
margin: 0;
padding: 0;
}
.tDigg-count a , .tDigg-count span, .tDigg-count-s a, .tDigg-count-s span {
display: block;
position: relative;
padding: 6px 0 4px 0;
text-decoration: none;
width: 50px;
min-height: 20px;
color: #93883F;
text-align: center;
font: 13px arial, sans-serif;
}
.news-summary .tDigg-count strong, .news-full .tDigg-count strong, .news-summary .tDigg-count-s strong, .news-full .tDigg-count-s strong {
font-size: 160%;
font-weight: normal;
letter-spacing: -1px;
line-height: 1;
display: block;
position: relative;
color: #736926;
}
.news-summary .tDigg-count-s strong, .news-full .tDigg-count-s strong {
font-size: 160%;
}
.tDigg-count img, .tDigg-count-s img {
position: relative;
top: 0;
left: 0;
border: none;
}
.tDigg-count a:hover, .tDigg-count-s a:hover, .tDigg-count a:hover strong, .tDigg-count-s a:hover strong {
color: #998D43;
}
--></style>
")) . "
</head>', $vbulletin->templatecache['SHOWTHREAD']);
$vbulletin->templatecache['threadbit'] = preg_replace('#\"\.\(\(\$show\[\'moderated\'\] OR #i','
".((!in_array($thread[forumid], explode(",", "' . $vbulletin->options['tDigg_forums'] . '", -1))) ? ("") : ("
<span style=\'float: right;\' ><b><span id=\'votecount_$threadnum\' style=\'position: relative; top: -5px;\'>$thread[tdiggs]</span></b> " . (($thread[\'tdiggs\'] >= 0) ? ("<img src=\"$stylevar[imgdir_misc]/t-us.png\" width=\"18px\" height=\"18px\">") : ("<img src=\"$stylevar[imgdir_misc]/t-ds.png\" width=\"18px\" height=\"18px\">")) . "</span>")) . "
".(($show[\'moderated\'] OR ', $vbulletin->templatecache['threadbit']);
if ($vbulletin->options['legacypostbit']) {
$vbulletin->templatecache['postbit_legacy'] = preg_replace('#<div id=\\\"post_message_\$post\[postid\]\\\"
class=\\\"vb_postbit\\\">\$post\[message\]</div>#i','
".((!in_array($forum[forumid], explode(",", "' . $vbulletin->options['tDigg_forums'] . '", -1))) ? ("") : ("
".(($post[postcount] == 1) ? ("
<div style=\'position: relative; display: inline; float: right; padding: 0px 10px 0px 0px;\'>
<div class=\"news-summary\">
<ul class=\"news-tDigg\">
<li class=\"tDigg-count\">
<a><strong id=\"votecount_$thread[threadid]\">$thread[tdiggs]</strong></a>
</li>
'.(($vbulletin->userinfo['usergroupid'] != 1) ? ('<li><img src=\"$stylevar[imgdir_misc]/t-dg.png\" onmouseover=\"this.src=\'$stylevar[imgdir_misc]/t-d.png\'\" onmouseout=\"this.src=\'$stylevar[imgdir_misc]/t-dg.png\'\" onclick=\"javascript: vote($thread[threadid],\'take\');\" width=\"25px\" height=\"18px\"><img src=\"$stylevar[imgdir_misc]/t-ug.png\" onmouseover=\"this.src=\'$stylevar[imgdir_misc]/t-u.png\'\" onmouseout=\"this.src=\'$stylevar[imgdir_misc]/t-ug.png\'\" onclick=\"javascript: vote($thread[threadid],\'give\');\" width=\"25px\" height=\"18px\"></li>') : ('')).'
</ul>
</div>
</div>") : ("")) . "")) . "
<div id=\"post_message_$post[postid]\">$post[message]</div>
<div style=\"display: block; clear: both;\">&nbsp;</div>', $vbulletin->templatecache['postbit_legacy']);
} else {
$vbulletin->templatecache['postbit'] = preg_replace('#<div id=\\\"post_message_\$post\[postid\]\\\">\$post\[message\]</div>#i','
".((!in_array($forum[forumid], explode(",", "' . $vbulletin->options['tDigg_forums'] . '", -1))) ? ("") : ("
".(($post[postcount] == 1) ? ("
<div style=\'position: relative; display: inline; float: right; padding: 0px 10px 0px 0px;\'>
<div class=\"news-summary\">
<ul class=\"news-tDigg\">
<li class=\"tDigg-count\">
<a><strong id=\"votecount_$thread[threadid]\">$thread[tdiggs]</strong></a>
</li>
'.(($vbulletin->userinfo['usergroupid'] != 1) ? ('<li><img src=\"$stylevar[imgdir_misc]/t-dg.png\" onmouseover=\"this.src=\'$stylevar[imgdir_misc]/t-d.png\'\" onmouseout=\"this.src=\'$stylevar[imgdir_misc]/t-dg.png\'\" onclick=\"javascript: vote($thread[threadid],\'take\');\" width=\"25px\" height=\"18px\"><img src=\"$stylevar[imgdir_misc]/t-ug.png\" onmouseover=\"this.src=\'$stylevar[imgdir_misc]/t-u.png\'\" onmouseout=\"this.src=\'$stylevar[imgdir_misc]/t-ug.png\'\" onclick=\"javascript: vote($thread[threadid],\'give\');\" width=\"25px\" height=\"18px\"></li>') : ('')).'
</ul>
</div>
</div>") : ("")) . "")) . "
<div id=\"post_message_$post[postid]\">$post[message]</div>
<div style=\"display: block; clear: both;\">&nbsp;</div>', $vbulletin->templatecache['postbit']);
}
}


I had to help someone get this working, so I thought I'd share the modified code.

timanlee
08-09-2008, 02:59 PM
bump.
wondering if anyone can get this to work on 3.7.2?

stwilson
08-09-2008, 11:38 PM
A 3.7 version of this would be NICE!!!

xorex
08-12-2008, 08:46 AM
need options add usergroup permision !

Glitch0r
08-21-2008, 10:39 AM
A 3.7 version of this would be NICE!!!

AMEN!, please make a 3.7 one!?

nutnut
08-23-2008, 05:54 AM
AMEN!, please make a 3.7 one!?

Yes!

dude14
10-22-2008, 05:40 PM
^ & AMEN once again to that. Please do. :)

trigatch4
10-23-2008, 09:32 PM
NEED A 3.7 (and soon after a 3.8) VERSION!!!!

I'd certainly donate/pay for something like this. Please PM me and I may consider funding the entire thing if I can offer some direction with added features.

trustful88
11-10-2008, 05:11 PM
Crap guys. My sticky threads for Black Friday are all unorganized now b/c I shut off the tDigg setting... how do I fix this???

bastard1967
12-24-2008, 12:32 PM
Problem it shows the digg but on klick it dosent update ... i have vb 3.7.3

squishi
01-05-2009, 03:11 PM
Same for me. Tried to install it but it does not work on 3.7.3. :(

squishi
01-05-2009, 03:16 PM
Man, the scriptasy forum looks so nice, but it is filled with viagra spam. So is this thread abandoned, too?

chooky
01-05-2009, 04:10 PM
Please cancel the Option "Supported" because you dont support it ! :mad:




:down::down:

TimberFloorAu
01-05-2009, 07:21 PM
Would happily pay for a 3.7+ version ( kick some money into the pot )

dartho
01-05-2009, 07:36 PM
On the previous page (post 134 (https://vborg.vbsupport.ru/showthread.php?p=1591575#post1591575)) is a post with how to make it work for 3.7...

TimberFloorAu
01-05-2009, 08:04 PM
*EDIT*

Ok changed XML.

The Product has been reimported. Activated in Vb Options, and assigned a forumID

Nothing, no images, nothing in source code to even indicate its functioning.
Have uploaded images to every bloody misc folder known to man lol

Still Zilch.

Include ( supposed 3.7+ version of the product )

dartho
01-06-2009, 01:27 AM
my bad :( since been having a look over the code, and the automatic template edits may not work with later versions of vBulletin

I've managed to get it half working on 3.8RC2 and can dig threads and the info shows up in showthread) but no luck showing digs in forumdisplay as yet. If I get more time I'll have another crack at it

TimberFloorAu
01-06-2009, 06:11 AM
Cheers Dartho.Plz PM me if you get it working :)

chooky
01-07-2009, 11:53 AM
*EDIT*

Ok changed XML.

The Product has been reimported. Activated in Vb Options, and assigned a forumID

Nothing, no images, nothing in source code to even indicate its functioning.
Have uploaded images to every bloody misc folder known to man lol

Still Zilch.

Include ( supposed 3.7+ version of the product )


Also dont works at me, I see no changes :erm:

Trana
05-19-2009, 09:44 PM
Can someone please provide the template changes and we can do it manually?

marshal_ramdev
05-31-2009, 04:02 PM
nice one

Blaine0002
10-12-2009, 11:23 PM
soooooo this version should work with the newest version of vbulletin. tested on 3.7 but should work on 3.8

Uses template system not the unreliable system it was using before,
leave feedback.

probably a good idea if you uninstall the previous version if you have it installed.

edit: forgot, instead of putting the forumids in the vbulletin options, go into each forums options you want this enabled on, and scroll to the bottom and you should see "digg forum?" or something of the like. make it yes.

reddyink
10-17-2009, 12:24 PM
I downloaded your update to tDigg MOD but still not working
1) It is showing up in forumdisplay but

nothing showing up in showthread.
Enabled in Forum via forum manager
Uploaded images to correct style.

MOD is enabled in vboptions.

vb3.8.4 version..
thanks
soooooo this version should work with the newest version of vbulletin. tested on 3.7 but should work on 3.8

Uses template system not the unreliable system it was using before,
leave feedback.

probably a good idea if you uninstall the previous version if you have it installed.

edit: forgot, instead of putting the forumids in the vbulletin options, go into each forums options you want this enabled on, and scroll to the bottom and you should see "digg forum?" or something of the like. make it yes.

artherd
10-28-2009, 08:36 AM
Same problem, shows up in forumdisplay but not in showthread.

lm3a.net
11-08-2009, 09:37 AM
Cool.

Will it make some load on the server ?

mytweakerart
02-09-2010, 12:20 AM
awesomely close in 3.8.2. plz plz plz make it work!
problem is you can change the numbers erratically after clicking up/down over and over in a post.

http://mytweakerart.com as a sample site....

mytweakerart
02-09-2010, 06:49 PM
works for me in 95% in
http://www.TweakerArt.com

but doesnt show up in the forums for me in
http://www.ToyotaBrakeRecall.org
i cant get the little thumbs to appear on the post. install and ACP options look fine.

using latest ver in post.
help

New Joe
04-26-2010, 07:36 AM
soooooo this version should work with the newest version of vbulletin. tested on 3.7 but should work on 3.8

Uses template system not the unreliable system it was using before,
leave feedback.

probably a good idea if you uninstall the previous version if you have it installed.

edit: forgot, instead of putting the forumids in the vbulletin options, go into each forums options you want this enabled on, and scroll to the bottom and you should see "digg forum?" or something of the like. make it yes.

All i get is a database error within the Admin CP when using that xml file.:down:

lazydesis
09-27-2010, 03:25 PM
soooooo this version should work with the newest version of vbulletin. tested on 3.7 but should work on 3.8

Uses template system not the unreliable system it was using before,
leave feedback.

probably a good idea if you uninstall the previous version if you have it installed.

edit: forgot, instead of putting the forumids in the vbulletin options, go into each forums options you want this enabled on, and scroll to the bottom and you should see "digg forum?" or something of the like. make it yes.

That works for me on vb 3.8.6 ... check any thread in http://www.lazydesis.com :) (of course with slight modifications made to the templates)

Thanks so much :up:

Tyran1
04-25-2012, 01:03 AM
I need this for 3.8.7 PL2

Please !!!!