vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBJournal for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=96462)

AN-net 11-26-2005 02:02 AM

Quote:

Originally Posted by Andreas
It does not show becasue it is not there ;)

why did you remove the copyright?

Andreas 11-26-2005 04:30 AM

I did not remove it.
I guess Oblivion Knight did that, as they were not in the templates from his "Alpha 4" version - except in journal_showbuddies, which is no longer in use. Hmm.
Though I don't see a problem re-adding it in Beta 2, as the phrase is still in place :)

Andy?

swa 11-26-2005 03:47 PM

would it be possible to add recent journal in memberinfo???

whitetigergrowl 11-26-2005 04:10 PM

Quote:

Originally Posted by weaver
How did you upload the product? When I used the ACP and product manager to browse to where the product was located on my hard drive the install did not work correctly. After I uploaded it to the server myself and then imported it, the install went fine.


If I try doing that now, wouldn't that overwrite my members existing blogs? Is there a manual way of doing it? Of adding it to the admin cp?

noonespecial 11-26-2005 05:32 PM

Anyone make a CMPS module for this yet? That's what I really need.

FamilyCorner 11-26-2005 06:28 PM

Quote:

Originally Posted by noonespecial
Anyone make a CMPS module for this yet? That's what I really need.

Are you using the CMPS module from VBAdvanced? If so you can incorporate it like I did:

http://www.familycorner.com/forums/journal.php3

If you are using this system then let me know, I'll be happy to post what I learned (probably here LOL)

MissKalunji 11-26-2005 07:51 PM

Quote:

Originally Posted by swa
would it be possible to add recent journal in memberinfo???


its already integreted check the read me or install.txt

illusions 11-26-2005 11:41 PM

Hi I didnt have any problems with the installation, but when I try to access Journals link I get the following message:~

admin, 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.


How do I set the user permission?... I cant seem to find any configuration in Journal CP, which would allow any user permission settings... pls advice..

THanks

ConqSoft 11-26-2005 11:44 PM

AdminCP->Usergroups

Andreas 11-26-2005 11:45 PM

@illusions
Quote:

Originally Posted by Myself in first post (which you dont seem to have read)
Hint: Don't forget to adjust your Journal Permissions (Usergroup Manager) after install!


noonespecial 11-26-2005 11:46 PM

Quote:

Originally Posted by FamilyCorner
Are you using the CMPS module from VBAdvanced? If so you can incorporate it like I did:

http://www.familycorner.com/forums/journal.php3

If you are using this system then let me know, I'll be happy to post what I learned (probably here LOL)

Yes, I am using Vbadvanced (CMPS 2.0) ... how did you make that module??

miner 11-27-2005 04:59 AM

I use this and find few of my members enjoy it...

thankyou...

Wordplay 11-27-2005 11:47 AM

Quote:

Originally Posted by Andreas
@Wordplay
mySQL errors about conflicting collations.

meaning i'd be coming across what kind of problems?

claimbuddy 11-27-2005 12:09 PM

Concept: Forum users create a Journal for a new case. Then, keep a diary and upload their images.

Just need these users of these case journals to be able to keep them private with the exception of admins....

If good fit, anybody want to undertake a paid project estimated at $1500.

Forgive me if this is not in the correct spot.

Thanks.

Call 504-638-1265

Sergg 11-28-2005 01:06 AM

Installation went real smooth, I edited permissions, that wents fine. So I decided to test it out, after I create a journal I got this error:

Parse error: parse error, unexpected T_PRIVATE, expecting ']' in /home/allrpg/public_html/forums/journal.php(564) : eval()'d code on line 188

Gives me the same error when I click on "my journal" and "journal index" from the nav bar. Also gives me the same error in the userCP.

Not sure what the problem is, I had some database errors during the time I was editing the templates, but I pretty sure that everything edited ok. Any ideas?

Andreas 11-28-2005 01:35 AM

@Sergg
Quote:

Originally Posted by Myself in first post (which you don't seem to have read)
Known Issues
  • Beta 1 does not work properly with PHP 5. Problems are to be expected if you try to run this Hack with PHP 5.


Sergg 11-28-2005 01:42 AM

Uh... as far as I know I don't have PHP5, In fact I'm pretty sure were still using PHP3.

Andreas 11-28-2005 01:45 AM

Check it. If you are in fact using PHP 3, send me a PM with an ACP login.
(Though I am not sure if it would work with PHP 3 at all ... the minimum requirement for vBulletin itself is 4.1.0)

nabeelaejaz 11-28-2005 06:04 AM

how do i administer it from the backend ... I do not see any settings option .. also I did like to add/edits moods ... how do i do that? Thank you.

Cloud-Warrior 11-28-2005 08:37 AM

Hi -

I added RSS 1.0 (RDF) functionality to my install of vB Journal. Basically, you have to change "SELECT journalist,journalist_id" to "SELECT journalist,journalist_id,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:

Code:

// RSS 1.0 Begins

                        else if($type=="rss1")
                        {
                                require_once('./includes/class_bbcode.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=\"".$vbulletin->options['bburl']."/journal.php?do=downloadjournal&amp;j=".$j."&amp;type=rss1\">\r\n";
                                if ($journalinfo['journalname'] == "") { $journalinfo['journalname'] = $journalinfo['journalist'] . "'s Blog"; }
                                $rss1_header .= "<title>".htmlspecialchars($journalinfo['journalname'])."</title>\r\n";
                                $rss1_header .= "<link>".$vbulletin->options['bburl']."/journal.php?do=showjournal&amp;j=".$j."</link>\r\n";
                                if (empty($journalinfo['journaldesc'])) { $journalinfo['journaldesc'] = $journalinfo['journalist']."'s Blog at ".$vbulletin->options['bbtitle']; }
                                $rss1_header .= "<description>".htmlspecialchars($journalinfo['journaldesc'])."</description>\r\n\r\n";
                                $rss1_header .= "<items>\r\n";
                                $rss1_header .= "\t<rdf:Seq>\r\n";

                                $totalentries = 0;

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

                                                $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
                                                $entry['entrytext'] = $parser->do_parse($entry['entrytext']);
                                                $entry['entrytext']= unhtmlspecialchars(stripslashes($entry['entrytext']));
                                                $entry['entrytext']= ereg_replace("{smilies}", $vbulletin->options['bburl']."/images/smilies", $entry['entrytext']);

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


                                                $rss1_header .= "\t\t<rdf:li rdf:resource=\"".$vbulletin->options['bburl']."/journal.php?do=showentry&amp;e=".$entry['entry_id']."\" />\r\n";
                                                $rss1_body .= "\t<item rdf:about=\"".$vbulletin->options['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>".$vbulletin->options['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 = "$journalinfo[journalist]_blog_".vbdate($vbulletin->options['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.

Edit (2005-11-28): Updated for vB 3.5.

lazytown 11-29-2005 04:25 AM

I had some minor database problems and had to restore all my comments.. However, all the comments counters were set to 0 (even though the comments are still there). Is there any way to update the comments counters with an SQL query or something similar?

Thanks -vissa

Rukas 11-30-2005 12:48 AM

Is there a vbAdvanced module showing latest journal entries yet?

Rukas 11-30-2005 12:53 AM

Is it possible to show the last 5 entries in the MEMBERINFO instead of just the last one?

MissKalunji 11-30-2005 01:12 AM

Quote:

Originally Posted by Rukas
Is it possible to show the last 5 entries in the MEMBERINFO instead of just the last one?


<if condition="$show[journalinfo]">
<fieldset>
<legend>$vbphrase[journal_information]:</legend>
<table>
<tr>
<td>
<div class="fieldset">
<a href="journal.php?$session[sessionurl]do=showjournal&j=$journal[journal_id]"><phrase 1="$userinfo[username]">$vbphrase[visit_xs_journal]</phrase></a><br />
$vbphrase[journal_entries]: $journal[entrycount]<br />
$vbphrase[journal_comments]: $journal[commentcount]<br />
$vbphrase[journal_views]: $journal[journalviews]<br />
$vbphrase[last_entry]: <if condition="$show[journal_lastentry]"><a href="journal.php?$session[sessionurl]do=showentry&e=$journal[lastentry_id]">$journal[lastentry]</a> ($journal[lastentry_date])<br /><else />$vbphrase[private]</if>
</div>
</td>
</tr>
</table>
</fieldset>
</if>

Rukas 11-30-2005 10:24 PM

^^ Thanks but that shows the last one entry, i want the last five entries.

MissKalunji 11-30-2005 11:31 PM

Quote:

Originally Posted by Rukas
^^ Thanks but that shows the last one entry, i want the last five entries.


just play with the settings :-/

Rukas 11-30-2005 11:33 PM

^ where?

Vizionz 11-30-2005 11:35 PM

Quote:

Originally Posted by Rukas
^ where?

i asked earlier in this thread neither so far.

Rukas 11-30-2005 11:46 PM

++++. I deleted the journal product and re added it and now no journals are present, are they still in the database or does removing a product also remove them from the database? Shit.

MissKalunji 12-01-2005 12:08 AM

Quote:

Originally Posted by Rukas
^ where?


inside the php u gotta script it (ill ask my friend to fix it up ) and i'll send ut he code

Rukas 12-01-2005 12:13 AM

^^ the link to ur site in ur sig doesnt work btw ;)

And thanks ;)

Vizionz 12-01-2005 12:28 AM

Quote:

Originally Posted by MissKalunji
inside the php u gotta script it (ill ask my friend to fix it up ) and i'll send ut he code

why not just include it in this thread for others ?

MissKalunji 12-01-2005 12:28 AM

Quote:

Originally Posted by Rukas
++++. I deleted the journal product and re added it and now no journals are present, are they still in the database or does removing a product also remove them from the database? Shit.


removes everything....

MissKalunji 12-01-2005 12:29 AM

Quote:

Originally Posted by Vizionz
why not just include it in this thread for others ?

i will :P im not selfish

MissKalunji 12-01-2005 12:29 AM

Quote:

Originally Posted by Rukas
^^ the link to ur site in ur sig doesnt work btw ;)

And thanks ;)


yeah i know my webserver down im fixing up linux and all

Rukas 12-01-2005 01:39 AM

Quote:

Originally Posted by MissKalunji
removes everything....

F U C K

I wish that was stated somewhere!

Rukas 12-01-2005 01:40 AM

Ok, I have an old database back up with some of the journals. Does anyone know how to restore just the journal tables and not everything else?

MissKalunji 12-01-2005 02:36 AM

Quote:

Originally Posted by Rukas
Ok, I have an old database back up with some of the journals. Does anyone know how to restore just the journal tables and not everything else?

well when you open it it should say something like
insert into *table* settings and title and all
just query it in your phpadmin i dont know if im explanning it properly :-/

you look for every journal entries and inserts it into the table

i dont know if u understand? i've done it b4

Rukas 12-01-2005 02:38 AM

I dont :S

Im not too experianced with myphpadmin to be honest.

MissKalunji 12-01-2005 02:39 AM

example for
comments

its

Quote:

insert into journal_comments value...etc etc... insert each every u found
for intries it would be

Quote:

insert into journal_entries values ...etc etc each and everyone u found
try that it worked for me once i messed up the tables


All times are GMT. The time now is 01:54 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.02626 seconds
  • Memory Usage 1,859KB
  • 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
  • (1)bbcode_code_printable
  • (20)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
  • (40)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