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)
-   -   vBTestimonials (https://vborg.vbsupport.ru/showthread.php?t=107264)

Nuguru 08-28-2006 07:41 AM

Hello Everyone,

Got something strange going on. Who's Online is showing almost everyone on the testimonials page, when in fact they are elsewhere on my site. Anyone know how to fix this?


Thank You,

Nuguru :)

derekivey 08-28-2006 12:57 PM

Probably a bug. I'll look into it.

paul41598 08-28-2006 04:18 PM

Derekivey,

Is there a way to add in a way to tel who voted on a testimonial?

Also, can guests vote on a testimonial?

bashy 08-28-2006 04:43 PM

Hi again Derekivey

Any way to make these totaly anonymous to all but the admincp please?

derekivey 08-28-2006 05:15 PM

What do you mean? I don't quite understand what you mean, sorry. Can you please explain better?

Brandon Sheley 08-28-2006 05:19 PM

Quote:

Originally Posted by derekivey
No, sorry. This hack does not currently have that feature. I might be able to make some kind of converter when I get some time though.

Derek

thank you :)

I'll keep checking back on this thread

derekivey 08-28-2006 05:23 PM

Quote:

Originally Posted by paul41598
Derekivey,

Is there a way to add in a way to tel who voted on a testimonial?

Also, can guests vote on a testimonial?

If you look in PHPMyAdmin in the vbtestimonials_votes table, you can. I don't think I ever put anything in the admincp yet. I might add that to a later version. You can do a simple query in PHPMyAdmin like this to see who voted...

[sql]SELECT FROM vbtestimonials_votes WHERE tid = 'the testimonial id'[/sql]

bashy 08-28-2006 05:59 PM

Memebers can see the testimonial but not who it was by, only the admin can see who left it, does that make sense?

derekivey 08-28-2006 09:35 PM

I will post some template edits you can do to prevent them from being shown to members shortly...

Derek

derekivey 08-28-2006 09:56 PM

Ok here they are...

Open vBTestimonials_Postbit.

Find:
PHP Code:

<td align="$stylevar[left]">
<
div><class="bigusername" href="member.php?u=$sr[userid]target="_BLANK">$sr[username]</a></div>
<
div class="smallfont">$sr[usertitle]</div>
</
td

Replace With:
PHP Code:

<if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<
td align="$stylevar[left]">
<
div><class="bigusername" href="member.php?u=$sr[userid]target="_BLANK">$sr[username]</a></div>
<
div class="smallfont">$sr[usertitle]</div>
</
td>
</if> 

Close and Save vBTestimonials_Postbit.

Open vBTestimonials_Postbit_Legacy.

Find:
PHP Code:

<div><class="bigusername" href="member.php?u=$sr[userid]target="_BLANK">$sr[username]</a></div>
<
div class="smallfont">$sr[usertitle]</div>
<
br /> 

Replace With:
PHP Code:

<if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<
div><class="bigusername" href="member.php?u=$sr[userid]target="_BLANK">$sr[username]</a></div>
<
div class="smallfont">$sr[usertitle]</div>
<
br />
</if> 

Close and Save vBTestimonials_Postbit_Legacy.

If you have additional staff usergroups, you will need to add those user groupids to the code as well.

Derek


All times are GMT. The time now is 08:10 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.01320 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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