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)

Synth 12-30-2005 10:48 AM

Quote:

Originally Posted by Nordinho
I got it working om my site...it's probably not the best or easiest way to do it, since I'm not a coder...but it works fine for me...

here we go

Create a template called 'adv_portal_latestjournalentry'

Paste the text below in it and change 'http://www.nordinho.net/vbull/journal.php?$session[sessionurl]' to the url where your journal is located.


HTML Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
 <tr>
  <td class="tcat" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cmps_pagesmenu')"><img id="collapseimg_cmps_pagesmenu" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_cmps_pagesmenu].gif" alt="" border="0" /></a>
    <span class="smallfont"><strong><a href="http://www.nordinho.net/vbull/journal.php?$session[sessionurl]">$vbphrase[adv_latest_journalentries]</a></strong></span>
  </td>
 </tr>
</thead>
<tbody id="collapseobj_cmps_pagesmenu" style="$vbcollapse[collapseobj_cmps_pagesmenu];text-align:$stylevar[left]">
$latestbitscmps
</tbody>
</table>

Next create a template called 'journal_latestentrybitscmps'

Paste the following and change both 'vbull' and 'http://www.nordinho.net/vbull' to your forum directory


HTML Code:

<td class="$bgclass"><a href="vbull/journal.php?do=showentry&amp;e=$latest[entry_id]" title="$latest[entrytext]">$latest[entrytitle]</a> 
<td>
<div align="right" class="smallfont"> ($latestentrydate - $latestentrytime)</div>
</td>
</td>
<tr>
<td class="$bgclass" colspan="2">

$latest[entrytext] <br />
<span class="smallfont" style="float:$stylevar[right]">Written by:<a href="http://www.nordinho.net/vbull/member.php?u=$latest[journalist_id]">$latest[journalist]</a></span>
<br /></tr></td>

Upload the attached 'journalentries.php'

Create a new module in your cmps


- Title - Latest Blog Entries (or whatever you want)
- File to Include - journaltries.php
- Templates Used - adv_portal_latestjournalentry,
journal_latestentrybitcmps
- Use module shell - no

Click and it should be done. Live demo at http://www.nordinho.net

If you want to change the number of entries shown, look for 'LIMIT 3' in the journalentries.php file and change that to the number of entries you want.


anyone know why this isn't working for me?

Blackhat 12-30-2005 03:26 PM

Is there possible to have a "recent journal entries" list as a sideblock on forumhome and how ?

Thanks :)

Nordinho 12-30-2005 04:57 PM

Quote:

Originally Posted by Synth
anyone know why this isn't working for me?

Try renaming your template 'journal_latestentrybitscmps' to 'journal_latestentrybitcmps' (without the -s-)

Synth 12-30-2005 05:43 PM

Quote:

Originally Posted by Nordinho
Try renaming your template 'journal_latestentrybitscmps' to 'journal_latestentrybitcmps' (without the -s-)


Great that worked:) It's always the smallest thing that creats the biggest problem!
One last thing. The title isn't showing on the module even though it's set via AdminCP.

Also how would I change the time font color?

Nordinho 12-30-2005 06:45 PM

Quote:

Originally Posted by Synth
vbphrase[adv_latest_journalentries

Check if there's a phrase 'vbphrase[adv_latest_journalentries' in your phrases and edit it the way you want...

You can change the time color font by replacing the class="smallfont" in the div (template 'journal_latestentrybitcmps') with another class...

Synth 12-30-2005 07:42 PM

Quote:

Originally Posted by Nordinho
Check if there's a phrase 'vbphrase[adv_latest_journalentries' in your phrases and edit it the way you want...

You can change the time color font by replacing the class="smallfont" in the div (template 'journal_latestentrybitcmps') with another class...

I don't have a listing for adv_latest_journalentries in my phrases:(

Nordinho 12-30-2005 07:50 PM

Quote:

Originally Posted by Synth
I don't have a listing for adv_latest_journalentries in my phrases:(

Add it ;)...or you can just hardcode it...by replacing the phrase in the template...

Blackhat 12-31-2005 10:11 AM

Quote:

Originally Posted by Nordinho
I got it working om my site...it's probably not the best or easiest way to do it, since I'm not a coder...but it works fine for me...

here we go

Create a template called 'adv_portal_latestjournalentry'

Paste the text below in it and change 'http://www.nordinho.net/vbull/journal.php?$session[sessionurl]' to the url where your journal is located.


HTML Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
 <tr>
  <td class="tcat" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cmps_pagesmenu')"><img id="collapseimg_cmps_pagesmenu" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_cmps_pagesmenu].gif" alt="" border="0" /></a>
    <span class="smallfont"><strong><a href="http://www.nordinho.net/vbull/journal.php?$session[sessionurl]">$vbphrase[adv_latest_journalentries]</a></strong></span>
  </td>
 </tr>
</thead>
<tbody id="collapseobj_cmps_pagesmenu" style="$vbcollapse[collapseobj_cmps_pagesmenu];text-align:$stylevar[left]">
$latestbitscmps
</tbody>
</table>

Next create a template called 'journal_latestentrybitcmps'

Paste the following and change both 'vbull' and 'http://www.nordinho.net/vbull' to your forum directory


HTML Code:

<td class="$bgclass"><a href="vbull/journal.php?do=showentry&amp;e=$latest[entry_id]" title="$latest[entrytext]">$latest[entrytitle]</a> 
<td>
<div align="right" class="smallfont"> ($latestentrydate - $latestentrytime)</div>
</td>
</td>
<tr>
<td class="$bgclass" colspan="2">

$latest[entrytext] <br />
<span class="smallfont" style="float:$stylevar[right]">Written by:<a href="http://www.nordinho.net/vbull/member.php?u=$latest[journalist_id]">$latest[journalist]</a></span>
<br /></tr></td>

Upload the attached 'journalentries.php'

Create a new module in your cmps


- Title - Latest Blog Entries (or whatever you want)
- File to Include - journaltries.php
- Templates Used - adv_portal_latestjournalentry,
journal_latestentrybitcmps
- Use module shell - no

Click and it should be done. Live demo at http://www.nordinho.net

If you want to change the number of entries shown, look for 'LIMIT 3' in the journalentries.php file and change that to the number of entries you want.

I'm trying to use this to add the recent entries at forumhome, but how can I include the journalentries.php file there ?

akanevsky 12-31-2005 11:29 AM

Are there any screenshots?

Snake 12-31-2005 01:03 PM

Well the year 2006 is right here! Now where is the final version of this hack?! :D

hsl.com 01-01-2006 03:50 PM

What's up with this?!?!?


Quote:

Parse error: parse error, unexpected T_PRIVATE, expecting ']' in /home/darius12/public_html/forum/journal.php(978) : eval()'d code on line 48

scottct1 01-02-2006 02:00 AM

For some reason my MEMBERINFO stuff is not showing.

I am looking at it as someone with a journal.

Even if I remove the <if condition="$show[journalinfo]"> and the </if> the info shows up however it contains no information.

Also the link to show the members link to the journal does not work is shows http://www.satelliteguys.us/journal....showjournal&j= (note no journal number at the end)

Everything else works fine any ideas?

Lottis 01-02-2006 06:16 AM

Quote:

Originally Posted by hsl.com
What's up with this?!?!?

I found one answere;Seems to be issues with template conditionals which currently can't be fixed.
Will take care in future versions

kgirl 01-02-2006 02:22 PM

I don't seem to have the Journal settings in the ACP, so I can't edit anything apart from the usergroups.

I've reinstalled it following the instructions to the letter, and re-imported the product and it still doesn't show up. The cpnav_journalhack.xml is in includes/xml on my server.

I can't see whats gone wrong - can anyone shed any light on it please??

lazytown 01-02-2006 09:41 PM

So how do we allow our moderators to edit journal entries and comments without giving them full admin access? My mods have some work to do. :)

Thanks -vissa

scottct1 01-02-2006 09:44 PM

Anyone have any ideas why this is not working in my MEMBER info for the users profile?

lazytown 01-02-2006 10:06 PM

In the bug database list, I see reference to a version "=> 1.0.2 Beta 2 " with some fixes. Any chance we can have that uploaded here to VB.org?

-vissa

lazytown 01-02-2006 10:17 PM

Strange... I see these entries in the bitfield_journalhack.xml file
PHP Code:

    <bitfield name="caneditothersentries" group="journal_permissions" phrase="can_edit_others_entries">4096</bitfield>
    <
bitfield name="candeleteothersjournal" group="journal_permissions" phrase="can_delete_others_journal">8192</bitfield>
    <
bitfield name="candeleteothersentries" group="journal_permissions" phrase="can_delete_others_entries">16384</bitfield--> 

However, they do not appear in the usergroup settings (and I am super admin)
Any idea why? Do others see these options withou their usergroup settings?
-vissa

Lpspider 01-03-2006 01:03 AM

quick question...

is there an [easy] way I can universally edit the word "journal" (journal, journal entries, etc) to the word "blog"? I've done so on the navbar, but I'd like to do so in the profile as well.

gibhut 01-03-2006 04:29 PM

You can make a post to anyone's blog if you know their blog id

In journal.php there is an error in the Function.
on line 94

PHP Code:

function journalist_check($jid,$checkid)
{
    global 
$db;
    
$check$db->query_first("SELECT journalist_id FROM " TABLE_PREFIX "journals WHERE journal_id='".$jid."'");
    if(
$check['journalist_id']!=$checkid)
    {
        return 
"false";
    }
    else
    {
        return 
"true";
    }



you are returning the string false and true. so the
!journalist_check will be bypassed. it needs to be

PHP Code:

function journalist_check($jid,$checkid)
{
    global 
$db;
    
$check$db->query_first("SELECT journalist_id FROM " TABLE_PREFIX "journals WHERE journal_id='".$jid."'");
    if(
$check['journalist_id']!=$checkid)
    {
        return 
false;
    }
    else
    {
        return 
true;
    }



gibhut 01-03-2006 04:31 PM

Quote:

Originally Posted by Lpspider
quick question...

is there an [easy] way I can universally edit the word "journal" (journal, journal entries, etc) to the word "blog"? I've done so on the navbar, but I'd like to do so in the profile as well.

I used the tempate and Phrase Search to change them all

gibhut 01-03-2006 04:36 PM

Also there is an error in the
bitfield_journalhack.xml
Code:

<bitfield name="caneditowncomments" group="journal_permissions" phrase="can_edit_own_comments">32</bitfield>
was left out.. so this should fix it


To fix the error where you Edit your Journal Comments
Code:

<bitfield name="canviewjournal" group="journal_permissions" phrase="can_view_journal">1</bitfield>
<bitfield name="canhavejournal" group="journal_permissions" phrase="can_have_journal">2</bitfield>
<bitfield name="canviewcomments" group="journal_permissions" phrase="can_view_comments">4</bitfield>
<bitfield name="cancommentjournals" group="journal_permissions" phrase="can_comment_journals">8</bitfield>
<bitfield name="canratejournals" group="journal_permissions" phrase="can_rate_journals">16</bitfield>
<bitfield name="caneditowncomments" group="journal_permissions" phrase="can_edit_own_comments">32</bitfield>
<bitfield name="caneditownjournal" group="journal_permissions" phrase="can_edit_own_journal">64</bitfield>
<bitfield name="caneditownentries" group="journal_permissions" phrase="can_edit_own_entries">128</bitfield>
<bitfield name="candeleteownjournal" group="journal_permissions" phrase="can_delete_own_journal">256</bitfield>
<bitfield name="candeleteownentries" group="journal_permissions" phrase="can_delete_own_entries">512</bitfield>
<bitfield name="cansearchjournal" group="journal_permissions" phrase="can_search_journal">1024</bitfield>


Lpspider 01-03-2006 07:42 PM

Quote:

Originally Posted by gibhut
I used the tempate and Phrase Search to change them all

I just did a "find and replace in all" replacing journal to blog, but no effect. I'm still seeing jounral for the drop-down menu and in the profile. Any ideas?

dethfire 01-03-2006 07:44 PM

Quote:

Originally Posted by Lpspider
I just did a "find and replace in all" replacing journal to blog, but no effect. I'm still seeing jounral for the drop-down menu and in the profile. Any ideas?

because everything might be phrased?

Lpspider 01-03-2006 08:02 PM

I edited all the vbjounral phrases in vbjounral (cp) and vbjournal (frontend) manually. First thing I did. Still no effect.

AN-net 01-04-2006 01:14 AM

Quote:

Originally Posted by Lpspider
I edited all the vbjounral phrases in vbjounral (cp) and vbjournal (frontend) manually. First thing I did. Still no effect.

maybe he didnt phrase the navbar?

MissKalunji 01-04-2006 01:24 AM

Quote:

Originally Posted by AN-net
maybe he didnt phrase the navbar?

no he didnt phrase it

docvader 01-04-2006 06:17 AM

Nordinho, the module works perfectly. Thanks!

gibhut 01-04-2006 02:08 PM

Quote:

Originally Posted by Lpspider
I just did a "find and replace in all" replacing journal to blog, but no effect. I'm still seeing jounral for the drop-down menu and in the profile. Any ideas?


Those are in the template system

CADguru 01-04-2006 02:59 PM

Hi,

Just installed on 3.5.2 and i can post a new journal but if i try and access the journal list i get the following SQL error:

Quote:

Database error in vBulletin 3.5.2:

Invalid SQL:

### Journal Lisiting Pagination ####
SELECT COUNT(*) AS journals FROM journals
WHERE active=1
AND (journalist_id=1 OR private !=1 OR FIND_IN_SET('1', allowedusers));

MySQL Error : Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_unicode_ci,IMPLICIT) for operation 'find_in_set'
Error Number : 1267
I have looked at the journals table and the allowed users column is set for utf8_unicode_ci (as are all the others)

Does anyone have any ideas?

Nikke 01-04-2006 07:49 PM

Something is wrong with my journal, look at this picture:

https://vborg.vbsupport.ru/


Why aren't the pictures showing?

Lpspider 01-04-2006 09:40 PM

Quote:

Originally Posted by gibhut
Those are in the template system

I'm sort of new at this... could you be more specific?

MissKalunji 01-04-2006 10:31 PM

Quote:

Originally Posted by Lpspider
I'm sort of new at this... could you be more specific?

for the navbar link

you did that to have the journal link in it:

Quote:

<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
----------------------------------------------------------------------------------------------------------------------------------

BELOW that ADD
----------------------------------------------------------------------------------------------------------------------------------
<td id="journalnavbar" class="vbmenu_control"><a href="#journalnavbar">$vbphrase[journals]</a> <script type="text/javascript"> vbmenu_register("journalnavbar"); </script></td>
----------------------------------------------------------------------------------------------------------------------------------

In Template navbar FIND
----------------------------------------------------------------------------------------------------------------------------------
<!-- / NAVBAR POPUP MENUS -->
----------------------------------------------------------------------------------------------------------------------------------

ABOVE that ADD
----------------------------------------------------------------------------------------------------------------------------------
<div class="vbmenu_popup" id="journalnavbar_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" align="center">$vbphrase[journal_links]</td></tr>
<tr><td class="vbmenu_option"><a href="journal.php$session[sessionurl_q]">$vbphrase[journal_index]</a></td></tr>
<if condition="$bbuserinfo!=0">
<tr><td class="vbmenu_option"><a href="journal.php?$session[sessionurl]do=gotomyjournal">$vbphrase[my_journal]</a></td></tr>
</if>
</table>
</div>
Replace the $vbphrase[My_Journal] with My Blog or whateva text you want

as for the other one go to language phrase edit and change each journal for Blog

dartworth 01-05-2006 04:00 AM

nevermind:)

Snake 01-05-2006 10:32 AM

Quote:

Originally Posted by Nikke
Something is wrong with my journal, look at this picture:

http://www.pokerimestari.com/omatkuvat/pics.jpg


Why aren't the pictures showing?

Make sure you've uploaded the images in the right directory of your skin folder. ;)

scabbed 01-05-2006 11:05 AM

hello, since i upgrade too 3.5.3 i have this error :

Quote:

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

TechDawgFan 01-05-2006 11:51 AM

I've got a question/concern about this mod/hack.

First, I would LOVE to have a blog system tied into my vBulletin. I'm looking for it and want it - SOON. I've been following this hack hoping this would be my answer. But I have some concerns. First, for as long as I've been following it, this hack has remained in Beta stage with the last update by the author being in late November. I've also checked the Bugs page and the last update, other than newly submitted bugs, was on Nov. 24th. I've seen several pieces of code fix here in this thread, but none of those have been incorporated into the mod.

The last thing I want to do it install a major feature addition to my site and find that it is no longer supported and no updates are provided, ESPECIALLY when the Andreas stated that it will NOT work with PHP5 and is not recommended on MySQL 4.1+! Are the developers still working on the hack and incorporating the suggested changes? Are they planning on keeping it current with the updates to vBulletin (we now have 3.5.3 and the hack was for .1)?

Does anybody else have the same concerns? Do you know of any other good options for a vBulletin integrated blog that doesn't require abandoning my current CMS?

TDF

Nordinho 01-05-2006 06:15 PM

Quote:

Originally Posted by docvader
Nordinho, the module works perfectly. Thanks!

You're welcome ;)

Snake 01-05-2006 06:29 PM

Quote:

Originally Posted by TechDawgFan
I've got a question/concern about this mod/hack.

First, I would LOVE to have a blog system tied into my vBulletin. I'm looking for it and want it - SOON. I've been following this hack hoping this would be my answer. But I have some concerns. First, for as long as I've been following it, this hack has remained in Beta stage with the last update by the author being in late November. I've also checked the Bugs page and the last update, other than newly submitted bugs, was on Nov. 24th. I've seen several pieces of code fix here in this thread, but none of those have been incorporated into the mod.

The last thing I want to do it install a major feature addition to my site and find that it is no longer supported and no updates are provided, ESPECIALLY when the Andreas stated that it will NOT work with PHP5 and is not recommended on MySQL 4.1+! Are the developers still working on the hack and incorporating the suggested changes? Are they planning on keeping it current with the updates to vBulletin (we now have 3.5.3 and the hack was for .1)?

Does anybody else have the same concerns? Do you know of any other good options for a vBulletin integrated blog that doesn't require abandoning my current CMS?

TDF

Yeah! C'mon Andreas, we're hardly waiting for the Final version! :(

silurius 01-05-2006 08:46 PM

Quote:

Originally Posted by TechDawgFan
I've got a question/concern about this mod/hack.
...
Does anybody else have the same concerns? Do you know of any other good options for a vBulletin integrated blog that doesn't require abandoning my current CMS?

Have you had a chance to try out tamarian's vB Drupal or Geek's GARS?


All times are GMT. The time now is 09:59 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.02231 seconds
  • Memory Usage 1,893KB
  • 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
  • (4)bbcode_html_printable
  • (3)bbcode_php_printable
  • (24)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