Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #122  
Old 11-06-2002, 04:20 AM
ohgenki ohgenki is offline
 
Join Date: Apr 2002
Location: Singapore
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

only opera browser works with it and i must do a 'repost' IE and Netscape doesn't allow users to post the new entries in the journal...but it allows a creation of one...
Reply With Quote
  #123  
Old 11-07-2002, 06:29 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having a problem getting IMG tags working with my journal. Anyone know what the problem would be?

EThan
Reply With Quote
  #124  
Old 11-11-2002, 02:01 PM
teenfront teenfront is offline
 
Join Date: Nov 2001
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any idea when this is coming out of beta?
Reply With Quote
  #125  
Old 11-12-2002, 05:19 PM
Jitway's Avatar
Jitway Jitway is offline
 
Join Date: Sep 2002
Location: In a hub!
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any suggestions... I get this error on the install_forum.php
Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: INSERT INTO journal_entry (entryid, title, entry, private, timestamp, userid, journalid, displayorder) VALUES (1, 'Welcome to the Jitway's Gaming/Family! Journal.', 'Version 1.1b Have fun. ', '0', '1027264704', '1', '1', '1')
mysql error: You have an error in your SQL syntax near 's Gaming/Family! Journal.', 'Version 1.1b Have fun. ', '0', '1027264704', '1',' at line 1

mysql error number: 1064

Date: Tuesday 12th of November 2002 02:00:28 PM
Script: http://www.jitway.com/forums/forums/...nal.php?step=3
Referer: http://www.jitway.com/forums/admin/i...nal.php?step=2
Reply With Quote
  #126  
Old 11-12-2002, 05:37 PM
Jitway's Avatar
Jitway Jitway is offline
 
Join Date: Sep 2002
Location: In a hub!
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error when I go to the actually forum.php page and click on the get journel button
Database error in vBulletin 2.2.8:

Invalid SQL: SELECT COUNT(commentid) FROM journal_comments where journalid = 1
mysql error: Table 'jitway_xmb2.journal_comments' doesn't exist

mysql error number: 1146

Date: Tuesday 12th of November 2002 02:31:28 PM
Script: http://www.jitway.com/forums/forums/...=1&action=view
Referer:

Also here is the templates all in a folder that you can use to install easier with the template backup system hack.
Reply With Quote
  #127  
Old 11-29-2002, 11:54 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/NexDog finally installs...
Reply With Quote
  #128  
Old 12-07-2002, 07:29 AM
ohgenki ohgenki is offline
 
Join Date: Apr 2002
Location: Singapore
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nexdog u have a copy of it ?
Reply With Quote
  #129  
Old 12-10-2002, 09:24 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me has indeed.
Reply With Quote
  #130  
Old 12-12-2002, 07:37 PM
Koss Koss is offline
 
Join Date: Jan 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NexDog
* NexDog has indeed.
whats this?
Reply With Quote
  #131  
Old 12-20-2002, 03:02 AM
Koss Koss is offline
 
Join Date: Jan 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know how to change the color of the links?

thanks
Reply With Quote
  #132  
Old 12-24-2002, 02:00 PM
redd redd is offline
 
Join Date: Sep 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We've been using this hack for a few months without any problems. Now, all of a sudden, we've been receiving error messages:

Database error in vBulletin :

Link-ID == false, connect failed
mysql error:

mysql error number:

Date: Tuesday 24th of December 2002 09:40:46 AM
Script: /forum/journal.php?s=&journalid=12338&action=view

We ONLY receive errors regarding connecting to view the journals, not the rest of the forum, and we've received at least 30 in the last week.

Has anyone else been having problems?
Reply With Quote
  #133  
Old 12-29-2002, 09:59 PM
EcpHosting's Avatar
EcpHosting EcpHosting is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NOTE: please during setup of the new version, allow the user to SELECT which STYLE to install to. The installation installed to my default style and didnt go to my CUSTOM style.

Just a note, and i may have missed something, but if you are getting a blank screen AND are using a custom style, you will need to move templates over from default to your style.
Reply With Quote
  #134  
Old 12-29-2002, 10:57 PM
EcpHosting's Avatar
EcpHosting EcpHosting is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting the following error when users attempt to create a journal entry:

Quote:
Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE user SET journal=1 WHERE userid=1
mysql error: Unknown column 'journal' in 'field list'

mysql error number: 1054

Date: Sunday 29th of December 2002 07:14:32 PM
Script: http://bigfish.truewalk.com/journal....=createjournal
Referer:
However, if the user REFRESHES the page, it says the journal already exists and it acts flawless from there.

Also, the "$forums" in the postbit is not working for the user who has an entry. Any ideas for either?
Reply With Quote
  #135  
Old 01-01-2003, 04:49 AM
Brahm Brahm is offline
 
Join Date: Jan 2002
Location: Texas, USA
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah when I try to install in 2.29 I get to step 3 and get a MySQL error,

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: CREATE TABLE journal (
journalid int(11) NOT NULL auto_increment,
title text NOT NULL,
description text NOT NULL,
imagename text NOT NULL,
entries int(11) NOT NULL default '0',
views int(11) NOT NULL default '0',
enabled smallint(6) default '0',
timestamp int(11) NOT NULL default '0',
userid int(11) NOT NULL default '0',
PRIMARY KEY(journalid)) TYPE=MyISAM;
mysql error: Table 'journal' already exists

mysql error number: 1050

Date: Wednesday 01st of January 2003 12:10:56 AM
Script: http://www.ashkins.net/forum/forum/a...nal.php?step=3
Referer: http://www.ashkins.net/forum/admin/i...nal.php?step=2
Reply With Quote
  #136  
Old 01-01-2003, 07:59 AM
Brahm Brahm is offline
 
Join Date: Jan 2002
Location: Texas, USA
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man oh man. With a little manual database entry I managed to push past the above error message. I created the tables and did the inserts manually through the end of the install, and it now works. Thanks a bunch Ryangel. It works, it really works!
Reply With Quote
  #137  
Old 01-12-2003, 07:13 AM
Elvis Elvis is offline
 
Join Date: Jul 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Willard Reece
But basicly my only prob with it is I wish a admin could delete post made in any journal or what ever.
I didn't see that as a option. and also the error page.

I've done it.... it was annoying the crap outta me too....

this file will:

display 20 of each of the 3 columns on the Journal jump page, and will also allow admins to edit/delete journal entries and comments.

Just download and rename this file to journal.php
then upload to your main directory

Enjoy,

Elvis
Reply With Quote
  #138  
Old 01-12-2003, 02:21 PM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Elvis

I've done it.... it was annoying the crap outta me too....

Elvis
Uploaded and just got errors....
Quote:
Database error in vBulletin 2.2.5:

Invalid SQL: SELECT u.username, e.entryid, e.journalid, e.title, e.entry, e.timestamp, e.userid, e.private, e.displayorder, e.comments
FROM journal_entry e
LEFT JOIN user u ON e.userid = u.userid
WHERE e.journalid = 81
ORDER BY e.timestamp DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Sunday 12th of January 2003 11:12:23 AM
Script: http://www.indiamike.com/india/india...81&action=view
Referer: http://www.indiamike.com/india/journal.php
Seems to be requesting the wrong url.
Reply With Quote
  #139  
Old 01-12-2003, 03:23 PM
Elvis Elvis is offline
 
Join Date: Jul 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by indiamike


Uploaded and just got errors....

Seems to be requesting the wrong url.


Well, I just verified that the file I uploaded is exactly like the one I currently have in use - it is.

Also... from the error, it looks as though you may be missing a line of an SQL statement - did you edit this file AT ALL?

and finally, I dont understand how you could be requesting a wrong URL, every instance of the goto starts like:

$goto="journal.php?s=

it's referring to itself - there are no directory changes at all.
Reply With Quote
  #140  
Old 01-12-2003, 06:03 PM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm...I didn't alter it it in anyway and just uploaded it to try it out to see what it would do.

I uninstalled it but the error showed up when I would click on a members name to view their journal.

Has anyone else tried this yet?

Mike
Reply With Quote
  #141  
Old 01-19-2003, 01:35 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got multiple stylesets but your installer will only install to the default is their a fix available?
Reply With Quote
  #142  
Old 01-24-2003, 01:52 PM
redd redd is offline
 
Join Date: Sep 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this page http://www.devarticles.com/art/1/110/ help anyone that understands php to create multiple pages for the journals?
Reply With Quote
  #143  
Old 01-25-2003, 07:53 PM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I finally used this. Was a breeze. Anyone who needs the templates (for the template backup import) instead of hacking the journal.php see the attached file (it has all templates used in this hack).
Reply With Quote
  #144  
Old 01-26-2003, 12:27 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've searched this thread and basically altho i saw a half answer i'm looking for a full answer (meaning not firefly's hack lol)

basically i'd like it so that when you view online.php is says who's journal you're viewing, is that possible at all?
Reply With Quote
  #145  
Old 01-26-2003, 12:57 AM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no other way, but firefly's hack is fast, easy, and will work for you for many other hacks. I have soooo many different hacks installed on my board and now, with FireFly's hack. everyone knows where and what others are doing.
Reply With Quote
  #146  
Old 01-26-2003, 02:10 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think i'll have to try writing it myslef then :-S
Reply With Quote
  #147  
Old 01-26-2003, 05:54 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

been having a few problems with that idea, but i'll muster on

new thing tho' how do you add smilies to the addentry page and add comments page 0_o

oh and is there a way to only allow members to view journals?
Reply With Quote
  #148  
Old 02-02-2003, 08:25 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic hack! Just what I was looking for. Is there a way to let users include html or VB code in their entries?
Reply With Quote
  #149  
Old 02-03-2003, 12:48 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Koss
just a suggestion, maybe add a column on the member page (members.php) with a link of all the members with a journal
Here's how to do this:

In memberlist.php find:
Code:
if ($userinfo[receivepm]) {
      eval("\$userinfo[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
    } else {
      $userinfo[pmlink] = "&nbsp;";
    }
and add after:

Code:
// vBJournal Hack by Ryangel
	if($userinfo[journal]==1){
		$journal = '<a href="journal.php?s=&journalid='.$userinfo[userid].'&action=view"><img src="images/journal.gif" alt="View '.$userinfo[username].'\'s Journal" border="0"/></a>';
	}
	else {
		$journal = '';
	}
// vBJournal Hack End
In memberlist template, find

Code:
<td bgcolor="{categorybackcolor}" colspan=
Your columnspan needs to be increased by one, so if it's 7, make it 8.

In same template, find:

Code:
</tr>
$memberlistbits
Beneath that add:

Code:
<td bgcolor="{tableheadbgcolor}" align="center"><smallfont color="{tableheadtextcolor}"><b>Journal</b></smallfont></td>
In the memberlistbit template find:

Code:
</tr>
Right above that add:

Code:
<td bgcolor="{firstaltcolor}">$journal</td>
That should do it
Reply With Quote
  #150  
Old 02-04-2003, 12:47 PM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I deleted the first entry and I got "Deathsttryke's Journal Entries : -1"

I posted my own and my entries equalled 0 - [ makes sense]

Can you make so that either a] you can delete the welcome message or b] you can delete it but it doesn't change?

Thanks

Other than that, wicked hack!
Reply With Quote
  #151  
Old 02-05-2003, 06:19 AM
Crinos's Avatar
Crinos Crinos is offline
 
Join Date: Oct 2001
Location: Los Angeles, CA
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack ... anyone know a way of showing a list of all user journals?
Reply With Quote
  #152  
Old 02-07-2003, 12:27 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

Does anyone know if the page linking has been added yet?
Just noticed that afterlab has this feature working here.. Is this his own journal system or is he using this one?

I'd love to have a journal system running at Umbrella Online, but for me there seem to be a few bugs and features missing with this version from reading other people's posts.. I could be wrong..
Reply With Quote
  #153  
Old 02-18-2003, 10:22 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ChurchMedia
Fantastic hack! Just what I was looking for. Is there a way to let users include html or VB code in their entries?
my users all have the ability to use vBcode, dunno about html tho'
Reply With Quote
  #154  
Old 02-18-2003, 07:23 PM
Jitway's Avatar
Jitway Jitway is offline
 
Join Date: Sep 2002
Location: In a hub!
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never could get the installer to make the changes in the database. Too bad too! :hurt:
Reply With Quote
  #155  
Old 02-19-2003, 12:03 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any news on the follow up version with the additional features like

+ mood
+ listening too
+ smilie box on add entry & add reply
Reply With Quote
  #156  
Old 02-23-2003, 01:47 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I installed it on vB 2.2.9.

1) There should be an option to delete one's own journal, and also for an administrator to delete journals. If I delete users their journals are still on record and naturally you get a database error when you click on a deleted user's journal.

2) As has been said (and as I know Gamingforce has on his forums), there should be a profile link to the user's journal with a different message if they have no journal.

3) What's the deal with private entries? I assume that's so only people on your buddy list can view the entry (like at Gamingforce) but none of my buddies can read my private entries.

I'll also recap on what else is initially needed;

- 'Maximum replies per page' setting.
- Admins should be able to edit/delete replies (just in case the system gets abused).
- Word wrap is needed. If someone puts a load of ........... s with no spaces it should automatically wrap at so many characters so the tables aren't broken (a solution has been discussed for this but it needs incorporating in the hack).

Those are the 'musts' in my opinion. Now a suggestion.

Personally I would like at least an option so guests can't even VIEW journals unless the usergroup is manually permitted (I wouldn't want banned people seeing journals).

On top of that, outstanding work!
Reply With Quote
  #157  
Old 02-23-2003, 10:50 PM
limey's Avatar
limey limey is offline
 
Join Date: Dec 2001
Location: -
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="red">Installed...</font>

Quick question...

I would like to make the comments linkable the same as the discuss button. Its just confusing for people to view comments by clicking the discuss button. Essentially its the same thing, but just for UI purposes.

How would do I do that?

thanks!
Reply With Quote
  #158  
Old 02-25-2003, 08:34 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Elvis




Well, I just verified that the file I uploaded is exactly like the one I currently have in use - it is.

Also... from the error, it looks as though you may be missing a line of an SQL statement - did you edit this file AT ALL?

and finally, I dont understand how you could be requesting a wrong URL, every instance of the goto starts like:

$goto="journal.php?s=

it's referring to itself - there are no directory changes at all.
I didn't alter anything and I have the same problem;

Database error in vBulletin 2.2.9:

Invalid SQL: SELECT u.username, e.entryid, e.journalid, e.title, e.entry, e.timestamp, e.userid, e.private, e.displayorder, e.comments
FROM journal_entry e
LEFT JOIN user u ON e.userid = u.userid
WHERE e.journalid = 14
ORDER BY e.timestamp DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Tuesday 25th of February 2003 03:18:48 AM
Script: http://www.gamercrossfire.net/bb/bb/...14&action=view
Referer:


-------------------------------

Quote:
Originally posted by ChurchMedia


Here's how to do this:

In memberlist.php find:
Code:
if ($userinfo[receivepm]) {
      eval("\$userinfo[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
    } else {
      $userinfo[pmlink] = "&nbsp;";
    }
and add after:

Code:
// vBJournal Hack by Ryangel
	if($userinfo[journal]==1){
		$journal = '<a href="journal.php?s=&journalid='.$userinfo[userid].'&action=view"><img src="images/journal.gif" alt="View '.$userinfo[username].'\'s Journal" border="0"/></a>';
	}
	else {
		$journal = '';
	}
// vBJournal Hack End
In memberlist template, find

Code:
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan=
Your columnspan needs to be increased by one, so if it's 7, make it 8.

In same template, find:

Code:
</tr>
$memberlistbits
Beneath that add:

Code:
<td bgcolor="#1D6AA0" align="center"><smallfont color="#EEEEFF"><b>Journal</b></smallfont></td>
In the memberlistbit template find:

Code:
</tr>
Right above that add:

Code:
<td bgcolor="#13486D">$journal</td>
That should do it
Much appreciated. I used this. A few notes though;

In memberlist.php use
PHP Code:
// vBJournal Hack by Ryangel
    
if($userinfo[journal]==1){
        
$journal '<a href="journal.php?s=&journalid='.$userinfo[userid].'&action=view"><img src="images/journal.gif" alt="View '.$userinfo[username].'\'s Journal" border="0"/></a>';
    }
    else {
        
$journal ''
instead of
PHP Code:
// vBJournal Hack by Ryangel
    
if($userinfo[journal]==1){
        
$journal '<a href="journal.php?s=&journalid='.$userinfo[userid].'&action=view"><img src="images/journal.gif" alt="View '.$userinfo[username].'\'s Journal" border="0"/></a>';
    }
    else {
        
$journal '';
// vBJournal Hack by Ryangel 
In the memberlist template add;

Code:
<td bgcolor="{*tableheadbgcolor*}" align="center"><smallfont color="{*tableheadtextcolor*}"><b>Journal</b></smallfont></td>
above
Code:
$memberlistbits
rather than putting
Code:
<td bgcolor="#1D6AA0" align="center"><smallfont color="#EEEEFF"><b>Journal</b></smallfont></td>
below it.

In the memberlistbit template use;

Code:
<td bgcolor="{*firstaltcolor*}">$journal</td>
rather than
Code:
<td bgcolor="#13486D">$journal</td>
Most of this isn't your fault. I noticed when you put something like {*tableheadbgcolor*} (without the *s) it's replaced with the tableheadbgcolor HTML for this board.

Remove all the *s in my coding for it to work.

---------------------------------

Now, I'm trying to put a journal link in user profiles. Now where in the member.php would I insert
Code:
// vBJournal Hack by Ryangel
	if($userinfo[journal]==1){
		$journal = '<a href="journal.php?s=&journalid='.$userinfo[userid].'&action=view"><img src="images/journal.gif" alt="View '.$userinfo[username].'\'s Journal" border="0"/></a>';
	}
	else {
		$journal = '';
	}
?

I stuck it under
Code:
  $referrals = $refcount[count];
    eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  } else {
		$referrals = '';
	}
but when I put $journal in the 'getinfo' template it takes no notice if someone has a journal. For example, if I put something like
Code:
 // 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 = 'No journal enabled';
	}
in member.php, their profile shows 'No journal enabled' regardless in spite of the same hack working in admin/functions.php and memberlist.php.
Reply With Quote
  #159  
Old 02-25-2003, 06:44 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by limey
Installed...

Quick question...

I would like to make the comments linkable the same as the discuss button. Its just confusing for people to view comments by clicking the discuss button. Essentially its the same thing, but just for UI purposes.

How would do I do that?

thanks!
edit the template 0_o
Reply With Quote
  #160  
Old 02-25-2003, 08:58 PM
limey's Avatar
limey limey is offline
 
Join Date: Dec 2001
Location: -
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The correct template is journal_entrybits

Basically copied the discuss link and wrapped it around the "comments" in the template.
Reply With Quote
  #161  
Old 02-26-2003, 04:14 PM
Robink Robink is offline
 
Join Date: Feb 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!! My USERS Love this Hack!!

Thanks!! No problems whatsoever!
Reply With Quote
Reply


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 01:42 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.08789 seconds
  • Memory Usage 2,671KB
  • Queries Executed 55 (?)
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
  • (22)bbcode_code
  • (2)bbcode_php
  • (11)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
  • (41)post_thanks_box
  • (41)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (41)post_thanks_postbit_info
  • (40)postbit
  • (41)postbit_onlinestatus
  • (41)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_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