vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - vBorg Thread Rating (https://vborg.vbsupport.ru/showthread.php?t=142733)

optrex 08-18-2007 11:16 AM

Could really do with the option to vote not appearing again when you revisit the thread. Just displaying the rating would be better. Otherwise its a fantastic hack.

Rich 08-18-2007 02:38 PM

Hello,

Follow the instructions in the attached text file and the vote box will work EXACTLY like it does on vb.org. (This includes seeing the vote after it was made.)

Glad I could help.

optrex 08-18-2007 04:22 PM

rich you are a star - works great

Steigeisen 08-18-2007 06:59 PM

Gee, thank you very much!
But something is not working here. After I made the changes I got two yellow bars, of which one disappeared after rating. I tried this twice, and I can't figure out why.

I noticed that there is a code which I cannot find in the original showthread (the red line):
Quote:

<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&amp;p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>

<a name="poststop" id="poststop"></a>

this is missing in the original. Since I'm not familiar with coding I just copy/paste the mod as the coder recommended. His attached file is the whole showthread template. However, in there I do not find that line. Is it that, what causes the problem?

I'd be glad if someone could send me the showthread template with the mod in full. Shame on me, but as I said, I'm not familiar with coding. Although I'm sure I made everything right and that second bar does work, it's just that I have two bars now, the old and a new one.

Or just let me know where I have to change something to get that old bar out. ;)

Thanks for your help!

Greets
Steigi

optrex 08-18-2007 07:05 PM

The code rich placed is for a fresh install. If you have already installed it, work backwards with the old code replacements, then just work your way around the additional deletes in the middle section - you'll see if you compare the 2 instructions.

Steigeisen 08-18-2007 07:07 PM

Gee great! Thank you very much! Silly me, I didn't think of that. ;)

Now it's working perfectly, just great!

Thanks again and greets
Happy Steigi :)

rayphua 08-18-2007 07:23 PM

Just installed the new code Rich provided. I'm not sure if it did manage tolve the 1 vote issue, where only 1 member needs to vote to get the thread rated. Does anyone know?

gokhan58 08-19-2007 10:56 AM

thank you

soletrader 08-19-2007 01:37 PM

Quote:

Originally Posted by Rich (Post 1320317)
Hello,

Follow the instructions in the attached text file and the vote box will work EXACTLY like it does on vb.org. (This includes seeing the vote after it was made.)

Glad I could help.

Im gettting an error:

The conditional on line 382 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.

Can you double check this? Thanks

Rich 08-19-2007 05:45 PM

Hello,

You should try redoing the modification. Everything I wrote in there works as is. I tested it several times, and as you can see, others have also made the same edits and the conditionals work fine for them as well.

I would suggest removing the mod, and then follow my instructions to the letter. If you do it as i have it outlined, it will work.

If you have already made modifications to your SHOWTHREAD template, its possible you are removing an "</if> from one that already exists.

Mecho 08-19-2007 06:02 PM

rich thanks for try to help ... i have a problem . when i click on Vote Button nothing will be happen !! still box is there and seems that i can not vote at all !!

any idea ?

Rich 08-19-2007 08:19 PM

Hello,

If you want to create me a temporary admin account, I am more than willing to have a look at your showthread template to try and decipher the issue. Shoot me info via PM if you wish for me to have a look.

optrex 08-19-2007 08:52 PM

This may or may not be related, but has only started appearing recently - has anyone lost inline moderation or get "you have submitted an invalid vote" on quick reply?

Rich 08-19-2007 08:59 PM

I have lost the inline moderation. I will look into that. I have had no issue with the quick reply as of yet.

optrex 08-19-2007 09:03 PM

Yep, just tested and confirmed - on a thread that has a vote a user loses quick reply - mods and admins lose inline moderation.

Threads without a vote are OK

Rich 08-19-2007 10:25 PM

I am just about there. I have one java error to work around, and I should be able to post the corrected version.

As I state in my profile, I am a fairly new coder, so some of this takes me a few. ;) (Not to mention this isn't my mod. lol)

Rich 08-20-2007 12:00 AM

I have released my version of this modification so that I can support and update it as needed. The rewritten release can be found here: https://vborg.vbsupport.ru/showthread.php?t=155697

I mean no disrespect to Magnus for re-releasing this modification. I rewrote the entire modification from scratch and added/removed code where needed. These 2 mods are not the same as my version works as vBulletin.org's does.

Stoebi 08-20-2007 12:22 AM

I miss the AJAX feature which come with the originally rating.

Regards,

Stoebi

optrex 08-20-2007 07:12 AM

I think we are back to square one atm as Rich's link has now been graveyarded.

Rich 08-20-2007 09:18 AM

By my request, they removed that link. The thread was acting funny. The download is now located here: https://vborg.vbsupport.ru/showthread.php?t=155701

That "should" sort everything out!

magnus 08-21-2007 02:23 PM

Here, if you've applied the mod previously. Try this. I haven't had a chance to do much testing, but I just slapped those changes and it seems to be working. Once rated, the box will no longer display.

Let me know if that fixes it.

FIND:
HTML Code:

<if condition="$show['threadrating']">
<if condition="$show['ratethread']">

REPLACE WITH:
HTML Code:

<if condition="!$show['rating'] AND $show['threadrating'] AND $show['ratethread']">
FIND:
HTML Code:

</script>
</if>
</if>

REPLACE WITH:
HTML Code:

</script>
</if>


obmob 08-21-2007 03:39 PM

Hmm... well, magnus idea hides the box, but it's similar to the results I got, only one vote allowed.

I'll play with this and let you know if I get some results XD

magnus 08-21-2007 05:21 PM

Ah, so the problem you're saying is that only 1 person can vote. I'll look at that.

magnus 08-21-2007 06:33 PM

Ok, I see the problem people are having. I started off trying to fix it, and it looks more like I'm rewriting it. So let's see how this winds up and what we're left with..

obmob 08-21-2007 09:01 PM

Yeah, we should allow more votes, don't you think? :p

I was unable to make it work, thanks! :(

hirlas 09-02-2007 01:36 PM

:up: works great, easy install,

thank you for your hard work!

jGas 03-03-2008 08:28 AM

is it possible to install it not in the showthread but inside the first post?

chikkoo 03-11-2008 02:19 PM

Quote:

Originally Posted by jGas (Post 1455748)
is it possible to install it not in the showthread but inside the first post?

Or, atleast I will prefer to put it after the First post.

Thomas P 03-17-2008 03:18 PM

Great, will give it a try.

Does this fully support the permission and option settings?

MissKalunji 03-17-2008 03:54 PM

what permissions are those?

Thomas P 03-18-2008 07:42 AM

You can set which usergroup has what set of rights on specific forums.

F0xy 03-18-2008 10:18 AM

Quote:

Originally Posted by magnus (Post 1322520)
Ok, I see the problem people are having. I started off trying to fix it, and it looks more like I'm rewriting it. So let's see how this winds up and what we're left with..

are you going to be releasing a new version soon?

MissKalunji 03-18-2008 01:15 PM

Quote:

Originally Posted by Thomas P (Post 1467756)
You can set which usergroup has what set of rights on specific forums.

No it doesn't seem to work with usergroup even tho i turned it off for unregistered it still showing but it doesn't bother me since i only use it for the video section

Breathex 04-11-2008 06:46 AM

Can we use this w/3.7.x?

powerful_rogue 05-13-2008 02:10 PM

Hi,

Im wondering if anyone could help! In themod it says find and delete

Quote:

<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
The closest thing I have to it in my showthread is

Quote:

<if condition="$show['threadrating']">
<td class="tcat" id="threadrating" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating", true); </script></if>
</td>
</if>
Any help would be great :)

EDIT - Found it in the end. This mod dosent appear to operate correctly. Uninstalled.

TruthElixirX 05-24-2008 09:59 PM

Is it possible to move the box to the bottom of the thread? I have tried it, but when I do, the AJAX breaks.

The box shows up, I select a box, and hit vote. Loading bar at the bottom of the screen shows up real quick and goes away, but hte box stays the same. I refresh the page the vote went through. The AJAX just isn't refreshing the box. Ideas?

Ninja Tom 06-13-2008 06:03 PM

Quote:

Originally Posted by Breathex (Post 1488080)
Can we use this w/3.7.x?

Is it stable enough? I've looked over some comments and it doesn't seem to be all that stable.

vietdjclub 07-13-2008 01:21 AM

how to set "you can't rate your own thread" please

Harley D 07-28-2008 04:04 AM

If a member is banned and the post deleted. and if someone clicks on a link to that post, you will get a database error.

Quote:

Database error in vBulletin 3.6.7:

Invalid SQL:

SELECT *
FROM yourdatabase_threadrate
WHERE userid = 1
AND threadid =;
It should tell the person that the post was deleted or some other page error, rather than a database error.

Harley D 09-15-2008 08:43 PM

Anyone have a fix?


All times are GMT. The time now is 09:11 AM.

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.01589 seconds
  • Memory Usage 1,820KB
  • 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
  • (4)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete