Split Topic Type Fake

Tutorials for <a href="http://www.phpbbstyles.com/viewtopic.php?t=356">eXtreme Styles mod</a> for phpBB 2.0.

Moderator: Moderators

Split Topic Type Fake

Postby baz-x on Sun Aug 15, 2004 10:07 pm

This tutorial should show you how you can make the viewforum looking it the same way like the Split Topic Type Mod does (but well ... without ACP option of course) without changing any php files.

This tutorial requires eXtreme Styles mod 2.0.0 and will not work with eXtreme Styles mod 1.0

Open templates/subSilver/viewforum_body.tpl and after <!-- BEGIN topicrow --> add

Code: Select all
   <!-- IF topicrow.TOPIC_TYPE == L_STYLE_ANNOUNCE -->
      <!-- IF $T_ANNOUNCE -->
      <!-- ELSE -->
         <!-- DEFINE $T_ANNOUNCE = 1 -->
   <tr>
     <td class="row2" colspan="6"><span class="gensmall">{L_STYLE_ANNOUNCE}</span> </td>
   </tr>
      <!-- ENDIF -->
   <!-- ELSEIF topicrow.TOPIC_TYPE == L_STYLE_STICKY -->
      <!-- IF $T_STICKY -->
      <!-- ELSE -->
         <!-- DEFINE $T_STICKY = 1 -->
   <tr>
     <td class="row2" colspan="6"><span class="gensmall">{L_STYLE_STICKY}</span> </td>
   </tr>
      <!-- ENDIF -->
   <!-- ELSE -->
      <!-- IF $T_TOPICS -->
      <!-- ELSEIF ! $T_STICKY && ! $T_ANNOUNCE -->
      <!-- ELSE -->
         <!-- DEFINE $T_TOPICS = 1 -->
   <tr>
     <td class="row2" colspan="6"><span class="gensmall">{L_STYLE_TOPICS}</span> </td>
   </tr>
      <!-- ENDIF -->
   <!-- ENDIF -->


and in subsilver.cfg before ?> add

Code: Select all
global $template, $lang;
$template->assign_vars(array(
   'L_STYLE_ANNOUNCE' => $lang['Topic_Announcement'] . ' ',
   'L_STYLE_STICKY' => $lang['Topic_Sticky'] . ' ',
   'L_STYLE_TOPICS' => $lang['Topic_Normal'] . ' ')
);


and in lang_main.php after $lang['Topic_Sticky'] = '<b>Sticky:</b>'; add

Code: Select all
$lang['Topic_Normal'] = '<b>Normal:</b>';


You're done.
» Demo: http://community.baz-x.at/viewforum.php?f=1
Last edited by baz-x on Sun Jul 10, 2005 8:25 am, edited 4 times in total.
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby fahraeus on Sat Jan 15, 2005 6:51 am

User avatar
fahraeus
Registered User
Registered User
 
Posts: 419
Joined: Wed Dec 01, 2004 3:27 pm

Postby baz-x on Sat Jan 15, 2005 6:04 pm

Thats right, Meriva-Projects.de is currently reorganising.
And it will take a while untill it is back online.
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby fahraeus on Sun Jan 23, 2005 11:40 am

Two things:

1. Like it says "normal" above normal topics, I would like it to say "laws" above the announcements.

2. Instead of having the stickies with the announcements, I would like to have them with the normal topics.
User avatar
fahraeus
Registered User
Registered User
 
Posts: 419
Joined: Wed Dec 01, 2004 3:27 pm

Postby fahraeus on Sun Jan 23, 2005 11:58 am

Kind of figured part 1 out, but it also says "Laws" infront of EVERY announcement. How can I remove that?
User avatar
fahraeus
Registered User
Registered User
 
Posts: 419
Joined: Wed Dec 01, 2004 3:27 pm

Postby fahraeus on Sun Jan 23, 2005 12:06 pm

oh no, didn't work, all messed up. What i 'm tring to do is 3 splits.

1. Above (not in front of) announcements it should say "Laws"
2. Above (not in front of) stickies it should say "important"
3. Above (not in front of) normal topics, it should say "normal"
User avatar
fahraeus
Registered User
Registered User
 
Posts: 419
Joined: Wed Dec 01, 2004 3:27 pm

Postby fahraeus on Mon Jan 24, 2005 8:31 pm

no support for this mod?

three splits...

one above announcements

one above stickies

one above normal topics (normal:)

how can i put text text of choice similar to "normal:" above announcements and stickies?
User avatar
fahraeus
Registered User
Registered User
 
Posts: 419
Joined: Wed Dec 01, 2004 3:27 pm

Postby auday on Thu May 19, 2005 1:02 am

hi

u have to deal with lang main ...

see wehre is these
$lang['Topic_Announcement'] default
$lang['Topic_Sticky'] default
$lang['Topic_Normal'] comes with this mod

so u find $lang['Topic_Announcement'] = and change the anouncment word to law

same with stikies ...
i am too busy now to find u the full line ...but it s there in lang main ...u change only the word after $lang['Topic_Announcement'] and $lang['Topic_Sticky'] ...u will see this mark " = " so the word announcment and sticky s the value for that $lang

thanks
User avatar
auday
Registered User
Registered User
 
Posts: 79
Joined: Tue May 17, 2005 7:16 am

Postby DooBDee on Sat Jul 09, 2005 4:46 pm

do you have a demonstration of this please? So i kno whether it is worth implementing into my forum.

Thanks.
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby baz-x on Sat Jul 09, 2005 4:52 pm

Sorry, no. My domain is down because host is currently configuring servers. (I think he wants to move from Confixx to CPanel). Therefore all my sub-domains and also my database are not working. But I think I will move to another host.
I will soon provide a new demo.
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby baz-x on Sat Jul 09, 2005 8:11 pm

Demo forum is online. Link is in first post.
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby DooBDee on Sun Jul 10, 2005 4:59 pm

Baz, x

Would it work if i just put this after <!-- BEGIN topicrow --> in viewforum_body.tpl :

Code: Select all
<!-- IF topicrow.TOPIC_TYPE == L_STYLE_ANNOUNCE --> 
     <!-- IF $T_ANNOUNCE --> 
     <!-- ELSE --> 
        <!-- DEFINE $T_ANNOUNCE = 1 --> 
     <tr>
     <th colspan="100%">Announcements</th>
     </tr>
     <!-- ENDIF --> 
  <!-- ELSEIF topicrow.TOPIC_TYPE == L_STYLE_STICKY --> 
     <!-- IF $T_STICKY --> 
     <!-- ELSE --> 
        <!-- DEFINE $T_STICKY = 1 --> 
     <tr>
     <th colspan="100%">Stickys</th>
     </tr>
     <!-- ENDIF --> 
  <!-- ELSE --> 
     <!-- IF $T_TOPICS --> 
     <!-- ELSEIF ! $T_STICKY && ! $T_ANNOUNCE --> 
     <!-- ELSE --> 
        <!-- DEFINE $T_TOPICS = 1 --> 
     <tr>
     <th colspan="100%">Topic</th>
     </tr>
     <!-- ENDIF --> 
  <!-- ENDIF -->
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby baz-x on Sun Jul 10, 2005 5:53 pm

No.
L_STYLE_ANNOUNCE && L_STYLE_STICKY are defined in .cfg and needed to check for topic type.
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby cillinz on Tue Jul 12, 2005 12:36 pm

Hi how i can fix problems with spliting when i am using Global Announcement mod?
User avatar
cillinz
Registered User
Registered User
 
Posts: 44
Joined: Mon May 16, 2005 12:29 pm

Postby baz-x on Tue Jul 12, 2005 1:05 pm

Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Next

Return to eXtreme Styles mod tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron