Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
PP Review Count in Postbit Details »»
PP Review Count in Postbit
Version: 1.00, by trackpads trackpads is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-26-2006 Last Update: Never Installs: 4
Uses Plugins Template Edits
 
No support by the author.

This is an Addon for Reviewpost and VB 3.5.4 that will show the total number of products a user has uploaded to your Photopost Reviews Gallery. For the other PP Products please see my profile. I apologize for any errors in advance, I am new at this

Special thanks to everyone in the coders forum as well as Zachery, Hambil, Geoligist, Developer and tn3yguy! And of course Photopost!

This hack is based on the Referers in Postbit Hack by Developer.

For support please click install!



Notes before you install!!

1. This hack will add on query per postbit on your showthread pages. On my site it is unnoticeable but if you experience a load problem then try disabling it. I am working on a second version but it will require actually hacking PP code and this is the easier version.

2. I have 2 versions of the XML, for those that have their pp in the same database as VB and for folks that dont. This is unnavoidable since RP users seem to have dramatically different databases. I personally have my VB and RP installs in the same dbase so I have not tested the XML for seperate dbases. Please let me know if it doesnt work or if there is a better way.

3. [RP/VB in Same Dbase] - Once you download the XML file (RP Products In Postbit.xml) you will need to open it in a Text Editor and edit the phrase 'pptablename' to the name of your PP Photos table. If you are using the default install then it should be 'products' or 'rp_products' if you chose a prefix. Do not edit this with an editor like Write or Word, use plain old notepad. Then save it and install below.

4. [RP/VB in different Dbase] -If you are using a seperate database for VB and RP then edit the XML file (RP Products In Postbit - sep dbase.xml) and replace 'databasename' with the name of the Database that RP is installed in, then do the edit in #3 for the table name.

5. Go to your Admin cp > Plugin System > Download/Upload Plugin. Then upload the plugin.

6. Go to your Admin cp > Styles and Templates > Postbit Templates and add the following:

For Postbit

Find:

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


Code:
 
<if condition="$show['profile']">
    <div class="smallfont">My Products: $trackpadsrprevpbit</div>
</if>

For Postbit Legacy

Find:

Code:
 
<div>
$vbphrase[posts]: $post[posts]
</div>
Add After:


Code:
 
<if condition="$show['profile']">
    <div class="smallfont">My Products: $trackpadsrprevpbit</div>
</if>
And that is it! Please click install!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-27-2006, 09:25 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved
Reply With Quote
  #3  
Old 04-27-2006, 12:04 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!
Reply With Quote
  #4  
Old 04-29-2006, 01:08 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!!
Reply With Quote
  #5  
Old 04-30-2006, 10:45 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a really fantastic mod!! Is it possible to alter to show the total number of reviews a user has posted? On my site admins do all the product uploading - my users would find it cool if the number of reviews they'd posted showed up in their postbit.
Reply With Quote
  #6  
Old 05-24-2006, 12:25 PM
chriszep chriszep is offline
 
Join Date: Dec 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello
hot last reviewpost and vb version
I have separate dbase and got this pb :

Quote:
Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT COUNT(*) AS count FROM colleurs-de-plastiquecom4 WHERE userid = 37;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-de-plastiquecom4 WHERE userid = 37' at line 1
Error Number : 1064
Date : Wednesday, May 24th 2006 @ 03:20:32 PM
Script : http://www.xxxxxxxxxxxxxxxxxxx/forum...ead.php?t=5430
Referrer : http://www.xxxxxxxxxxxxxxx/forums/forumdisplay.php?f=17
IP Address : xxxxxxxxxx
Username : xxxxxxxxxxxxxxxxxxx
Classname : vb_database

this is the code of the module

Quote:
global $db, $vbulletin;

if ($this->post['userid'])
{
$rpproductssinpostbit = $db->query_first("SELECT COUNT(*) AS count FROM colleurs-de-plastiquecom4 WHERE userid = $post[userid]");
$trackpadsrpprodpbit = vb_number_format($rpproductssinpostbit['count']);
}
thanks
Reply With Quote
  #7  
Old 09-18-2006, 07:53 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by criscokid
This looks like a really fantastic mod!! Is it possible to alter to show the total number of reviews a user has posted? On my site admins do all the product uploading - my users would find it cool if the number of reviews they'd posted showed up in their postbit.
Anyone able to answer this question?
Reply With Quote
  #8  
Old 10-07-2007, 04:59 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to alter to show the total number of reviews a user has posted? On my site admins do all the product uploading - my users would find it cool if the number of reviews they'd posted showed up in their postbit.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04489 seconds
  • Memory Usage 2,273KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete