vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Trader Ratings v1.2.0 (https://vborg.vbsupport.ru/showthread.php?t=65730)

eoc_Jason 06-06-2004 03:32 AM

I just finished coding up the edit/del feature. You can customize the time to whatever you want (or disable it to prevent regular user editing). Mods/admins have the right to edit/delete all feedback.

I made all the necessary changes to the DB & code, there was a lot of re-write to support the editing & permissions and such, I'm not sure if I will consolidate it before this next release or not. (I try to write functions whenever feasable.)

Sunday I'll probably code in the usergoup permission stuff, convert some new text to phrases, and write the upgrade/install scripts. If nobody reports any bugs to me on my forum then I'll release v1.10 on Monday morning.

I think user based editing/deletion will really help out a lot and reduce those PMs from members saying "hey, I made a mistake rating this person..." ;)

One thing I *might* change in the future is a soft/hard delete option, kinda like what you can do with threads. But I'm not really sure it's worth the effort...

BamaStangGuy 06-07-2004 02:47 PM

How do I make it where it only shows the Trader Rating (0) in postbit for certain forums?

I only want that to show in the For Sale sections of my forum.

eoc_Jason 06-07-2004 03:20 PM

Well, depending on if you have only 1 FS section or multiple, there's a couple ways you can do it, but both require editing your postbit template and using some conditionals. Also someone asked about specific user groups so I'll include those too:

Here's some examples (note, this code will be included with 1.1.0):

For specific member group (or sub-group):
PHP Code:

<if condition="is_member_of($post, 11)">
(
trader ratings row)
</if> 

For specific forum section:
PHP Code:

<if condition="$thread[forumid] == 200">
(
trader ratings row)
</if> 

For multiple forum sections:
PHP Code:

<if condition="in_array($thread[forumid],array(200,201))">
(
trader ratings row)
</if> 

Combining the two together:
PHP Code:

<if condition="is_member_of($post, 11) && in_array($thread[forumid],array(200,201))">
(
trader ratings row)
</if> 


Hope that helps out... FYI, I'm still coding the upgrade script for 1.1.0. Should be up soon though.

eoc_Jason 06-07-2004 05:27 PM

Okay, version 1.1.0 has been officially released. I tested out the upgrade and install scripts, however please post your upgrade/install results (good & bad) so I know if it is working or not. :)

There are some pretty big code & template changes in 1.1.0, be sure to backup your user_rate_trade table and 3 trating_xxx templates!!! (I can't stress this enough!) The update makes several changes to the DB table, and will overwrite the trating templates!

I'll be posting updated screenshots in a few. Read the CHANGELOG.txt & README.txt file more more info.

NexVision 06-07-2004 05:49 PM

upgrade script worked beautifully

EyeCrave 06-07-2004 06:37 PM

Works like a charm. Thanks again.

Yahhoon23 06-07-2004 06:41 PM

Worked Perfect on mine as well using a table prefix.

Great Job.

lifesourcerec 06-07-2004 07:34 PM

I went ahead and re-added the code to make the link mandatory.

sketch42 06-07-2004 08:12 PM

everything works like a charm ;)

just one question but where do i add this code? am i replacing the existing code on the postbit? im not to clear on that
Code:

<if condition="in_array($thread[forumid],array(49,52,53,54,55))">
(trader ratings row)
</if>


eoc_Jason 06-07-2004 08:14 PM

Right, so the part where you have <div>Trader Ratings....</div>

Put the <if...> before that row, and the </if> after that row in the postbit/postbit_legacy.


All times are GMT. The time now is 04:22 PM.

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.01314 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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