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)

voteforbird 09-20-2006 05:49 PM

What does this do?
Quote:

Also download the file find here for 3.6+

https://vborg.vbsupport.ru/showpost....postcount=1323

voteforbird 09-20-2006 08:05 PM

How can I add the journal entry to the top of the comments page? Thanks.

Chadi 09-21-2006 12:55 AM

Quote:

Originally Posted by Firestar.chkn
Hi Everyone,

It's been fixed by one of my Admins. He made some changes to the journal.php file and commented his hack (search for "sn hack" without the quotes) of the code. Feel free to replace your journal.php file with this one. It should work. To the author of this hack, feel free to make use of the code changes, although you may be able to clean it up (not sure. This was done rather quickly, so it could be a quick and nasty).

I make NO guarantees, though. Please make backups of your DB and whatnot. I accept no responsibility for the changed file and offer no support whatsoever.

It enabled me to get in, but look at the screen shot now

DS MrSinister 09-21-2006 01:06 AM

Quote:

Originally Posted by chadi
It enabled me to get in, but look at the screen shot now


login to the admincp goto the vbjournal setting and click save the setting should work again..

Chadi 09-21-2006 01:14 AM

That did not fix the width problem in the first column

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
 <title>$vboptions[bbtitle] - $vbphrase[journals]</title>
</head>
<body>
$header
$navbar
<!-- Journal Welcome Panel -->
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tbody>
<tr>
<td class="tcat" colspan="3" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('welcome_vbjournal')"><img id="collapseimg_welcome_vbjournal" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_welcome_vbjournal].gif" alt="" border="0" /></a>
$vbphrase[welcome_to_vbjournal]</td>
</tr>
</tbody>
<tbody id="collapseobj_welcome_vbjournal" style="$vbcollapse[collapsetobj_welcome_vbjournal]">
<tr>
<td class="thead" nowrap="nowrap" align="center">$vbphrase[latest_entries]</td>
<td class="thead" nowrap="nowrap" align="center">$vbphrase[latest_journals]</td>
</tr>
$latestbits
</tbody>
<tbody>
<tr>
</tr>
</tbody>
</table>
<!-- /Journal Welcome Panel -->
<br />
<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td align="$stylevar[left]" style="padding-bottom:3px;">
<if condition="$canhave[journal] AND !$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=startjournal"><img src="$stylevar[imgdir_button]/newjournal.gif" border="0" alt="$vbphrase[start_your_journal_now]" /></a>
<else />
<if condition="$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=gotomyjournal"><img src="$stylevar[imgdir_button]/myjournal.gif" border="0" alt="$vbphrase[go_to_your_journal]" /></a>
</if>
</if>
</td>
<td class="$stylevar[right]" style="padding-bottom:3px;">$pgnav</td>
</tr>
<tr>
<td colspan="2">
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%" style="border-bottom-width:0px">
<tbody>
<tr>
<td class="tcat" align="$stylevar[left]" width="100%">$vbphrase[journals]</td>
<td id="jlinks" class="vbmenu_control"><a href="#jlinks">$vbphrase[journal_links]</a> <script type="text/javascript"> vbmenu_register("jlinks"); </script></td>
<td id="journalsearch" class="vbmenu_control"><a href="#journalsearch">$vbphrase[search_journals]</a> <script type="text/javascript"> vbmenu_register("journalsearch"); </script></td>
</tr>
</table>
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="thead" width="15%"></td>
<td class="thead" width="70%" nowrap="nowrap">$vbphrase[journal] / $vbphrase[journal_description]</td>
<td class="thead" width="208" nowrap="nowrap" align="center">$vbphrase[last_entry]</td>
<td class="thead" width="69" nowrap="nowrap" align="center">$vbphrase[entries]</td>
<td class="thead" width="69" nowrap="nowrap" align="center">$vbphrase[comments]</td>
</tr>
</tbody>
<tbody id="collapseobj_index_journals" style="$vbcollapse[collapsetobj_index_journals]">
$journalbits
</tbody>
<if condition="$pgnav">
<tr><td class="tfoot" colspan="5" align="$stylevar[right]">
<phrase 1="$journalsstart" 2="$journalsend" 3="$journalount">$vbphrase[showing_results_x_to_y_of_z]</phrase>
</td></tr>
</if>
</table>
</td>
</tr>
<tr valign="top">
<td align="$stylevar[left]" style="padding-top:3px;">
<if condition="$canhave[journal] AND !$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=startjournal"><img src="$stylevar[imgdir_button]/newjournal.gif" border="0" alt="$vbphrase[start_your_journal_now]" /></a>
<else />
<if condition="$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=gotomyjournal"><img src="$stylevar[imgdir_button]/myjournal.gif" border="0" alt="$vbphrase[go_to_your_journal]" /></a>
</if>
</if>
</td>
<td class="$stylevar[right]" style="padding-top:3px;">$pgnav
<br />
</td>
</tr>
<tr>
<td colspan="2">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="$stylevar[left]">$vbphrase[display_options]</td>
</tr>
<tr>
<td class="thead" align="$stylevar[left]">$vbphrase[options]</td>
</tr>
<tr>
<td class="alt1" align="center">
<form action="journal.php" method="get">
<table cellpadding="0" cellspacing="1" border="0" width="auto">
<tr>
<td class="smallfont">
$vbphrase[sort_by]: <select name="sort">
<option value="journalist"<if condition="$sort=='journalist'"> select="selected"</if>>$vbphrase[journalist]</option>
<option value="journalname"<if condition="$sort=='journalname'"> selected="selected"</if>>$vbphrase[journal_name]</option>
<option value="journaldate"<if condition="$sort=='journaldate'"> selected="selected"</if>>$vbphrase[journal_start_date]</option>
<option value="journaldesc"<if condition="$sort=='journaldesc'"> selected="selected"</if>>$vbphrase[journal_description]</option>
<option value="entrycount"<if condition="$sort=='entrycount'"> selected="selected"</if>>$vbphrase[entry_count]</option>
<option value="lastentry_date"<if condition="$sort=='lastentry_date'"> selected="selected"</if>>$vbphrase[last_entry_date]</option>
<option value="lastentry"<if condition="$sort=='lastentry'"> selected="selected"</if>>$vbphrase[last_entry_title]</option>
</select>
</td>
<td class="smallfont" style="padding-left:20px">
$vbphrase[sort_order]: <select name="order">
<option value="ASC" <if condition="$order=='ASC'"> selected="selected"</if>>$vbphrase[ascending]</option>
<option value="DESC"<if condition="$order=='DESC'"> selected="selected"</if>>$vbphrase[descending]</option>
</select>
</td>
<td align="$stylevar[right]" style="padding-left:20px"><input type="submit" value="$vbphrase[show_journals]" class="button" /></td>
</tr>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<div class="vbmenu_popup" id="journalsearch_menu" style="display:none">
<form action="journal.php" method="get">
<input type="hidden" name="do" value="searchresults" />
<input type="hidden" name="st" value="3" />
  <table cellpadding="4" cellspacing="1" border="0">
  <tr><td class="thead">$vbphrase[search_journals]</td></tr>
  <tr><td class="vbmenu_option" title="nohilite"><input type="text" name="sk" value="" size="20" maxlength="50" /> $gobutton<!--input type="submit" value="Go" class="button" /--></td></tr>
<tr><td class="vbmenu_option"><a href="journal.php?do=search" title="$vbphrase[advanced_journal_search]">$vbphrase[advanced_search]</a></td></tr>
</table>
</form>
</div>
<div class="vbmenu_popup" id="jlinks_menu" style="display:none">
 <table cellpadding="4" cellspacing="1" border="0">
 <tr><td class="thead">$vbphrase[journal_links]</td></tr>
 <if condition="$canhave[journal]"><tr><td class="vbmenu_option"><a href="journal.php?do=gotomyjournal">$vbphrase[my_journal]</a></td></tr>
 <tr><td class="vbmenu_option"><a href="journal.php?do=gotomyjournal&amp;action=addentry">$vbphrase[new_entry]</a></td></tr></if>
 <tr><td class="vbmenu_option"><a href="journal.php?do=topjournals">$vbphrase[top_journals_list]</a></td></tr>
  </table>
</div>
<!-- / NAVBAR POPUP MENUS -->
<br />
<br />
</td>
</tr>
<tr>
<td colspan="2">
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('index_wov')">
<img id="collapseimg_index_wov" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_index_wov].gif" alt="" border="0"></a>
<a href="online.php">$vbphrase[currently_active_users]</a>: $totalviewing (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)</td>
</tr>
</tbody>
<tbody id="collapseobj_index_wov" style="$vbcollapse[collapsetobj_index_wov]">
<tr>
<td class="alt2" align="center"><a href="online.php"><img src="$stylevar[imgdir_misc]/whos_online.gif" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$activeusers</div></td>
</tr>
</tbody>
<tbody>
<tr>
<td class="thead" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('index_statistics')">
<img id="collapseimg_index_statistics" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_index_statistics].gif" alt="" border="0"></a><phrase 1="$vboptions[bbtitle]">$vbphrase[x_journal_statistics]</phrase></td>
</tr>
</tbody>
<tbody id="collapseobj_index_statistics" style="$vbcollapse[collapsetobj_index_statistics]">
<tr>
<td class="alt2" align="center"><img src="$stylevar[imgdir_misc]/stats.gif" /></td>
<td class="alt1"><div class="smallfont">$vbphrase[journals]: $totaljournals, $vbphrase[entries]: $total[entries], $vbphrase[comments]: $total[comments], $vbphrase[views]: $total[views]</div>
<div class="smallfont"><phrase 1="$session[sessionurl]" 2="$getlatestj[journal_id]" 3="$getlatestj[journalist]">$vbphrase[welcome_to_our_newest_journalist_x]</phrase></div>
<div class="smallfont">$vbphrase[your_current_journal_status_is]: <if condition="$bbuserinfo[private]=='1'"><b><font color="red">$vbphrase[private]</font></b><else /><if condition="$bbuserinfo[private]==''"><b><font color="orange">$vbphrase[non_existent]</font></b><else /><b><font color="green">$vbphrase[public]</font></b></if></if></div></td>
</tr>
</tbody>
<tbody>
<tr>
<td class="thead" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('index_buddies')"><img id="collapseimg_index_buddies" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_index_buddies].gif" alt="" border="0"></a><a href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_journals]</a>: $buddycount</td>
</tr>
</tbody>
<tbody id="collapseobj_index_buddies" style="$vbcollapse[collapsetobj_index_buddies]">
<tr>
<td class="alt2" align="center"><a href="profile.php?$session[sessionurl]do=editlist"><img src="$stylevar[imgdir_misc]/buddy_journals.gif" border="0" alt="" /></a></td>
<td class="alt1"><div class="smallfont">$jbuddy_listbits</div></td>
</tr>
</tbody>
<tr>
<td class="tfoot" colspan="2" align="center"><div class="smallfont"><strong><if condition="$bbuserinfo[userid]!=0"><a href="journal.php?do=markjournalsread">$vbphrase[mark_journals_read]</a><else />&nbsp;</if></strong></div></td>
</tr></td>
</tr>
</table>
</td>
</tr>
</table>
$footer
</body>
</html>

It looks normal in 1600x1200 with the above modified JOURNAL template. However, moving down smaller resolutions crushes the fist column again. I tried 150 (pixel) and tried 15%, 12%, same problem. Why?

sross 09-21-2006 06:55 AM

Hi, my queries did not run so i was going to run them in phpmyadmin but i am unsure what syntax to use> currently it is for example:

Code:

$db->query_write("
        CREATE TABLE " . TABLE_PREFIX . "journal_comments (
        comment_id int(10) NOT NULL auto_increment,
        journal_id int(10) NOT NULL,
        entry_id int(10) NOT NULL,
        commenter varchar(50) NOT NULL,
        commenter_id int(10) NOT NULL,
        comment_title varchar(100) NOT NULL,
        comment_text text NOT NULL,
        comment_date int(10) NOT NULL,
        ipaddress varchar(15) NOT NULL,
        PRIMARY KEY (comment_id))
");

But i do not think that is right for manually running the query. If someone could supply what the above should be i can mimic it to the rest. Total mysql noob.

Thanks!

Chadi 09-21-2006 10:32 AM

Anyone know how to fix that width problem in first column, or perhaps replace it with icons instead?

DS MrSinister 09-21-2006 12:47 PM

Quote:

Originally Posted by chadi
Anyone know how to fix that width problem in first column, or perhaps replace it with icons instead?


try this - The Original temp

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
        <title>$vboptions[bbtitle] - $vbphrase[journals]</title>
</head>
<body>
$header
$navbar
<!-- Journal Welcome Panel -->
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tbody>
<tr>
<td class="tcat" colspan="3" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('welcome_vbjournal')"><img id="collapseimg_welcome_vbjournal" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_welcome_vbjournal].gif" alt="" border="0" /></a>
$vbphrase[welcome_to_vbjournal]</td>
</tr>
</tbody>
<tbody id="collapseobj_welcome_vbjournal" style="$vbcollapse[collapsetobj_welcome_vbjournal]">
<tr>
<td class="thead" nowrap="nowrap" align="center">$vbphrase[latest_entries]</td>
<td class="thead" nowrap="nowrap" align="center">$vbphrase[latest_journals]</td>
</tr>
$latestbits
</tbody>
<tbody>
<tr>
</tr>
</tbody>
</table>
<!-- /Journal Welcome Panel -->
<br />

<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td align="$stylevar[left]" style="padding-bottom:3px;">
<if condition="$canhave[journal] AND !$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=startjournal"><img src="$stylevar[imgdir_button]/newjournal.gif" border="0" alt="$vbphrase[start_your_journal_now]" /></a>
<else />
<if condition="$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=gotomyjournal"><img src="$stylevar[imgdir_button]/myjournal.gif" border="0" alt="$vbphrase[go_to_your_journal]" /></a>
</if>
</if>
</td>
<td class="$stylevar[right]" style="padding-bottom:3px;">$pgnav</td>
</tr>
<tr>
<td colspan="2">
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%" style="border-bottom-width:0px">
<tbody>
<tr>
<td class="tcat" align="$stylevar[left]" width="100%">$vbphrase[journals]</td>
<td id="jlinks" class="vbmenu_control"><a href="#jlinks">$vbphrase[journal_links]</a> <script type="text/javascript"> vbmenu_register("jlinks"); </script></td>
<td id="journalsearch" class="vbmenu_control"><a href="#journalsearch">$vbphrase[search_journals]</a> <script type="text/javascript"> vbmenu_register("journalsearch"); </script></td>
</tr>
</table>
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="thead">&nbsp;</td>
<td class="thead" nowrap="nowrap">$vbphrase[journal] / $vbphrase[journal_description]</td>
<td class="thead" width="208" nowrap="nowrap" align="center">$vbphrase[last_entry]</td>
<td class="thead" width="69" nowrap="nowrap" align="center">$vbphrase[entries]</td>
<td class="thead" width="69" nowrap="nowrap" align="center">$vbphrase[comments]</td>
</tr>
</tbody>
<tbody id="collapseobj_index_journals" style="$vbcollapse[collapsetobj_index_journals]">
$journalbits
</tbody>
<if condition="$pgnav">
<tr><td class="tfoot" colspan="5" align="$stylevar[right]">
<phrase 1="$journalsstart" 2="$journalsend" 3="$journalount">$vbphrase[showing_results_x_to_y_of_z]</phrase>
</td></tr>
</if>
</table>
</td>
</tr>
<tr valign="top">
<td align="$stylevar[left]" style="padding-top:3px;">
<if condition="$canhave[journal] AND !$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=startjournal"><img src="$stylevar[imgdir_button]/newjournal.gif" border="0" alt="$vbphrase[start_your_journal_now]" /></a>
<else />
<if condition="$bbuserinfo['journal_id']">
<a href="journal.php?$session[sessionurl]do=gotomyjournal"><img src="$stylevar[imgdir_button]/myjournal.gif" border="0" alt="$vbphrase[go_to_your_journal]" /></a>
</if>
</if>
</td>
<td class="$stylevar[right]" style="padding-top:3px;">$pgnav
<br />
</td>
</tr>
<tr>
<td colspan="2">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="$stylevar[left]">$vbphrase[display_options]</td>
</tr>
<tr>
<td class="thead" align="$stylevar[left]">$vbphrase[options]</td>
</tr>
<tr>
<td class="alt1" align="center">
<form action="journal.php" method="get">
<table cellpadding="0" cellspacing="1" border="0" width="auto">
<tr>
<td class="smallfont">
$vbphrase[sort_by]: <select name="sort">
<option value="journalist"<if condition="$sort=='journalist'"> select="selected"</if>>$vbphrase[journalist]</option>
<option value="journalname"<if condition="$sort=='journalname'"> selected="selected"</if>>$vbphrase[journal_name]</option>
<option value="journaldate"<if condition="$sort=='journaldate'"> selected="selected"</if>>$vbphrase[journal_start_date]</option>
<option value="journaldesc"<if condition="$sort=='journaldesc'"> selected="selected"</if>>$vbphrase[journal_description]</option>
<option value="entrycount"<if condition="$sort=='entrycount'"> selected="selected"</if>>$vbphrase[entry_count]</option>
<option value="lastentry_date"<if condition="$sort=='lastentry_date'"> selected="selected"</if>>$vbphrase[last_entry_date]</option>
<option value="lastentry"<if condition="$sort=='lastentry'"> selected="selected"</if>>$vbphrase[last_entry_title]</option>
</select>
</td>
<td class="smallfont" style="padding-left:20px">
$vbphrase[sort_order]: <select name="order">
<option value="ASC" <if condition="$order=='ASC'"> selected="selected"</if>>$vbphrase[ascending]</option>
<option value="DESC"<if condition="$order=='DESC'"> selected="selected"</if>>$vbphrase[descending]</option>
</select>
</td>
<td align="$stylevar[right]" style="padding-left:20px"><input type="submit" value="$vbphrase[show_journals]" class="button" /></td>
</tr>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<div class="vbmenu_popup" id="journalsearch_menu" style="display:none">
<form action="journal.php" method="get">
<input type="hidden" name="do" value="searchresults" />
<input type="hidden" name="st" value="3" />
                <table cellpadding="4" cellspacing="1" border="0">

                <tr><td class="thead">$vbphrase[search_journals]</td></tr>
                <tr><td class="vbmenu_option" title="nohilite"><input type="text" name="sk" value="" size="20" maxlength="50" /> $gobutton<!--input type="submit" value="Go" class="button" /--></td></tr>
<tr><td class="vbmenu_option"><a href="journal.php?do=search" title="$vbphrase[advanced_journal_search]">$vbphrase[advanced_search]</a></td></tr>
</table>
</form>
</div>
<div class="vbmenu_popup" id="jlinks_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead">$vbphrase[journal_links]</td></tr>
        <if condition="$canhave[journal]"><tr><td class="vbmenu_option"><a href="journal.php?do=gotomyjournal">$vbphrase[my_journal]</a></td></tr>
        <tr><td class="vbmenu_option"><a href="journal.php?do=gotomyjournal&amp;action=addentry">$vbphrase[new_entry]</a></td></tr></if>
        <tr><td class="vbmenu_option"><a href="journal.php?do=topjournals">$vbphrase[top_journals_list]</a></td></tr>
                </table>
</div>

<!-- / NAVBAR POPUP MENUS -->
<br />
<br />
</td>
</tr>
<tr>
<td colspan="2">
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('index_wov')">
<img id="collapseimg_index_wov" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_index_wov].gif" alt="" border="0"></a>
<a href="online.php">$vbphrase[currently_active_users]</a>: $totalviewing (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)</td>
</tr>
</tbody>
<tbody id="collapseobj_index_wov" style="$vbcollapse[collapsetobj_index_wov]">
<tr>
<td class="alt2" align="center"><a href="online.php"><img src="$stylevar[imgdir_misc]/whos_online.gif" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$activeusers</div></td>
</tr>
</tbody>
<tbody>
<tr>
<td class="thead" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('index_statistics')">
<img id="collapseimg_index_statistics" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_index_statistics].gif" alt="" border="0"></a><phrase 1="$vboptions[bbtitle]">$vbphrase[x_journal_statistics]</phrase></td>
</tr>
</tbody>
<tbody id="collapseobj_index_statistics" style="$vbcollapse[collapsetobj_index_statistics]">
<tr>
<td class="alt2" align="center"><img src="$stylevar[imgdir_misc]/stats.gif" /></td>
<td class="alt1"><div class="smallfont">$vbphrase[journals]: $totaljournals, $vbphrase[entries]: $total[entries], $vbphrase[comments]: $total[comments], $vbphrase[views]: $total[views]</div>
<div class="smallfont"><phrase 1="$session[sessionurl]" 2="$getlatestj[journal_id]" 3="$getlatestj[journalist]">$vbphrase[welcome_to_our_newest_journalist_x]</phrase></div>
<div class="smallfont">$vbphrase[your_current_journal_status_is]: <if condition="$bbuserinfo[private]=='1'"><b><font color="red">$vbphrase[private]</font></b><else /><if condition="$bbuserinfo[private]==''"><b><font color="orange">$vbphrase[non_existent]</font></b><else /><b><font color="green">$vbphrase[public]</font></b></if></if></div></td>
</tr>
</tbody>
<tbody>
<tr>
<td class="thead" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('index_buddies')"><img id="collapseimg_index_buddies" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_index_buddies].gif" alt="" border="0"></a><a href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_journals]</a>: $buddycount</td>
</tr>
</tbody>
<tbody id="collapseobj_index_buddies" style="$vbcollapse[collapsetobj_index_buddies]">
<tr>
<td class="alt2" align="center"><a href="profile.php?$session[sessionurl]do=editlist"><img src="$stylevar[imgdir_misc]/buddy_journals.gif" border="0" alt="" /></a></td>
<td class="alt1"><div class="smallfont">$jbuddy_listbits</div></td>
</tr>
</tbody>
<tr>
<td class="tfoot" colspan="2" align="center"><div class="smallfont"><strong><if condition="$bbuserinfo[userid]!=0"><a href="journal.php?do=markjournalsread">$vbphrase[mark_journals_read]</a><else />&nbsp;</if></strong></div></td>
</tr></td>
</tr>
</table>
</td>
</tr>
</table>
$footer
</body>
</html>


mikeclarke 09-24-2006 03:36 PM

Quote:

Originally Posted by Firestar.chkn
Hi Everyone,

It's been fixed by one of my Admins. He made some changes to the journal.php file and commented his hack (search for "sn hack" without the quotes) of the code. Feel free to replace your journal.php file with this one. It should work. To the author of this hack, feel free to make use of the code changes, although you may be able to clean it up (not sure. This was done rather quickly, so it could be a quick and nasty).

I make NO guarantees, though. Please make backups of your DB and whatnot. I accept no responsibility for the changed file and offer no support whatsoever.

Thank you very much for the fix.

Firestar.chkn 09-24-2006 07:22 PM

Pleasure Guys.

I'm now getting another error:
Quote:

Parse error: syntax error, unexpected T_PRIVATE, expecting ']' in /var/www/forums.prophecy.co.za/journal.php(567) : eval()'d code on line 188
Can anyone help with this error? If not, I'll get someone to try and look at it and post the fix here. I'm not getting SQL errors... yet :(


All times are GMT. The time now is 02:38 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.02888 seconds
  • Memory Usage 1,868KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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