News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Separating the sticky topics from the normal ones

Started by Alexandre P., September 05, 2004, 06:23:54 PM

Previous topic - Next topic

diplomat.

avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Villesa

Diplomat: You might want to upgrade so SMF RC2 ?
You'll get the idea

I'm all ok.

diplomat.

i was thinking of waiting til 1.0 final to upgrade, unless thats not a wise thing to do ???
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Chris G.


gerrymore

SMF RC1, Tiny Portal 0.75, Coppermine 1.3.3, Flashchat.

dwayne


CapriSkye


TarantinoArchives

Quote
if (isset($previousTopicClass) && strpos($previousTopicClass, 'sticky') !== false && !$topic['is_sticky'])
      echo '
         <tr class="titlebg">
         <td colspan="2">&nbsp;</td>
         <td colspan="7">&nbsp;</td>
         </tr>';
$previousTopicClass = $topic['class'];

why do I get a template parsing error when using this in SMF 1.0 final now? can somebody from the SMF crew check if this actually works with the replace routine posted above?

[Unknown]

Can you post three lines above and below where you're putting that code, please?

-[Unknown]

TarantinoArchives

Quote
// No topics.... just say, "sorry bub".
   else
      echo '
               <td width="100%" colspan="7"><b>', $txt[151], '</b></td>';

   echo '
            </tr>';

   foreach ($context['topics'] as $topic)
   {

      echo '
            <tr>
               <td class="windowbg2" valign="middle" align="center" width="5%">
                  <img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
               </td>
               <td class="windowbg2" valign="middle" align="center" width="4%">
                  <img src="', $settings['images_url'], '/post/', $topic['first_post']['icon'], '.gif" alt="" />
               </td>
               <td class="windowbg" valign="middle">
                  ', $topic['first_post']['link'];

i replace the bold text with what was suggested in this topic

[Unknown]



Alisha

Quote from: [Unknown] on September 05, 2004, 07:18:19 PM
I would make it:

if (isset($previousTopicClass) && strpos($previousTopicClass, 'sticky') !== false && !$topic['is_sticky'])
echo '
<tr>
<td>&nbsp;</td>
<td colspan="5">' . $txt[70] . '</td>
</tr>';
$previousTopicClass = $topic['class'];


-[Unknown]

Is there anyway you can make this where the SPACE is filled with the Normal headers, and not just the text70 "SUBJECT" ?  Just want to Mirror the 7 header columns that appear above the sticky posts!

[Unknown]

Sure, just copy said headers from the code above that.

-[Unknown]

Alisha

Quote from: [Unknown] on January 21, 2005, 03:13:03 AM
Sure, just copy said headers from the code above that.

-[Unknown]

lol now thats funny... No idea what they look like.  they are all $txt[XX]  and I am thinking they would replace this line?

Sorry, getting better but not that good yet...

[Unknown]

You can use this:


if (isset($previousTopicClass) && strpos($previousTopicClass, 'sticky') !== false && !$topic['is_sticky'])
echo '
<tr>
<td width="9%" colspan="2"></td>
<td>', $txt[70], '</td>
<td width="14%">', $txt[109], '</td>
<td width="4%" align="center">', $txt[110], '</td>
<td width="4%" align="center">', $txt[301], '</a></td>
<td width="22%">', $txt[111], '</a></td>
</tr>';
$previousTopicClass = $topic['class'];


-[Unknown]

Alisha


fabio

is there a way to include global announcements in this too ?

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

bobert

Is there a way to get rid of those stupid gray bars that say subject. I tried every piece of code here, and none of them seemed to work. Here is by board= http://krawproductions.com/smf/index.php?board=2.0;sort=last_post;desc
All the best,
Kyle

Advertisement: