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)

afterlab 09-20-2002 05:04 PM

In full agreement, Gamingforce. I was going to back you up before you commented, but I was unsure if this was unjust to you. Anyways, thanks for the hack, i'll be installing on my forums some time this week.

Riddel 09-20-2002 06:12 PM

It worked!!! thank you so very much!

Velocd 09-20-2002 06:21 PM

Quote:

Originally posted by Gamingforce
Good deal, at least you could give credit to my journal which you very closely modeled it after: http://www.gamingforce.com/forums/journal.php
Lol, I thought there was some close comparison in the appearance of both journal systems. It's not an incredibly huge deal though, as long as it's not code manipulated.

Kaelon 09-20-2002 07:29 PM

Great work! Several issues:

1. I noticed that on the Journal Stats block, only a custom avatar appears and not one of the standard avatars. Is there any way to ensure that the avatar is displayed?

2. Users that have apostrophe's (e.g., "Mari'a") or other special characters are unable to add journals. The specific error:

Quote:

Database error in vBulletin 2.2.7:

Invalid SQL: INSERT into journal (journalid, title, entries, views, enabled, timestamp, userid) values (2633, 'Tantic Bry Try'Kar\'s Journal', 0, 0, 1, '1032551764', 2633)
mysql error:

mysql error number: 0

Date: Friday 20th of September 2002 03:56:04 PM
Script: http://www.....com/forums/forums/jou...=createjournal
Referer: http://www.....com/forums/journal.php?s=
You can fix this by finding the following line in journal.php:

Code:

$username = $username_retrieve['username'];
And adding right beneath it:

Code:

$username = addslashes($username);
Hope this helps! Great hack, again!

Chris M 09-20-2002 08:13 PM

My Journal

Brilliant work m8:)

Satan

Koss 09-20-2002 08:31 PM

If I wanted to add this to different styles do I have to do it manually ?/
thanks

Chris M 09-20-2002 08:41 PM

No...

Just edit install_journal.php, and find :

PHP Code:

        $DB_site->query("INSERT INTO template (templateid, title, template, templatesetid) VALUES (NULL,'$key','".addslashes($val)."',1)"); 

Just change that "1" at the end of the line, to the templatesetid of the other style, and upload it...Then just do the first step, and delete the file after that...

Satan

Koss 09-20-2002 08:52 PM

Quote:

Originally posted by hellsatan
No...

Just edit install_journal.php, and find :

PHP Code:

        $DB_site->query("INSERT INTO template (templateid, title, template, templatesetid) VALUES (NULL,'$key','".addslashes($val)."',1)"); 

Just change that "1" at the end of the line, to the templatesetid of the other style, and upload it...Then just do the first step, and delete the file after that...

Satan

you rule! thanks man :bunny:

Koss 09-20-2002 09:03 PM

ok I changed the file but it screws up on step 3 and I get this error:

Quote:

Database error in vBulletin Control Panel 2.2.6:

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

mysql error number: 1050

Date: Friday 20th of September 2002 03:00:46 PM
Script: http://www.mysite.com/forums/forums/...nal.php?step=3
Referer: http://www.mysite.com/forums/admin/i...nal.php?step=2
im not sure whats wrong :surprised:

Kaelon 09-20-2002 09:31 PM

I'm having another problem...

When users go to add an entry to their account, they see on the breadcrumb up top a link to my standard account's Journal, not their journal.

E.g., instead of it saying

Forums > Journal > User's Journal > Add a New Entry

It says

Forums > Journal > My Standard Account's Journal > Add a New Entry

I was able to remove this issue from the template, and when you go to "edit" an entry, the breadcrumb displays properly with links.

Apparently, this is a problem happening on all installations and journals, including your demo one. Is there a way to possibly fix this? Thanks!

Regards,
Kaelon


All times are GMT. The time now is 11:40 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.01327 seconds
  • Memory Usage 1,751KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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