PDA

View Full Version : vB Journal for vBulletin 3.0.3(v1.0.1)


Pages : 1 [2] 3 4 5 6 7

Oblivion Knight
09-28-2004, 07:54 PM
In the journal table, the following fields are not used;
? description
? imagename
? mood
? np


"enabled" is if a user's journal is currently locked or unlocked.
"np" is an abbreviation for now playing


I think the rest should be pretty much straight forward? Let me know if you have any other questions..

???`S?LV?R???`
09-29-2004, 10:31 PM
any word on the template installer for this?

intrigue
09-30-2004, 07:19 AM
um if you cant view journals make sure u inserted the journal_journalpage template and its corresponding templates;)
um did u the file edits to member.php correctly?

i dont know if i have a chance tonight i will take a look
thanks
.matt

pagekeeper
09-30-2004, 02:51 PM
just curious, im not exactly an expert, but im wondering wether the links in this hack should all carry the $session[sessionurl] tag ?

i have no idea if it matters but i thought i'd mention it...whats the difference ?

y2krazy
09-30-2004, 03:51 PM
I have made significant changes to the journal templates, so I thought that maybe I could provide them for those who want to have a slightly different look than the default at this point. I just have a few more to edit, so they will probably up this weekend at some point. Damn college and riding the bus for nearly 4 hours a day keeps my online time to a minimum. :tired:

Also, there have been quite a few noticeable errors in the templates, and I have yet to fix them. They have to do with the if conditional dealing with the proper way to display the name of the Journal(s). It shouldn't be an issue, and I'm sure there's a very simple solution to it... ;)

PS - Thanks again for the to-die-for hack, AN-Net!

AN-net
09-30-2004, 04:39 PM
just curious, im not exactly an expert, but im wondering wether the links in this hack should all carry the $session[sessionurl] tag ?

i have no idea if it matters but i thought i'd mention it...whats the difference ?
sessions to my knowledge are not needed unless some else would like to include something:)

cosmin
09-30-2004, 04:53 PM
--
INSTALLED for over a week ... and the community loves it! :)

... one little tidbit that i cant seem to get over and a few members have suggestions to have improved is the ascending and descending of the entries in members own Journal.

currently it is set that when you add an entry it is the last one to be viewed (on the bottom) so ya have to scroll down, and if there are more pages, click over to the last page and scroll down to the bottom, in other words, a real CHORE.

... is it possible to have an ASCENDING / DESCENDING option for members to choose how they want to view the ACTUAL members journal?

i know this feature is already implemented in the actual Journal main list of journalists, but NOT in the actual member journal itself. i think it would be a welcomed improvement :)

???`S?LV?R???`
10-01-2004, 08:51 PM
But this is too much.

"vB Journal(Version: 1.0.0) by Antonbomb22

Antonbomb22(Anthony Scudese) holds all rights to this code and code may not be redistributed,modifed, or duplicated without consent."

That's the longest tag line of any mod there is.

ya, infopro is right... AN-net, you don't need to apply such a tagline, this kind of tag is useless and protect you nowhere...

just keep it clean in the files, that's all you can ask for a good credit. keep the version line, but not the long tagline please... (its usual procedural.)

I agree, can we just keep it in the file's instead? (especially since tag lines are kinda annoying to have on pages)

OrangeFlea
10-01-2004, 09:20 PM
I'm trying to make a movie review for the site, and I was wondering which files I'd have to modify in order to change "journal" to "review". Can someone help me out here, please?

fridayweb
10-02-2004, 02:05 AM
Hi An-Net

I finally figure out why I the delete and edit button doesn't show up. On my board member can belong two or more usergroups. If I have my users belong to one group, then the permission to delete and edit works. If I have my users belong to two or more groups, then the permission to delete and edit works doesn't work

I setup my Register User group "Allow Users to have Member Groups" to Yes. It still doesn't work.

Would you please help me on this

Thanks

You are absolutely right. I have the same problem with my users. Any news on how to fix this??

I am also noticing the problem with the moods not showing up consistently...

spence2
10-02-2004, 02:07 AM
I'm trying to make a movie review for the site, and I was wondering which files I'd have to modify in order to change "journal" to "review". Can someone help me out here, please?

I believe all that you will need to alter is your templates ... substituting "review" for journal where applicable.

It really doesn't matter what your Control Panel or the coding calls it as long as your members see what you want to call it.

pagekeeper
10-02-2004, 08:48 AM
print_table_header("Journal Permissions");
print_yes_no_row("Can View Journal", 'usergroup[canviewjournal]', $ug_bitfield['canviewjournal']);
print_yes_no_row("Can Have Journal", 'usergroup[canhavejournal]', $ug_bitfield['canhavejournal']);
print_yes_no_row("Can View Comments", 'usergroup[canviewcomments]', $ug_bitfield['canviewcomments']);
print_yes_no_row("Can Comment Journals", 'usergroup[cancommentjournals]', $ug_bitfield['cancommentjournals']);
print_yes_no_row("Can Rate Journals", 'usergroup[canratejournals]', $ug_bitfield['canratejournals']);
print_yes_no_row("Can Report Journals", 'usergroup[canreportentries]', $ug_bitfield['canreportentries']);
print_yes_no_row("Can Edit Own Journal", 'usergroup[caneditownjournal]', $ug_bitfield['caneditownjournal']);
print_yes_no_row("Can Edit Own Journal Entries", 'usergroup[caneditownentries]', $ug_bitfield['caneditownentries']);
print_yes_no_row("Can Delete Own Journal", 'usergroup[candeleteownjournal]', $ug_bitfield['candeleteownjournal']);
print_yes_no_row("Can Delete Own Journal Entries", 'usergroup[candeleteownentries]', $ug_bitfield['candeleteownentries']);
print_yes_no_row("Can Search Journal", 'usergroup[cansearchjournal]', $ug_bitfield['cansearchjournal']);
// print_yes_no_row("Can Edit Others Journal", 'usergroup[caneditothersjournal]', $ug_bitfield['caneditothersjournal']);
// print_yes_no_row("Can Edit Others Entries", 'usergroup[caneditothersentries]', $ug_bitfield['caneditothersentries']);
// print_yes_no_row("Can Delete Others Journal", 'usergroup[candeleteothersjournal]', $ug_bitfield['candeleteothersjournal']);
// print_yes_no_row("Can Delete Otheers Entries", 'usergroup[candeleteothersentries]', $ug_bitfield['candeleteothersentries']);
print_table_break();

When i add the code above it fixes the lines going missing but one of the permissions makes the page jump to the middle of the page and doesnt let me change the setting, specifically, "Can View Comments"

its a really small bug, but i just wanted it fixed before i release it to my members, just so im sure the permissions are set correctly ...

if you dont get the problem, whats wrong with the code ?

cheers !

pagekeeper
10-02-2004, 10:09 AM
i found another problem im having i cant access the profile page ?

profile.php?do=editprofile - Parse error: parse error in /home/website/public_html/profile.php on line 545

pagekeeper
10-02-2004, 10:23 AM
I'm trying to make a movie review for the site, and I was wondering which files I'd have to modify in order to change "journal" to "review". Can someone help me out here, please?

try the article hack, its pretty good.

v3arcade.com

Azhrialilu
10-02-2004, 10:34 AM
awesome hack - installed without a hitch!!!!

Darkwolf
10-02-2004, 11:50 AM
/me click install

good work !!!

AN-net
10-02-2004, 05:38 PM
When i add the code above it fixes the lines going missing but one of the permissions makes the page jump to the middle of the page and doesnt let me change the setting, specifically, "Can View Comments"

its a really small bug, but i just wanted it fixed before i release it to my members, just so im sure the permissions are set correctly ...

if you dont get the problem, whats wrong with the code ?

cheers !
do you have the articles hack installed?

AN-net
10-02-2004, 05:39 PM
i found another problem im having i cant access the profile page ?

profile.php?do=editprofile - Parse error: parse error in /home/website/public_html/profile.php on line 545
did u do the file edits for that file correctly?

???`S?LV?R???`
10-02-2004, 06:33 PM
For some reason it's showing the privacy options twice, I think I heard about someone having the same problem.. anyone know how to fix this?

pagekeeper
10-02-2004, 07:42 PM
did u do the file edits for that file correctly?

hey an-net,

yes i do have the articles hack .... i hope this hack didnt replace any code for the articles ?? i went through the guide/code this morning and it checks ok.. i might be missing something? any ideas ...

i still get the error.

AN-net
10-02-2004, 07:57 PM
For some reason it's showing the privacy options twice, I think I heard about someone having the same problem.. anyone know how to fix this?
that is for journal privacy, remember you have privacy on the journal and entry level;)

AN-net
10-02-2004, 07:58 PM
hey an-net,

yes i do have the articles hack .... i hope this hack didnt replace any code for the articles ?? i went through the guide/code this morning and it checks ok.. i might be missing something? any ideas ...

i still get the error.
see if this already stated fix does the trick;)
https://vborg.vbsupport.ru/showpost.php?p=553781&postcount=120

pagekeeper
10-02-2004, 08:26 PM
see if this already stated fix does the trick;)
https://vborg.vbsupport.ru/showpost.php?p=553781&postcount=120

hmmmm, nope that didnt do it either :(

???`S?LV?R???`
10-02-2004, 08:34 PM
see if this already stated fix does the trick;)
https://vborg.vbsupport.ru/showpost.php?p=553781&postcount=120
lol k just making sure ;)

AN-net
10-03-2004, 02:27 AM
hmmmm, nope that didnt do it either :(
woops wrong link>_<
https://vborg.vbsupport.ru/showpost.php?p=553756&postcount=114

AnhTuanCool
10-03-2004, 03:06 AM
Awesome hacks, I like it man, definitely clicks INSTALL, thanks ;)

kj_ugs
10-04-2004, 03:49 AM
i've clicked installed after i got it all working and its awsome

thanks for an amazing hack.

Paul M
10-04-2004, 10:21 AM
Installed on my test forum from the zip downloaded last night, I noticed a few things;

1. I could not do this part of the instructions ;


------------------------------
Open: /forumroot/memberlist.php
------------------------------

Find:
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid=user.userid)
LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON(userfield.userid=user.userid)
------------------------------
Underneath add:
LEFT JOIN " . TABLE_PREFIX . "journals AS journals ON(journals.journalist_id=user.userid)
------------------------------

Find:
SELECT user.*,usertextfield.*,userfield.*, user.userid,
------------------------------
Add next to that:
journals.journal_id,
------------------------------

As those lines are not in my memberlist.php


2. The following phrases seemed to be missing;

"can_report_entries" = "Can Report Journal Entries"
"journal_mood_updated_successfully" = "Journal Mood Updated Successfully"


3. On first use, most of the phrases in the usergroup display were not displaying, I had to create an english translation of the "journal_permissions", then they all appeared.


4. If I allow guests access to view journals (as I plan to) they can see all journals and entries marked as private, this is very bad.


5. Logged in users can see private entries listed in various places (like the Forum's Journal list, or private individual entries in the "last entries" list - although they do at least get a "no permissions" error if they try and view them. Really they should just not appear at all.


6. I set mine so that new journals had to be approved (moderated), but new entries did not. As a result, when a new journal was created, the first entry was visible even though I had not yet approved the journal itself.

Other than this it seems ok so far, but these permission things need sorting.

pagekeeper
10-04-2004, 11:29 AM
hmmmm, ok, cool one problem fixed, but im still getting the other problem
Parse error: parse error in /home/website/public_html/profile.php on line 545

my members cant edit their profiles ... :(

i went through the install again, specifically the edits for profile.php, but still comes up with that error ... if you want my profile.php just ask ;)

Paul M
10-04-2004, 11:50 AM
Pagekeeper:

Judging by my profile.php, you need to check you did this bit correctly ;


Find:
if ($_REQUEST['do'] == 'removelist')
{

globalize($_REQUEST, array('userid' => INT, 'userlist' => STR));

if ($userlist != 'buddy')
------------------------------
Replace with:
if ($_REQUEST['do'] == 'removelist')
{

globalize($_REQUEST, array('userid' => INT, 'userlist' => STR));

if (($userlist != 'buddy') AND ($userlist != 'jbuddy'))

Only the final line has actually changed, so that might be the line at fault (and check you haven't overwritten the curly bracket on the next line). :)

Mitsuaki
10-04-2004, 11:59 AM
Is there a way to make comments private... cus basically i have a journal with a private entry... the ppl i have allowd to see the entry have commented on it but ppl that cant view the private entry can still see the comments...

Paul M
10-04-2004, 12:22 PM
Is there a way to make comments private... cus basically i have a journal with a private entry... the ppl i have allowd to see the entry have commented on it but ppl that cant view the private entry can still see the comments...Yes, I have just noticed that to add to my list of permissions problems - the whole "Private" side of it needs fixing. If I install this I'm tempted to take the 'private' options out of all the templates for now, as there are so many holes in it.

Mitsuaki
10-04-2004, 12:28 PM
so it will be in the next release???

pagekeeper
10-04-2004, 01:02 PM
i feel so stupid now, lol i put " replace with: " and thats what gave me the error.

but thanks for the help everyone ... great hack !!

i think it would be cool if i could access the journal without opening it to everyone else to check if everything is working.

Wordplay
10-04-2004, 03:08 PM
just wanted to thank you for the hack, and state that i have installed it.

hope it works.

Wordplay
10-04-2004, 03:30 PM
okey now: when a member goes to view his own journal entries it says that he doesn't have the permission to do so. where could i have gone wrong?

arurcard
10-04-2004, 06:00 PM
I installed the journal and everything but when I go to it i get a blank white page.

http://www.++++yocouch.com/forum/journal.php

And I get a databse error when I add the "Journal" template

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT t1.templateid AS templateid_1, t1.title ,
t1.templateid AS templateid_1, t1.title AS title1, t1.styleid
FROM template AS t1
LEFT JOIN template AS t1 ON (t1.title=t1.title AND t1.styleid=)
WHERE t1.styleid = -1
ORDER BY t1.title

mysql error: Not unique table/alias: 't1'

mysql error number: 1066

Date: Monday 04th of October 2004 02:05:10 PM
Script: http://www.++++yocouch.com/forum/admincp/template.php
Referer: http://www.++++yocouch.com/forum/admincp/template.php?do=edit&templateid=&group=
Username: Rob
IP Address: **************

AN-net
10-04-2004, 08:01 PM
um that template error has nothing to do with my hack seems as though you have an sql query that was edited cause t1 is referred 2 times which makes not unique so thats something for vb.com;)

AN-net
10-04-2004, 08:02 PM
okey now: when a member goes to view his own journal entries it says that he doesn't have the permission to do so. where could i have gone wrong?
did u set it up so they can view the journal system via usergroup manager?

AN-net
10-04-2004, 08:34 PM
ok due to some complaints in privacy flaws i have hopefully beefed up privacy with some further conditionals and more exclusions such as guests accidentially falling into the whocanview privacy for entries and journals.
please keep me updated if this new journal.php file fixes the privacy flaws:)

i will update the zip soon;)

Wordplay
10-04-2004, 08:58 PM
oh so that's where i went wrong... but hey i've got this funny field in here... it states:


Can View Journals Ja Nein
Can Have a Journal Ja Nein
Can View Comments Ja Nein
Can Comment on Journals Ja Nein
Can Rate Journals Ja Nein
Ja Nein
Can Edit Own Journal Ja Nein
Can Edit Own Journal Entries Ja Nein
Can Delete Own Journal Ja Nein
Can Delete Own Journal Entries Ja Nein
Can Search Journal Ja Nein

so you see there is one blank field in there... that just says 'yes' and 'no' but doesn't have a text to it... what's supposed to be there between "Can Rate Journals" and "Can Edit Own Journal"?

Wordplay
10-04-2004, 09:01 PM
also, after trying to save the changes made in the usergroup i get this error:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Registered Users',
description = '',
usertitle = '',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
canvbgarage = '1',
attachlimit = '5000',
avatarmaxwidth = '128',
avatarmaxheight = '120',
avatarmaxsize = '9000',
profilepicmaxwidth = '300',
profilepicmaxheight = '300',
profilepicmaxsize = '10000',
pmquota = '50',
pmsendmax = '5',
forumpermissions = '127231',
pmpermissions = '3',
calendarpermissions = '23',
wolpermissions = '21',
adminpermissions = '0',
genericpermissions = '2736079',
genericoptions = '31',
journalpermissions = '255',
arcadepermissions = '19'
WHERE usergroupid=2
mysql error: Unknown column 'canvbgarage' in 'field list'

mysql error number: 1054

Date: Monday 04th of October 2004 05:58:58 PM
Script: ...admin/usergroup.php
Referer: ...admin/usergroup.php?s=&do=edit&usergroupid=2
Username: admin
IP Address: admin

so it figures... i messed up somewhere... where could that have been?

arurcard
10-04-2004, 09:02 PM
Ok I fixed the db error, but i still hav ea blank white screen when i view journal.php, what did i do wrong?

Wordplay
10-04-2004, 09:17 PM
okey now it seems to work, found the error somewhere completely else, had nothing to do with the journal... but i still don't see the text for "['can_report_entries']" that seems to not show up. how come?

AN-net
10-04-2004, 10:26 PM
okey now it seems to work, found the error somewhere completely else, had nothing to do with the journal... but i still don't see the text for "['can_report_entries']" that seems to not show up. how come?
there is a temporary fix for this check the first post;)

AN-net
10-04-2004, 10:27 PM
Ok I fixed the db error, but i still hav ea blank white screen when i view journal.php, what did i do wrong?
well did u create the journal templates?

arurcard
10-05-2004, 02:08 AM
well did u create the journal templates?

yep sure did

MindTrix
10-05-2004, 09:02 AM
Heres a zip with some smilies i been using for the moods.

Wordplay
10-05-2004, 09:28 AM
AN-net, damn... thanks again for the amazing hack.

tsugoy des!!

hey you run an anime site right? if you need any help with japanese to english or vice versa translations, let me know!

Thanatos
10-05-2004, 04:03 PM
Any prorgress on the journal importer?

thanks for all your work on this. I installed it on a test board and it is definitely awesome.

fiber1
10-05-2004, 07:27 PM
Just making an note here on how this conflicts with those who have VB Garage installed. I have no idea how to fix this but I am pretty sure its just a small fix in one of the PHP files.

Here we go:

If you go in Admincp/ Usergroups/ Usergroup Manager then select a usergroup to choose their settings for what they can do there is confilicting issue between these to hacks.

Go down to General Permissions and in there you will find:

Can use VB Garage? Yes or no
and
Can View Private Custom Fields? Yes or No

Then go down to Journal Permissions and you will find:

Can Edit Own Journal Entries? Yes or No
Can Delete Own Journal? Yes or No

If yes is set in either of these 2 selections it automatically sets the other permission to "NO"

So, if "Can use VB Garage?" is set to yes then you will not be able to use these functions in VB Journal:

Can Edit Own Journal Entries
Can Delete Own Journal

If you set "Can Edit Own Journal Entries" and/or "Can Delete Own Journal" to yes,
you can not use the editing features of VB Garage.

Just thought I would bring this up.

Great Hack AN-net!

Hope I was clear on that.

Fiber

AN-net
10-05-2004, 07:28 PM
thats odd.......

Silverdawn222
10-05-2004, 07:33 PM
No AN-Net, it's not odd, the same thing happened to me with V3 Articles remember? It's the conflicting bitfield variables in the init.php, right?

YamaMotoYama
10-05-2004, 07:43 PM
**Clicks install** Install went without a hitch. Thanks for the awsome hack.

fiber1
10-05-2004, 07:52 PM
Yeah I was able to fix the articles part, but this one has me!

hehe

Fiber

AN-net
10-05-2004, 07:56 PM
well its odd because i dont think they share the same bitfield names....

fiber1
10-05-2004, 08:08 PM
Have to get Magnus's opinion on this one for I am under qualified.

:D

Fiber

???`S?LV?R???`
10-06-2004, 02:07 AM
there is a problem with the information showing in the profile... it's showing the wrong date...

pablo
10-06-2004, 07:04 AM
I might be installing this, can anyone give an idea as to how long it took to install ? ?

fiber1
10-06-2004, 07:23 AM
About 15 to 30 depending on your speed.

???`S?LV?R???`
10-06-2004, 07:25 AM
it'd be alot shorter if that template installer was made
;)

Paul M
10-06-2004, 07:32 AM
About 15 to 30 depending on your speed.Anyone who installs this in 15 minutes is bloody fast. I would say 30 is the closer to reality.

Paul M
10-06-2004, 07:39 AM
ok due to some complaints in privacy flaws i have hopefully beefed up privacy with some further conditionals and more exclusions such as guests accidentially falling into the whocanview privacy for entries and journals.
please keep me updated if this new journal.php file fixes the privacy flaws:)
It fixes odd problems. I have fixed a lot more locally. There is a lot of stuff you can still do (or others can view) when you are inactive as well as some of the private stuff still being open. There is a bug in the admin section you might want to fix for everyone - you cannot set an active Journal to be inactive again.

AN-net
10-06-2004, 08:06 AM
there is a problem with the information showing in the profile... it's showing the wrong date...
notice how there are no entries so there lastentry date field is blank thus being that dates, i will fix this in version 2;)

fiber1
10-06-2004, 06:07 PM
If someone figures out the VB Garage conflict please let me know.

Thanks,

Fiber

Gio Takahashi
10-07-2004, 01:30 AM
I know I 've asked this many times but.

Journal Importer? ;_;

House_of_Crazed
10-08-2004, 05:14 AM
Okay, I'm at a loss for this.

I've been trying to figure this out.

My users are reporting that they do not see the "EDIT" or "DELETE" buttons on their journal entries.

And yet, in the permissions, they are enabled so they can edit or delete their entries.

Ideas?? Or maybe suggestions?

House_of_Crazed
10-08-2004, 05:23 AM
I did some tests... and some checking...

One of the things I checked was that give my test user a primary usergroup. The buttons shows up fine.

Then I added a secondary usergroup to my test user. Buttons goes away.

AN-net
10-08-2004, 09:38 AM
I did some tests... and some checking...

One of the things I checked was that give my test user a primary usergroup. The buttons shows up fine.

Then I added a secondary usergroup to my test user. Buttons goes away.
both the primary and the secondary must have the same permissions for editing

House_of_Crazed
10-08-2004, 03:59 PM
They do.

I've given every usergroup permissions for editing.

Primary Usergroup with no secondary usergroups works fine. But add a secondary usergroup, the buttons goes away.

Lionel
10-09-2004, 12:01 AM
I installed, no problems, works fine... but I have a javasxript error in some browser (IE at home, but not at work) when I do a search. Character 1 expected {
but as you see in the bold below, it is there. And this what the error is pointing to.

<script type="text/javascript">
function validate
{
sf=document.search
keyword=search.sk
in=search.st
sort=search.order
sortin=search.in
if(keyword.length<3)
{
alert("Search Keywords must be more than 3 characters.")
submitok="false"
}
}
</script>

fiber1
10-09-2004, 04:28 AM
I beleive this is is due to the fact of having the VB Garage hack, I am still waiting for answer to this. there are conflicts with one another.
Okay, I'm at a loss for this.

I've been trying to figure this out.

My users are reporting that they do not see the "EDIT" or "DELETE" buttons on their journal entries.

And yet, in the permissions, they are enabled so they can edit or delete their entries.

Ideas?? Or maybe suggestions?

House_of_Crazed
10-09-2004, 07:57 AM
fiber -

I do not have the VB Garage hack installed.

AN-net
10-09-2004, 11:14 AM
I installed, no problems, works fine... but I have a javasxript error in some browser (IE at home, but not at work) when I do a search. Character 1 expected {
but as you see in the bold below, it is there. And this what the error is pointing to.

<script type="text/javascript">
function validate
{
sf=document.search
keyword=search.sk
in=search.st
sort=search.order
sortin=search.in
if(keyword.length<3)
{
alert("Search Keywords must be more than 3 characters.")
submitok="false"
}
}
</script>
yeah i have to fix that but it is not something to worry about

FleaBag
10-09-2004, 10:28 PM
Anyone managed to come up with a working port from the other journal?

silentshadow204
10-10-2004, 05:34 AM
////EDITED////

problem fixed. Hack works 100% now!

Blurredream
10-11-2004, 04:48 AM
Does the zip contain all the updates?

Edit: I did the fix for the usergroups. (it only showed three options)

Why was the option to edit and delete other peoples journals left out in the fix?

AN-net
10-11-2004, 12:20 PM
Does the zip contain all the updates?

Edit: I did the fix for the usergroups. (it only showed three options)

Why was the option to edit and delete other peoples journals left out in the fix?
because they are yet built in the actual file and journal moderators dont exist yet;) they will be used in version 2

skorzguy
10-11-2004, 01:16 PM
I noticed the journal did not show all of the options in the admin so I used this and it works.

Changed the code to this in the admin/usergroup.php edit

print_table_header('Journal Permissions');
print_yes_no_row('Can View Journal' , 'usergroup[canviewjournal]', $ug_bitfield['canviewjournal']);
print_yes_no_row('Can Have Journal', 'usergroup[canhavejournal]', $ug_bitfield['canhavejournal']);
print_yes_no_row('Can View Comments', 'usergroup[canviewcomments]', $ug_bitfield['canviewcomments']);
print_yes_no_row('Can Comment on Journals', 'usergroup[cancommentjournals]', $ug_bitfield['cancommentjournals']);
print_yes_no_row('Can Rate Journals', 'usergroup[canratejournals]', $ug_bitfield['canratejournals']);
print_yes_no_row('Can Report Entries', 'usergroup[canreportentries]', $ug_bitfield['canreportentries']);
print_yes_no_row('Can Edit Own Journal', 'usergroup[caneditownjournal]', $ug_bitfield['caneditownjournal']);
print_yes_no_row('Can Edit Own Journal Entries', 'usergroup[caneditownentries]', $ug_bitfield['caneditownentries']);
print_yes_no_row('Can Delete Own Journal', 'usergroup[candeleteownjournal]', $ug_bitfield['candeleteownjournal']);
print_yes_no_row('Can Delete Own Journal Entries', 'usergroup[candeleteownentries]', $ug_bitfield['candeleteownentries']);
print_yes_no_row('Can Search Journals', 'usergroup[cansearchjournal]', $ug_bitfield['cansearchjournal']);
// print_yes_no_row('Can Edit Others Journals', 'usergroup[caneditothersjournal]', $ug_bitfield['caneditothersjournal']);
// print_yes_no_row('Can Edit Others Entries', 'usergroup[caneditothersentries]', $ug_bitfield['caneditothersentries']);
// print_yes_no_row('Can Delete Others Journals', 'usergroup[candeleteothersjournal]', $ug_bitfield['candeleteothersjournal']);
// print_yes_no_row('Can Delete Others Entries', 'usergroup[candeleteothersentries]', $ug_bitfield['candeleteothersentries']);
print_table_break();

I also works with quotation marks. What's the difference between the quotation marks and ' ? I don't know anything about writing scripts. I was just curious in quest of knowledge(Brain Food)

AN-net
10-11-2004, 04:27 PM
I noticed the journal did not show all of the options in the admin so I used this and it works.


Changed the code to this in the admin/usergroup.php edit



print_table_header('Journal Permissions');
print_yes_no_row('Can View Journal' , 'usergroup[canviewjournal]', $ug_bitfield['canviewjournal']);
print_yes_no_row('Can Have Journal', 'usergroup[canhavejournal]', $ug_bitfield['canhavejournal']);
print_yes_no_row('Can View Comments', 'usergroup[canviewcomments]', $ug_bitfield['canviewcomments']);
print_yes_no_row('Can Comment on Journals', 'usergroup[cancommentjournals]', $ug_bitfield['cancommentjournals']);
print_yes_no_row('Can Rate Journals', 'usergroup[canratejournals]', $ug_bitfield['canratejournals']);
print_yes_no_row('Can Report Entries', 'usergroup[canreportentries]', $ug_bitfield['canreportentries']);
print_yes_no_row('Can Edit Own Journal', 'usergroup[caneditownjournal]', $ug_bitfield['caneditownjournal']);
print_yes_no_row('Can Edit Own Journal Entries', 'usergroup[caneditownentries]', $ug_bitfield['caneditownentries']);
print_yes_no_row('Can Delete Own Journal', 'usergroup[candeleteownjournal]', $ug_bitfield['candeleteownjournal']);
print_yes_no_row('Can Delete Own Journal Entries', 'usergroup[candeleteownentries]', $ug_bitfield['candeleteownentries']);
print_yes_no_row('Can Search Journals', 'usergroup[cansearchjournal]', $ug_bitfield['cansearchjournal']);
// print_yes_no_row('Can Edit Others Journals', 'usergroup[caneditothersjournal]', $ug_bitfield['caneditothersjournal']);
// print_yes_no_row('Can Edit Others Entries', 'usergroup[caneditothersentries]', $ug_bitfield['caneditothersentries']);
// print_yes_no_row('Can Delete Others Journals', 'usergroup[candeleteothersjournal]', $ug_bitfield['candeleteothersjournal']);
// print_yes_no_row('Can Delete Others Entries', 'usergroup[candeleteothersentries]', $ug_bitfield['candeleteothersentries']);
print_table_break();



I also works with quotation marks. What's the difference between the quotation marks and ' ? I don't know anything about writing scripts. I was just curious in quest of knowledge(Brain Food)
it should work with the fix mentioned in the first post

y2krazy
10-13-2004, 12:34 AM
I have made extensive changes to the JOURNAL templates and a few changes to the journal.php file itself for just 2 or 3 things. Will you provide a step-by-step upgrade for future releases so that we can simply add in what you changed instead of possibly having to go through all the template edits again? Just want to se sure this option will be available in the future so that when new upgrades are released, it will be easy to go from one to the next... ;)

AN-net
10-13-2004, 01:25 AM
I have made extensive changes to the JOURNAL templates and a few changes to the journal.php file itself for just 2 or 3 things. Will you provide a step-by-step upgrade for future releases so that we can simply add in what you changed instead of possibly having to go through all the template edits again? Just want to se sure this option will be available in the future so that when new upgrades are released, it will be easy to go from one to the next... ;)
as for the second version, the answer is no....
1)there will be major additions to the journal system in version 2
2)all templates will be phrased in version 2

so as for version 2, that will require an overwrite of all the journal templates and files;)

PixelFx
10-13-2004, 01:37 AM
For those of us that haven't installed this wonderful hack yet, how long before 2.0 release, or should I do 1.0 release soon? thanks for releasing it for free as well :)

y2krazy
10-13-2004, 02:33 AM
as for the second version, the answer is no....
1)there will be major additions to the journal system in version 2
2)all templates will be phrased in version 2

so as for version 2, that will require an overwrite of all the journal templates and files;)Well, doesn't that just bite... :disappointed:

Well, it's not like I can pressure you to do it because you are offering your time to the community without asking any fees from us. Keep up the great work, and hopefully I'll be able to figure out a way to salvage the look I've attained on the to-be-released vB I've been working on. best of luck and thanks for the great hack!! :)

Paul M
10-13-2004, 08:01 AM
as for the second version, the answer is no....
1)there will be major additions to the journal system in version 2
2)all templates will be phrased in version 2

so as for version 2, that will require an overwrite of all the journal templates and files;)
What major additions ?

Will you be fixing all the security holes in the moderation & private side of things (I have done this locally, so just wondering if I would have to do it again).

AN-net
10-13-2004, 09:41 AM
What major additions ?

Will you be fixing all the security holes in the moderation & private side of things (I have done this locally, so just wondering if I would have to do it again).
an official list has yet to be drawn up;) but there will be alot more things. i have not had any further complaints about privacy/security problems, if there are please inform me of where and i will fix those in an update for this version

AN-net
10-13-2004, 09:42 AM
For those of us that haven't installed this wonderful hack yet, how long before 2.0 release, or should I do 1.0 release soon? thanks for releasing it for free as well :)
i cant really say when its going to be released but it will get done sometime....

House_of_Crazed
10-13-2004, 05:50 PM
There's still the matter of the permissions issue that I posted earlier.

Every group has its permissions set correct and yet, they can't edit or delete their own journal / journal entries.

AN-net
10-13-2004, 06:48 PM
There's still the matter of the permissions issue that I posted earlier.

Every group has its permissions set correct and yet, they can't edit or delete their own journal / journal entries.
i have been trying to figure this out but i dont understand y it isnt working>_<

edit:
try replacing your journal_entrybits template with this:

<a name="e$entry[entry_id]"><table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="thead" align="$stylevar[left]"><div style="float:right"><a href="#e$entry[entry_id]"># $enum</a></div><a href="journal.php?do=showentry&e=$entry[entry_id]">$entry[entrytitle]</a></td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div class="smallfont">Date Posted: $entry[date] at <span class="time">$entry[time]</span> <if condition="$canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"></if>Comments ($entry[comments])<if condition="$canview[comments]"></a></if></div></td>
</tr>
<tr>
<td class="alt2" align="$stylevar[left]"><if condition="$show[mood] OR $entry[mood]>0"><div class="smallfont">Mood: <img src="$entry[mood_image]" alt="$entry[mood_name]" /></div><hr /></if>$entry[entrytext]</td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div style="float:left"><!-- <a href="journal.php?do=report&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/report.gif" alt="Report This Journal Entry to an Administrator" border="0" /></a> --><if condition="$bbuserinfo[usergroupid]==6"><img src="$stylevar[imgdir_button]/ip.gif" border="0" title="Ip: $entry[ipaddress]" /></if><if condition="$can[comment] AND $canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/discuss.gif" border="0" alt="Discuss This Entry" /></a></if></div><if condition="($caneditown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id]) OR ($bbuserinfo[usergroupid]==6)"><a href="journal.php?do=editentry&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/edit.gif" border="0" /></a></if><if condition="($candeleteown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id]) OR ($bbuserinfo[usergroupid]==6)"><a href="journal.php?do=delete&j=$j&e=$entry[entry_id]&t=e"><img src="$stylevar[imgdir_button]/delete.gif" border="0" /></a></if></td>
</tr>
</table></a>
<br />

Paul M
10-14-2004, 11:19 AM
an official list has yet to be drawn up;) but there will be alot more things. i have not had any further complaints about privacy/security problems, if there are please inform me of where and i will fix those in an update for this version
I can't remember them all off the to of my head.

Some that spring to mind are ;

1. Unapproved journals appear in the last entries list.

2. Comments made on private entries appear to everyone.

3. XML download extracts all private entries.

There are others, which I would have to find by going over my notes.

AN-net
10-14-2004, 04:29 PM
I can't remember them all off the to of my head.

Some that spring to mind are ;

1. Unapproved journals appear in the last entries list.

2. Comments made on private entries appear to everyone.

3. XML download extracts all private entries.

There are others, which I would have to find by going over my notes.
ok i will look into these shortly;)

House_of_Crazed
10-14-2004, 05:02 PM
AN-Net

It looks like that was the trick :) lol

Thanks :) I'm just waiting for my users to let me know if it did the trick. My testing tells me that it worked.

House_of_Crazed
10-15-2004, 05:24 AM
By the way, while I'm thinking of this...

The fix you provided did not work according to my users.

So, I went a step farther and modified the journal.php and now it works. *shrugs* lol ... I commended out the $candelete* and $canedit* (replace * with either journal or entry) and it works fine now.

*shrugs* *laughs* I might have opened some security hole with the adjustments. *shrugs* No way to know. LOL

AN-net
10-15-2004, 10:03 AM
By the way, while I'm thinking of this...

The fix you provided did not work according to my users.

So, I went a step farther and modified the journal.php and now it works. *shrugs* lol ... I commended out the $candelete* and $canedit* (replace * with either journal or entry) and it works fine now.

*shrugs* *laughs* I might have opened some security hole with the adjustments. *shrugs* No way to know. LOL
well by doing that it undermines permissions

Cloud-Warrior
10-15-2004, 12:57 PM
I found that if you go to Language Manager and rebuild all languages in the Admin CP it fixes some missing phrase issues (e.g. XML, redirects, usergroup etc.).

Thanks for your work AN-net!

Edit: as well as the problem with can_report_entries phrase (non-existent), there seems to be a few typos in the XML export - e.g. jouranl_entry_date and date instead of journal_entry_date. But it _will_ be cool :)

AN-net
10-15-2004, 04:25 PM
I found that if you go to Language Manager and rebuild all languages in the Admin CP it fixes some missing phrase issues (e.g. XML, redirects, usergroup etc.).

Thanks for your work AN-net!

Edit: as well as the problem with can_report_entries phrase (non-existent), there seems to be a few typos in the XML export - e.g. jouranl_entry_date and date instead of journal_entry_date. But it _will_ be cool :)
thanks for bringing this up, this weekend i will be trying to tie up lots of the loose ends including importing;)

FleaBag
10-15-2004, 07:20 PM
What a guy! :D ;)

apokphp
10-15-2004, 11:36 PM
Moods...does anyone have these working? I haven't tried it, sounds interesting though. Does this just attach a certain graphic to the entry (that represents the particular mood selected) and nothing more? Just curious.

Paul M
10-16-2004, 11:46 AM
Came across another problem today. If someone puts a word in the Who Can View field (like 'everyone') then it causes an SQL error.

Andreas
10-16-2004, 04:19 PM
Dunno if it has already been mentioned, but:

What about "now playing", PingBack/TrackBack?

???`S?LV?R???`
10-16-2004, 05:21 PM
now playing has already been done by someone, but they didn't release how they did it....or atleast not on here lol .. but yeah it would be nice to know how

y2krazy
10-16-2004, 09:00 PM
Moods...does anyone have these working? I haven't tried it, sounds interesting though. Does this just attach a certain graphic to the entry (that represents the particular mood selected) and nothing more? Just curious.
I have it installed and working flawlessly. That's pretty much all it does at the moment, but that's all I've expected it to do... ;)

Speaking of Moods, I was wondering if you would be able to make the following option for those who install this hack:

Mood Integration Into Postbit
By selecting an option like this in the AdminCP, it will allow the latest journal entry's Mood to be displayed in the postbit for each user.

If this can be done and integrated successfully, it would be a nice option to have so that someone doesn't have to have a Mood hack installed seperately for the posts(the Journal Moods enabled to show on all of a specific user's posts).

Thanks again for the great hack, AN-Net! :)

House_of_Crazed
10-17-2004, 05:42 AM
Now there's a bug with the moods.

When you submit a new entry, and choose a mood. The mood does not appear on the new entry. You will need to edit the entry, then re-select your mood, then submit. It will appear after that.

Figured you might want to know that. I just checked what's different between the 2 templates, and I'm not seeing anything, but since you're more knowledgeable at this addition than I am, it'll be better for you to figure it out.

Robink
10-17-2004, 07:59 AM
Best of luck, hope your Import Script is ready soon.

Millions of fans are awaiting! :D

hkvic
10-17-2004, 08:13 AM
Brilliant hack!

I have installed it onto test board for trialling before installing on main active board.

One problem I have noticed though when viewing in Mozilla Firefox PR1.0:

All is ok until you go to the 'add new entry' or any page that has a 'submit' type button, it conflicts with my java menu system located in the page header. All the images diappear and the remainng text links are all crushed up together.
(see screenshots)

First screenshot is in IE6, second one is in Firefox PR1.0

Any help would be appreciated on this.

Blam Forumz
10-17-2004, 08:46 AM
Firefox doesnt support non-standard CSS

AN-net
10-17-2004, 11:09 AM
Now there's a bug with the moods.

When you submit a new entry, and choose a mood. The mood does not appear on the new entry. You will need to edit the entry, then re-select your mood, then submit. It will appear after that.

Figured you might want to know that. I just checked what's different between the 2 templates, and I'm not seeing anything, but since you're more knowledgeable at this addition than I am, it'll be better for you to figure it out.
i have fixed this but i havent released the fix yet, im going to do one big fix which will hopefully fix everyone's problems:)

djohn
10-17-2004, 12:16 PM
AN-net, thanks for a great hack. i was wondering when will the next version, with attachments support will come out?

msimplay
10-18-2004, 10:24 AM
is there anyway i can mark my own private entries as private so that i can tell them apart from the normal entries ?

Oblivion Knight
10-19-2004, 01:58 PM
Hello, it's good to see this hack doing well..

You've made a small error in your journal.php file, however.. Currently, moods entered on a new entry are not shown until that entry is edited. To fix it.......


Find:

'".$wcv."','".$REMOTE_ADDR."','".mood."'".iif($setting['autoapprove_entries']=="1", $autoentry).")Replace with:

'".$wcv."','".$REMOTE_ADDR."','".$mood."'".iif($setting['autoapprove_entries']=="1", $autoentry).")

My apologies if this has already been mentioned, but I'm not scanning through 25 posts to check.! My friend who is running this journal, mentioned the problem and I fixed it for him - I'm just passing on the fix..

AN-net
10-19-2004, 04:34 PM
Hello, it's good to see this hack doing well..

You've made a small error in your journal.php file, however.. Currently, moods entered on a new entry are not shown until that entry is edited. To fix it.......


Find:

'".$wcv."','".$REMOTE_ADDR."','".mood."'".iif($setting['autoapprove_entries']=="1", $autoentry).")Replace with:

'".$wcv."','".$REMOTE_ADDR."','".$mood."'".iif($setting['autoapprove_entries']=="1", $autoentry).")

My apologies if this has already been mentioned, but I'm not scanning through 25 posts to check.! My friend who is running this journal, mentioned the problem and I fixed it for him - I'm just passing on the fix..
yeah i fixed this in current file update im working on:)

Paul M
10-19-2004, 05:41 PM
Can you use the global vB Variable "IPADDRESS" instead of directly using the REMOTE_ADDR server variable please. :)

Also, check that showjournal, showcomments & showentry do not cause errors if they have no "j" or "e" parameter supplied.

AN-net
10-19-2004, 07:27 PM
Can you use the global vB Variable "IPADDRESS" instead of directly using the REMOTE_ADDR server variable please. :)

Also, check that showjournal, showcomments & showentry do not cause errors if they have no "j" or "e" parameter supplied.
y use vb's IPADDRESS?

msimplay
10-19-2004, 07:29 PM
yeah i fixed this in current file update im working on:)

i'd like to be able to diffrentiate private entries from normal ones with some kind of label or image can someone provide a quick template edit ?

House_of_Crazed
10-19-2004, 07:43 PM
Question :)

Since you're going to be releasing an update soon... I have a question, will the update also include template updates, or just file (journal.php / journaladmin.php) updates? Just want to double-check :) LOL

Cuz I've modified the templates slightly to my satisfcation. :)

HoC

msimplay
10-19-2004, 07:59 PM
ok so i wanted private entries to show up as private to the user concerned so that you could tell them apart this is my solution if anyones interested
replace journal_entrybits template with


<if condition="$entry[private]">
<a name="e$entry[entry_id]"><table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="thead" align="$stylevar[left]"><div style="float:right"><a href="#e$entry[entry_id]"># $enum</a></div><font color="red">[PRIVATE]</font> <a href="journal.php?do=showentry&e=$entry[entry_id]">$entry[entrytitle]</a></td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div class="smallfont">Date Posted: $entry[date] at <span class="time">$entry[time]</span> <if condition="$canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"></if>Comments ($entry[comments])<if condition="$canview[comments]"></a></if></div></td>
</tr>
<tr>
<td class="alt2" align="$stylevar[left]"><if condition="$show[mood] OR $entry[mood]>0"><div class="smallfont">Mood: <img src="$entry[mood_image]" alt="$entry[mood_name]" /></div><hr /></if>$entry[entrytext]</td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div style="float:left"><!-- <a href="journal.php?do=report&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/report.gif" alt="Report This Journal Entry to an Administrator" border="0" /></a> --><if condition="$bbuserinfo[usergroupid]==6"><img src="$stylevar[imgdir_button]/ip.gif" border="0" title="Ip: $entry[ipaddress]" /></if><if condition="$can[comment] AND $canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/discuss.gif" border="0" alt="Discuss This Entry" /></a></if></div><if condition="$caneditown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id] OR $bbuserinfo[usergroupid]==6"><a href="journal.php?do=editentry&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/edit.gif" border="0" /></a></if><if condition="$candeleteown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id] OR $bbuserinfo[usergroupid]==6"><a href="journal.php?do=delete&j=$j&e=$entry[entry_id]&t=e"><img src="$stylevar[imgdir_button]/delete.gif" border="0" /></a></if></td>
</tr>
</table></a>
<br />
<else />
<a name="e$entry[entry_id]"><table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="thead" align="$stylevar[left]"><div style="float:right"><a href="#e$entry[entry_id]"># $enum</a></div><a href="journal.php?do=showentry&e=$entry[entry_id]">$entry[entrytitle]</a></td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div class="smallfont">Date Posted: $entry[date] at <span class="time">$entry[time]</span> <if condition="$canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"></if>Comments ($entry[comments])<if condition="$canview[comments]"></a></if></div></td>
</tr>
<tr>
<td class="alt2" align="$stylevar[left]"><if condition="$show[mood] OR $entry[mood]>0"><div class="smallfont">Mood: <img src="$entry[mood_image]" alt="$entry[mood_name]" /></div><hr /></if>$entry[entrytext]</td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div style="float:left"><!-- <a href="journal.php?do=report&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/report.gif" alt="Report This Journal Entry to an Administrator" border="0" /></a> --><if condition="$bbuserinfo[usergroupid]==6"><img src="$stylevar[imgdir_button]/ip.gif" border="0" title="Ip: $entry[ipaddress]" /></if><if condition="$can[comment] AND $canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/discuss.gif" border="0" alt="Discuss This Entry" /></a></if></div><if condition="$caneditown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id] OR $bbuserinfo[usergroupid]==6"><a href="journal.php?do=editentry&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/edit.gif" border="0" /></a></if><if condition="$candeleteown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id] OR $bbuserinfo[usergroupid]==6"><a href="journal.php?do=delete&j=$j&e=$entry[entry_id]&t=e"><img src="$stylevar[imgdir_button]/delete.gif" border="0" /></a></if></td>
</tr>
</table></a>
<br />
</if>

memobug
10-19-2004, 10:06 PM
Note-An import script for Ryangle's ported Journal will be made so dont install this hack for now if you have the vb3 port of Ryangle'sWas this import script ever created? I didn't see any note and there are 25 pages of posts to browse through, so I could easily miss something.

Many thanks,

Matt

Paul M
10-20-2004, 12:42 AM
y use vb's IPADDRESS?Because it's the correct thing to use, why try and re-invent something that is already provided as a standard. It is a global variable of the members ip address used by vB in all cases where the members ip address is recorded or checked (except your hack).

FYI: It is not always equivelent to remote_addr (if people have proxy detector or real ip detector hacks installed).

msimplay : I see I am too late for you - I did a similar thing, but added the "private" tag to the left hand side of the next line (the date posted line).

AN-net
10-20-2004, 01:29 AM
Question :)

Since you're going to be releasing an update soon... I have a question, will the update also include template updates, or just file (journal.php / journaladmin.php) updates? Just want to double-check :) LOL

Cuz I've modified the templates slightly to my satisfcation. :)

HoC
um there may be depending on if i fix this permissions problem

AN-net
10-20-2004, 01:32 AM
Because it's the correct thing to use, why try and re-invent something that is already provided as a standard. It is a global variable of the members ip address used by vB in all cases where the members ip address is recorded or checked (except your hack).

FYI: It is not always equivelent to remote_addr (if people have proxy detector or real ip detector hacks installed).

msimplay : I see I am too late for you - I did a similar thing, but added the "private" tag to the left hand side of the next line (the date posted line).
hmmm ill try this out.....

Lee Wilde
10-20-2004, 08:14 AM
AN-net, thanks for a great hack. i was wondering when will the next version, with attachments support will come out?


Meow. Very cool hack but I am also wondering about the attachments support.

AN-net
10-20-2004, 10:09 AM
Meow. Very cool hack but I am also wondering about the attachments support.
i cant say im am very busy right now fixing this version and do other things but maybe sometime later this year early next year i'll be able to start:)

Paul M
10-20-2004, 10:51 AM
I have been trying to figure this out but i dont understand y it isnt working>_<This got reported to me yesterday by my users, A quick bit of debugging showed that the reason is because in your initial build permissions code you have CANEDITOWNENTRY & CANDELETEOWNENTRY when they should be CANEDITOWNENTRIES & CANDELETEOWNENTRIES (note the 'ies' at the end, not 'y'). :)

msimplay
10-20-2004, 02:16 PM
This got reported to me yesterday by my users, A quick bit of debugging showed that the reason is because in your initial build permissions code you have CANEDITOWNENTRY & CANDELETEOWNENTRY when they should be CANEDITOWNENTRIES & CANDELETEOWNENTRIES (note the 'ies' at the end, not 'y'). :)

thanks that fixed mine too :D

GamerzWorld
10-20-2004, 04:00 PM
Is there anyway of mass importing moods :X

AN-net
10-20-2004, 04:47 PM
This got reported to me yesterday by my users, A quick bit of debugging showed that the reason is because in your initial build permissions code you have CANEDITOWNENTRY & CANDELETEOWNENTRY when they should be CANEDITOWNENTRIES & CANDELETEOWNENTRIES (note the 'ies' at the end, not 'y'). :)
its the typos that always get me, thank you for observing that as i am an idiot>_<

i will update the zip and upload a fixed version of journal.php when i get home:)

tteal
10-21-2004, 02:31 AM
Very nice hack!!!!

One issue that I'm having now is that I have the "VBarticles" installed and when I try to go to an article after installing the VBJournal I get the following error:

Unable to add cookies, header already sent.

This is on the functions.php file.

I realize that the VBArticles is not your hack, however, it was working fine until I installed this mod.

Any help would be wonderful.

Thank you,
Tim

Lee Wilde
10-21-2004, 02:55 AM
Very nice hack!!!!

One issue that I'm having now is that I have the "VBarticles" installed and when I try to go to an article after installing the VBJournal I get the following error:

Unable to add cookies, header already sent.

This is on the functions.php file.

I realize that the VBArticles is not your hack, however, it was working fine until I installed this mod.

Any help would be wonderful.

Thank you,
Tim


Hi Tim, this may not solve your problem but its worth checking.

Go into your functions.php file and see if there are any blank lines after the closing ?>

If there is, delete them. Whenever I get an error about "headers already sent" this is the first thing I check and it usually solves my problem.

memobug
10-21-2004, 05:02 AM
Note-An import script for Ryangle's ported Journal will be made so dont install this hack for now if you have the vb3 port of Ryangle'sWas this import script ever created? I didn't see any note and there are 25 pages of posts to browse through, so I could easily miss something.

Many thanks,

MattI would appreciate an answer when you have time.

Regards,

Matt

GamerzWorld
10-21-2004, 11:21 AM
I better start adding moods one by one it appears lol

Cloud-Warrior
10-21-2004, 02:52 PM
Hi -

I added RSS 1.0 (RDF) functionality to my install of vB Journal. Basically, you have to change "SELECT journalist" to "SELECT journalist,journalname,journaldesc" in the downloadjournal section of journal.php, make sure your Unregistered usergroup can view journals in the Admin CP, and paste this code in journal.php after the XML download part:


// RSS 1.0 Begins

else if($type=="rss1")
{
require_once('./includes/functions_bbcodeparse.php');

$rss1_header .= "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n\r\n";
$rss1_header .= "<rdf:RDF\r\n";
$rss1_header .= " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\n";
$rss1_header .= " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\r\n";
$rss1_header .= " xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\r\n";
$rss1_header .= " xmlns=\"http://purl.org/rss/1.0/\"\r\n";
$rss1_header .= ">\r\n\r\n";
$rss1_header .= "<channel rdf:about=\"".$vboptions['bburl']."/journal.php?do=downloadjournal&amp;j=".$j."&amp;type=rss1\">\r\n";
if ($journal['journalname'] == "") { $journal['journalname'] = $journal['journalist'] . "'s Blog"; }
$rss1_header .= "<title>".htmlspecialchars($journal['journalname'])."</title>\r\n";
$rss1_header .= "<link>".$vboptions['bburl']."/journal.php?do=showjournal&amp;j=".$j."</link>\r\n";
if (empty($journal['journaldesc'])) { $journal['journaldesc'] = $journal['journalist']."'s Blog at ".$vboptions['bbtitle']; }
$rss1_header .= "<description>".htmlspecialchars($journal['journaldesc'])."</description>\r\n\r\n";
$rss1_header .= "<items>\r\n";
$rss1_header .= "\t<rdf:Seq>\r\n";

$totalentries = 0;

while($entry= $DB_site->fetch_array($getentries))
{
if($entry['private']!=1)
{
$totalentries++;

$entry['entrytext']= parse_bbcode2($entry['entrytext'], 0, $setting['allow_imgcode'], $setting['allow_smilies'], $setting['allow_bbcode']);
$entry['entrytext']= unhtmlspecialchars(stripslashes($entry['entrytext']));
$entry['entrytext']= ereg_replace("{smilies}", $vboptions['bburl']."/images/smilies", $entry['entrytext']);

$entry['entrytitle']= stripslashes($entry['entrytitle']);


$rss1_header .= "\t\t<rdf:li rdf:resource=\"".$vboptions['bburl']."/journal.php?do=showentry&amp;e=".$entry['entry_id']."\" />\r\n";
$rss1_body .= "\t<item rdf:about=\"".$vboptions['bburl']."/journal.php?do=showentry&amp;e=".$entry['entry_id']."\">\r\n";
$rss1_body .= "\t\t<title>".htmlspecialchars($entry['entrytitle'])."</title>\r\n";
$W3CDTFdate = preg_replace("/(\+|\-)([0-9]{2})([0-9]{2})/","$1$2:$3", date("O",$entry['entrydate']));
$rss1_body .= "\t\t<dc:date>".date("Y-m-d",$entry['entrydate'])."T".date("H:i:s",$entry['entrydate']).$W3CDTFdate."</dc:date>\r\n";
$rss1_body .= "\t\t<link>".$vboptions['bburl']."/journal.php?do=showentry&amp;e=".$entry['entry_id']."</link>\r\n";
$rss1_body .= "\t\t<content:encoded><![CDATA[".$entry['entrytext']."]]></content:encoded>\r\n";
$rss1_body .= "\t\t<description>".htmlspecialchars(strip_tags($entry['entrytext']))."</description>\r\n";
$rss1_body .= "\t</item>\r\n\r\n";
}

if($totalentries=="15") { break; }
}

$rss1_header .= "\t</rdf:Seq>\r\n";
$rss1_header .= "</items>\r\n\r\n";
$rss1_header .= "</channel>\r\n\r\n";

$rss1_body .= "</rdf:RDF>";

$filestring = utf8_encode($rss1_header.$rss1_body);
$filename = "$journal[journalist]_blog_".vbdate($vboptions['dateformat'], TIMENOW).'.rdf';

header("Content-Type: application/rdf+xml; charset=utf-8");
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Content-Disposition: attachment; filename="' . $filename . '"');
header('Content-Length: ' . strlen($filestring));
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');

echo $filestring;
}

// RSS 1.0 Ends


You'll then need to add a link to download it in the drop down menu. More as I figure it out...

Edit (2005-03-30): The template is called journal_journalpage - change type=xml to type=rss1 and XML Format to RSS 1.0 Format. Fixed problem with a missing private check.

Edit (2005-03-31): Added content:encoded CDATA, and removed UBB tags. Changed items to use URL instead of an arbitrary sequence number. I also like to change "ORDER by entrydate ASC" to DESC in downloadjournal, but this is personal preference.

Edit (2005-04-14): I've made quite a few changes to the code, namely adding UTF-8 encoding and using corresponding content-type, adding a check to make sure the journal title isn't empty, limiting the number of items to 15.

blueuniverse
10-22-2004, 04:26 PM
Any update on the port from the older journal system?

fiber1
10-22-2004, 08:41 PM
its the typos that always get me, thank you for observing that as i am an idiot>_<

i will update the zip and upload a fixed version of journal.php when i get home:)

When will this get updated?^^^

AN-net
10-22-2004, 08:44 PM
When will this get updated?^^^
been very busy as of lately, i will try to get it done as soon as i can

blueuniverse
10-23-2004, 09:27 AM
Not sure if it has been mentioned, but latest journal post in postbit could be good, instead of just a link.

Any update on the port?

kall
10-23-2004, 09:41 AM
Has anyone else experienced the situation where the adding/editing of jbuddies just seems to refresh the page?

I check the userfield table and the name is there, but only the last one I added...each one overwrites the old ones.

Phrost
10-23-2004, 10:08 AM
Are the cumulative fixes listed in the initial post a part of the latest package, or do they need to be installed after the fact?

AN-net
10-23-2004, 05:24 PM
Ok in this fix it fixes the permissions troubles people have been having and also the mood troubles occuring. please overwrite journal_entrybits template with this:


<a name="e$entry[entry_id]"><table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="thead" align="$stylevar[left]"><div style="float:right"><a href="#e$entry[entry_id]"># $enum</a></div><a href="journal.php?do=showentry&e=$entry[entry_id]">$entry[entrytitle]</a></td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div class="smallfont">Date Posted: $entry[date] at <span class="time">$entry[time]</span> <if condition="$canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"></if>Comments ($entry[comments])<if condition="$canview[comments]"></a></if></div></td>
</tr>
<tr>
<td class="alt2" align="$stylevar[left]"><if condition="$show[mood] OR $entry[mood]>0"><div class="smallfont">Mood: <img src="$entry[mood_image]" alt="$entry[mood_name]" /></div><hr /></if>$entry[entrytext]</td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]"><div style="float:left"><!-- <a href="journal.php?do=report&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/report.gif" alt="Report This Journal Entry to an Administrator" border="0" /></a> --><if condition="$bbuserinfo[usergroupid]==6"><img src="$stylevar[imgdir_button]/ip.gif" border="0" title="Ip: $entry[ipaddress]" /></if><if condition="$can[comment] AND $canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/discuss.gif" border="0" alt="Discuss This Entry" /></a></if></div><if condition="($caneditown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id]) OR ($bbuserinfo[usergroupid]=='6')"><a href="journal.php?do=editentry&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/edit.gif" border="0" /></a></if><if condition="($candeleteown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id]) OR ($bbuserinfo[usergroupid]==6)"><a href="journal.php?do=delete&j=$j&e=$entry[entry_id]&t=e"><img src="$stylevar[imgdir_button]/delete.gif" border="0" /></a></if></td>
</tr>
</table></a>
<br />


and also upload the attached journal.php and overwrite the old one:)

i will update the zip shortly

trackpads
10-23-2004, 05:56 PM
Thanks again for all the hard work on this!!!

msimplay
10-23-2004, 09:27 PM
quick question would be if i applied fixes from before is it nessessary carry out this one or is it ok to leave it ?

AN-net
10-24-2004, 01:49 AM
quick question would be if i applied fixes from before is it nessessary carry out this one or is it ok to leave it ?
this one correct the moods problems and edit and delete permissions problems

fiber1
10-24-2004, 06:41 AM
Well, I finally found my last issue conflicting between this hack and the V3 Articles 1.0.1 hack.

In includes/init.php

Journal has this for UserGroup permmisions:

'canviewcomments' => 4,

and

Articles has this for UserGroup permmisions:

'canviewcomments' => 2,

So, If you go into AdminCp/Usergroup Manager/Edit Usergroup and look for these 2 permissions:

Articles/ Can View Comments

Journal Permissions/ Can View Comments

If you select YES on either one of these it automatically kicks the YES and/or NO radial selection out of the other selection.

Thought I would give a heads up on this for those that may incounter this issue.

I don't have a fix for it, nor do I know why its and issue, (I can assume why) for I am not qualified to know what to do. :D

If anyone else know how to fix the issue it would be greatly appreciated.

AN-net
10-24-2004, 11:10 AM
Well, I finally found my last issue conflicting between this hack and the V3 Articles 1.0.1 hack.

In includes/init.php

Journal has this for UserGroup permmisions:

'canviewcomments' => 4,

and

Articles has this for UserGroup permmisions:

'canviewcomments' => 2,

So, If you go into AdminCp/Usergroup Manager/Edit Usergroup and look for these 2 permissions:

Articles/ Can View Comments

Journal Permissions/ Can View Comments

If you select YES on either one of these it automatically kicks the YES and/or NO radial selection out of the other selection.

Thought I would give a heads up on this for those that may incounter this issue.

I don't have a fix for it, nor do I know why its and issue, (I can assume why) for I am not qualified to know what to do. :D

If anyone else know how to fix the issue it would be greatly appreciated.
there was a fix already posted for this in the first post of this thread, check under update/fixes ;)

bcmedia
10-24-2004, 12:08 PM
hmmm ok i've looked through here and cant find this problem.. i've done a complete install using the newest zip file..

If i go to the journal homepage.. it comes up blank.. But if I go to "My Journal", it comes up fine.

Any ideas?

msimplay
10-24-2004, 01:38 PM
hmmm ok i've looked through here and cant find this problem.. i've done a complete install using the newest zip file..

If i go to the journal homepage.. it comes up blank.. But if I go to "My Journal", it comes up fine.

Any ideas?

if u previously had a journal installed remove them templates as they conflict its the problem i had.
I had remove both of the conflicting templates and redo them thats how i resolved mine if thats any help

fiber1
10-24-2004, 04:10 PM
there was a fix already posted for this in the first post of this thread, check under update/fixes ;)

dooooahhh, Sorry I hate when that happens!

Thanks for the hack. :D

Mark Vick
10-25-2004, 01:20 AM
Hi all

after installing this hack, it says that its installed correctly, but when I go to my http://10.3.153.138/journal.php

I get the following

you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
anything I need to edit or change?

I'm the sole user on this forum, it's my test forum before I upload to the live one.
thanks for your help


Regards,
Mark Vick

AN-net
10-25-2004, 01:51 AM
Hi all

after installing this hack, it says that its installed correctly, but when I go to my http://10.3.153.138/journal.php

I get the following

you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
anything I need to edit or change?

I'm the sole user on this forum, it's my test forum before I upload to the live one.
thanks for your help


Regards,
Mark Vick
did you setup the usergroup permissions for admins?

Mark Vick
10-25-2004, 02:25 AM
did you setup the usergroup permissions for admins?

hi there.

I went into my user group for admin, and there is nothing for Journal.
not sure if I have missed something..

I simply downloaded the zip and installed it.
do I need to add / edit anything else?

thanks for your help.

cheers

Paul M
10-25-2004, 10:42 AM
When you say "installed it" - did you do all the required file & template edits ?

JazzleBug
10-26-2004, 04:00 AM
Installed beautifully - wonderful hack! :D Thank you so much!

I have a question (or request). Prior to your hack, we'd been using a "journals forum" where everyone just has their own threads and cannot reply to anyone else's posts/threads. Any idea how to merge that single forum into the new journal tables in the database? If some of my members didn't have such HUGE journals already, I wouldn't even be worried about it. Any thoughts?

AN-net
10-26-2004, 02:39 PM
Installed beautifully - wonderful hack! :D Thank you so much!

I have a question (or request). Prior to your hack, we'd been using a "journals forum" where everyone just has their own threads and cannot reply to anyone else's posts/threads. Any idea how to merge that single forum into the new journal tables in the database? If some of my members didn't have such HUGE journals already, I wouldn't even be worried about it. Any thoughts?
i could look into a query;)

spence2
10-26-2004, 08:38 PM
Would anyone know how I might go about linking to journals this way:

http://www.mysite.com/directory/journal.php?do=showjournal&j=username

or better yet:

http://www.mysite.com/directory/journal.php?do=showjournal&j=username's journal

rather than:

http://www.mysite.com/directory/journal.php?do=showjournal&j=13

Any help is much appreciated. Oh, and I've said it before, but it bares repeating ... AN-net, you're the greatest! Thanks again for all your hard work and for sharing it with all of us.

AN-net
10-26-2004, 09:22 PM
Would anyone know how I might go about linking to journals this way:

http://www.mysite.com/directory/journal.php?do=showjournal&j=username

or better yet:

http://www.mysite.com/directory/journal.php?do=showjournal&j=username's journal

rather than:

http://www.mysite.com/directory/journal.php?do=showjournal&j=13

Any help is much appreciated. Oh, and I've said it before, but it bares repeating ... AN-net, you're the greatest! Thanks again for all your hard work and for sharing it with all of us.
well j=username is possible by modifying the $journalinfo query in journal.php;)

hexonxonx
10-27-2004, 02:15 AM
When I click on the Journal Index link in the navbar, the page is blank. How can I fix this?

hexonxonx
10-27-2004, 02:58 AM
When I click on the Journal Index link in the navbar, the page is blank. How can I fix this?

Ok I fixed this. I had to delete the template journal and create one called JOURNAL in all caps.

Reeve of shinra
10-27-2004, 03:34 AM
pardon if this was already answered, but is there an importer yet from the old journal system? I started to look into one but Ive so busy with school I havent had the time to get anywhere with it.

Roms
10-27-2004, 05:06 AM
I installed and it's great, a lot of work done and I appreciate it. Honestly though I had to fix some things and it was annoying esp after 26+ pages you should really update the original install for those of use using other hacks. ie: admincp/ group permissions.

*clicks install

Roms
10-27-2004, 05:08 AM
oh and rinkrat You saved the day. :) I owe you a beer. :)

-Roms

AN-net
10-27-2004, 10:04 AM
I installed and it's great, a lot of work done and I appreciate it. Honestly though I had to fix some things and it was annoying esp after 26+ pages you should really update the original install for those of use using other hacks. ie: admincp/ group permissions.

*clicks install
the missing phrases is not an actual fix but just a temporary fix, when i have time i will completely fix the missing phrases for usergroups;)

Ozster
10-27-2004, 02:24 PM
will this work with 3.0.1?

AN-net
10-27-2004, 04:27 PM
will this work with 3.0.1?
it should work

FASherman
10-28-2004, 04:36 AM
My suggestions:

1. Scrap the name. vB Journal sounds like "Dear diary....". Rebrand this as vBlogger and take advantage of the blog craze.

2. Improve the install. I don't mind the code and template mods, but there is no reason I should have to add custom templates by hand.

3. Stop giving it away. I was already looking for a program like this. You can easily sell this for $45 - $50 a license and another $20/yr for support. I would have bought it. Even having a free version 1, I'd still buy it if you were committed to making improvements and enhancements.

memobug
10-28-2004, 05:21 AM
pardon if this was already answered, but is there an importer yet from the old journal system? I started to look into one but Ive so busy with school I havent had the time to get anywhere with it.
I have never seen the answer to that question, but if you find out, please let me know.

Regards,

Matt

blueuniverse
10-28-2004, 07:25 AM
Yeah, I'd quite like an importer done soon as well, if possible. :?

School-Help
10-28-2004, 12:16 PM
I've read previously and for some reason the avatars are broken for all the users regardless of it they are animated or not. Can anyone help? There fine in the profile but they are only broken in the journal (there journal).

Paul M
10-28-2004, 03:10 PM
I have a non working avatar for a user - the code seems to call ....../image.php?u=xx to get the Avatar and this is not working. This would appear to be a vB bug rather than a bug with this hack.

Another problem - in the moderation we refused a journal the other day by choosing "delete". This only removes the entry from the journals table, it doesn't remove the corresponding first entry from the journal entries table.

As a result you have an orphaned entry with no parent journal. This still show's up in searches (with no author or title) and seems to crash the system with an sql error if you try and view this (or any) non existant journal.

AN-net
10-28-2004, 04:25 PM
I've read previously and for some reason the avatars are broken for all the users regardless of it they are animated or not. Can anyone help? There fine in the profile but they are only broken in the journal (there journal).
r u using the file system or database to hold to custom avatars

School-Help
10-28-2004, 07:15 PM
Currently i am using the file system

AN-net
10-28-2004, 09:21 PM
Currently i am using the file system
yeah im planning to fix this in version 2:)

School-Help
10-28-2004, 11:05 PM
Cool, cool . It's something me and im sure my users can tolerate in a few days (only joking i know how long mods take to make/update) . Is using the file system actually better than storing in your DB . i think it is ...?

AN-net
10-28-2004, 11:11 PM
Cool, cool . It's something me and im sure my users can tolerate in a few days (only joking i know how long mods take to make/update) . Is using the file system actually better than storing in your DB . i think it is ...?
well yes it is because it leaves less strain on the database:)

JazzleBug
10-29-2004, 06:28 PM
i could look into a query;)
:up: :D

restless
10-30-2004, 04:56 PM
very nice addition. it seems i've worked through all the problems with usergroups and all that jazz (you should really update the zip to include those issues), but i'm still stuck with one problem...

member.php is not working. when you view a users profile, it's simply a blank page.

AN-net
10-30-2004, 05:22 PM
very nice addition. it seems i've worked through all the problems with usergroups and all that jazz (you should really update the zip to include those issues), but i'm still stuck with one problem...

member.php is not working. when you view a users profile, it's simply a blank page.
to my knowledge the zip is updated fully just not with usergroup management thing since that will be fixed in version 2 but there is a temporary fix for that and the fix for those using vb articles;)

make sure you have all your templates and that you did the file edit correctly;)

restless
10-30-2004, 06:13 PM
ok, i had a problem in memberlist.php. fixed.

awesome stuff.

restless
10-30-2004, 06:17 PM
one other thing...

the "New Journal" button is showing for users who already have a journal. is there a fix for this?

msimplay
10-30-2004, 07:35 PM
i'd like to be able to make private journal entries private completely as in the administrator follow the same rules are participants when it comes to reading journal entries

I don't want to have access to peoples private journal entries unless they allow me via their journal buddies or my userid

however i can understand many admins like this feature however id like some way of turning it off

restless
10-30-2004, 11:13 PM
hmm.. i guess i have another question as well, as i didn't see a reply to this question:

is there a way to change the order of entries from ascending to descending? this is actually a huge deal in my view. i'm suprised more people haven't brought it up.

AN-net
10-31-2004, 03:33 AM
hmm.. i guess i have another question as well, as i didn't see a reply to this question:

is there a way to change the order of entries from ascending to descending? this is actually a huge deal in my view. i'm suprised more people haven't brought it up.
im planning on doing this in the next version:)

AN-net
10-31-2004, 03:34 AM
i'd like to be able to make private journal entries private completely as in the administrator follow the same rules are participants when it comes to reading journal entries

I don't want to have access to peoples private journal entries unless they allow me via their journal buddies or my userid

however i can understand many admins like this feature however id like some way of turning it off
you would have to go around and remove all the refrences to $bbuserinfo['usergroupid']==6

;)

fiber1
10-31-2004, 04:59 AM
An-net are you going to offer an option for copyright removal? Many of us have been waiting for an answer on this?

Great hack!

Fiber

msimplay
10-31-2004, 07:02 AM
you would have to go around and remove all the refrences to $bbuserinfo['usergroupid']==6

;)

is that in the journal code or the templates ?

AN-net
10-31-2004, 10:55 AM
is that in the journal code or the templates ?
i believe its in the journal code:)

msimplay
10-31-2004, 12:33 PM
i found a little annoyance with the journal memberinfo bit

Paul M
10-31-2004, 02:09 PM
That's because any new entry created updates the last entry information - I altered mine to stop this for a new private entry.

msimplay
10-31-2004, 05:37 PM
That's because any new entry created updates the last entry information - I altered mine to stop this for a new private entry.

thanks for letting us know but any chance of telling us how :o

AN-net
10-31-2004, 08:34 PM
thanks for letting us know but any chance of telling us how :o
yeah since i was sort of pushed to get this out i didn't go extremely heavy on privacy but in version 2 i do expect to do that:D

msimplay
10-31-2004, 09:18 PM
yeah since i was sort of pushed to get this out i didn't go extremely heavy on privacy but in version 2 i do expect to do that:D
thanks its important on our site to allow privacy because we are all very tight
and everyone knows each and some may not post their private journals if i can see them thats why i'd like it to be their choice and also private entries should be private as it could contain their most private thoughts,

Paul M
11-01-2004, 06:56 AM
yeah since i was sort of pushed to get this out i didn't go extremely heavy on privacy but in version 2 i do expect to do that:DAFAIK I fixed all the privacy issues in the version we run (things such as comments on private entries also being private). I haven't recorded every change I made but you're welcome to a copy of my journals.php and notes if it helps you.

The one in question above is fixed by finding the following in the "insertentry" code;

$preupdate= $DB_site->query_first("SELECT entry_id FROM ".TABLE_PREFIX."journal_entries
WHERE journal_id='".$j."' AND entrytitle='".addslashes($title)."'
AND entrytext='".addslashes($message)."'
");
$DB_site->query("UPDATE ".TABLE_PREFIX."journals SET lastentry='".addslashes($title)."', lastentry_date='".TIMENOW."',
lastentry_id='".$preupdate['entry_id']."'".($setting['autoapprove_entries']==1 ? ',entrycount=entrycount+1' : '')." WHERE journal_id='".$j."'
");
$url="journal.php?do=showjournal&j=".$_POST['j']."";
eval(print_standard_redirect('redirect_journalentr yinserted'));

and replacing it with;

$preupdate= $DB_site->query_first("SELECT entry_id FROM ".TABLE_PREFIX."journal_entries
WHERE journal_id='".$j."' AND entrytitle='".addslashes($title)."'
AND entrytext='".addslashes($message)."'
");
if ($private == 0)
{
$DB_site->query("UPDATE ".TABLE_PREFIX."journals SET lastentry='".addslashes($title)."', lastentry_date='".TIMENOW."',
lastentry_id='".$preupdate['entry_id']."'".($setting['autoapprove_entries']==1 ? ',entrycount=entrycount+1' : '')." WHERE journal_id='".$j."'
");
}
$url="journal.php?do=showjournal&j=".$_POST['j']."";
eval(print_standard_redirect('redirect_journalentr yinserted'));

smashingyoungma
11-01-2004, 05:38 PM
A couple of things I'd like to see in the next version is a way to sticky entries as well as the suggestion above to make the entries descending. Ascending seems counterintuitive. Just some thoughts! :)

restless
11-01-2004, 08:21 PM
do you plan on adding an advanced editor for version 2? it would be nice if users had more posting options, as well as attachments.

when do you forsee the release of version 2?

AN-net
11-01-2004, 10:41 PM
do you plan on adding an advanced editor for version 2? it would be nice if users had more posting options, as well as attachments.

when do you forsee the release of version 2?
what do you mean by posting options and advanced editor?

achtungbaby
11-01-2004, 11:10 PM
Am having problems with one of the screens in admincp (please see attached). I'm pretty sure it has to do with a previously installed hack that wasn't uninstalled completely...anyone have any idea how I can fix...? Thanks!

AN-net
11-02-2004, 12:26 AM
Am having problems with one of the screens in admincp (please see attached). I'm pretty sure it has to do with a previously installed hack that wasn't uninstalled completely...anyone have any idea how I can fix...? Thanks!
check the first post for updates/fixes;)

restless
11-02-2004, 04:48 AM
i mean having the WYSIWYG editor for new journal entries.

Thanatos
11-02-2004, 04:44 PM
How's the importer for the other journal progressing?

I see the question asked and ignored by a number of people...perhaps in 30 pages I have missed it somewhere though.

thanks.

memobug
11-02-2004, 05:52 PM
How's the importer for the other journal progressing?

I see the question asked and ignored by a number of people...perhaps in 30 pages I have missed it somewhere though.

thanks.
You didn't miss anything about the importer. It's too bad though. This script looks good, but a huge installed base of journalers can't get into it because all the tables were named differently, even though their structure is actually very similar.

It's been almost a year already. Quite a shame, but it's the teaser in the first post -An import script for Ryangle's ported Journal will be made so dont install this hack for now if you have the vb3 port of Ryangle's

If we all got together and paid someone to do it, how much do you think it would cost?

Matt

Thanatos
11-03-2004, 05:11 AM
You didn't miss anything about the importer. It's too bad though. This script looks good, but a huge installed base of journalers can't get into it because all the tables were named differently, even though their structure is actually very similar.

It's been almost a year already. Quite a shame, but it's the teaser in the first post

If we all got together and paid someone to do it, how much do you think it would cost?

Matt
Ahh well thank you very much. I appreciate the response to my question.

It is ashame.

I don't know, but I would be willing to chip in some to get an importer made.

xg3
11-03-2004, 09:27 AM
well j=username is possible by modifying the $journalinfo query in journal.php;)

Hey, can you explain the further? I would really like to change this on my site. Thanks!

AN-net
11-03-2004, 12:51 PM
Hey, can you explain the further? I would really like to change this on my site. Thanks!
well the first query to be run in the showjournal section in journal.php is named $getjournalinfo or something like that, in there you could modify the where clause from WHERE journal_id=".$j." to WHERE journal_id=".$j." OR journalist=".addslashes($j)."

this has not been tested but it should work;)

only most possible problem with doing that is user names with spaces could cause problems;)

AN-net
11-03-2004, 02:52 PM
You didn't miss anything about the importer. It's too bad though. This script looks good, but a huge installed base of journalers can't get into it because all the tables were named differently, even though their structure is actually very similar.

It's been almost a year already. Quite a shame, but it's the teaser in the first post

If we all got together and paid someone to do it, how much do you think it would cost?

Matt
actually im working on it right now:)

um some questions though since i couldn't install the port of ryangle's fully, what the database field 'title' for? is it like User's Journal? or is it like whatever the user wanted to call their journal?

xg3
11-03-2004, 07:29 PM
well the first query to be run in the showjournal section in journal.php is named $getjournalinfo or something like that, in there you could modify the where clause from WHERE journal_id=".$j." to WHERE journal_id=".$j." OR journalist=".addslashes($j)."

this has not been tested but it should work;)

only most possible problem with doing that is user names with spaces could cause problems;)

hmm this isn't working. What is the format of the url with this change? Maybe I'm seeing something wrong.

AN-net
11-03-2004, 09:55 PM
hmm this isn't working. What is the format of the url with this change? Maybe I'm seeing something wrong.
oh you would also have to modify the gloalize for the journal.php where ever j is defined as an INT change it to STR

xg3
11-03-2004, 11:32 PM
oh you would also have to modify the gloalize for the journal.php where ever j is defined as an INT change it to STR

ok i did that, and it's still not working. is the url supposed to be:

http://www._.com/journal.php?do=showjournal&j=name

?

xg3
11-04-2004, 12:48 AM
Also I have a couple of requests.

1) Can you make the entries order so that the most recent entries are on top?
2) A Buddies list on the left or right column.

Basically, like Xanga..here's an example: http://www.xanga.com/home.aspx?user=JohnKerry

See how there is a simple list of links to buddies on the left side and the new entries are in descending order. Thanks!

memobug
11-04-2004, 05:28 AM
actually im working on it right now:)

um some questions though since i couldn't install the port of ryangle's fully, what the database field 'title' for? is it like User's Journal? or is it like whatever the user wanted to call their journal?Wow, that is some great news!

What is title? It actually depends on which table you mean:

1. journal.title = memobug's Journal
that is the journal name although it wasn't user configurable, it was set to the username's Journal

2. journal_entry.title = Late Night!
that is the title of that entry

3. journal_comments.title = Re: Late Night!
that is the title of the comment - Re: ~~~~~~ was the default

If you have any other questions, please ask. I have hacked the Ryangel port to death (to life?), so I have some familiarity with it.

I really hope the structure of mine is the roughly the same as yours? I have 3 tables:

journal
journalid int(11)
title text
description text (unused?)
imagename text (unused?)
entries int(11)
views int(11)
enabled smallint(6)
timestamp int(11)
userid int(11)

journal_entry
entryid int(11)
title text
entry text
private smallint(6)
timestamp int(11)
userid int(11)
journalid int(11)
displayorder int(11)
comments int(11)

journal_comments
commentid int(11)
title varchar(70)
comment text
timestamp int(11)
entryid int(11)
journalid int(11)
userid int(11)
displayorder int(11) (seems to be always zero - unused?)

Thanks & regards,

Matt

AN-net
11-04-2004, 01:09 PM
also was display order ever used?

also was the usergroup table ever modified?

nexialys
11-04-2004, 01:27 PM
i don't know for me, but a journal is read from left to right, from the post from today to the last IF we want to know the past of the member.. we can even search or browse by order, but i like the way it is right now, adding flexibility.

AN-net
11-04-2004, 03:31 PM
i was wondering how many people are interested in the importer containing an uninstall for Ryangle's Journal, ie. templates,phrases,settings,languages,phrasegroups, and any other additions/changes made in the database?

blueuniverse
11-04-2004, 03:52 PM
i was wondering how many people are interested in the importer containing an uninstall for Ryangle's Journal, ie. templates,phrases,settings,languages,phrasegroups, and any other additions/changes made in the database?

I definitely am

memobug
11-04-2004, 04:26 PM
also was display order ever used?There are two displayorder parameters
journal_comments.displayorder int(11)
journal_entry.displayorder int(11)

journal_comments.displayorder seems never to have been used. It is always 0 in my database.

journal_entry.displayorder runs from 1...number of entries for each user. When an entry is added, it gets pulled in, assigned to a variable $get_displayorder, incremented and written back to the next entry. I think it was intended for some kind of page navigation, but I don't think it serves any purpose.


also was the usergroup table ever modified?1. in the user table, I have a journal parameter:
journal smallint(6) that is set to 1 if the user has a journal and 0 if s/he doesn't.

2. I don't think there is anything in usergroup, with regard to permissions for journals or anything.

i was wondering how many people are interested in the importer containing an uninstall for Ryangle's Journal, ie. templates,phrases,settings,languages,phrasegroups, and any other additions/changes made in the database?I am most interested in the install, but an uninstall would be great, too.

Regards,

Matt

Reeve of shinra
11-04-2004, 04:45 PM
I would be interested in the importer.

memobug
11-04-2004, 04:51 PM
FWIW, I just combed this thread for users who'd expressed interest in the importer (one or more times!) and came up with these names. Of course I was searching on a single word, so I might have missed some over the 32 pages

FleaBag
memobug
Sonikku
Bryan Ex
Oblivion Knight (wasn't sure if he wanted one or was interested in developing one)
Reeve of shinra
blueuniverse
Robink
Gio Takahashi

Regards,

Matt

FleaBag
11-04-2004, 05:03 PM
Yes I'd definitely be interested, I turned off my journal when I upgraded to 3.03... Didn't see a point in re-hacking when this superior journal was available. All I need is a scheme conversion, I can quite hapilly do everything else myself.

Thanks!

spence2
11-04-2004, 05:07 PM
ok i did that, and it's still not working. is the url supposed to be:

http://www._.com/journal.php?do=showjournal&j=name

?

If you figure this out, xg3, please share ... as I know it is over my head to do on my own ... thanks!

Bryan Ex
11-04-2004, 05:19 PM
i was wondering how many people are interested in the importer containing an uninstall for Ryangle's Journal, ie. templates,phrases,settings,languages,phrasegroups, and any other additions/changes made in the database?
I'm interested in making the switch should there be a safe way to do so.

Red Blaze
11-04-2004, 08:02 PM
i was wondering how many people are interested in the importer containing an uninstall for Ryangle's Journal, ie. templates,phrases,settings,languages,phrasegroups, and any other additions/changes made in the database?

I'd like an importer myself. This one looks far better than the one I got.

traderx
11-04-2004, 08:47 PM
Ok... some how in my navbar my link to my Journals is gone.... could some one please post the code that so that I can put it back in... or what I should search for in my navbar (is there a phrase use) to see if I removed it by misstake

Thanatos
11-04-2004, 11:31 PM
I would like an importer so I can switch to your journal.

Thanks.

traderx
11-05-2004, 08:44 PM
Hello all... I was just in on both of my sites (main and test) and noticed that I have some items that are missing in the ACP Journal area. See the attachments so you will understand what I am talking about. Did I do something wrong or forget something? How can I correct this so I know whats there.

Any help would be great.... Thanks in advance

Coll

AN-net
11-05-2004, 09:00 PM
Hello all... I was just in on both of my sites (main and test) and noticed that I have some items that are missing in the ACP Journal area. See the attachments so you will understand what I am talking about. Did I do something wrong or forget something? How can I correct this so I know whats there.

Any help would be great.... Thanks in advance

Coll
its cause of the phrases just apply the temp fix in the first post regarding the usergroup manager;)

sully02
11-05-2004, 09:13 PM
2. Improve the install. I don't mind the code and template mods, but there is no reason I should have to add custom templates by hand.
I am actually working on a php file that'll install those custom templates by hand. I don't know if I need to get permission to post this, or if I can do so on my own, but when I get it done it could be released.

DjTaz
11-06-2004, 03:09 PM
Hey Guys,

Any reason id be getting this ?


User, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


Im getting this when i try to go to the Journal page. I can access the admin section no problems , but cant get into the journal.php page at all ? any help ? Ohh yeah - win 20003 server machine with apache running

AN-net
11-06-2004, 03:51 PM
Hey Guys,

Any reason id be getting this ?



Im getting this when i try to go to the Journal page. I can access the admin section no problems , but cant get into the journal.php page at all ? any help ? Ohh yeah - win 20003 server machine with apache running
did you configure permissions?

Gio Takahashi
11-06-2004, 05:25 PM
i was wondering how many people are interested in the importer containing an uninstall for Ryangle's Journal, ie. templates,phrases,settings,languages,phrasegroups, and any other additions/changes made in the database?


Of course I Am interested in the importer, I *REALLY* want that importer so I can upgrade the journal we have.

Tru Smiles
11-07-2004, 05:41 PM
The missing ACP thing.. I don't understand what I'm supposed to do to fix it? Where to put the code? o_O

Also, I use a skin that has buttons in the nav bar, thus I didn't alter the navbar to add in the journal link yet. But I have noticed that my nav bar images has gone missing when I click onto things like memberlist and newposts.. Would this hack affect it or not?

I can't view my calendar page either. I installed this hack straight after I installed the VB Advanced Content Management hack, with no other hacks.. Are the two compatible together? >_>

AN-net
11-07-2004, 10:30 PM
The missing ACP thing.. I don't understand what I'm supposed to do to fix it? Where to put the code? o_O

Also, I use a skin that has buttons in the nav bar, thus I didn't alter the navbar to add in the journal link yet. But I have noticed that my nav bar images has gone missing when I click onto things like memberlist and newposts.. Would this hack affect it or not?

I can't view my calendar page either. I installed this hack straight after I installed the VB Advanced Content Management hack, with no other hacks.. Are the two compatible together? >_>
um i dont see it affecting navbar images and vba cmps compatiability is unknown to me because i use vbindex>_>

um with usergroup ACP fix, overwrite the edit you did in /admincp/usergroup.php with the fix;)

TRStealth
11-08-2004, 05:35 AM
I was just installing this, and after I finished doing the file edits, I got this error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in \www\includes\functions.php on line 1887

Which is:


$debughtml = '<hr />';
//$debughtml .= "<ul><a href=\"#\" onclick=\"set_cookie('vbulletin_collapse', ''); window.location=window.location\">vbulletin_collapse</a>:<br /><li>" . str_replace("\n", '</li><li>', $_COOKIE['vbulletin_collapse']) . "</li></ul>";
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')=== false, '?', '?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')=== false, '?', '?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";


Line 1887 is the 4th line.

xg3
11-08-2004, 12:01 PM
so? Any word on reversing the order of posts in the journals so that the most recent are on top?

Lord Brar
11-08-2004, 12:10 PM
so? Any word on reversing the order of posts in the journals so that the most recent are on top?
:P This is exactly what is holding me from implimenting it... any ideas how it can be done?

TRStealth
11-08-2004, 12:54 PM
https://vborg.vbsupport.ru/showpost.php?p=554610&postcount=189

That should help. :)

AN-net
11-08-2004, 03:00 PM
I was just installing this, and after I finished doing the file edits, I got this error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in \www\includes\functions.php on line 1887

Which is:


$debughtml = '<hr />';
//$debughtml .= "<ul><a href=\"#\" onclick=\"set_cookie('vbulletin_collapse', ''); window.location=window.location\">vbulletin_collapse</a>:<br /><li>" . str_replace("\n", '</li><li>', $_COOKIE['vbulletin_collapse']) . "</li></ul>";
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')=== false, '?', '?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')=== false, '?', '?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";


Line 1887 is the 4th line.
make sure you edited functions.php correctly;)

Oblivion Knight
11-08-2004, 03:14 PM
I was planning on coding up an importer, but I just haven't had the time to play around with the MySQL tables and everything.. Sorry. Hopefully AN-net will come up with something.

Cloud-Warrior
11-08-2004, 03:32 PM
Interested in the importer too.

zurih
11-08-2004, 04:22 PM
why I cant find any of Journal phrases in ACP?
I want to edit them a little bit but in the phrase search nothing can be found....

anyone knows the problem and how to fix it?

TRStealth
11-08-2004, 06:07 PM
make sure you edited functions.php correctly;)

I have, many times. If it was that simple, I wouldn't have bothered posting. :ermm:

kall
11-08-2004, 06:18 PM
I have, many times. If it was that simple, I wouldn't have bothered posting. :ermm:
As far as I can see, the lines you posted have nothing to do with the install of vB Journal...

Have you tried taking the space out of

$debughtml .= " (<a href=\

(before the opening bracket)?

Tru Smiles
11-08-2004, 06:45 PM
Don't mean to be a pain, but after the ACP fix, there are now TWO versions of the permissions.. The fixed and the missing. Is that supposed to be like that? o_O

AN-net
11-08-2004, 06:48 PM
Don't mean to be a pain, but after the ACP fix, there are now TWO versions of the permissions.. The fixed and the missing. Is that supposed to be like that? o_O
im not sure what you mean?
the acp fix posted in the updates/fixes section doesnt use phrases anymore so it should show up;)

TRStealth
11-08-2004, 09:26 PM
As far as I can see, the lines you posted have nothing to do with the install of vB Journal...

Have you tried taking the space out of

$debughtml .= " (<a href=\

(before the opening bracket)?

Yeah, that's what bugs me about it though. I'm using a fresh install of vB, so it's not something I've messed with previously. However, after I apply the file edits from the install, then it gets messed up. :disappointed:

AN-net
11-08-2004, 09:28 PM
Yeah, that's what bugs me about it though. I'm using a fresh install of vB, so it's not something I've messed with previously. However, after I apply the file edits from the install, then it gets messed up. :disappointed:
r u using the most recent zip file?

TRStealth
11-09-2004, 05:00 AM
r u using the most recent zip file?

Yeah, unless you realeased a new one today.

zurih
11-09-2004, 12:23 PM
Great work!!

I have a suggestion... (Idea)
How about making Journal categories?
For example when an user is posting a new Journal he could choose also the category of the Journal.

Now.. the categories will be availible to create from ACP.

In Journal Index there will be displayed all the Journal categories.

What do u think?

:nervous:

Tru Smiles
11-09-2004, 05:21 PM
im not sure what you mean?
the acp fix posted in the updates/fixes section doesnt use phrases anymore so it should show up;)

Maybe I'm talking about the wrong thing. Damn you people and your intelligent talk :p

But I mean in the usergroup permissions.. Lemme show you an example:

AN-net
11-09-2004, 06:19 PM
Maybe I'm talking about the wrong thing. Damn you people and your intelligent talk :p

But I mean in the usergroup permissions.. Lemme show you an example:
delete the second the one, the first one is the only one you need;)

Tru Smiles
11-09-2004, 06:36 PM
I'm sure I overwrote it.. Maybe I'm just going mad though >_>

restless
11-09-2004, 07:43 PM
again...




do you plan on adding an advanced editor for version 2? it would be nice if users had more posting options, as well as attachments. i mean having the WYSIWYG editor for new journal entries.
when do you forsee the release of version 2? this reverse order of entries is really, really bad.

TRStealth
11-09-2004, 09:22 PM
So I take it that there is no answer to my question?

traderx
11-09-2004, 10:13 PM
where can I find the images in psd format?