The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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 |
#12
|
||||
|
||||
Hi Bolas,
Thanks for this hack. There is something that I don't understand. This module causes a blank page when I tried to open my main page with Firefox. It works fine when I open it with IE |
#13
|
||||
|
||||
d'oh! I'm under Debian (unstable) and I use to browse ONLY with mozilla-firefox (now 0.9.x) ...
Also Epiphany, IE ( lol... ), Konqueror, lynx... and I don't have blank pages... Try opening my vbulletin: http://www.wellage.net: te module is loaded on the bottom-right of the home page and works fine. The module is just a chunk of php code and some html.. just a blank page? vBulletin in case of minor error (like a error in a module) doesn't stop his execution ( = blank page). A) Does the needed template exists in the style you are using? B) does your account have privis to receive that page? ( I mean... Are you logged with the same account of IE - check cookies - in Firefox? ) Without error messages I can't imagine what happens, but don't worry: we will find a solution! ... C) just to be sure... when you set unactive my module all works fine? |
#14
|
|||
|
|||
sorry but i'm really slow with hacking. what are you supposed to place as the variables name when creating the phrases?
is it: VARIABLES NAME: adv_latest_journalentries TEXT: Latest Journal Entries |
#15
|
||||
|
||||
in /admincp, in the menu on the left:
Languages & Phrases open section Phrase Manager click on the right frame click Add New Phrase in the new page (Add New Phrase) Phrase Type: choose 'GLOBAL' Varname: insert 'adv_latest_journalentries' text: insert 'Latest Journal Entries' (and if you got another language installed fill it with right translation SAVE Say me if you need screenshot to follow step by step the single action! bye! |
#16
|
|||
|
|||
i have a little problem with this, the module shows up and it even includes the correct subjects of the latest journal entries, but the link is wrong for some reason. how can it pick out the right info but the wrong link?
the link will just be www.xxx.com/journal.php instead of www.xxx.com/forum/journal.php, how can i fix this? |
#17
|
||||
|
||||
open admincp/
choose your style (or default) and show template list. open 'journal_latestentrybits' find (or similar code.. the template is very little..) PHP Code:
PHP Code:
|
#18
|
|||
|
|||
thanks alot! it was set to journal.php, i set it to the full link now it works!
|
#19
|
|||
|
|||
for those of you that want this to be used in the center block.
This is the journal_latestentrybits HTML Code:
<tr> <td class="$bgclass"><div class="smallfont"><a href="$vboptions[bburl]/journal.php?do=showentry&e=$latest[entry_id]" title="$latest[entrytext]">$latest[entrytitle]</a> - ($latestentrydate at <span class="time">$latestentrytime</span>)<br /><span style="cursor:pointer" onclick="window.open('member.php?u=$latest[journalist_id]')">$latest[journalist]</span></div></td> <tr><td class="$bgclass"><div class="smallfont">$latest[entrytext]<a href="$vboptions[bburl]/journal.php?do=showentry&e=$latest[entry_id]" title="$latest[entrytext]">more</a></div></td></tr> </tr> |
#20
|
||||
|
||||
I like it and make a different version insiperd of your version.
I updated the thread with your and mine versions (See attachments!) Thank you! |
#21
|
|||
|
|||
Greetings
1. It looks like this is a typo, should probably be "latest" Quote:
Just inside the while loop add: Code:
$latest[entrytitle]="".stripslashes($latest[entrytitle]); $latest[entrytext]="".stripslashes($latest[entrytext]); 3. I added in a count of the comments in both the query and the templatebits 4. It would be very helpful if the hack installation instructions identify specifically (by link) which Journal it is intended for use. I think I have found about three threads that claim to be vbJournal and several versions of some. At any rate it looks like it's incompatible with my version of "vbJournal" - now I have to figure out which version that is. Some port of Ryangel's hack I found on vbtemplates.org, I think. 5. I was able to modify the query and get everything to work with my version of the Journal, with the exception of this one parameter: $latest[journalist], (journals.journalist), because that is a field I don't have in my database. I'm assuming that is the proper name of the Journal keeper, but I am a little surprised to see it in the journal table and not derived from the user table. If it were the username, it would be redundant and not necessarily subject to update if the username were changed. :ermm: Regards, Matt |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|