phpbb-auction.com Forum Index phpbb-auction.com
Download, Support, Documentation
 
Donate to phpbb-auction.com to support the project


phpbb-Auction
  Home
   - News
   - Bug report/Patches
   - Future Features
  Demo
  Downloads
   - Version 1.3m  (Core /Lang /Mods)
   - Version 1.2m  (Core /Lang /Mods)
   - Version 1.0m  (Core /Lang /Mods)
   - All
  Services
  Documentation
   - Features
   - Documents
   - How-Tos
   - About
  Support
   - English
   - German
  Development
   - Changlog
   - Requests
   - Team
   - CVS
  Community
   - Website of the Month
   - Websites
   - Community Forum
   - Member

Navigation
FAQFAQ
SearchSearch
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Forum
Changing start time auctions
Sun Feb 07, 2010 4:33 am FR
Easy: what code to use to update sql table?
Fri Oct 16, 2009 8:39 am guyb
Unlimited products(downloads)
Wed Oct 14, 2009 7:09 pm hoimyr
Seller chooses currency
Sun Oct 11, 2009 8:00 pm hoimyr
Cant select end date without getting error
Sun Oct 11, 2009 6:43 pm hoimyr

About
Author: FR
Credits:
Brookfresh, Brad Lawryk, Crogon, DaMysterious, EklipzeDesigns, ML, musashi, phpBB Group, phpBB-Auction-Team, php-styles, sanman, Tel, Vampy, wGEric

Supported Sites





Statistics
User: 17470
Posts: 18401
Latest User: margaretlc2

Profile Control Panel(PCP) integration for version 1.2m

 
Post new topic   Reply to topic    phpbb-auction.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
MrDSL
Small-Cap Auctioneer
Small-Cap Auctioneer


Joined: 30 Aug 2004
Posts: 3

PostPosted: Mon Aug 30, 2004 1:33 am    Post subject: Profile Control Panel(PCP) integration for version 1.2m Reply with quote

I really didn't know where else to post this so if its incorrect I'm sorry. Love the mod hope this helps.

Code:

#####################################################################################
##
## MOD Title:       PCP Integration for AUCTION MOD 1.2m(FR www.phpbb-auction.com)
## MOD Author:       MrDSL- www.thehottub.net
## MOD Description:    -
## MOD Version:    1.0.0
##
## Installation Level:    easy
##
## Requirements: Auction Mod 1.2m installed and when installing this you don't need to edit
##               includes/usercp_viewprofile.php
##               templates/subSilver/viewtopic_body.tpl
##               templates/subSilver/profile_view_body.tpl
##
##
##
## Files To Edit: def_userfuncs_custom.php
##                def_usermaps.php
#####################################################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files
## Related To This MOD
##
#####################################################################################
#
#-----[ OPEN ]------------------------------------------
#
profilcp/def/def_userfuncs_custom.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-----------------------------------
//
// auction ratings output function
//
//-----------------------------------
function pcp_output_auctionrating($field_name, $view_userdata, $map_name='')
{
   global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata, $server_url, $db;
   global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields, $table_prefix;
    define('AUCTION_USER_RATING_TABLE', $table_prefix.'auction_user_rating');
   
   $sql = "SELECT * FROM  " . AUCTION_USER_RATING_TABLE . "  WHERE FK_auction_offer_seller_id=".$view_userdata['user_id'];
   if ( !($result = $db->sql_query($sql)) )
   {
   message_die(CRITICAL_ERROR, 'Error Getting Auction Rating Information!');
   }
   $txt = '';
   $img = '';
   $res = '';
   $is_rating = ( $row = $db->sql_fetchrow($result) );
   if ( $is_rating )
   {
       $temp_url = append_sid("./auction_rating.php?mode=view&u=" . $view_userdata['user_id']);
       $img = '<a href="' . $temp_url . '"><img src="' . $images['icon_auction_user_rating'] .'" alt="' . $lang['rating'] . '" border="0" />';
   }
   else
   {
        $txt = '';
   }
   $res = pcp_output_format($field_name, $txt, $img, $map_name );

   return $res;
}

#
#-----[ OPEN ]------------------------------------------
#
profilcp/def/def_usermaps.php

#
#-----[ FIND ]------------------------------------------
#
               ),
         ),
   
   'PCP.viewprofile.base.real' => array(

#
#-----[ BEFORE, ADD ]------------------------------------------
#
                  'user_acutionrating' => array(
                        'lang_key'     => 'User Rating',
                        'class'        => 'generic',
                        'type'         => 'VARCHAR',
                        'dsp_func'     => 'pcp_output_auctionrating',
                        'leg'          => true,
                        'img'          => true,
                        'user_only'    => true,
                        'system'       => true,
                     ),

#
#-----[ FIND ]------------------------------------------
#
               ),
         ),
   
   'PHPBB.viewtopic.buttons.ignore' => array(

#
#-----[ BEFORE, ADD ]------------------------------------------
#
                  'user_acutionrating' => array(
                        'lang_key'     => 'User Rating',
                        'class'        => 'generic',
                        'type'         => 'VARCHAR',
                        'dsp_func'     => 'pcp_output_auctionrating',
                        'img'          => true,
                        'style'        => '<td valign="absbottom" nowrap="nowrap"><span class="gensmall">%s </span></td>',
                        'user_only'    => true,
                        'system'       => true,
                     ),
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
// Auction
$lang['Auction'] = 'Auction';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['rating'] = 'User Ratings';

#
#-----[ OPEN ]------------------------------------------
#
any template/your_template/xxx.tpl file that has the code below

&nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]

#
#-----[ REPLACE WITH ]------------------------------------------
#
<br />{L_WHOSONLINE}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#


Last edited by MrDSL on Mon Aug 30, 2004 9:47 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
FR
Site Admin
Site Admin


Joined: 26 Jan 2004
Posts: 1764
Location: root directory

PostPosted: Mon Aug 30, 2004 6:16 pm    Post subject: Reply with quote

moved it into the development...

what does that mod do exactly? it adds the rating-link somewhere. but where?? Rolling Eyes
_________________
Want to say thank you. Use my Amazon Wishlist
Meet the world on movie-on.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
MrDSL
Small-Cap Auctioneer
Small-Cap Auctioneer


Joined: 30 Aug 2004
Posts: 3

PostPosted: Mon Aug 30, 2004 9:33 pm    Post subject: Reply with quote

Same place your does but its for Profile Control Panel(PCP)

Adds the rating-link image to the users posts and to the profile section. Here are some pics.

Profile

Topic
Back to top
View user's profile Send private message Visit poster's website
stardotstar
Small-Cap Auctioneer
Small-Cap Auctioneer


Joined: 07 Jun 2005
Posts: 10

PostPosted: Tue Jul 05, 2005 11:17 pm    Post subject: Reply with quote

Mr DSL can you confirm what the section does:

Code:
#-----[ OPEN ]------------------------------------------
#
any template/your_template/xxx.tpl file that has the code below

&nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]

#
#-----[ REPLACE WITH ]------------------------------------------
#
<br />{L_WHOSONLINE}


Is it necessary and does it change any other functionality?

When I check my Public Info in PCP I get User Rating field but not a user rating button such as shown in your profile picture... Is this normal?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpbb-auction.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


phpbb-auction.com - Developed by www.digital-media-lab.com
Sponsored by: www.globibo.com - www.learn2go.de - www.talentone.org - www.language-school.in - www.ping-ke.cn