The Arcive of vBulletin Modifications Site. |
|
vB Journal | vba CMPS module: latest entries Details »»
|
|||||||||||||||||||||||||||
|
vB Journal | vba CMPS module: latest entries
Developer Last Online: Jul 2013
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:
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
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Thanks Bolas
Once I install the journal system, I'll be installing this ![]() BTW, I just want to verify this line LIMIT 5 in journalentries.php If I want to only show the last one or two I just change it here, right? |
|
#3
|
||||
|
||||
|
yes it is! :-)
Also --------------------------------- PHP Code:
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
/me clicks install!
|
|
#6
|
|||
|
|||
|
Excellent instructions, thank-you!
I also thought I should mention that the SQL has a small problem on line 2 - Code:
journal s.journalist_id Code:
journals.journalist_id |
|
#7
|
||||
|
||||
|
Thank you! I edited the thread.
|
|
#8
|
||||
|
||||
|
After I add the mod, I got a white blank page.
|
|
#9
|
||||
|
||||
|
try removing this mod totally (phrases, template and php).
Is all right now? Ok.. re-install it following this new instruction (Randall found a format problem in SQL). Now? |
|
#10
|
||||
|
||||
|
thanks will install
|
![]() |
|
|