The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBJournal Lite 1.1b Details »» | |||||||||||||||||||||||||
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
|
Comments |
#162
|
||||
|
||||
Here's my version of the 'admins can edit/delete stuff' journal.php file. Simply upload 'journal2.php' to your forum root directory, delete 'journal.php' and rename this 'journal.php'.
I have tested this and everything else seems to work as normal for everyone else. I didn't really change much. The code was already in effect for 'edit/delete' but not for the actual 'update' bit so I pasted the necessary code there. On the subject of bugs there's a database error if you try to view a non-existent journal (instead of a redirect that is). Also, if you change someone's name their old name shows up on their personal journal page, in spite of the new name showing on the main journal page and in the comments section for a particular entry. Yeah, and people shouldn't be able to refresh their screen in their own journals to get their view count up. |
#163
|
||||
|
||||
is there any way to get this to appear on a users profile with a link as the latest journal entry's name?
e.g. PHP Code:
|
#164
|
||||
|
||||
Damn, and I can't seem to find the <Install this hack> link yet. Pity.
Installed. I just had a user request blog functionality for himself. I'm also using this as a 'News Columns' sort of thing on the main page. Thanks again, - ZJ |
#165
|
||||
|
||||
The Install This Hack link is at the bottom of each thread - right below Email This Page to Someone.
|
#166
|
|||
|
|||
Hey guys.
I must be seriously thick, that or I have absolutely no knowledge of PHP to save my life. Which is strange, i've installed mods before. I've tried to edit admin/functions.php like you said, I followed everything, uploaded, and then there was this: Parse error: parse error, unexpected T_STRING in /home2/halfbloo/public_html/forum/admin/functions.php on line 75 Fatal error: Call to undefined function: getuserinfo() in /home2/halfbloo/public_html/forum/admin/sessions.php on line 366 I have no clue on how to aid this so any help would be appreciated. Many thanks in advance. |
#167
|
||||
|
||||
Hmm, did you use WordPad? If so, did you save it as a doc rather than a txt/php file? That puts unwanted formatting where the hack should be on one line and so on.
NotePad is better for this, though if that's not the problem then maybe you've got the breaks wrong? Anyway, the code should look like this; PHP Code:
|
#168
|
||||
|
||||
um i have multiple styles on my site will the installer install templates in all the styles?
|
#169
|
||||
|
||||
Confirmed working for Vbulletin 2.3 release candidate 1
no it was painstaking and i had to install the templates for the other 2 styles seperately phew all done though now |
#170
|
|||
|
|||
I like that idea of this hack. I have a few questions about it though.
Is there a way to integrate this with all my members userCP? That way they don't have to go to a seperate page to add/delete thier entries but just go to their userCP. Can members entries then be viewed by viewing the members profiles as well? (using the getinfo template). |
#171
|
||||
|
||||
I love this hack and i was wondering if it would be released on vb3
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|