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)

sketch42 06-30-2004 03:41 AM

Quote:

Originally Posted by eoc_Jason
vB styles work from inheritence, your default TR templates should be the highest level, and allow the alternate styles to "inherit" them. If they aren't you will need to move them to the proper style, then you can customize alternate styles without affecting the templates globally.

wow i totally didnt understand that lol

Tilmanitou 07-01-2004 07:23 AM

Hi all!
I translated Trader Ratings (v1.10 and v1.2.0, into german) for my forum and wanted to share this little procedure with you all so you can do it now much quicker than I did. :glasses: ;)

It's pretty easy:

0.
First of all, you have to install Trader Ratings. It's now in english of course.
To translate it:

1.
In the vB Admin Control Panel, search all Phrases which names begin with "tratings" and translate them in the second field. In doing so, the original text keeps beeing saved as well as your translation.

2.
In the template "tratings_feedback", search for the following text:

PHP Code:

<td class="alt2">Your overall experience was:</td>
        <
td class="alt2">
         <
select name="userrating"

and translate "Your overall experience was:".

3.
In the template "tratings_feedback", search for the following text:

PHP Code:

<td class="alt2">$vbphrase[tratings_thread_url]</td>
        <
td class="alt2">
        <
input class="bginput" type="text" name="userurl" size="45" maxlength="200" 

value="$trating[userurl]"><br />
        <
span class="smallfont">ex:
 
http://forum.site.com/showthread.php?threadid=1234</span>
        
</td

and translate "ex: http://forum.site.com/showthread.php?threadid=1234".

4.
In the template "tratings_feedback", search for the following text:

PHP Code:

<input type="checkbox" name="ratingdelete" value="1">Delete This Rating</if>
        </
span><br /><br /><input type="submit" 

and translate "Delete This Rating".

5.
In the file "traderratings.php", translate:
-"View Trader Ratings"
-"Edit Trader Ratings Feedback"
-"Submit Trader Ratings Feedback"

6.
In the templates "postbit", "postbit_legacy", and "MEMBERINFO",
add somewhere:

PHP Code:

<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if> 

and translate "Trader Rating:".

for example:

- in the template "MEMBERINFO", above

PHP Code:

<if condition="$vboptions['usereferrer']"

add:

PHP Code:

<if condition="$post['userid']">
<
div class="fieldset">
<
div style="padding:$stylevar[formspacer]px"><strong>Trader Rating:</strong> (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)
</
div></div></if> 

and translate "Trader Rating:".

- in the template "postbit_legacy" (you have to choose this template as default first. this is the vB2-Style member info frame at the left of every post, not above it),
above

PHP Code:

<if condition="$post['joindate']"><div>$vbphrase[join_date]:

add:

PHP Code:

if condition="$post['userid']"><div>Trader Rating: (<
href
="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</di
v
></if> 

and translate "Trader Rating:".


Thats all! Hope I didn't forgot or messed up something (please let me know in case) and that this will help spreading this great hack all over the world! Thanks again eoc_Jason!

Yours
Tilmanitou

eoc_Jason 07-01-2004 02:57 PM

Hmm... looks like there were a few more places I could of used phrases... I'll have to fix that in the next update... I tried to phrases wherever possible for easier translation...

lifesourcerec 07-01-2004 05:08 PM

How hard with it be to make a Top 10 traders/feedback page? Or just a table to add to the forum home?

WreckRman2 07-06-2004 04:26 AM

Quote:

Originally Posted by lifesourcerec
How hard with it be to make a Top 10 traders/feedback page? Or just a table to add to the forum home?

I like that...

WreckRman2 07-06-2004 04:30 AM

Quote:

Originally Posted by eoc_Jason
Everyone Else - So do you think it would be more worthwhile to just start working on a classifieds / auction hack (with the trader ratings system of course) rather than just try to bodge together this "buy/sell" button concept thing?

Please let me know what you guys think...


Not only do I think you should but I'd be willing to pay for it if done well. I'd love to see an integration of a For Sale, Trade and Wanted Ads with vB.

jesslynn 07-09-2004 04:21 PM

I hope someone can help me. I'm getting a perplexing error (well, to me anyway! LOL) when I try to view anyone's rating, no matter the style I try it in:

Fatal error: Call to undefined function: convert_ids_to_titles() in /****/****/****/****/includes/functions_online.php on line 33

I'm sure it's my overtired brain, but I can't figure out what to do about it. Any help would be GREATLY appreciated! Oh yeah, would help if I gave you the link to our forums: http://www.boutiquebids.com/forums

TIA!

Watson 07-11-2004 08:32 PM

Had another read through this thread, dunno if its just late, or I am well thick (mabye both)

But I am wondering, which file I edit so I make it the users have to enter a url for them to leave feedback. Also can I make it so that it only comes from a specific forum?

Also, Is there anyway to click under the username or something to actually leave feedback, the only way I been doing it is by clicking on the users trader rating number. Hoping to put like an icon or summit somewhere.

Cheers much

A very knackered

Watson

Watson 07-11-2004 08:39 PM

Quote:

Originally Posted by eoc_Jason
Watson - look at the extra template examples with the is_member_of function to allow only specific user groups. You will need to change this on your trating_display template, and also add it to the proper actions in the traderratings.php file.


Ahh mate, I aint really sure what I would be looking for in those files, and I dont wanna change anything that may damage forums heh.

Any chance on an ickle bit more info :D:D:D

jesslynn 07-12-2004 12:07 PM

Can't anyone help a gal out? ;) hehe jk

In thinking about this (whilst banging my head upon my desk all weekend), I'm wondering if my problem is because I have other hacks installed, or if I made a silly mistake somewhere and I'm just not seeing it.

To be a little more specific about when we get the error on our boards, members can't view profiles without getting the script error:
Quote:

Fatal error: Call to undefined function: convert_ids_to_titles() in /****/****/****/****/includes/functions_online.php on line 33
Also, when attempting to view Currently Active Users, we get:
Quote:

Fatal error: Call to undefined function: sanitize_perpage() in /****/****/****/****/forums/online.php on line 77
Any ideas on what I need to do so this awesome hack will work for us? It's EXACTLY what we've been looking for. :) Do I need to go in and tweak something or rerun the install?


All times are GMT. The time now is 01:45 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.01754 seconds
  • Memory Usage 1,781KB
  • 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
  • (8)bbcode_php_printable
  • (6)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