Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 03-18-2007, 05:17 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot for this

This is what i use as my JOURNAL template i believe it should work if you copy and paste this.

PHP 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="$journalsstart2="$journalsend3="$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="$numberregistered2="$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
Reply With Quote
  #22  
Old 04-26-2007, 12:43 AM
ABeautifulBrown's Avatar
ABeautifulBrown ABeautifulBrown is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mine says like 48 is the problem, the template there is journal_deletion_journal_confirmation
but I don't see anything in it wrong
Reply With Quote
  #23  
Old 05-02-2007, 08:38 PM
rabbits slayer rabbits slayer is offline
 
Join Date: Mar 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ABeautifulBrown View Post
mine says like 48 is the problem, the template there is journal_deletion_journal_confirmation
but I don't see anything in it wrong
Same here. Help??
Reply With Quote
  #24  
Old 05-15-2007, 03:42 PM
Saulie Saulie is offline
 
Join Date: Aug 2006
Location: London
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same as the previous two members, I get the sam error on line 48. Help please? =)
Reply With Quote
  #25  
Old 03-04-2009, 02:31 AM
ArchangelX ArchangelX is offline
 
Join Date: Feb 2006
Location: Oahu, HI
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if you guys care at all, but the fix for line 48 problem is in this post:

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

Couldn't figure it out either...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05038 seconds
  • Memory Usage 2,377KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete