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
vB Journal | vba CMPS module: latest entries Details »»
vB Journal | vba CMPS module: latest entries
Version: 1.00, by Bolas Bolas is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-24-2004 Last Update: Never Installs: 40
 
No support by the author.

This hack is for [vB 3.0.3] - vB Journal for vBulletin 3.0.3(v1.0.0) and [vB 3.0.3]

Hi,
this is the Brahm's vbindex conversion for vba CMPS: this module will show latest journal entries in a box in your CMPS system.

demo:
http://www.wellage.net



Here we go:

touch /path_to_your_forum_dir/modules/journalentries.php
-----------------------------------------
PHP Code:
<?php
// ######################### Latest Forum Topics #########################
$getlateste$DB_site->query("
            SELECT journal_entries.entrytitle,journal_entries.entrydate,
            journal_entries.entry_id,journal_entries.entrytext,
            journal_entries.journal_id,journals.journalist,journals.journalist_id
            FROM "
.TABLE_PREFIX."journal_entries AS journal_entries
            LEFT JOIN "
.TABLE_PREFIX."journals AS journals ON (journal_entries.journal_id=journals.journal_id)
            WHERE journal_entries.entry_active=1 AND journal_entries.private!=1 AND journals.private!=1
            ORDER BY journal_entries.entrydate DESC
            LIMIT 5
            "
);
            
$countlatest$DB_site->num_rows($getlateste);
            
$latestentrybits "";
            if(
$countlatest>0)
            {
                while(
$latest$DB_site->fetch_array($getlateste))
                {
                    
$latestentrydatevbdate($vboptions['dateformat'], $latest['entrydate'], 1);
                    
$latestentrytimevbdate($vboptions['timeformat'], $latest['entrydate']);
                    
exec_switch_bg();
                    if(
strlen($latest[entrytitle])>20)
                    {
                        
$latest[entrytitle]= "".substr($latest[entrytitle],0,20)."...";
                    }
                    if(
strlen($latest[entrytext])>150)
                    {
                        
$latest[entrytext]= "".substr($latest[entrytext],0,150)."...";
                    }
                    eval(
'$latestentrybits .= "' fetch_template('journal_latestentrybits') . '";');
                }
                
$DB_site->free_result($lastest);
            }
            else
            {
                
$latestentrybits=$vbphrase['adv_no_entries'];
            }


    eval(
'$home[$mods[\'modid\']][\'content\'] = "' fetch_template('adv_portal_latestjournalentry') . '";');

    
$DB_site->free_result($getlateste);
    unset(
$latestentrybits,$latest,$latestentrytime,$latestentrydate,$countlatest);

?>


then create template 'adv_portal_latestjournalentry'
-----------------------------------------
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
 <tr>
  <td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cmps_pagesmenu')"><img id="collapseimg_cmps_pagesjournal" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_cmps_pagesjournal].gif" alt="" border="0" /></a>
    <span class="smallfont"><strong>$vbphrase[adv_latest_journalentries]</strong></span>
  </td>
 </tr>
</thead>
<tbody id="collapseobj_cmps_pagesjournal" style="$vbcollapse[collapseobj_cmps_pagesjournal];text-align:$stylevar[left]">
$latestentrybits
</tbody>
</table>
<br />


Now add 2 GLOBAL phrases:
$vbphrase[adv_latest_journalentries] = "Latest Journal Entries"
$vbphrase[adv_no_entries] = "No Journal Entries"



Then create a new module:
Module Title: Journal Latest Entries
File to include: journalentries.php
Active: yes... -.-'
Column: right|left
Templates Used: adv_portal_latestjournalentry, journal_latestentrybits


Have fun and don't forget to :-)





UPDATE (10/17/2004):
- added 2 modified version of 'journal_latestentrybits' for right|left or center block (thanx to Billbensen for center version) - see attachments [ billbensen__centered_block.txt]
- Valentino Rossi Wins! :devious:

UPDATE (10/20/2004):
- patched template collapse id, please change your old template with new version. (thx to memobug for debugging)




thx to
AN-net for his Journal hack
Brahm for the vBindex version of this module.
Billbensen for modified version of journal_latestentrybits template

Show Your Support

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

Comments
  #32  
Old 10-27-2004, 07:56 PM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, works great! Thanks.

*Clicks Install
Reply With Quote
  #33  
Old 12-06-2004, 04:46 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aaarrgh. I've tried installing this many times, and for some reason, it's the only CMPS module I can't get to show up on my main page, http://x.russbo.com/index.php
Vb3 Journal works fine, at http://x.russbo.com/vb/index.php
I don't understand why the journal works fine in the forums, but I can't get it to visualize on the CMPS page. I've followed the directions implicitly many a time.

Any idea where there might be a problem? No doubt it's something simple. Can I have a database problem which is causing this not to show, even though the Journal works fin in the forum???
Reply With Quote
  #34  
Old 12-06-2004, 04:50 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aaarrgh. I've tried installing this many times, and for some reason, it's the only CMPS module I can't get to show up on my main page, http://x.russbo.com/index.php
Vb3 Journal works fine, at http://x.russbo.com/vb/index.php
I don't understand why the journal works fine in the forums, but I can't get it to visualize on the CMPS page. I've followed the directions implicitly many a time.

Any idea where there might be a problem? No doubt it's something simple. Can I have a database problem which is causing this not to show, even though the Journal works fin in the forum??? I'm completely baffled.

Thanks!
Reply With Quote
  #35  
Old 03-08-2005, 04:02 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a small problem. At the end of my page I show a tag that is not closed: </html
And sometimes when I click on any link from that page, I get a blank page with >
When I refresh then it is fine.

I disabled the module and the tag disappeared. I re enabled, it came back....

I really need to use this. Any suggestions?
Reply With Quote
  #36  
Old 03-08-2005, 05:46 PM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you modified the content of my module?
Reply With Quote
  #37  
Old 03-08-2005, 08:56 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No not at all. It's pretty straight forward. I encounter a mysql issue twice: I am still at 3.23. I don't know if this has any relation whatsoever.
Reply With Quote
  #38  
Old 03-08-2005, 11:06 PM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed again that hack, and it works fine.. and I don't know if to be happy or not for that :/
Is your vbAdvanced clean? Have you installed some plugin or hack for it?
It seems that a function cut 1 char.. and I'm not able to find the problem without have all the system under my hand!
Reply With Quote
  #39  
Old 03-08-2005, 11:13 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clean? there is nothing to do in there, it's allmodules... :-)

if you want, I could pm you my info to see...
Reply With Quote
  #40  
Old 03-09-2005, 12:17 AM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, if you trust me.
I will debug it in your system.
Reply With Quote
  #41  
Old 04-30-2005, 05:33 AM
Zacharicus Zacharicus is offline
 
Join Date: Jun 2004
Location: Melbourne Australia
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm assuming it doesn't work for 3.0.7? I can't get it to show up.
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 03:13 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.04730 seconds
  • Memory Usage 2,332KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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