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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-20-2006, 06:56 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, use this as your journal_journalpage template

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - Reptile Blogs - <if condition="$journalinfo[journalname]">$journalinfo[journalname]<else /><phrase 1="$journalinfo[journalist]">$vbphrase[xs_journal]</phrase></if></title>
</head>
<body>
$header
$navbar

<!-- Start Locked Status -->
<if condition="$journalinfo[status]==1">
<table bgcolor="#FFFFFF" width="100%" border="1">
<tr>
<td align="center"><font color="#FF0000" size="4"><b>$vbphrase[this_journal_is_locked]</b></font></td>
</tr>
</table>
</if>
<!-- End Locked Status -->

<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">

<!-- Start Blog Information Table -->
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%" style="border-bottom-width:0px">
<tr>
<td class="tcat" align="$stylevar[left]" width="100%">$vbphrase[journal_information]</td>
<td id="journalopt" class="vbmenu_control"><a href="#journalopt">$vbphrase[journal_tools]</a> <script type="text/javascript"> vbmenu_register("journalopt"); </script></td>
<td id="journalsearch" class="vbmenu_control"><a href="#journalsearch">$vbphrase[search_this_journal]</a> <script type="text/javascript"> vbmenu_register("journalsearch"); </script></td>
<if condition="$can[rate]"><td id="journalrate" class="vbmenu_control"><a href="#journalrate"><if condition="$journalrating==0">$vbphrase[rate_journal]<else />$vbphrase[rating]: <img src="$stylevar[imgdir_rating]/rating_$journalrating.gif" border="0" /></if></a> <script type="text/javascript"> vbmenu_register("journalrate"); </script></td></if>
</tr>
</table>
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="alt2" nowrap="nowrap" align="top">
<if condition="!empty($avatarurl)">
<a href="member.php?u=$journalinfo[journalist_id]"><img src="$avatarurl" border="0" alt="<phrase 1="$journalinfo[journalist]">$vbphrase[xs_avatar]</phrase>" /></a>
<else />
<div class="smallfont">$vbphrase[no_avatar_specified]</div>
</if>
</td>
<td class="alt1" nowrap="nowrap" width="100%">
<table width="100%">
<tr>
<td width="50%">
<div class="smallfont">
<b>Blogger</b>: <a href="member.php?userid=$journalinfo[journalist_id]">$journalinfo[journalist]</a>
</div>
</td>
<td width="50%">
<div class="smallfont">
<b>$vbphrase[status]</b>: <if condition="$journalinfo[private]=='1'"><b><font color="red">$vbphrase[private]</font></b><else /><b><font color="green">$vbphrase[public]</font></b></if>
</div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
<b>$vbphrase[entries]</b>: $journalinfo[entrycount] ($vbphrase[private]: $private[count])
</div>
</td>
<td>
<div class="smallfont">
<b>$vbphrase[comments]</b>: $journalinfo[commentcount]
</div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
<b>$vbphrase[start_date]</b>: $journal[startdate]
</div>
</td>
<td>
<div class="smallfont">
<b>$vbphrase[last_update]</b>: <if condition="$journalinfo[entrycount]==0">$journal[startdate]<else />$journalinfo[lastupdated]</if>
</div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
<b>Views</b>: $journalinfo[journalviews]
</div>
</td>
<td>
<div class="smallfont">
<if condition="$bbuserinfo[usergroupid]=='6'"><b>$vbphrase[start_ip]</b>: $journalinfo[ipaddress]<else />&nbsp;</if>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="smallfont">
<if condition="$journalinfo[journaldesc]"><b>$vbphrase[description]</b>: $journalinfo[journaldesc]</if>
</div>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<!-- End Blog Information Table -->
<br />
<!-- Start Columns Table -->
<table border="0" width="100%" align="center">
<tr>
<!-- peterska2 left column -->
<if condition="$post[fieldX]=='left'">
<td valign="top" width="25%">
<table class="tborder" border="0" width="100%" align="center">
<!-- left column code-->
Left column
<!-- / left column code -->
</table>
</td>
</if>
<!-- / peterska2 left column -->
<td>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" align="center">   
<table width="100%" border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr valign="bottom">
<td align="left" style="padding-bottom:3px;">
<if condition="$bbuserinfo[userid]==$journalinfo[journalist_id] AND $journalinfo[status]!=1"><form method="post" action="blogs.php?do=addentry&amp;j=$j">
<a href="blogs.php?$session[sessionurl]do=addentry&amp;j=$j"><img border="0" src="$stylevar[imgdir_button]/newentry.gif" width="100" height="26" alt="$vbphrase[new_entry]" /></a>
</if>
</td>
<td align="right" style="padding-bottom:3px;">
$pgnav
</td>
</tr>
<tr>
<td colspan="2" align="center">
$entrybits
</td>
</tr>
<tr valign="top">
<td align="left" style="padding-top:3px;">
<if condition="$bbuserinfo[userid]==$journalinfo[journalist_id] AND $journalinfo[status]!=1"><form method="post" action="blogs.php?do=addentry&amp;j=$j">
<a href="blogs.php?$session[sessionurl]do=addentry&amp;j=$j"><img border="0" src="$stylevar[imgdir_button]/newentry.gif" width="100" height="26" alt="$vbphrase[new_entry]" /></a>
</if>
</td>
<td align="right" style="padding-top:3px;">
$pgnav
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<!-- peterska2 right column -->
<if condition="$post[fieldX]=='right'">
<td valign="top" width="25%">
<table class="tborder" border="0" width="100%" align="center">
<!-- right column code -->
Right Column
<!-- / right column code -->
</table>
</td>
</if>
<!-- / peterska2 side column -->
</tr>
</table>
<!-- End Column Table -->
<br /><br />
<div class="vbmenu_popup" id="journalopt_menu" style="display:none">
<table cellpadding="4" cellspacing="0" border="0" 
style="border-collapse: collapse" bordercolor="#111111">
<if condition="$canview[comments]">
<tr>
<td class="thead">$vbphrase[journal_tools]</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=showcomments&amp;j=$j">$vbphrase[view_comments]</a></td>
</tr>
</if>
<tr>
<td class="thead">$vbphrase[download]</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=downloadjournal&amp;j=$j&amp;type=txt">$vbphrase[txt_format]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=downloadjournal&amp;j=$j&amp;type=xml">$vbphrase[xml_format]</a></td>
</tr>
<if condition="$bbuserinfo[usergroupid]==6">
<tr>
<td class="thead">$vbphrase[admin_tools]</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=lockjournal&amp;j=$j"><if condition="$journalinfo[status]==1">$vbphrase[unlock_journal]<else />$vbphrase[lock_journal]</if></a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=editjournal&amp;j=$j">$vbphrase[edit_journal_settings]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=delete&amp;j=$j&amp;t=j">$vbphrase[delete_journal]</a></td>
</tr>
</if>
<if condition="$bbuserinfo[userid]==$journalinfo[journalist_id] AND $journalinfo[status]!=1">
<tr>
<td class="thead">$vbphrase[journalist_options]</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=addentry&amp;j=$j">$vbphrase[new_entry]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=editjournal&amp;j=$j">$vbphrase[edit_journal_settings]</a></td>
</tr>
<if condition="$candeleteown[journal]">
<tr>
<td class="vbmenu_option"><a href="blogs.php?do=delete&amp;j=$j&amp;t=j">$vbphrase[delete_journal]</a></td>
</tr>
</if>
</if>
</table>
</div>
<div class="vbmenu_popup" id="journalsearch_menu" style="display:none">
<form action="blogs.php" method="get">
<input type="hidden" name="do" value="searchresults" />
<input type="hidden" name="st" value="6" />
<input type="hidden" name="j" value="$j" />
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[search_this_journal]</td></tr>
<tr><td class="vbmenu_option" title="nohilite"><input type="text" name="sk" value="" size="20" maxlength="50" /> <input type="submit" value="Go" class="button" /></td></tr>
<tr><td class="vbmenu_option"><a href="blogs.php?do=search" title="$vbphrase[advanced_journal_search]">$vbphrase[advanced_search]</a></td></tr>
</table>
</form>
</div>
<div class="vbmenu_popup" id="journalrate_menu" style="display:none">
<if condition="$show[voteform]">
<form action="blogs.php?do=ratejournal" method="post">
</if>
<table cellpadding="4" cellspacing="1" border="0">
<if condition="$show[voteform]">
<tr>
<td class="thead">$vbphrase[rate_this_journal]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="rating" value="5" />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="rating" value="4" />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="rating" value="3" />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="rating" value="2" />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="rating" value="1" />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="j" value="$j" />
<input type="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
<else />
<tr>
<td class="alt1" nowrap="nowrap"><div class="smallfont">$vbphrase[already_rated]</div></td>
</tr>
</if>
</table>
<if condition="$show[voteform]">
</form>
</if>
</div>
<!-- / NAVBAR POPUP MENUS -->
$footer
</body>
There are two instances of $post[fieldX]. You need to replace the X with the field number that you are using. Also, use radio buttons not checkboxes, as I have coded it to check for the options 'left' and 'right' all in lower case, so please ensure that the options match this exactly.

If this doesn't work, let me know and I'll have another look at it.
Reply With Quote
 


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 03:04 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.19697 seconds
  • Memory Usage 2,972KB
  • Queries Executed 12 (?)
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
  • (4)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (18)post_thanks_box
  • (18)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (18)post_thanks_postbit_info
  • (18)postbit
  • (18)postbit_onlinestatus
  • (18)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • 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_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete