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)

Zelda-King 02-26-2003 05:15 PM

Here's my version of the 'admins can edit/delete stuff' journal.php file. Simply upload 'journal2.php' to your forum root directory, delete 'journal.php' and rename this 'journal.php'.

I have tested this and everything else seems to work as normal for everyone else. I didn't really change much. The code was already in effect for 'edit/delete' but not for the actual 'update' bit so I pasted the necessary code there.

On the subject of bugs there's a database error if you try to view a non-existent journal (instead of a redirect that is). Also, if you change someone's name their old name shows up on their personal journal page, in spite of the new name showing on the main journal page and in the comments section for a particular entry.

Yeah, and people shouldn't be able to refresh their screen in their own journals to get their view count up.

sabret00the 03-02-2003 04:40 PM

is there any way to get this to appear on a users profile with a link as the latest journal entry's name?

e.g.
PHP Code:

<a href="$userinfo[journal]">$journal[newestentryname]</a


Zhin Jio 03-07-2003 07:02 AM

Damn, and I can't seem to find the <Install this hack> link yet. Pity.

Installed. I just had a user request blog functionality for himself. I'm also using this as a 'News Columns' sort of thing on the main page.

Thanks again,

- ZJ

Erwin 03-07-2003 07:05 AM

The Install This Hack link is at the bottom of each thread - right below Email This Page to Someone.

McDohl 03-10-2003 10:15 AM

Hey guys.

I must be seriously thick, that or I have absolutely no knowledge of PHP to save my life. Which is strange, i've installed mods before.

I've tried to edit admin/functions.php like you said, I followed everything, uploaded, and then there was this:

Parse error: parse error, unexpected T_STRING in /home2/halfbloo/public_html/forum/admin/functions.php on line 75

Fatal error: Call to undefined function: getuserinfo() in /home2/halfbloo/public_html/forum/admin/sessions.php on line 366

I have no clue on how to aid this so any help would be appreciated.

Many thanks in advance. :)

Zelda-King 03-10-2003 02:42 PM

Hmm, did you use WordPad? If so, did you save it as a doc rather than a txt/php file? That puts unwanted formatting where the hack should be on one line and so on.

NotePad is better for this, though if that's not the problem then maybe you've got the breaks wrong?

Anyway, the code should look like this;
PHP Code:

// vBJournal Hack by Ryangel
    
if($post[journal]==1){
        
$journal '<a href="journal.php?s=&journalid='.$post[userid].'&action=view"><img src="{imagesfolder}/journal.gif" alt="View '.$post[username].'\'s Journal" border="0"/></a>';
    }
    else {
        
$journal '';
    }
$datecut time() - $cookietimeout;

    if (
$counter%2==0) {
        
$post[backcolor]="{firstaltcolor}";
        
$post[bgclass] = "alt1";
    } else { 


msimplay 03-13-2003 12:23 AM

um i have multiple styles on my site will the installer install templates in all the styles?

msimplay 03-13-2003 02:20 AM

Confirmed working for Vbulletin 2.3 release candidate 1
no it was painstaking and i had to install the templates for the other 2 styles seperately phew all done though now

+d-cipher 03-14-2003 06:29 PM

I like that idea of this hack. I have a few questions about it though.

Is there a way to integrate this with all my members userCP?
That way they don't have to go to a seperate page to add/delete thier entries but just go to their userCP.

Can members entries then be viewed by viewing the members profiles as well? (using the getinfo template).

msimplay 03-16-2003 09:19 PM

I love this hack and i was wondering if it would be released on vb3


All times are GMT. The time now is 08:17 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01261 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_php_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