PDA

View Full Version : vBadvanced CMPS module: Random Journal


Milad
03-02-2006, 10:00 PM
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:

In the file cmps_index.php (or whatever you had renamed it.)
Find:
require_once('./includes/vba_cmps_include_template.php');
Above Add:
$phrasegroups = array_merge($phrasegroups, array('journalhack'));
Upload the module file randomjournal.module
Click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=109383) to receive updates.
Done! Thank you, feel free to suggest.


ChangeLog:

Mar, 3rd 2006: (1.0.0) Initial release
Mar, 5th 2006: (1.0.0) This post updated.


Notice:
For People how had their forum integrated with vBadvanced CMPS (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6) and want to display this module in the integrated sidebar, do the following:
in /forum/global.php Find:
define('VB_AREA', 'Forum');
Add After:
$phrasegroups = array_merge($phrasegroups, array('journalhack'));

Milad
03-03-2006, 07:26 PM
"Latest X Entries" module and "Journals of Note" module are in their way.

influence
03-03-2006, 08:14 PM
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

Milad
03-03-2006, 08:26 PM
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

I'll check it.

sensimilla
03-04-2006, 07:25 AM
great hack, I was just in need of this!

Thanks!

shadowdancer36
03-04-2006, 03:43 PM
Can someone make this for VBportal?

Vizionz
03-04-2006, 05:45 PM
nothing is showing up for me :(

FleaBag
03-04-2006, 06:43 PM
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! :)

Milad
03-04-2006, 08:48 PM
nothing is showing up for me :(

Did you do step 1?

Milad
03-04-2006, 08:49 PM
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

Done and will be released after a while.

Milad
03-04-2006, 08:59 PM
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! :)

I was unable to determine your version of vB and vBa.
I had checked your vBadvanced and shown your problem.

tell me your versions please

Milad
03-05-2006, 12:06 AM
Notice:
For People how had their forum integrated with vBadvanced CMPS (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6) and want to display this module in the integrated sidebar, do the following:
in /forum/global.php Find:
define('VB_AREA', 'Forum');
Add After:
$phrasegroups = array_merge($phrasegroups, array('journalhack'));

Thread updated.

FleaBag
03-05-2006, 07:50 PM
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?

Milad
03-05-2006, 08:27 PM
Is the new step instead of or aswell as the first step?

It's as well as the first step, and for People (like you) how had their forum integrated with vBadvanced CMPS (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6) and want to display this module in the integrated sidebar.

offsidex
03-21-2006, 05:51 PM
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.

Milad
03-21-2006, 06:01 PM
I didn't see the module!!

sensimilla
03-24-2006, 07:00 AM
Upload the module file randomjournal.module upload where? to my friends FTP ?

Really bad written tutorial, of course nothing shows up, no one can do it properly without extra knowledge

Milad
03-24-2006, 02:53 PM
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.

Bonsai_Ryan
03-29-2006, 06:56 PM
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
require_once('./includes/vba_cmps_include_template.php');
doesn't exist. This is what you need to find:
require_once('./global.php');

louis_chypher
04-21-2006, 01:40 PM
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!

louis_chypher
04-21-2006, 01:55 PM
<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?

Milad
04-22-2006, 08:11 AM
what is the different you made?

louis_chypher
04-23-2006, 01:21 PM
</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.

BlackxRam
04-23-2006, 02:01 PM
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? =)

Milad
04-24-2006, 10:01 AM
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

DjTaz
05-20-2006, 11:45 AM
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
require_once('./includes/vba_cmps_include_template.php');
doesn't exist. This is what you need to find:
require_once('./global.php');

tried this , but it still wont show - anything else i need to do ?its enabled in the admincp .

DjTaz
06-19-2006, 01:57 PM
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.

DjTaz
06-19-2006, 09:37 PM
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.

GrendelKhan{TSU
06-21-2006, 08:03 AM
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 (http://www.Barlamane.com)

Thank you for your help.

go to

vba CMPS admin cp >> Edit pages >> homepage (edit) >> Modules Enabled >> make sure Random Journal box is checked. ;)

fishhub
10-26-2006, 10:16 AM
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

Milad
10-26-2006, 10:32 AM
This file comes with vbadvanced CMPS, the default package contains this file.

fishhub
10-26-2006, 03:41 PM
This file comes with vbadvanced CMPS, the default package contains this file.
Thanks.

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

fishhub
10-27-2006, 07:48 PM
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

fishhub
12-03-2007, 02:17 PM
is this compatible with php5?tia :o