SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

[SiNaN]

Yeah. I forgot that we included it by default in SSI.php. Thanks for reminding. ;)
Former SMF Core Developer | My Mods | SimplePortal

vivithemage

no problem, and I also have the enabled portal option, so I can see the blocks within my forum :

www.pt2hq.com

Gà Mái

Quote from: Gà Mái on December 03, 2008, 10:09:44 AM
I can not add block, helpppp !!!

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/d1343p02/public_html/Sources/SPortalAdmin1-1.php
line: 398

Note: Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

Many thanksss!!
I still have this problem. Some block are ok, but some block have this problem so i can not add.
Can anyone help me!
Thanks!
-- I love SMF --

Burke ♞ Knight

1. What language is your site running?
2. What blocks are giving you the errors?

SA™

#1604
hello i not shore about this but here goes there seems to be a conflict with sp 2.1.1 and my multiplayer mod

with sp 2.1.1 installed when i goto multiplayer i get this

Fatal error: Cannot redeclare template_block() (previously declared in C:\wdm\htdocs\test\Sources\Load.php(1730) : eval()'d code:67) in C:\wdm\htdocs\test\Sources\Load.php(1730) : eval()'d code on line 1189

without sp 2.1.1 installed it works perfect any ideas

thanks wdm2005


never mind i had one of the game templates called block renamed it and it works:)
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Gà Mái

Quote from: BurkeKnight on December 03, 2008, 12:11:23 PM
1. What language is your site running?
2. What blocks are giving you the errors?
Thank for your attention!
It's ok now. i use wrong font :D (My font is not supported)
-- I love SMF --

psynx

hello,

gudDay.

just a little concern, is there a way i can fake the number of members ang guest viewing the forum without affecting the real or original members in my forum? pls? O:)

Burke ♞ Knight

Quote from: psynx on December 03, 2008, 11:48:02 PM
hello,

gudDay.

just a little concern, is there a way i can fake the number of members ang guest viewing the forum without affecting the real or original members in my forum? pls? O:)

Hmmm.... Sounds more like a SMF issue, not a SimplePortal issue.

[SiNaN]

psynx:

You can do that by changing the who's online variables in sp_whosOnline() function in SPortal1-1.php file.
Former SMF Core Developer | My Mods | SimplePortal

Gadget..

I love this mod, but I have only one question...I use a theme & I seem to be missing a function from the default theme in comparision.  I mean when I am on the default theme & I view threads posted by users I have the quick link button to click "ADD AN ARTICLE" & it quickly adds it to my portal but if I am on other themes this button does not show anymore.  Seems I need to do some template editing, & ALL I know is that I need some type of code that has something like this in it...

/index.php?sa=addarticle;message=72;return=61.0;sesc=ef4e3a569ef6d17d4cb64efa7bed8370

but I could not find ?sa=addarticle this in my templates...Or else I would have added it...Can you help me make it so this button shows on other themes,...Thank you...

fext

Hi Gadget,

I think you need to do the following (taken from the manual install instructions on mod page)

Please note
You will need to check the theme directory you are using so instead of:
Quote./Themes/default/Display.template.php

You would need to browse to your Theme directory:
Quote./Themes/THEMENAME/Display.template.php

Also make sure you make a back up of any files you modify.

Quote
./Themes/default/Display.template.php
Find
// Show the page index... "Pages: [1]".

Replace with
// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);

// Show the page index... "Pages: [1]".


Gadget..

#1611
Quote from: Youngiiie on December 05, 2008, 04:25:09 AM
Hi Gadget,

I think you need to do the following (taken from the manual install instructions on mod page)

Please note
You will need to check the theme directory you are using so instead of:
Quote./Themes/default/Display.template.php

You would need to browse to your Theme directory:
Quote./Themes/THEMENAME/Display.template.php

Also make sure you make a back up of any files you modify.

Quote
./Themes/default/Display.template.php
Find
// Show the page index... "Pages: [1]".



Well thanks for the response!!!  I did not see the manual install instructions on mod page, sorry I am new here... However, I also could not find "Find
// Show the page index... "Pages: [1]"."

Below I will place my whole display.template.php code so you can see & maybe if you are willing you can try to help me further.

<?php
// Version: 1.1; Display

function template_main()
{
  global
$context, $settings, $options, $txt, $scripturl, $modSettings;

 
 
// Show the anchor for the top and for the first message. If the first message is new, say so.
 
echo '
<a name="top"></a>
<a name="msg'
, $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';



 
// Is this topic also a poll?
 
if ($context['is_poll'])
  {
     echo
'
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
  <tr>
     <td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
        <img src="'
, $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
     </td>
  </tr>
  <tr>
     <td width="5%" valign="top" class="windowbg"><b>'
, $txt['smf21'], ':</b></td>
     <td class="windowbg">
        '
, $context['poll']['question'];
     if (!empty(
$context['poll']['expire_time']))
        echo
'
              &nbsp;('
, ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';

     
// Are they not allowed to vote but allowed to view the options?
     
if ($context['poll']['show_results'] || !$context['allow_vote'])
     {
        echo
'
        <table>
           <tr>
              <td style="padding-top: 2ex;">
                 <table border="0" cellpadding="0" cellspacing="0">'
;

           
// Show each option with its corresponding percentage bar.
       
foreach ($context['poll']['options'] as $option)
           echo
'
                    <tr>
                       <td style="padding-right: 2ex;'
, $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
                       <td nowrap="nowrap">'
. $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
                    </tr>'
;

        echo
'
                 </table>
              </td>
              <td valign="bottom" style="padding-left: 15px;">'
;

       
// If they are allowed to revote - show them a link!
       
if ($context['allow_change_vote'])
           echo
'
              <a href="'
, $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';

       
// If we're viewing the results... maybe we want to go back and vote?
       
if ($context['poll']['show_results'] && $context['allow_vote'])
           echo
'
                 <a href="'
, $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';

       
// If they're allowed to lock the poll, show a link!
       
if ($context['poll']['lock'])
           echo
'
                 <a href="'
, $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

       
// If they're allowed to edit the poll... guess what... show a link!
       
if ($context['poll']['edit'])
           echo
'
                 <a href="'
, $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';

        echo
'
              </td>
           </tr>'
, $context['allow_poll_view'] ? '
           <tr>
              <td colspan="2"><b>'
. $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
           </tr>'
: '', '
        </table><br />'
;
     }
     
// They are allowed to vote! Go to it!
     
else
     {
        echo
'
        <form action="'
, $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
           <table>
              <tr>
                 <td colspan="2">'
;

       
// Show a warning if they are allowed more than one option.
       
if ($context['poll']['allowed_warning'])
           echo
'
                    '
, $context['poll']['allowed_warning'], '
                 </td>
              </tr><tr>
                 <td>'
;

       
// Show each option with its button - a radio likely.
       
foreach ($context['poll']['options'] as $option)
           echo
'
                    '
, $option['vote_button'], ' ', $option['option'], '<br />';

        echo
'
                 </td>
                 <td valign="bottom" style="padding-left: 15px;">'
;

       
// Allowed to view the results? (without voting!)
       
if ($context['allow_poll_view'])
           echo
'
                    <a href="'
, $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';

       
// Show a link for locking the poll as well...
       
if ($context['poll']['lock'])
           echo
'
                    <a href="'
, $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

       
// Want to edit it? Click right here......
       
if ($context['poll']['edit'])
           echo
'
                    <a href="'
, $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';

           echo
'
                 </td>
              </tr><tr>
                 <td colspan="2"><input type="submit" value="'
, $txt['smf23'], '" /></td>
              </tr>
           </table>
           <input type="hidden" name="sc" value="'
, $context['session_id'], '" />
        </form>'
;
     }

     echo
'
     </td>
  </tr>
</table>'
;
  }


 
// Does this topic have some events linked to it?
 
if (!empty($context['linked_calendar_events']))
  {
     echo
'
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
     <tr>
           <td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
                 '
, $txt['calendar_linked_events'], '
           </td>
     </tr>
     <tr>
           <td width="5%" valign="top" class="windowbg">
                 <ul>'
;
     foreach (
$context['linked_calendar_events'] as $event)
        echo
'
                       <li>
                          '
, ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
                       </li>'
;
     echo
'
                 </ul>
           </td>
     </tr>
</table>'
;
  }

  echo
'
<table width="100%" cellpadding="0" cellspacing="4" border="0">
              </td>
              <td align="left" style="font-size: smaller;">'
;

 
$buttonArray = array();
  if (
$context['can_reply'])
     
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
 
if (
$context['can_reply'])
     
$buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new_topic.gif" alt="' . $txt[33] . '" border="0" />' : $txt[33]) . '</a>';
 
  echo
implode($context['menu_separator'], $buttonArray);


  echo
'</td>
<td align="right" style="padding-right: 1ex;">
<td align="right" class="middletext2">'
, $txt[139], ': ', $context['page_index'];// Show a "go down" link?
 
if (!empty($modSettings['topbottomEnable']))
     echo
$context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>';  echo '</td>


           </tr>
       
     </td>
  </tr>
</table>'
;  
     
 
// Show the topic information - icon, subject, etc.
 
echo '

<div class="tborder" >
<table width="100%" cellpadding="5" cellspacing="1" border="0" style="border-bottom: 0;">
     <tr>
                       
           <td class="catbg" valign="middle" width="74%" style="padding-left: 6px;" id="top_subject">
                 <font style="font-size: 8pt;">'
, $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
           </font></td>
<td class="catbg" id="threadtools" nowrap="nowrap">
     <a href="'
, $scripturl, '#quicklinks2" onClick="return overlay(this, \'quicklinks2\',\'bottom\')">',$txt['smf11112'],'<img src="' . $settings['images_url'] .  '/menu_open.gif" /></a>
           <!--Do not remove outer most DIV tag with id="quicklinks2"-->
     <DIV id="quicklinks2" style="position:absolute; border: 2px solid #3d3d3d; background-color: black; width: 200px; padding: 2px; display:none">
  <table width="100%" border="0" cellpadding="0" cellspacing="1">

'
;
  echo
'
     <tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="'
. $settings['images_url'] . '/printer.gif">&nbsp;<a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank" alt="' . $txt[465] . '">' .$txt[465] . '</a></td></tr>';
     if (
$context['user']['is_guest'])
     echo
'
     <tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="'
. $settings['images_url'] . '/subscribe.gif">&nbsp;<a href="', $scripturl, '?action=register">',$txt[80069],'</a></td></tr>';
     
     if (
$context['can_send_topic'])
     {
     echo
'   <tr><td style="border-top:1px solid #ffffff;"  valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/sendtofriend.gif">&nbsp;<a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0" alt="' . $txt[707] . '">',$txt[707],'</a></td></tr>';      
     }
     if (
$context['can_add_poll'])
     {
     echo
'<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' . $settings['images_url'] . '/addpoll.gif">&nbsp;<a href="' . $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">',$txt['add_poll'],'</a></td></tr>';
     }
     if (
$context['can_mark_notify'])
     {
     echo
'<tr><td style="border-top:1px solid #ffffff;"  valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/subscribe.gif">&nbsp;<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');" alt="' . $txt[131] . '">' . $txt[131] . '</a></td></tr>';
     }
   


echo
'
  </table>
     <div class="catbg" align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks2\'); return false"><img align="absmiddle" src="'
, $settings['images_url'], '/kapat.gif" border="0" /></a></div>

     </DIV>
  </td>
 
     <td class="catbg" id="threadsearch" nowrap="nowrap" valign="middle" width="84%" style="padding-left: 6px;" id="top_subject">
        <a href="'
, $scripturl, '?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">', $txt['smf11113'],'<img src="' . $settings['images_url'] .  '/menu_open.gif" /></a>
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: black; width: 250px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">'
, $txt['smf11113'],'</td>
</tr>
<tr>
        <td class="windowbg" title="">
<form action="'
, $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">

           <div class="middletext"><input type="text" name="search" value="" size="25" tabindex="1001"/>

           
        <input type="submit" class="button" value="Go!" tabindex="1004" /></div>
        <input type="hidden" name="advenced" value="0"  size="25" tabindex="1001">
        </td>
     </tr>
     
        <tr>         <td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"    class="windowbg"><a href="'
, $scripturl, '?action=search;advanced" accesskey="4" rel="nofollow">',$txt['smf298'], '</a></td>
     </tr></form>
     </table>
     
<div align="right" class="catbg" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false"><img align="absmiddle" src="'
, $settings['images_url'], '/kapat.gif" border="0" /></a></div>

</DIV>
     </td>
     </tr>'
;
  if (!empty(
$settings['display_who_viewing']))
  {
     echo
'
     <tr>
           <td colspan="3" class="smalltext">'
;

     
// Show just numbers...?
     
if ($settings['display_who_viewing'] == 1)
           echo
count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
     
// Or show the actual people viewing the topic?
     
else
        echo empty(
$context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');

     
// Now show how many guests are here too.
     
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
           </td>
     </tr>'
;
  }

  echo
'
</table>'
;   //if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
     
echo '
<form action="'
, $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';

  echo
'
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">'
;

 
// Get all the messages...
 
while ($message = $context['get_message']())
  {
     echo
'
  <tr><td style="padding: 1px 1px 0 1px;">'
;

     
// Show the message anchor and a "new" anchor if this message is new.
     
if ($message['id'] != $context['first_message'])
        echo
'
     <a name="msg'
, $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';

     echo
'
     <table cellpadding="3" cellspacing="0" border="0" width="100%">
        <tr><td class="'
, $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';

     
// Show information about the poster of this message.
     
echo '
           <table width="100%" cellpadding="5" cellspacing="0">
              <tr>
                 <td valign="top" width="22%" rowspan="2" class="windowbg" style="overflow: hidden;"><center>
                    '
;                  
  echo
' <div class="smalltext">';
// Don't show these things for guests.
     
if (!$message['member']['is_guest'])
     {
 
     if(
$message['member']['group'] == 'Banned') { $banned = true;
echo
'<span style="text-decoration:line-through">'; } else $banned = false; echo '<a href="', $message['member']['href'], '" onClick="return overlay(this, \'profil_', $message['member']['name'], '\',\'bottom\')"><center><img src="', $settings['images_url'], '/animated_arrow.gif" alt="profil" border="0"><b>', $message['member']['name'], '</b></a><DIV id="profil_', $message['member']['name'], '" style="position:absolute; border: 1px solid #000000; width: 210px; padding: 1px; display:none" bordercolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="windowbg">
<tr>
<td class="titlebg"  width="97%" class="titlebg" align="left">'
, $message['member']['name'], '</td>
<td class="titlebg"  width="3%" class="titlebg"><a href="#" onClick="overlayclose(\'profil_'
, $message['member']['name'], '\'); return false"><img align="absmiddle" src="', $settings['images_url'], '/kapat.gif" border="0" /></a></td>

</tr>
<tr>
<td valign="middle" align="left">
<a href="'
, $message['member']['href'], '"><font size="2"><span style="font-size: 8pt">',$txt['profil1'], '</span></a>
</td>
</tr>

<tr>
<td valign="middle" align="left">
<A href="'
, $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '"><span style="font-size: 8pt">',$txt['profil2'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<A href="'
, $scripturl, '?action=profile;u=', $message['member']['id'], ';sa=showPosts"><span style="font-size: 8pt">',$txt['profil3'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<a href="'
, $scripturl, '?action=buddy;u=', $message['member']['id'], ';sesc=', $context['session_id'], '"><span style="font-size: 8pt">',$txt['profil4'], '</span></a>


</td>
</tr>
</table>
</DIV><br />'
, $banned ? '</span>' : '', '
                                                       '
;
if(
$banned)
        echo
'
              <b>Banned-Yasakli</b><br />'
;

}

// Show the member's custom title, if they have one.
               
if (isset($message['member']['title']) && $message['member']['title'] != '' && !$banned)
                      echo
'<Center>
                                                               '
, $message['member']['title'], '</Center>';


// Show the member's primary group (like 'Administrator') if they have one.
     
if (isset($message['member']['group']) && $message['member']['group'] != '')
        echo
'
                       '
, $message['member']['group'], '<br />';

     
// Don't show these things for guests.
     
if (!$message['member']['is_guest'])
     {
 
       
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
       
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
           echo
'
                       '
, $message['member']['post_group'], '<br />';
        echo
'
                       '
, $message['member']['group_stars'], '<br />';
// Show avatars, images, etc.?
       
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']))
           if (empty(
$message['member']['avatar']['image']))
           echo
'<div style="overflow: auto; width: 100%;"><img src="', $settings['images_url'], '/noavatar.gif" alt="" /></div><br />';
           else
           echo
'<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'],'</div><br />';

       
// Show their personal text?
       
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
           echo
'<marquee><b>', $message['member']['blurb'], '</b></marquee>
                       <br />'
;      

     

       
// Is karma display enabled?  Total or +/-?
       
if ($modSettings['karmaMode'] == '1')
           echo
'
                       <br />
                       '
, $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
        elseif (
$modSettings['karmaMode'] == '2')
           echo
'
                       <br />
                       '
, $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

       
// Is this user allowed to modify this member's karma?
       
if ($message['member']['karma']['allow'])
           echo
'
                       <a href="'
, $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
                       <a href="'
, $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';

 
// Don't show these things for guests.
     
if (!$message['member']['is_guest'])
     {      
// Show online and offline buttons?
       
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
           echo
'
                       '
, $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';

// Don't show these things for guests.
     
if (!$message['member']['is_guest'])
     {        
// Show the member's gender icon?
       
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
           echo
'
                       '
, $txt[231], ': ', $message['member']['gender']['image'], '<br />';

       
// Show how many posts they have made.
       
echo '
                       '
, $txt[26], ': ', $message['member']['posts'], '<br />
                       '
;

} echo
' ';   // Favorites by TosTos
if (empty($message['member']['options']['Takimim'])) {
           
$message['member']['options']['Takimim']='Other';
        }
        echo
'<fieldset>
           <legend><b>Favorite Gaming System</b></legend>
          Gaming System : '
, $message['member']['options']['Takimim'] , ' <img src="', $settings['images_url'], '/', $message['member']['options']['Takimim'], '.gif" /> </fieldset>';        
if (empty(
$message['member']['options']['Burcum'])) {
           
$message['member']['options']['Burcum']='Hiden';
        }
        echo
'<fieldset>
           <legend><b>'
,$txt['smf11131'],'</b></legend>
          '
,$txt['smf11133'],' : ', $message['member']['options']['Burcum'] , ' <img src="', $settings['images_url'], '/', $message['member']['options']['Burcum'], '.gif" /> </fieldset>';               //uyari puani by rallyproco

if (empty($message['member']['options']['uyari'])) {
           
$message['member']['options']['uyari']['value']='';
        }
        echo
'<fieldset>
           <legend><b>'
,$txt['uyari'],'</b></legend>
            <img src="'
, $settings['images_url'], '/uyari', $message['member']['options']['uyari']['value'], '.gif" />% ', $message['member']['options']['uyari']['value'] , '0';if ($context['allow_admin'])
                       {
                       echo
'
     <a href="'
, $message['member']['href'], ';sa=forumProfile"><img src="' . $settings['images_url'] . '/uyaributon.gif" alt="Warn the user! (uyari puani ver)" border="0" /></fieldset>';      

       
// This shows the popular messaging icons.
       
echo '
                       '
, $message['member']['icq']['link'], '
                       '
, $message['member']['msn']['link'], '
                       '
, $message['member']['yim']['link'], '
                       '
, $message['member']['aim']['link'], '<br />';

       
// Show the profile, website, email address, and personal message buttons.
       
if ($settings['show_profile_buttons'])
        {
           
// Don't show the profile button if you're not allowed to view the profile.
           
if ($message['member']['can_view_profile'])
              echo
'
                       <a href="'
, $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

           
// Don't show an icon if they haven't specified a website.
           
if ($message['member']['website']['url'] != '')
              echo
'
                       <a href="'
, $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

           
// Don't show the email address if they want it hidden.
           
if (empty($message['member']['hide_email']))
              echo
'
                       <a href="mailto:'
, $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

           
// Since we know this person isn't a guest, you *can* message them.
           
if ($context['can_send_pm'])
              echo
'
                       <a href="'
, $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
        }
     }
     }
     }
     
// Otherwise, show the guest's email.
     
elseif (empty($message['member']['hide_email']))
        echo
'
                       <br />
                       <br />
                       <a href="mailto:'
, $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

  if (
$message['member']['is_guest'])
  echo
' ', $message['member']['link'], '';         // Done with the information about the poster... on to the post itself.
     
echo '
                    </span>
                 </td>
                 <td valign="top" width="85%" height="100%">
                    <table width="100%" border="0"><tr>
                       <td align="left" valign="middle"><a href="'
, $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
                       <td align="left" valign="middle">
                          <div style="font-weight: bold;" id="subject_'
, $message['id'], '">
                             <a href="'
, $message['href'], '">', $message['subject'], '</a>
                          </div>'
;

     
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
     
echo '
                          <span class="smalltext">&#38;#171; <b>'
, !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#38;#187;</span></td>
                       <td align="right" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;">'
;

     
// Can they reply?  Have they turned on quick reply?
     
if ($context['can_reply'] && !empty($options['display_quick_reply']))
        echo
'
                          <a href="'
, $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';
     
// So... quick reply is off, but they *can* reply?
     
elseif ($context['can_reply'])
        echo
'
                          <a href="'
, $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';

     
// Can the user modify the contents of this post?
     
if ($message['can_modify'])
        echo
'
                          <a href="'
, $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/buttons/modify.gif" alt="' . $txt[66] . '" border="0" />' : $txt[17]), '</a>';

     
// How about... even... remove it entirely?!
     
if ($message['can_remove'])
        echo
'
                          <a href="'
, $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';

 
Well, my whole code would not post in here...I should have assumed so, but I can attach the whold code on a txt if you wish to see it?

fext

Funnily enough the button does not show on my theme either which is wierd? The edits i pointed out should be made when you select the theme in the SimplePortal admin area - it made the changes for me and I then checked my Display.template.php file and the correct changes where in there so I don't know whay the add article button does not work?

Gadget..

Quote from: Youngiiie on December 05, 2008, 09:42:54 AM
Funnily enough the button does not show on my theme either which is wierd? The edits i pointed out should be made when you select the theme in the SimplePortal admin area - it made the changes for me and I then checked my Display.template.php file and the correct changes where in there so I don't know whay the add article button does not work?

Well I do appreciate you trying to help me,...

I will see if I can maybe re-write this to make it work on my theme,... If I get something to work I will post it for others ...

* Gadget.. crosses fingers.

fext

Cool - I also noticed there is no button/gif in the zip file and i looked at the source code when veiwing portal and could see no ref calling the button in so I am not sure if something is missing?

fext

Quick question: are there plans to have the ability to have 4 columns instead of left, center, right? I could certainly utilise it but not sure how much hassle it would be?

Also are there plans to have a media block - something that could hold flash maybe? Or is that what the HTML block is for?

Bugpac ™

I created a new membergroup and they can not see the blocks on the portal, I am certain i have all the permissions set correctly. Any help?

Burke ♞ Knight

If make new membergroup after setting up blocks, have to edit each block and add the group to the selected group permissions area.

Bugpac ™

Quote from: BurkeKnight on December 08, 2008, 09:59:44 PM
If make new membergroup after setting up blocks, have to edit each block and add the group to the selected group permissions area.

got it, i didnt remember setting permissions when i made the blocks, thank you...

Gadget..

Well I got a button to show & work on my other themes if anyone is intrested:

After:
      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
                           <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';


I added:
// Make Article Button
      if ($context['can_make_article'])
         echo '
                           <a href="', $scripturl, '?sa=addarticle;message=', $context['topic_first_message'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . 'addarticle.gif" alt="Make Article" border="0" />' : $txt['smf251']), '</a>';


& now the button works, it operates a little differently then the normal one installed on the default theme.  It brings you to the portal when adding an article (i dont mind) Rather then popping up like the other default one does...I think it has something to do with me missing the array in my code but w/e it works perfectly!!!  Of course you will need to add a button accordingly or it will show as text...  I hope this helps others as it did the job for me!!!~

Advertisement: