vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - iTrader 2.1.0 (Interim Release) (https://vborg.vbsupport.ru/showthread.php?t=182400)

graham_w 01-12-2009 01:29 AM

I've just upgraded to VB 3.8.0 without drama or problems with itrader. Just had to readd my template changes but otherwise all good :)

WinnipegHeights 01-12-2009 01:42 AM

If anyone needs help migrating from 1.0.2 (3.0.x) to 2.1.0 (3.5+).. Let me know! The script to migrate your old ratings over is very simple, and I can provide it to you if you'd like..

pmkb 01-12-2009 01:59 PM

Quote:

Originally Posted by pmkb (Post 1677125)
Jason, I've got iTrader 2.0.1a installed on one of my forums and when strict URL checking is enabled, the system won't allow a moderator to modify any member ratings (they are not one of the members who started the referenced trade thread). The itrader_checkurl() function is always returning an invalid URL.

I checked the current 2.1.0 release and the function code did not change, so I assume the problem remains with the current version.

Any idea how I could modify the function so that moderators (super mods/admins) can modify ratings?

Is anyone else having this problem???

gamerzhope 01-12-2009 10:05 PM

first,

i tried to read through the post.. but honestly there just too many of them.

Can anyone please post in detail how to make it so that information about the user's trade status show below there name/avatar in the posts that they make.. and also a link to there itrader page..

i would really much appreciate it thanks!

soundbarrierpro 01-12-2009 10:09 PM

Quote:

Originally Posted by gamerzhope (Post 1710271)
first,

i tried to read through the post.. but honestly there just too many of them.


Can anyone please post in detail how to make it so that information about the user's trade status show below there name/avatar in the posts that they make.. and also a link to there itrader page..


i would really much appreciate it thanks!

All the detail and instruction is in the download package. Read the readme, it's all there what templates to edit.

gamerzhope 01-12-2009 10:19 PM

thanks i see that.. it shows this:

Code:

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.


so in the templates.. postbit, postbit legacy, MemberInfo, and memberlist_resultsbit templates.. i just add this condition <if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b>)</div></if>

at the end of each template?

im just double checking for i mess up badly like i did in the past with other mods :S

thanks

acorndomains.co 01-12-2009 10:19 PM

There are no upgrade instructions in the readme file, do I just overwrite everything?

soundbarrierpro 01-12-2009 10:29 PM

Quote:

Originally Posted by gamerzhope (Post 1710283)
thanks i see that.. it shows this:

Code:

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.


so in the templates.. postbit, postbit legacy, MemberInfo, and memberlist_resultsbit templates.. i just add this condition <if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b>)</div></if>

at the end of each template?

im just double checking for i mess up badly like i did in the past with other mods :S

thanks

Yes, just take your time and do one at a time. Always check your edits one at a time. Never do all at once. Make sure one works then move on to the next.

And for safe measure, I always copy the entire template contents and paste it into a notepad as a backup before I do any edits. This way if I do mess up and can't figure it out I don't have to revert and lose all my other template customizations.

gamerzhope 01-12-2009 10:42 PM

thanks :) i was able to figure it out and get it to show

Digital Jedi 01-12-2009 11:20 PM

Yes, just do an upgrade as you normally would with a product. Overwrite the files on your server and import the product Allow Overwrite set to Yes.


All times are GMT. The time now is 12:45 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.01518 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (3)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