Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
v3Articles - vBa CMPS module Details »»
v3Articles - vBa CMPS module
Version: 1.00, by maximux1 maximux1 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-16-2004 Last Update: Never Installs: 30
 
No support by the author.

v3Article/CMPS Module - Last 10 Articles


This CMPS module uses the excellent v3Article system developed by John Warwick. The module displays the 10 most recent articles submitted, in DESC order, (Last article submitted is first in list).

This module also includes the author of the article with a link to his pubilc profile and how many views the article has had.

You can vie the module in action on the right hand side of http://www.marijuana.com - the module is titled "The Magazine".

http://www.marijuana.com

You'll need to upload the php file to your modules directory and create two new templates named "adv_portal_articles" & "adv_portal_articlesbits". Add the contents of the respective text files to the new templates and save. Next, create the new module using the drop down menu selecting "cmps-articles.php". In the "templates used" field enter the following templates.

adv_portal_articles,
adv_portal_articlesbits

Dont forget to update your index pages(s) to show the new module.

Special thanks to wcbryant, who's help has shed new light on vB development for me. Im very grateful for your code additions and help.

Maximux1
Marijuana.Com

Show Your Support

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

Comments
  #12  
Old 06-20-2004, 02:12 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rick
Have you looked at your page with Mozilla?? I'm using 1.6 and my screen resolution is 1024x768. Your page scrolls WAY... over to the right...
It only seems to do that at first. If you refresh, at the last second it squishes together.
Reply With Quote
  #13  
Old 06-20-2004, 02:20 PM
Rick Rick is offline
 
Join Date: Nov 2001
Location: Wittmann, AZ
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a screenshot after the page completley loaded.
Reply With Quote
  #14  
Old 06-20-2004, 02:37 PM
maximux1's Avatar
maximux1 maximux1 is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rick
Here is a screenshot after the page completley loaded.
Rick,
Thanks for the heads up on this. I do use mozilla but not since my last batch of changes.

Gotta do some digging to see whats causing that - again, thanks for the heads up.

Max
Reply With Quote
  #15  
Old 06-20-2004, 02:41 PM
maximux1's Avatar
maximux1 maximux1 is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maximux1
Rick,
Thanks for the heads up on this. I do use mozilla but not since my last batch of changes.

Gotta do some digging to see whats causing that - again, thanks for the heads up.

Max
ok, found the problem. Been having a hell of a time getting my "latest topics" block working correctly.

Back to the drawing board. oh well...

I would appreciate it if you could please confirm the format is fixed -

Thanks,
Max
Reply With Quote
  #16  
Old 06-23-2004, 11:47 AM
Wolffman Wolffman is offline
 
Join Date: Apr 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to remove an article from the list?

Also, is there any way to change how many articles it displays? Like if I wanted to display the last 5 articles?
Reply With Quote
  #17  
Old 06-24-2004, 01:07 AM
BeatYou BeatYou is offline
 
Join Date: Jun 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm is this hack avalible to those who just want to use it in a sidebar template on their page? Not with the vBadvanced CMPS system? Would be great. Thanks
Reply With Quote
  #18  
Old 06-25-2004, 02:06 AM
maximux1's Avatar
maximux1 maximux1 is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BeatYou
Hmm is this hack avalible to those who just want to use it in a sidebar template on their page? Not with the vBadvanced CMPS system? Would be great. Thanks
You'd either have to make your own template, or slightly modify the php file to echo() or print() the contents of the mod. The just include the php file where you want it to display. Should be a quick and easy hack, id be willing to help if you need it.

Max
Reply With Quote
  #19  
Old 06-25-2004, 02:09 AM
maximux1's Avatar
maximux1 maximux1 is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wolffman
Is there any way to remove an article from the list?
No, not very easily. You could alter the sql command, but given the db param's I dont think you would get very far without adding a field to the articles table. Something like, 'isvisible'. Then you could alter the SQL to only pull those where isvisible = "true".

Quote:
Originally Posted by Wolfman
Also, is there any way to change how many articles it displays? Like if I wanted to display the last 5 articles?
Edit the php file and change the SQL statement, you will see where it says "10" - just change that to whatever number you like.

Max
Reply With Quote
  #20  
Old 06-25-2004, 12:28 PM
Wolffman Wolffman is offline
 
Join Date: Apr 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thaks a lot!

Great hack and has became very useful.
Reply With Quote
  #21  
Old 06-27-2004, 01:18 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i installed and now i get a complely white page. if i deactivate the module, it works. what i did wrong ?
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 11:35 AM.


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.04874 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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_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
  • (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