vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - iTrader v2.0.1 (https://vborg.vbsupport.ru/showthread.php?t=102965)

AllenMead 01-28-2006 04:50 PM

Thanks Patrick, sorted works a treat!

AllenMead 01-28-2006 05:00 PM

Ah, one other thing, how do I get it to show both the feedback number and the percentage, I can only get it to show one or the other.

Thanks.

mariannet 01-28-2006 08:16 PM

I have the following error and I know it's because of my PHP version, but I have had it once before and then I could use a different term [than html_entity_decode]
to solve it, can't remember what - can you help?

Code:

Call to undefined function: html_entity_decode() in /home/xxx/xxx-www/includes/functions_itrader.php on line 22

mariannet 01-28-2006 08:23 PM

Quote:

Originally Posted by mariannet
I have the following error and I know it's because of my PHP version, but I have had it once before and then I could use a different term [than html_entity_decode]
to solve it, can't remember what - can you help?

Code:

Call to undefined function: html_entity_decode() in /home/xxx/xxx-www/includes/functions_itrader.php on line 22

Sorted and in case anyone else should need it:

Open /includes/functions_itrader.php

Go to line 17
On the line before: function itrader_checkurl($dealurl)
Add:
Code:

function html_entity_decode($string)
{
$trans_tbl = get_html_translation_table(HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($string, $trans_tbl);
}


desimedia 01-31-2006 02:45 PM

ok, I made the relevant changes to the memberlist files, but what about the other changes? how can someone give feedback/rating? where is that option? I am pretty new to this, so any step by step would be nice.

thanks

jmw 01-31-2006 06:48 PM

Where exactly can this plugin be translated to other language? Do I have to go through the code and translate it or do I just search phrases in vbulletin and translate them? Sorry, I have no clue as to how to do it. Thanks in advance.

kontrabass 02-01-2006 02:52 PM

How can I control who gets 'suspicious activity' and warning emails? I don't need them sent to all 40 of my moderators... :(

CB88 02-03-2006 03:46 PM

I was running the older version of this on my vbulletin 3.0.3

I just updated to 3.5.3 and it no longer works. The feedback score is still there but does not work upon clicking.

I tried all the installation instructions but am still very new to this...

I am confused about what to do with the templates...any help would be appreciated.

bada_bing 02-03-2006 03:59 PM

Quote:

Originally Posted by CB88
I was running the older version of this on my vbulletin 3.0.3

I just updated to 3.5.3 and it no longer works. The feedback score is still there but does not work upon clicking.

I tried all the installation instructions but am still very new to this...

I am confused about what to do with the templates...any help would be appreciated.

Template Instructions:
Two fields are added to the "user" table to facilitate rating usage pretty much anywhere you please within the forum. The two fields are:

itrader_total - iTrader Score (stored as an integer)
itrader_pcnt - Percent Positive Feedback (also stored as an integer)
Most likely you will want to add the score info to the postbit and/or postbit_legacy template(s), MEMBERINFO, and memberlist_resultsbit template. Actual placement and style is entirely up to you, however here's a sample to get you started. Note that the MEMBERINFO & memberlist_resultsbit templates won't need the conditional around the text since you can't view a "guest" in those cases.

<if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b>)</div></if>

Additionally it would be wise to have some sort of link that is easily accessible to your members so they can view their own ratings. My suggestion would be to add some code in the navbar or usercp menu somewhere. If no userid is specified then the system defaults to the user's own iTrader page.

<a href="itrader.php?$session[sessionurl]">iTrader</a>

Use your imagination where you want these links to be visible, there's nothing set in stone where it should be display or how it should look. Some people wanted the percent score so I added in this version. You can get creative and use some stars or something based on their score or positive ranking.

If you only wanted the info to show up for specific usegroup, you can use the "is_member_of()" function conditional in your templates. Also if you only wanted it to show up for specific forum sections, you could use the "in_array()" function. Read more in the vBulletin documentation for nifty things with template conditionals.



Sorry to skimp on the documentation, next release will be much better, however most people should know what they are doing by now with templates and if you don't, spend the time to learn as you can greatly enhance your forum.

CB88 02-03-2006 11:59 PM

Figured it out...works great.


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