vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Journal | vba CMPS module: latest entries (https://vborg.vbsupport.ru/showthread.php?t=69862)

Moya 09-28-2004 02:19 AM

Hi Bolas,

Thanks for this hack. There is something that I don't understand. This module causes a blank page when I tried to open my main page with Firefox. It works fine when I open it with IE

Bolas 09-28-2004 08:10 AM

d'oh! I'm under Debian (unstable) and I use to browse ONLY with mozilla-firefox (now 0.9.x) ...
Also Epiphany, IE ( lol... ), Konqueror, lynx... and I don't have blank pages...
Try opening my vbulletin: http://www.wellage.net: te module is loaded on the bottom-right of the home page and works fine.
The module is just a chunk of php code and some html.. just a blank page? vBulletin in case of minor error (like a error in a module) doesn't stop his execution ( = blank page).

A) Does the needed template exists in the style you are using?

B) does your account have privis to receive that page? ( I mean... Are you logged with the same account of IE - check cookies - in Firefox? )

Without error messages I can't imagine what happens, but don't worry: we will find a solution! ;)




...


C) just to be sure... when you set unactive my module all works fine?

Wordplay 10-04-2004 03:08 PM

sorry but i'm really slow with hacking. what are you supposed to place as the variables name when creating the phrases?

is it:
VARIABLES NAME: adv_latest_journalentries
TEXT: Latest Journal Entries

Bolas 10-04-2004 03:42 PM

in /admincp, in the menu on the left:

Languages & Phrases
open section

Phrase Manager
click

on the right frame click Add New Phrase

in the new page (Add New Phrase)

Phrase Type: choose 'GLOBAL'
Varname: insert 'adv_latest_journalentries'
text: insert 'Latest Journal Entries' (and if you got another language installed fill it with right translation

SAVE



Say me if you need screenshot to follow step by step the single action! :)

bye!

Wordplay 10-09-2004 02:26 AM

i have a little problem with this, the module shows up and it even includes the correct subjects of the latest journal entries, but the link is wrong for some reason. how can it pick out the right info but the wrong link?

the link will just be www.xxx.com/journal.php instead of www.xxx.com/forum/journal.php, how can i fix this?

Bolas 10-10-2004 03:42 PM

open admincp/

choose your style (or default) and show template list.
open 'journal_latestentrybits'

find (or similar code.. the template is very little..)
PHP Code:

href="forum/journal.php 

replace it with
PHP Code:

href="journal.php 


Wordplay 10-11-2004 10:38 AM

thanks alot! it was set to journal.php, i set it to the full link now it works!

billbensen 10-17-2004 03:32 AM

for those of you that want this to be used in the center block.

This is the journal_latestentrybits

HTML Code:

<tr>
<td class="$bgclass"><div class="smallfont"><a href="$vboptions[bburl]/journal.php?do=showentry&e=$latest[entry_id]" title="$latest[entrytext]">$latest[entrytitle]</a> - ($latestentrydate at <span class="time">$latestentrytime</span>)<br /><span style="cursor:pointer" onclick="window.open('member.php?u=$latest[journalist_id]')">$latest[journalist]</span></div></td>
<tr><td class="$bgclass"><div class="smallfont">$latest[entrytext]<a href="$vboptions[bburl]/journal.php?do=showentry&e=$latest[entry_id]" title="$latest[entrytext]">more</a></div></td></tr>
</tr>

It will display the short blurb of the journal entry and add a "more" link at the end.

Bolas 10-17-2004 11:04 AM

I like it and make a different version insiperd of your version.
I updated the thread with your and mine versions (See attachments!)

Thank you! ;)

memobug 10-18-2004 12:23 AM

Greetings

1. It looks like this is a typo, should probably be "latest"
Quote:

}
$DB_site->free_result($lastest);
}
2. It is necessary to use stripslashes in a couple of places to prevent escaped quotes, i.e., Fred\'s Comment
Just inside the while loop add:
Code:

        $latest[entrytitle]="".stripslashes($latest[entrytitle]);
        $latest[entrytext]="".stripslashes($latest[entrytext]);

Don't ask me what the "". part is about, I'm just making it consistent with the existing code.

3. I added in a count of the comments in both the query and the templatebits

4. It would be very helpful if the hack installation instructions identify specifically (by link) which Journal it is intended for use. I think I have found about three threads that claim to be vbJournal and several versions of some.

At any rate it looks like it's incompatible with my version of "vbJournal" - now I have to figure out which version that is. Some port of Ryangel's hack I found on vbtemplates.org, I think.

5. I was able to modify the query and get everything to work with my version of the Journal, with the exception of this one parameter:

$latest[journalist], (journals.journalist), because that is a field I don't have in my database. I'm assuming that is the proper name of the Journal keeper, but I am a little surprised to see it in the journal table and not derived from the user table. If it were the username, it would be redundant and not necessarily subject to update if the username were changed.

:ermm:
Regards,

Matt


All times are GMT. The time now is 05:23 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.01154 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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