vb.org Archive

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

attroll 04-13-2003 08:55 PM

Quote:

04-06-03 at 12:03 PM Zelda-King said this in Post #177
I've had a request about my journal.php (which allows admins to edit/delete stuff and also keeps guests/banned people out) so I'm going to attach it. My previous journal.php didn't keep anyone out. I'm pretty much using Ryangel's own code. I just added it to a few places. I really like this setup myself, and this is the very version I've used for ages, just this minute taken from my own server, so I expect no problems.
I downloaded this zip file but I still see now way to delete a journal as a admin. What am I doing wrong.

Zelda-King 04-13-2003 09:13 PM

You can't delete journals. You can delete/edit comments and entries.

This current system doesn't work like that (journal deletions). People can just 'lock' journals. You'd have to delete from the database.

For the next version though, journal deletions 'should' be accounted for otherwise there would be database errors if one somehow tries to view the journal of a deleted user. (Has already mentioned this.)

You can keep selected usergroups out. In that file usergroups 1, 3 and 4 can't view journals. I'm not sure if I added usergroup 8 there. On my server usergroups 8 and 10 are added to the 'no-permissions' list. I have my code thus;

PHP Code:

//if user is NOT registered / Email not confirmed / (COPPA) Users Awaiting Moderation THEN cannot CREATE journal.
        
if(($bbuserinfo[usergroupid] == "1") || ($bbuserinfo[usergroupid] == "3") || ($bbuserinfo[usergroupid] == "4") || ($bbuserinfo[usergroupid] == "8") || ($bbuserinfo[usergroupid] == "10")){
                
//redirect
                
$goto="index.php?s=$session[sessionhash]";
                eval(
"standardredirect(\"".gettemplate("redirect_noaccessjournal")."\",\"$goto\");"); 

Just edit that for whichever usergroups you don't want to view the journal feature. For example, by default, 8 = 'Banned by Moderators'.

Xelation 04-14-2003 08:10 PM

hey zelda-king.. I know you posted some code above saying how to put a link to a users journal using $journal... j/w did you get that to work yet? I could really use that :D

klunderj 04-14-2003 10:25 PM

installed!

Thanks for this great hack... I used it to add a Captains Fishing log to my forum http://www.fishonhuron.tzo.com/journal/ . Fishermen can keep track of their fishing adventures, and it keeps track of their season catch, etc.

Thanks again

redd 04-19-2003 10:32 PM

Has anyone attempted paging yet? We're up to 300 entries per page and they are growing fast.

I've tinkered with the instructions at http://www.devarticles.com/art/1/110 for building a paging class, but I've never touched php code before, and I'm not having any success. Maybe someone with php knowledge would have better luck with it.

VAN 04-24-2003 01:07 AM

<<< Nevermind >>> :)

VAN 04-24-2003 03:38 AM

Ok. Installed and functioning after some manual DB edits. Cool hack!

Now some suggestions for the next version....

Ability to:
allow/disallow HTML (in entries and comments)
allow/disallow vB Code (in entries and comments)
allow/disallow attachments

Also would like to see the interface for adding new entries more similar to that used for posting forum threads and replies. (vB code buttons, options, etc.

Also this would probably be pretty difficult, but I would like it to work so that if I have someone on my ignore list, they are automatically prevented rom viewing ALL of my journal entries.

VAN 04-24-2003 04:39 AM

Oh, and since Journal entries can be pretty loooong, the ability to preview before posting would be great! :)

Zelda-King 04-24-2003 11:53 AM

Quote:

04-14-03 at 09:10 PM Xelation said this in Post #183
hey zelda-king.. I know you posted some code above saying how to put a link to a users journal using $journal... j/w did you get that to work yet? I could really use that :D
Oh, you mean in profiles or memberlist? The modifications to have it in memberlist have been posted in this thread. For profiles we just pasted a load of code out of newreply.php or something so $journal would be compatible with member.php (to be honest I'm rusty on that procedure. It was long ago and it was my co-site founder that did that particular trick. He also edited journal.php so views wouldn't count if you were viewing your OWN journal).

For the journal code I recommend this in member.php;

Above
PHP Code:

// Get referrals 

add
PHP Code:

//Get Journal 
  
if($userinfo[journal]==1){
                
$journal '<a href="journal.php?journalid='$userinfo['userid'] .'&action=view">View Journal for '$userinfo['username'] .'</a>';
        }
        else {
                
$journal ''$userinfo['username'] .' has no journal.';
        } 

I'd attach my member.php but we're not allowed to post vBulletin coding.

Koutaru 04-25-2003 06:58 PM

:( the last time the author posted was on 09-26-02 08:59 AM

I would have loved to see like a buddy option or maybe just a "daily reads" option. You can add people to your "daily reads" and it'll show up on the main journal page for quick access.

Or form friends so you can link to each other's journal.

And *maybe* some customization of a user's journal page as in color and font wise.

:) paging would also be very useful


All times are GMT. The time now is 11:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01459 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

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