Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #32  
Old 12-05-2006, 09:20 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay - I figured out that it has to do with the exclusions portion of the code. $cat_exclusions = '522,530'; Basically you have to exclude a category in order for this to work. You just can't COMMENT the code or remove it. As soon as I excluded a few categories (which I decided that I needed to anyhow) it worked just fine.

My next problem pertains to the header bar which appears to only extend as far as the first column. See attached photo: neosmut001 I thought I read something regarding this issue, so I'll scan a few posts back and see.


**** UPDATE *****
This fixed the short header bar....

Product: vBadvanced CMPS Templates
Template: adv_portal_module_shell

Find:
Code:
<td class="tcat" colspan="$mods[colspan]">
Replace with:
Code:
<td class="tcat" colspan="6">
Note: Becuase I'm using the module in the center, I used '6' for the colspan to match the total columns of another center module that has 6 columns.
Reply With Quote
  #33  
Old 12-06-2006, 03:21 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried excluding - no joy.
I am on php 4.4.4 so is there a problem with the conversion from php 5 ?
Reply With Quote
  #34  
Old 12-08-2006, 06:03 PM
Cocko Cocko is offline
 
Join Date: Oct 2006
Location: Germany
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which way showing smilies in comments at cmps ?
Reply With Quote
  #35  
Old 12-09-2006, 09:45 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wold love to get this working if anyone has ideas on how to fix this php error
Reply With Quote
  #36  
Old 12-09-2006, 11:03 AM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it all working, quite nice... but seeing as im using custom thumbnail borders it make the whole thing look out of sync with my site, also it was extremely wide when place on a sidebar, would be nice to set the amount of comments to a high amount BUT have it scroll so you don't get a long sidebar... anyways something to think about

-b6
Reply With Quote
  #37  
Old 12-10-2006, 04:41 PM
StuntFactoryX StuntFactoryX is offline
 
Join Date: May 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i added this... im not sure if its correct code but its works in IE and firefox... i think it looks a little more in sync w/ my styes. so far so good

in cmps_comm.php towards the bottom and found this line

Code:
            <span class="{$Style['small']}">$row[comment]<br>by <a
and changed it to

Code:
            <span class="smallfont">$row[comment]<br>by <a
the old way looked good in default skin but the font was too big in some others

another thing i did was found this line

Code:
width="45" height="32" border="0"></a></td>
your numbers could be different and i removed the height so it dont strech the thumbs

Code:
width="45" border="0"></a></td>
www.stuntfactoryx.com bottom right
Reply With Quote
  #38  
Old 12-27-2006, 10:47 PM
SherryG SherryG is offline
 
Join Date: Oct 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried this module but getting the following error message:

Unknown column 'xxx' in 'where clause'

Can someone tell me what the problem might be?

Cheers!
Reply With Quote
  #39  
Old 12-28-2006, 04:20 AM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, you have not edited the file properly, column xxx is supposed to be the id of the photo catagory you do not want showing, Look at the instructions again and do them as they should be done and the error will go away.
Reply With Quote
  #40  
Old 01-04-2007, 08:18 PM
puregraf's Avatar
puregraf puregraf is offline
 
Join Date: May 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would i add the recent comments to my right_column hack i have installed, whats the code i would need to add so that it would display the recemnt comments on my vbulletin forum page on the right column side, where my hack is currently enabled and i have google ads on that area?

heres the vbulletin forum so you can see what im talking about the right column side

http://www.puregraffiti.com/graffiti-space/index.php
Reply With Quote
  #41  
Old 01-04-2007, 08:43 PM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This module is for Vbadvanced not vbulletin itself.
Reply With Quote
Reply


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 12:23 PM.


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.08792 seconds
  • Memory Usage 2,310KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_code
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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