vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBJournal Lite 1.1b (https://vborg.vbsupport.ru/showthread.php?t=43717)

Ryangel 09-18-2002 10:00 PM

vBJournal Lite 1.1b
 
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 :D

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

culprit 09-19-2002 10:35 AM

Any chance of some screenshots?

Cheers

Ryangel 09-19-2002 11:46 AM

ahh thanks. demo link added in first post

Erwin 09-19-2002 12:06 PM

Your demo link doesn't work. :)

Erwin 09-19-2002 12:07 PM

Okay, the link should be this:

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

Ryangel 09-19-2002 12:09 PM

thanks.... fixed ... :\

Erwin 09-19-2002 12:12 PM

Looks great! Well done! How many entries do you show on a page? You have 27 all at once at the moment on the same page.

Do the entries increase the post count? Do the comments increase the post count? Just wondering...

Ryangel 09-19-2002 12:16 PM

Quote:

Originally posted by Erwin
Looks great! Well done! How many entries do you show on a page? You have 27 all at once at the moment on the same page.

Do the entries increase the post count? Do the comments increase the post count? Just wondering...

hmmm if I'm thinking of what you're thinking.... currently it shows the last 10 entries of the user. If you wanted to view older entries. You'll have to click on view all entries.

oh yeah , and no none of this increases the post count

Lesane 09-19-2002 12:17 PM

Great hack, this spares me some time. ;)

Well done.

NexDog 09-19-2002 12:22 PM

Yep, can't wait to install...hopefully in a day or two. :)

Regit 09-19-2002 12:45 PM

great !! can you descirbe some feature of this hack ?

Ryangel 09-19-2002 01:03 PM

Quote:

Originally posted by Regit
great !! can you descirbe some feature of this hack ?
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

zachb 09-19-2002 01:26 PM

thank you!! i am so glad this came out. great job. installed.

zachb 09-19-2002 01:27 PM

suggestion: let user's search for member journal's on the journal page.

[D]Vincent 09-19-2002 02:05 PM

Great. I won't install until later today when I'm fully awake though. But anyways, did you just not use cellspacing on your forum templates for it? Or is there not cellspacing used in it at all. Because I'm lazy and I prefer to have cellspacing=1 so I can see the border. That annoyed the hell out of me on the quiz hack. Never changed it lol

Velocd 09-19-2002 02:16 PM

Cool, I might implement this into my site instead of creating my own Journal system, mainly because my hacking time has been cut back lately.

/me installs

Low Tek 09-19-2002 05:53 PM

Woo. I've been waiting for this come out.

Anyway you can add the link to a user's journal in their profile?

What about adding a Mood selection to each entry?

Riddel 09-19-2002 06:12 PM

wow!! awesome!! I've been waiting for this hack for a long long time! you rock man!

ptbyjason 09-19-2002 06:34 PM

Low Tek I think it puts a link to the journal of the person when you view their profile, but I might be wrong. I know if you look at his post bit there is a button that will let you view the user's journal if they have one.

I think this is a great hack.

I have a question of my own also. Is there a way to allow the user to attach a file or photo in the journal entry?

Odil 09-19-2002 07:42 PM

I have 4 styles installed on my board so this hack when it goes to install the templates, it says it does but there are no templates ever installed for any of the 4 styles. What do I need to do?

Can you at least provide a text on the templates to install so I can do them manually?

Odil

Riddel 09-19-2002 08:22 PM

yea..the templates in the install.php is a little buggy in mine too

indiamike 09-19-2002 08:50 PM

Thanks for releasing this. It's been a long wait for something like this.

Installation went well and will give a little feedback in a few days when I have a chance to play around with it for awhile.

Very Cool...
Thank You :classic:

Mike

indiamike 09-19-2002 11:15 PM

uh--oh---

Need some help.

On the main journal page my user names and journal titles are coming up in an unreadable color (white on white). In which template can I find the color that controls the user name and the journal title.
I have been poking around and can't figure it out.

http://www.indiamike.com/india/journal.php

Cheers
Mike

Ryangel 09-20-2002 12:33 AM

Quote:

Originally posted by indiamike
uh--oh---

Need some help.

On the main journal page my user names and journal titles are coming up in an unreadable color (white on white). In which template can I find the color that controls the user name and the journal title.
I have been poking around and can't figure it out.

http://www.indiamike.com/india/journal.php

Cheers
Mike

yeah i did think that this would be a problem.. you'll have to edit the journal_mostentrybits, journal_mostviewbits, journal_recententrybits ,

find the first <normalfont> and change to <normalfont color="{ categoryfontcolor }"> , tell me if it works. (without the spaces in categoryfontcolor and the {})

I'll update the zip file later when I'm home.

Ryangel 09-20-2002 12:36 AM

Quote:

Originally posted by Odil
I have 4 styles installed on my board so this hack when it goes to install the templates, it says it does but there are no templates ever installed for any of the 4 styles. What do I need to do?

Can you at least provide a text on the templates to install so I can do them manually?

Odil

mmm thats a whole load of templates, but I'll create a txt file and post it up when I'm back. say 2 hours from now.

Ryangel 09-20-2002 12:43 AM

Quote:

Originally posted by ptbyjason
Low Tek I think it puts a link to the journal of the person when you view their profile, but I might be wrong. I know if you look at his post bit there is a button that will let you view the user's journal if they have one.

atm, there isnt a link in the user profile to the journal, will add that in the next update :)

Quote:


I have a question of my own also. Is there a way to allow the user to attach a file or photo in the journal entry?

Not atm, only if you use the vB code tags, theres no attachment support atm. Will consider this iin future updates.

Ryangel 09-20-2002 12:45 AM

Quote:

Originally posted by Low Tek

What about adding a Mood selection to each entry?

I hear ya :) Mood selection is in the works atm. I'm still deciding whether to incooperate other mood hacks or just implement a real simple one. Will have to check with the other hack authors.

Ryangel 09-20-2002 12:48 AM

Quote:

Originally posted by zachb
suggestion: let user's search for member journal's on the journal page.
Noted ! :)

indiamike 09-20-2002 01:15 AM

Quote:

Originally posted by Ryangel


yeah i did think that this would be a problem.. you'll have to edit the journal_mostentrybits, journal_mostviewbits, journal_recententrybits ,

find the first <normalfont> and change to <normalfont color="{ categoryfontcolor }"> , tell me if it works. (without the spaces in categoryfontcolor and the {})


Thanks for the response.
That was actually the first place I had looked when I was having problems. Even after editing it and replacing it with your code and hand doing it over and over it still didn't take. The solution...well....I cheated...since I couldn't figure out how to get the font color to change I just changed the color of the table.

I am dumbfounded why this didn't work and tried all sorts of different color combos in the font tag....hmm....dunno...I am usually pretty good at editing templates.

We will have to keep looking into this.

Cheers
Mike

Ryangel 09-20-2002 01:52 AM

hmmm *confused*
/me waits for more bugs.

Velocd 09-20-2002 01:55 AM

Quote:

Originally posted by Ryangel


I hear ya :) Mood selection is in the works atm. I'm still deciding whether to incooperate other mood hacks or just implement a real simple one. Will have to check with the other hack authors.

Just use my vBmoods, it can easily be implemented without hassels and is the best out there on the vBulletin.org :p

Ryangel 09-20-2002 01:57 AM

Quote:

Originally posted by Velocd


Just use my vBmoods, it can easily be implemented without hassels and is the best out there on the vBulletin.org :p

yeah? ok! Will get down to it asap :) Looks great .

Ryangel 09-20-2002 02:20 AM

Quote:

Originally posted by indiamike


Thanks for the response.
That was actually the first place I had looked when I was having problems. Even after editing it and replacing it with your code and hand doing it over and over it still didn't take. The solution...well....I cheated...since I couldn't figure out how to get the font color to change I just changed the color of the table.

I am dumbfounded why this didn't work and tried all sorts of different color combos in the font tag....hmm....dunno...I am usually pretty good at editing templates.

We will have to keep looking into this.

Cheers
Mike

ahhh i think i got it... goto those files again and in the first <tr ...
remove the id="cat" :) that should do the trick. I'll update the files now...

Ryangel 09-20-2002 03:07 AM

Quote:

Originally posted by [D]Vincent
Great. I won't install until later today when I'm fully awake though. But anyways, did you just not use cellspacing on your forum templates for it? Or is there not cellspacing used in it at all. Because I'm lazy and I prefer to have cellspacing=1 so I can see the border. That annoyed the hell out of me on the quiz hack. Never changed it lol
Cellspacing set to 0 you can change that in the journal template.

Ryangel 09-20-2002 03:08 AM

Quote:

Originally posted by Odil
I have 4 styles installed on my board so this hack when it goes to install the templates, it says it does but there are no templates ever installed for any of the 4 styles. What do I need to do?

Can you at least provide a text on the templates to install so I can do them manually?

Odil

File in first post updated. (includes template.txt)
I'll just put the file here as well.

Riddel 09-20-2002 03:35 AM

okay well this may be a silly problem and there must be something obvious i am overlooking but when I click "Add Entry to Journal" it takes me to a 404 page?

Odil 09-20-2002 03:38 AM

Quote:

Originally posted by Ryangel


File in first post updated. (includes template.txt)
I'll just put the file here as well.

Thank you! I knew it would be alot of templates, I looked through the install file and I could see how many. I just didn't know enoug to know how to copy them from there if it was even posible.

Thanks for the work!

Odil

Ryangel 09-20-2002 03:58 AM

Quote:

Originally posted by Riddel
okay well this may be a silly problem and there must be something obvious i am overlooking but when I click "Add Entry to Journal" it takes me to a 404 page?
hmmm , got a link i can see?

Ryangel 09-20-2002 03:59 AM

Quote:

Originally posted by Odil


Thank you! I knew it would be alot of templates, I looked through the install file and I could see how many. I just didn't know enoug to know how to copy them from there if it was even posible.

Thanks for the work!

Odil

Np :)

Riddel 09-20-2002 04:40 AM

here. hmm it is a strange error. i think I installed everything correctly


All times are GMT. The time now is 06:34 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
  • Page Generation 0.01598 seconds
  • Memory Usage 1,843KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete