vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Who Rated This Thread (https://vborg.vbsupport.ru/showthread.php?t=109540)

Developer 03-04-2006 10:00 PM

Who Rated This Thread
 
Who Rated This Thread?
Initial
Description::.
This hack show to certain user groups who rated this thread
Hack Features::.
1-easy yo install
[See Screen Shot]

Installation::.

1-open the prodcut with any editor
find:
Code:

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">
at line 11
change 5,6,7 to usergroups ids you want to allow to them to see the hack
2-Import The product.
3-Edit Template showthread
find:
Code:

</head>
add before it:
Code:

<script language="JavaScript">
<!--//BEGIN Script

function new_window(url) {

link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=250,left=180,top=180");

}
//END Script-->
</script>

thren Find:
Code:

<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a>
Add after it
Code:

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"><a href="#" onclick="javascript:new_window('misc.php?do=whorate&threadid=$threadinfo[threadid]')">$vbphrase[devel_whorate_who]?</a></if>
remember to change 5,6,7 to usergroups ids you want to allow to them to see the hack
History::.
1.0.0 On 5. Mar 2006 Initial Version.
Hack Languages::.
  • English
Details::.
2 plugins, 4 phrases, 2 templates, 0 option, 1 query[reading]
Donation::.
Feel Free To https://vborg.vbsupport.ru/external/2010/09/1.gif
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.orghttps://vborg.vbsupport.ru/

Support Given For Who Clicked Install {ONLY}

.Tim 03-05-2006 08:20 PM

When I import the product I get "XML Error: mismatched tag at Line 165".

Developer 03-05-2006 09:36 PM

fixed :)

.Tim 03-05-2006 09:53 PM

Works perfect. Nice job. However, it would be nice if you could make it where in the forum display next to the post title we could click the stars and open a window showing who rated. Great hack, still. :D

Developer 03-05-2006 10:38 PM

nice idea :)
i think i'll include it

BoYagoob 03-14-2006 02:48 AM

installed

bashy 03-14-2006 05:30 PM

Hi m8

Me installed and all seem Ok thanks :)

Developer 03-14-2006 09:01 PM

you could simply do this by adding reg. users group id =2
look at step 1 & 3

moonclamp 03-14-2006 09:27 PM

Is there an "if condition" we could use so that the link is only visible if a thread is rated?

*installs*

Developer 03-21-2006 04:30 PM

Quote:

Originally Posted by moonclamp
Is there an "if condition" we could use so that the link is only visible if a thread is rated?

*installs*

i'll add this in next version


All times are GMT. The time now is 12:01 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.01141 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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