Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vBadvanced & Photopost Latest comments on front page. Details »»
vBadvanced & Photopost Latest comments on front page.
Version: 1.00, by phill2003 phill2003 is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.4 Rating:
Released: 11-26-2006 Last Update: 12-02-2006 Installs: 19
Additional Files  
No support by the author.

**********************UPDATE 12/03/2006**************************
If you have downloaded the file before this update then i recomend that you re-download it and use the latest file.


In this latest edit I have made the file check the photo height and width and show the correct size thumbnail (thanks to Cocko for bringing this to my attention )

I believe this is the last edit that will be needed as i have done everything I can think of for this and it does what it is supposed to now, That is it shows the latest 5 comments and only those comments that have an actual comment in it and not just a rating with a blank comment.

It displays the username of the user who posted the comment and links to his/her profile (vb profile) it puts the rating under the photo (with instructions on how to remove it) and now it checks the width and height and sizes the thumbnail accordingly.

Thanks

phill






*****************END UPDATE**************************************
**********************UPDATE 12/02/2006**************************

If you have installed this already re-download the hack and use the updated cmps_comms.php it has more built in functionality.


Main edits.

1. ability to disallow cats from showing.

2. Stops empty comments from showing and grabs the latest 5 comments that have comments in them.

3. I put the ratings onto it so they show under the thumbnails (I included instructions on how to remove it)


So please re-download the zip file and use that one it is the latest build of this hack.

Thanks

Phill
*****************END UPDATE**************************************

This hack will put the 5 latest comments from photopost pro into a block on the front page of your vbadvanced cmps.

Demo Here

or see screenshot attached.


To install this.

1. Open cmps_comms.php and edit all the variables to your own.

once done save.

2. open cpms_coms_block.php and change the path to the script to reflect yours.

once done save.

3. Upload cmps_comms.php to your photopost folder

4. upload cpms_coms_block.php to your module folder (cmps modules)

5. go to your vbulletin admin control panel.

6. in the left pane choose vBa CMPS and expand it, then choose 'add module'

7. choose php file
  • module title 'whatever you want to call it'
  • column 'which ever one you want it in'
  • active 'yes'
  • update all pages 'yes'
  • file to include 'cpms_coms_block.php'
  • identifier 'comms block'
  • clean file output 'yes'
  • use shell template 'yes'
and save......


you should now have the block on your front page.

If it looks funny or is not is the block or something, go back untick clean file output and save then go back and retick clean file output and save, that should clear up the problem (no idea why it does that but it does)

Hope you like this hack

please click install if you use this

This was brought to you by http://www.ThatsShocking.com

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 11-27-2006, 08:38 AM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should work on any vBulletin version.
Reply With Quote
  #3  
Old 11-27-2006, 11:26 AM
SherryG SherryG is offline
 
Join Date: Oct 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working for me, mate. I have nothing appearing at all. I even tried tried your trick with "clean output file" and I still have nothing.

Using vBulletin 3.6.4, CMPS 2.2.0, Photopost PHP Pro
Reply With Quote
  #4  
Old 11-27-2006, 12:20 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you redone all the variables so it can connect to your photopost database?

Have you enabled the block in edit pages if you have not set all pages to be updated?

Hmm bit odd really as all it does is include it and then put the output into a shell template block.

If you want me to pop over and have a look i can do
Reply With Quote
  #5  
Old 11-27-2006, 04:37 PM
StuntFactoryX StuntFactoryX is offline
 
Join Date: May 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.stuntfactoryx.com/index.php?page=test

awesome.. i was looking for this. im having issues getting the shell to work correctly.. i tried moving colums.. reticking clean file output several times. im close.
Reply With Quote
  #6  
Old 11-27-2006, 05:36 PM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance to same hack for forumhome template ?
Im not using vbadvanced. TIA
Reply With Quote
  #7  
Old 11-27-2006, 06:25 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sensimilla View Post
Any chance to same hack for forumhome template ?
Im not using vbadvanced. TIA

You can use the hack on the forum home, Just use the includes from the module file and do it as a plugin at global_start then you can make a table and put the variable $cmpscomms into it.


I will make one for you tomorrow if you want.

Quote:
Originally Posted by StuntFactoryX View Post
http://www.stuntfactoryx.com/index.php?page=test

awesome.. i was looking for this. im having issues getting the shell to work correctly.. i tried moving colums.. reticking clean file output several times. im close.
Looks great to me, have you tried making the thumbs a little bigger for your blocksize
Reply With Quote
  #8  
Old 11-27-2006, 06:47 PM
StuntFactoryX StuntFactoryX is offline
 
Join Date: May 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you using firefox? it works perfect there. IE6 the header dosent expand all the way across. it stops where thumbs start.
Reply With Quote
  #9  
Old 11-27-2006, 06:58 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh yea i had to change
Code:
colspan="$mods[colspan]"
to
Code:
colspan="2"
in the adv_portal_module_shell template to get it to work in IE no idea why though.


(you may need to change it to 5 though)
Reply With Quote
  #10  
Old 11-27-2006, 07:06 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by phill2003 View Post
Oh yea i had to change
Code:
colspan="$mods[colspan]"
to
Code:
colspan="2"
in the adv_portal_module_shell template to get it to work in IE no idea why though.


(you may need to change it to 5 though)
Don't change the adv_portal_module_shell template! That will affect all of your CMPS modules. Instead edit the properties of your new module and change the "Title Row Colspan" value from "0" to "2" (or whatever value you need).
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 05:56 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.04423 seconds
  • Memory Usage 2,295KB
  • Queries Executed 24 (?)
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
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete