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)

Guest210212002 01-19-2006 06:38 PM

Quote:

Originally Posted by Odysseus
One question:
In the vB3.0 version of this hack, an overview page was included, where you could see statistics about all ratings and the top rated members etc.
Where is this page in iTrader 2.0?

[high]* Guest210212002 would also like to know.[/high]

bada_bing 01-19-2006 06:46 PM

There was a search rating by member name with the older version also :squareeyed:

cgchris99 01-20-2006 02:52 AM

Where is the best place to display the itrader rating?

I was thinking about putting it under the users name in the thread display?

What do you think?

Any examples of what others have done?

Thanks

phonexpo 01-20-2006 02:56 AM

Quote:

Originally Posted by cgchris99
Where is the best place to display the itrader rating?

I was thinking about putting it under the users name in the thread display?

What do you think?

Any examples of what others have done?

Thanks

Here's mine - http://phonexpo.net/showthread.php?p=8727#post8727

It looks well in the postbit_legacy

Puntoboy 01-20-2006 02:57 AM

Quote:

Originally Posted by phonexpo
Here's mine - http://phonexpo.net/showthread.php?p=8727#post8727

It looks well in the postbit_legacy

same for me...

http://www.puntosports.co.uk/forums/...053#post458053

Puntoboy 01-20-2006 02:58 AM

Quote:

Originally Posted by Odysseus
One question:
In the vB3.0 version of this hack, an overview page was included, where you could see statistics about all ratings and the top rated members etc.
Where is this page in iTrader 2.0?

this would be very good.

Guest210212002 01-20-2006 03:47 PM

Quote:

Originally Posted by phonexpo
Here's mine - http://phonexpo.net/showthread.php?p=8727#post8727

It looks well in the postbit_legacy

I have mine there as well, with a conditional so that they only show in the for sale/trade type forums.

phonexpo 01-20-2006 03:50 PM

Quote:

Originally Posted by Chris-777
I have mine there as well, with a conditional so that they only show in the for sale/trade type forums.

Yeah I must just limit it to just my sale section too.

cdoyle 01-20-2006 05:08 PM

Hi,
Can someone post a link to a live forum that has this installed? Would like to see how it looks in use.

Thanks
Chris.

Guest210212002 01-20-2006 05:56 PM

Quote:

Originally Posted by cdoyle
Hi,
Can someone post a link to a live forum that has this installed? Would like to see how it looks in use.

Thanks
Chris.

http://www.sevenstring.org/forum/showthread.php?t=3150

Look in OP's postbit.

And here's his view page:

http://www.sevenstring.org/forum/itrader.php?u=187

(Not much data on my site, hasn't been installed long)

fonzie11 01-20-2006 07:14 PM

i just installed it.. but how do i leave the people the feedback now? Were do i goto?

kontrabass 01-23-2006 09:01 PM

Sorry if this has been asked previously (did a search): Is there a way to specify the name(s) of moderators who are to receive reports of bad ratings?

graham_w 01-24-2006 03:24 AM

Quote:

Originally Posted by eoc_Jason
graham_w - It links directly to a (thread) URL for normal users, it only links to the detail page for the two people involved in the deal & admins. You can still access the (thread) URL on the detail page if you click the linked comment text at the top.

Ahh thanks mate :) Makes sense that would happen like that !

Another question - we used to keep a manual scoring system, and want to update all members feedback score in itrader with their total. What is the best way to manually add this ? Don't mind if its manual DB work - just need to know the best way :)

exilera 01-24-2006 02:33 PM

I'm not a coder, so I'm not sure exactly where to add the rating code to the postbit/postbit legacy, memberinfo, etc, or make any changes necessary for it to look good.

Would someone mind posting where they placed the iTrader display code on their forums?

Another question, how would I add a link to the iTrader display in the user's CP to add it under "Miscellaneous"?

Thanks!

exilera 01-24-2006 03:07 PM

Quote:

Originally Posted by Damian
All the template edits I have posted in this thread are in the attached zip file.



In memberlist

Find:

PHP Code:

<td class="thead" align="$stylevar[left]nowrap="nowrap"><a href="$sorturl&amp;order=ASC&amp;sort=username&amp;pp=$perpage$usergrouplink">$vbphrase[username]</a$sortarrow[username]</td

After add:

PHP Code:

<td class="thead" nowrap="nowrap">iTrader</td


In memberlist_resultsbit

Find:

PHP Code:

<tr align="center">
    <
td class="alt1Active" align="$stylevar[left]id="u$userinfo[userid]">
        <
a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
        <if 
condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>
    </
td

After add:

PHP Code:

<td class="$bgclass">(<strong><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[itrader_total]</a></strong>)  / $userinfo[itrader_pcnt]%</td

If you want an button instead of a text link showing current score, add this instead of the above:

PHP Code:

<td class="$bgclass"><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]"><img src="$stylevar[imgdir_button]/itrader.gif" alt="itrader.gif" title="Submit feedback for $userinfo[username]border="0" /></a></td

Make a button "itrader.gif" and upload it to your button directory. I made a button for those of you using the default template.

Would you mind doing the same thing for the Postbit and postbit legacy templates, and the AdminCP?

exilera 01-24-2006 03:24 PM

By the way, how would I fix the bottom bar in the attached image? :)

Thanks for the help!

Guest210212002 01-24-2006 03:44 PM

Quote:

Originally Posted by exilera
By the way, how would I fix the bottom bar in the attached image? :)

Thanks for the help!

I believe you'd need to look for colspan="4" to the bottom row of that template, and change it to colspan="5".

exilera 01-24-2006 03:52 PM

Quote:

Originally Posted by Chris-777
I believe you'd need to look for colspan="4" to the bottom row of that template, and change it to colspan="5".

Hmm, I believe this is the relevant code from the MEMBERLIST template:

Code:

<td class="tfoot" colspan="$totalcols" align="$stylevar[right]">
                <span class="smallfont">
                <if condition="$show['usergroup']">
                        <input type="submit" class="button" value="$vbphrase[remove_selected_users]" />
                <else />
                        <phrase 1="$first" 2="$last" 3="$totalusers">$vbphrase[showing_results_x_to_y_of_z]</phrase>
                </if>
                </span>
        </td>


AllenMead 01-28-2006 04:26 PM

Great hack, upgrade installed seamlessly. One question, how do I show this in the user's profile on each post instead of at the top or bottom 'outside' of the post as it does on your site Jason?

Thanks in advance!

phonexpo 01-28-2006 04:35 PM

Quote:

Originally Posted by AllenMead
Great hack, upgrade installed seamlessly. One question, how do I show this in the user's profile on each post instead of at the top or bottom 'outside' of the post as it does on your site Jason?

Thanks in advance!

Hi,

Put the code in to the postbit legacy ;).

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.

Edmund 02-04-2006 02:41 PM

I was re-reading thru this entire thread and noticed no one has reported a problem we are encountering - we have disabled suspicious activity email notifications thru iTrader's Admincp settings but are still receiving them.

Any suggestions?

Btw, we are running vbb 3.5.3.

fluentdesigns 02-04-2006 08:45 PM

Im trying to get the feedback to show up in the postbit but am having no luck. I tried adding two different lines of code but they dont seem to be working. here is what I put in my postbit.

1.

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

2.

<if condition="$post[itrader_total]">$post[itrader_pcnt]%</if>

Damian 02-05-2006 04:02 AM

Quote:

Originally Posted by fluentdesigns
Im trying to get the feedback to show up in the postbit but am having no luck. I tried adding two different lines of code but they dont seem to be working. here is what I put in my postbit.

1.

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

2.

<if condition="$post[itrader_total]">$post[itrader_pcnt]%</if>

Use:

PHP Code:

<div>iTrader: <strong><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></strong> / $post[itrader_pcnt]% </div


graham_w 02-06-2006 10:01 PM

Quote:

Originally Posted by graham_w
Another question - we used to keep a manual scoring system, and want to update all members feedback score in itrader with their total. What is the best way to manually add this ? Don't mind if its manual DB work - just need to know the best way :)

Just hoping this question didn't get lost - has it been asked previously ? My problem is when updating the user profile directly, it still doenst update in the itrader feedback page properly. Hoping there is a better way of manually adding scores :)

Guest210212002 02-06-2006 10:18 PM

Anyone come up with a summary page for this that only lists members with a feedback rating?

eoc_Jason 02-07-2006 07:34 PM

Hey guys, sorry I haven't been around. Work have just been killing me along with other obligations.

I need to finish up all the changes for the 2.0.2 rollout, there's a few bug fixes and additional features. I'll try to get the summary page done, but I'm not making any promises. Someone could port over the old page and call it something else like itrader_home.php or something.

grahm_w - Do not manually edit the scores in the user table, those get overwritten from the itrader table data. If you want to add additional records you will need to add them to the itrader table then you can do a mass-update to the user table via the admincp.

I'm not sure why suspicious activity would still be emailed if you disable it. What is the exact reason it gives? I'll have to double check the code.

Someone else mentioned an error with pagination when viewing via the "from buyers" "from sellers", or other tabs, but I have not been able to reproduce that error and nobody else has reported it, I think it might be related to an old template or file.

As for having only certain groups get the emails from suspicious activity. Any group set to "can admin itrader" gets the emails. If you don't want all your mods to get them, create a separate usergroup and set only those mods you want as itrader admins in that as a sub-group. I might make another usergroup option related to the emails, but no promises on that either.

acorndomains.co 02-07-2006 08:05 PM

I have just added it to acorndomains .co.uk and seems to be working great.

Would like to see a couple of mods as already requested here, a top ratings list (best and worst) and extra field for transaction value.

Many thanks for a great plug in!

Gio~Logist 02-07-2006 08:14 PM

Quote:

Originally Posted by eoc_Jason
Hey guys, sorry I haven't been around. Work have just been killing me along with other obligations.

I need to finish up all the changes for the 2.0.2 rollout, there's a few bug fixes and additional features. I'll try to get the summary page done, but I'm not making any promises. Someone could port over the old page and call it something else like itrader_home.php or something.

grahm_w - Do not manually edit the scores in the user table, those get overwritten from the itrader table data. If you want to add additional records you will need to add them to the itrader table then you can do a mass-update to the user table via the admincp.

I'm not sure why suspicious activity would still be emailed if you disable it. What is the exact reason it gives? I'll have to double check the code.

Someone else mentioned an error with pagination when viewing via the "from buyers" "from sellers", or other tabs, but I have not been able to reproduce that error and nobody else has reported it, I think it might be related to an old template or file.

As for having only certain groups get the emails from suspicious activity. Any group set to "can admin itrader" gets the emails. If you don't want all your mods to get them, create a separate usergroup and set only those mods you want as itrader admins in that as a sub-group. I might make another usergroup option related to the emails, but no promises on that either.


I have PMed you regarding a question.

djwins 02-08-2006 10:47 AM

Quote:

Originally Posted by eoc_Jason
I need to finish up all the changes for the 2.0.2 rollout, there's a few bug fixes and additional features. I'll try to get the summary page done, but I'm not making any promises.

I apoligize if this is innappropriate (or insulting), but I will paypal you $50 if the home page makes into 2.0.2.

Thanks!

kobescoresagain 02-10-2006 03:58 PM

Jason, I would like to thank you for this wonderful code. I have used your different Feedback systems before and have nothing but praise for them. A job well done.


All times are GMT. The time now is 01:23 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.02193 seconds
  • Memory Usage 1,877KB
  • 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_code_printable
  • (6)bbcode_php_printable
  • (18)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
  • (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