![]() |
vB Journal | vba CMPS module: latest entries
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%"> 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 https://vborg.vbsupport.ru/images/sm.../installed.gif :-) 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 |
Thanks Bolas
Once I install the journal system, I'll be installing this :p 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? |
yes it is! :-)
Also --------------------------------- PHP Code:
|
Quote:
|
/me clicks install!
|
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 |
Thank you! I edited the thread.
|
After I add the mod, I got a white blank page.
|
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? |
thanks will install ;)
|
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 |
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? |
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 |
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! |
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? |
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:
|
thanks alot! it was set to journal.php, i set it to the full link now it works!
|
for those of you that want this to be used in the center block.
This is the journal_latestentrybits HTML Code:
<tr> |
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! ;) |
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]); 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 |
Would it be possible to take only the most recent entry per journalist to avoid someone spamming the latest entries, so to speak? It seems like it should be possible with a GROUPing of some type, but the only solutions of this type I found online were sublinked queries that made my head hurt.
Regards, Matt |
Quote:
_______________________________ Quote:
_______________________________ Quote:
Code:
<ol> Quote:
Quote:
But you're right: I will change the title setting also hack version.. ;) _______________________________ Quote:
|
I'm at lesson now and I can't try...
...but at your own risk ;) try this: Code:
$getlateste= $DB_site->query(" |
Quote:
Bill Bensen |
In fact! ;-)
|
The typo is from the original mod for vbindex. Both Bolas and I overlooked it. I think the strip slashes is a nice bit that was missed as well.
This hack is for [vB 3.0.3] - vB Journal for vBulletin 3.0.3(v1.0.0) and [vB 3.0.3] - vB Journal | vba CMPS module: latest entries Below is the more blog like version of Bolas' mod. I am working on the RSS portion of this to make it even more "blog like". The entry title is 50 chars and the body of the entry is 150 chars and then the "more..." link to the entry. Please note that this only shows the first jounalists' entries. On my site I only wanted my entries to appear on the front page. :glasses: You can change that by modifying the WHERE portion of the query "journals.journalist_id = 1" to whatever ID you wish to display or by removing it. touch /path_to_your_forum_dir/modules/journalentries.php PHP Code:
then create template 'adv_portal_latestjournalentry' HTML Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> Modify the journal_latestentrybits HTML Code:
<tr> $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: center Templates Used: adv_portal_latestjournalentry, journal_latestentrybits Live example towards the bottom of the page. Surf this... photography This also displays the number of comments next to the author and the time the entry was added. Bill Bensen |
Good work!
If you want another example of the same Bilbensen modification to Bolas CMPS conversion of the Brahm's vBindex Add-On (please, we need another '..ation' to become the longest hackname of this forum :D) you can go to http://www.wellage.net In my main page I used Billbensen mod to have a preview on the right side instead of a center block. |
Bolas, unrelated to this hack, there is a problem with your rollup code. The Journal button rolls up another ON FOCUS module. I had this problem and found I had to use unique names in five places (wherever you have ...cmps_pagesmenu substitute ...cmps_pagesjournal) in your journal template, I believe there are 5 occurrences) I can't guarantee that is the CORRECT solution, but that is what I did (give each module a unique cmps_pagesNAME) and the rollups worked independently.
Regards, Matt |
oh... deh...
It was so..ehm... funny! :D Thank you, I will correct it ASAP! |
done.
|
Installed, works great! Thanks.
*Clicks Install |
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??? |
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! |
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? |
Have you modified the content of my module?
|
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.
|
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! |
clean? there is nothing to do in there, it's allmodules... :-)
if you want, I could pm you my info to see... |
Yes, if you trust me. ;)
I will debug it in your system. |
I'm assuming it doesn't work for 3.0.7? I can't get it to show up.
|
All times are GMT. The time now is 03:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|