Thread: Major Additions - iTrader v2.0.1
View Single Post
  #778  
Old 08-09-2007, 02:21 PM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made a little modification to mine that I thought I would share with you guys.

I changed the default text that goes out in the PM when a user has gotten a rating from another user.
I added to the bottom of the text a line suggesting they leave feedback for the other person if they have not yet done so, and with a link to do that. The link needed some modification to the script to work.

This is my NEW pm that goes out,

Quote:
You have received a new rating or comment from so and so.
Details about this transaction can be found on this page.
If you have not done so yet, please reciprocate the feedback and leave feedback for so and so by clicking here.
Note: This is an automated message from the feedback system.
This was the OLD pm:
Quote:
You have received a new rating or comment from so and so.
Details about this transaction can be found on this page.
Note: This is an automated message.
You can see the differences.
To construct the URL to leave feedback for the other person required some trickery.

Backup your itrader_feedback.php
Open up a new copy in your text editor,
Find, line 230:
Code:
				$vbphrase['itrader_pm_message_x'] = construct_phrase($vbphrase['itrader_pm_message'], $vbulletin->userinfo['username'], $vbulletin->options['bburl'], $itrader['rateid'], $userinfo['userid']);
change to:
Code:
				$vbphrase['itrader_pm_message_x'] = construct_phrase($vbphrase['itrader_pm_message'], $vbulletin->userinfo['username'], $vbulletin->options['bburl'], $itrader['rateid'], $userinfo['userid'], $vbulletin->userinfo['userid']);
Save and upload, careful to backup the file first.

Open your adminp and click to expand Languages & Phrases
search for your phrase itrader_pm_message by typing "received a new rating" in "Search for Text" and select 'iTrader" in "Phrase Type"
Click edit to edit your newly translated version, and this is the code you paste in there
PHP Code:
You have received a new rating or comment from {1}.

Details about this transaction can be found [URL={2}/itrader_detail.php?ir={3}&u={4}][b]on this page[/b][/URL].

If 
you have not done so yetplease reciprocate the feedback and leave feedback for {1by clicking [URL={2}/itrader_feedback.php?u={5}]here[/url].


NoteThis is an automated message from the feedback system
To test it out, I suggest using the Admin Log In As User mod found here.
Hope this helps somebody! Enjoy!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01328 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete