vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBadvanced CMPS - News Digest Module 1.02 (https://vborg.vbsupport.ru/showthread.php?t=70116)

GiJoe 05-30-2005 12:37 PM

Quote:

Originally Posted by Jaxx
GiJoe,

Take a look at my site: http://www.ahazi.org

It has the comments which was added in from the discussion on the 2nd page of this thread.

Is that basically what you mean?

Yep... Got it to work a little while ago thank you! :D http://wolfgaming.net

PING1434a 06-27-2005 07:24 AM

Ok, i tried to install this on a 3.0.7, no luck, the instructions on steps 4 and 5 dosn't apply. Anyone had any lucky on their 3.0.7? Perhaps someone can share the info?

ragintajin 07-31-2005 06:32 PM

This is exactly what I need...any chance you'll update it for vb 3.5??

Marris 08-08-2005 03:51 AM

Thanks a lot for this mod. It was just what I was looking for.

I just wanted to add simple date breaks into the existing news, so I just used a snippet of the code to replace a line in news.php (CMPS v2.x):

in news.php replace:

PHP Code:

eval('$newsbits .= "' fetch_template('adv_portal_newsbits') . '";'); 

with:

PHP Code:

//datemod 1 of 2 start

            
$dayposted vbdate('njy'$news['postdateline']);

        
//Display The Current News Day
        
if ($dategroup != $dayposted)
            {
            
$datelongform vbdate('l, F jS, Y'$news['postdateline']);
            
$dategroup vbdate('njy'$news['postdateline']);
            
$prevdate true;        
            eval(
'$newsbits .= "' fetch_template('adv_portal_newsdigest_date') . fetch_template('adv_portal_newsbits') . '";');
            }else{
//datemod 1 of 2 end            
            
        
eval('$newsbits .= "' fetch_template('adv_portal_newsbits') . '";');    

//datemod 2 of 2 start
        
}                        
//datemod    2 of 2 end 

And in this case, you need to enclose the contents of adv_portal_newsdigest_date in <tr><td></td></tr> tags.

Also, note this only works if you have your News module option "Separate News Posts" set to "No", but it should be easy to figure out the code to change in news.php for this to work for the other mode.

All this does is divide up your normal News posts with a date bar. It doesn't have any of the extra functions of the full mod.

In using this with vB 3.0.8 and CMPS 2, I noticed I had to change the use of date() to vbdate() or else I would get discrepancies between the post dates and current time zone setting.

regina64 01-11-2007 03:10 PM

I look forward to using your module.

I am currently running vb 3.6.4 and vBadvanced CMPS 2.2.1 and I would like to use the news digest module on it. Will this run on my version or do I need to wait for an update?

Had to ask before I tried to install.

Michael Morris 01-11-2007 03:31 PM

I've decided to move to Joomla for content management so I won't be upgrading this for vba CMPS 2. If anyone wishes to do so they have my permission to post the code here.

KW802 01-11-2007 03:43 PM

Quote:

Originally Posted by Michael Morris (Post 1156301)
I've decided to move to Joomla for content management so I won't be upgrading this for vba CMPS 2. If anyone wishes to do so they have my permission to post the code here.

Michael, with your OK I wouldn't mind taking this one over. I had almost forgotten about this thread until it got bumped and I realized I could use this on one of my sites. I need to go over the code a bit (since with CMPS 2.x you can just easily copy a module and then make edits to the copy) but it should be doable.

Michael Morris 01-11-2007 03:49 PM

Quote:

Originally Posted by KW802 (Post 1156309)
Michael, with your OK I wouldn't mind taking this one over. I had almost forgotten about this thread until it got bumped and I realized I could use this on one of my sites. I need to go over the code a bit (since with CMPS 2.x you can just easily copy a module and then make edits to the copy) but it should be doable.

Go right ahead - code's yours.

regina64 01-11-2007 03:54 PM

Michael, sorry to see you go to Joomla. I was really looking forward to trying out your module.

I hope KW802 can figure it out. It looks like exactly what I need (organizing my front end by category)

Can you tell me if this site is using your module? I have been trying to figure it out for days on how they are displaying their categories on the homepage, but yet I don't see them in the forum (the categories):

http://www.gotapex.com/

see where it says:
Posted on Thursday January 11th, 2007 by Lights in the "Computers" category

Also, is this mod similar to yours?

Thread Category / Prefix Hack
https://vborg.vbsupport.ru/showthread.php?t=61494

KW802 01-11-2007 04:02 PM

Quote:

Originally Posted by Michael Morris (Post 1156315)
Go right ahead - code's yours.

Thanks. :cool:

Quote:

Originally Posted by regina64 (Post 1156320)
I hope KW802 can figure it out. It looks like exactly what I need (organizing my front end by category)

It might be a day or so before I have a chance to work on it but I'll post whatever I come up with.


All times are GMT. The time now is 05:32 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.01308 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete