Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
vBJournal Lite 1.1b Details »»
vBJournal Lite 1.1b
Version: 1.00, by Ryangel Ryangel is offline
Developer Last Online: Sep 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-18-2002 Last Update: Never Installs: 71
 
No support by the author.

ATM, this hack would work with ALL versions of vB unless they renamed the 'user' table :speechless:


README.txt (can be found in the zip)


README.txt
New in 1.1b
- Edit journal.php (2 lines). New journal.php here, for 1.1a users

================================================== ===================================
================================================== ===================================
=== vBJournal Lite version 1.1b =============================================
================================================== ===================================
================================================== ===================================
This is an addon to vBulletin and acts as an online journal/diary. Users can add entries, either

making them private or public(for all to see). For the public entries, users can comment on them.

Thats about it. You should be able to get a better idea viewing a live demo at

http://sgstudents.com/forum/journal.php. The GUI was modeled after gamingforces journal at

http://www.gamingforce.com/forums/journal.php .
-------------------------------------------------------------------------------------
=== This being my first hack, i am SURE that there are going to be =======
=== some bugs, and problems, so just to warn you first =======
=== :: BACKUP YOUR DATABASE ! =======
-------------------------------------------------------------------------------------

Now thats over with lets start... I will list the steps of what needs to be done...
NOW :

1) Edit the images to suit your site.
2) Upload the images to the forum's /images folder.

3) Upload install_journal.php to your admin directory.
4) Run install_journal.php and follow instructions... shouldn't be a problem. but i only tested

it once .

5) Run this query (using phpmyadmin,or use this hack

https://vborg.vbsupport.ru/show...&threadid=26272 , etc)

ALTER TABLE user ADD journal SMALLINT NOT NULL

[note this will add a column in your 'user' table, but i think that shouldnt be a problem ...]

6) Upload journal.php to your forum's root directory.
7) goto journal.php page and click on the button ... (should say "Get a journal" or "Unlock

Journal" Cant rem which
... bad memory. lol) this will enable the admin journal (userid=1) and show the first default

welcome msg.

8) Link to journal in postbit.
------------------------------

- open admin/functions.php

FIND

/////////////////////////////////////////////////////

$datecut = time() - $cookietimeout;

if ($counter%2==0) {
$post[backcolor]="#13486D";
$post[bgclass] = "alt1";
} else {

/////////////////////////////////////////////////////

Add ABOVE THIS


/////////////////////////////////////////////////////

// vBJournal Hack by Ryangel
if($post[journal]==1){
$journal = '<a href="journal.php?s=&journalid='.$post[userid].'&action=view"><img

src="https://vborg.vbsupport.ru/images/journal.gif" alt="View '.$post[username].'\'s Journal" border="0"/></a>';
}
else {
$journal = '';
}

/////////////////////////////////////////////////////


save and upload admin/functions.php.

9) open your postbit template and add $journal to where you want the link to show.


You are done ! The journal should be able to work now

FEW THINGS TO NOTE
------------------------------------------
- private entries can only be viewed by the owner or admin.
- erm... did i say a few? ok thats the main thing to note.... I'll edit this as it comes to my

mind. lol :laugh:

IN WORKS FOR NEXT VERSION
------------------------------------------
- incooperate moods
- better interface ( but that you can do now by editing the templates yourself )
- Admin interface -> from admin cp.
- New user option to choose whether buddies/admin can view private entries.
- anything else that might come up from discussions.


Version Update Log
------------------

1.1a
- Fixed some table color code.
- Added template txt for manual install.

DEMO: http://sgstudents.com/forum/journal.php

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #272  
Old 08-05-2003, 03:41 PM
RammStein0071's Avatar
RammStein0071 RammStein0071 is offline
 
Join Date: Nov 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only have one question before I strongly think about installing this

does it have an option where though you make the entry private the writer can select whom they want to read it by entering a username in a field?
Reply With Quote
  #273  
Old 08-05-2003, 03:44 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:41 PM RammStein0071 said this in Post #275
does it have an option where though you make the entry private the writer can select whom they want to read it by entering a username in a field?
nope
Reply With Quote
  #274  
Old 08-05-2003, 06:40 PM
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
does it have an option where though you make the entry private the writer can select whom they want to read it by entering a username in a field?
Hi, Ramm!

Ninth Dimension is correct. This journal doesn't have selective private entries.

Unless if you're well-versed in the fundamentals of PHP, furthermore, I also advise against installing it since it seems that installations have lately been more complex than when Ryangel first released it.
Reply With Quote
  #275  
Old 08-05-2003, 11:05 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ryangel has said he will update it, which I'm sure he will once he has the time.. Anime-loo also said he was going to be coding his own version of a journal system, but he's now decided that it will be coded and released for vB3 only (the last I head from him on the subject anyway).

There are a quite a few issues and addons dealt with since the original instructions were posted. It would seem my HTML characters fix doesn't work for entries, and only comments at the moment which I will try and look into when I get some spare time..
Reply With Quote
  #276  
Old 08-12-2003, 05:38 PM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Joeboo, thank you VERY much for the mood and np add on. It works great!
Reply With Quote
  #277  
Old 08-17-2003, 09:56 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
06-01-03 at 05:17 PM Oblivion Knight said this in Post #240
If your bbtags aren't working correctly with the journal, there was a problem with the install..

I think someone had a similar problem earler in this thread.
I just installed this and embedded BB Code images worked the first time I tried, but subsequently they do not. I tried editing the original post with img tags, and adding more posts, but they appear simply as url-type links.

Currently, bbcodes like BOLD, ITALICS, COLOR, SIZE, URL links, and smileys and such do work. I wonder how the vBulletin code would know whether or not to display embedded images?

Regards,

Matt
Reply With Quote
  #278  
Old 08-18-2003, 09:36 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
06-30-03 at 08:30 PM Robink said this in Post #257
Some people on my forums deliberately keep refreshing the Journal page to increase the number of views.

Is there any way to stop this?

(I know this is trivial )
Well, I have an idea for you. You might change the counts so they are only incremented when someone other than the journalist or a guest visits his page.

I added the parts in yellow to journal.php. Don't forget the closing bracket!:
Quote:

// Increase view count by 1
// only if the reader is not the journalist and not a guest!
if (($bbuserinfo[userid] != $userid) AND ($bbuserinfo[userid]!=0)) {

$view_up = $DB_site->query("UPDATE journal SET views=views+1 where journalid = $journalid");

if(!$view_up)
echo "Query $viewup could not be executed";
}
The reason for not having guests increment the count is that a person could simply log out and hammer their journal to increase the post count. Unless guests were already disabled from reading, as recommended elsewhere in this thread.

Of course, to circumvent this protection, they will simply need to log in as someone else and then hammer the journal. But we needn't tell them that!

Regards,

Matt
Reply With Quote
  #279  
Old 08-20-2003, 03:13 PM
Shadow_NL Shadow_NL is offline
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A member complained about that his first entries were gone. I checked her journal and this was true. Do journal entries automatically get pruned or do I have to change something somewhere to make everything show again?
Reply With Quote
  #280  
Old 08-20-2003, 03:33 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:13 PM Shadow_NL said this in Post #282
A member complained about that his first entries were gone. I checked her journal and this was true. Do journal entries automatically get pruned or do I have to change something somewhere to make everything show again?
It only shows a user's 10 most recent entries I believe..
Nobody implemented a way to view a journal in it's entirety or added pagination.

The entries are still there in the database, but they have been cut off from being displayed.
Reply With Quote
  #281  
Old 08-20-2003, 06:35 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:33 PM Oblivion Knight said this in Post #283
It only shows a user's 10 most recent entries I believe..
Nobody implemented a way to view a journal in it's entirety or added pagination.
There is a link for [View All Entries]. It seems to work properly on some of the posters' forums.

Regards,

Matt
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09245 seconds
  • Memory Usage 2,322KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete