![]() |
vBadvanced CMPS module: Random Journal
Module version: 1.0.0
vBulletin version: 3.5.x Assuming you have vB Journal and vBadvanced CMPS 2.1.0 installed. Tested with: vB Journal 1.0.2 Beta 1 and vBulletin 3.5.4 Copyright: http://www.basharialep.com/ Description: This picks up a random journal (from vB Journal) and displays its title, description, (number of entries, views and comments) and the latest entry title with date and time. (see the attached screen shot). Installation:
ChangeLog:
Notice: For People how had their forum integrated with vBadvanced CMPS and want to display this module in the integrated sidebar, do the following: in /forum/global.php Find: PHP Code:
PHP Code:
|
"Latest X Entries" module and "Journals of Note" module are in their way.
|
what about showing last 5 journal entries in members profile instead of the last entry?
thats what everyone have been asking for. Just check the journal thread and see for yourself |
Quote:
|
great hack, I was just in need of this!
Thanks! |
Can someone make this for VBportal?
|
nothing is showing up for me :(
|
A flaw with this unfortunitely is that with the edit to cmps_index.php, it doesn't manage to pull the phrases and the title of the journal from the database on vB pages using the CMPS modules.
www.dragonninja.co.uk/journal.php Besides, it's very good! :) |
Quote:
|
Quote:
|
Quote:
I had checked your vBadvanced and shown your problem. tell me your versions please |
Notice:
For People how had their forum integrated with vBadvanced CMPS and want to display this module in the integrated sidebar, do the following: in /forum/global.php Find: PHP Code:
PHP Code:
|
Thanks for the update! :) Looking forward for your new journal modules to use on my journal page!
Is the new step instead of or aswell as the first step? |
Quote:
|
ntohing is showing up for me.... could you please check it out ? I am using vb 3.5.4 with vbadvanced...
Site @ www.Barlamane.com Thank you for your help. |
I didn't see the module!!
|
Quote:
Really bad written tutorial, of course nothing shows up, no one can do it properly without extra knowledge |
It's not my fault if you don't know how to install modules
Upload it: Admin CP -> vBa CMPS -> Download / Upload Module If nothing is displayed, please give me a URL to see it. |
Works fine for me and I'm using vba cmps v 2.0 rc 2. Just a note though for anyone using this cmps still when you enter the $phasegroups code in your index file
PHP Code:
PHP Code:
|
In adv_portal_journalbit
found: <span class="smallfont">$vbphrase[journalist]</spna> changed to: <span class="smallfont">$vbphrase[journalist]</span> found: <span class="smallfont">$vbphrase[entries]</spna> changed to: <span class="smallfont">$vbphrase[entries]</span> found: <span class="smallfont">$vbphrase[views]</spna> changed to: <span class="smallfont">$vbphrase[views]</span> found: <span class="smallfont">$vbphrase[comments]</spna> changed to: <span class="smallfont">$vbphrase[comments]</span> found: span class="smallfont">$vbphrase[last_entry] / $vbphrase[date]</spna> changed to: span class="smallfont">$vbphrase[last_entry] / $vbphrase[date]</span> Thanks for the mod! |
<span class="smallfont">$vbphrase[last_entry] / $vbphrase[date]</span>
to <span class="smallfont">$randj[lastentrydate] / $vbphrase[date]</span> not sure if $randj[lastentrydate] is what was meant to go in at this point? |
what is the different you made?
|
</spna> to </span> to cause the proper display of displayed info.
and $vbphrase[last_entry] to $randj[lastentrydate] to cause the proper display of the journal entry date. |
What About a MOD of this mod, perhaps doing a Journal of the Day kind of thing?? Thats what I am essentially looking for atm. Maybe an option to instead of have one randomly each time, have one up for the entire day? =)
|
This is possible, but now I'll take a holiday to study, and I'll never code any thing before june, 22 2006.
wait for me |
Quote:
|
Ok i got this working - and i also edited it so that instead of random journals , it shows the last 5 entries in the journals - and it has an Update your journal now button on it to encourage entries.
If i can figure out how to make a module for it ill re-write it and post - but i wont have time for a few days. |
Ok , i think i managed to do this , but i have not tested it.
I have it working on my own boards and i dont want to uninstall it to test the module install, but as far as i can see it should work ok. I can talk someone through how to do it manually if theres any issues with this , but if someone has a test board they want to try it on that would be even better. I hardcoded the english words into the top of the module because i didnt have time to get the phrases working on my own board , so it'll stay like that unless someone else wants to re-code it to a better standard. |
Quote:
vba CMPS admin cp >> Edit pages >> homepage (edit) >> Modules Enabled >> make sure Random Journal box is checked. ;) |
In the file cmps_index.php (or whatever you had renamed it.)
Sorry guys, would like to know how to find the above file? Under ftp host? really no idea how to do the above instructions. Kindly soul pls advice. TIA |
This file comes with vbadvanced CMPS, the default package contains this file.
|
Quote:
I managed to find it as it was named index.php. Got into my ftp server and clicked onto the file. But cant open the file to update manually. How do it update it? TIA Cheers |
ok, thks for the mod. I managed to get it done and its working fine.
HOwever, would like to improve it and how do i control the width of the random journal as it appears out of shape should the title of journal runs too long? TIA |
is this compatible with php5?tia :o
|
All times are GMT. The time now is 07:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|