[alfa] - new topic icon top the viewtopic page [0.0.1a]

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
yakusha
Registered User
Posts: 71
Joined: Mon Apr 03, 2006 8:30 pm

[alfa] - new topic icon top the viewtopic page [0.0.1a]

Post by yakusha » Fri Jan 04, 2008 1:33 am

Mod Name: new topic icon top the viewtopic page / for prosilver theme [0.0.1a]
Mod Ver: 0.0.1a
Mod Author: İSİS ( yakusha )
Mod Desc: for prosilver theme, this mod add a newtopic icon on viewtopic page... but newtopic button not founding in viewtopic page

For: phpBB GOLD

About Mod:
phpbb3 prosilver theme very good, but in viewtopic page not founding a newtopic page, but founding 2 repyly button. This mod changin reply button on top, newtopic button... Very easy a mod...

Lisance: GNU General Public License v2

İnstalation Level: Easy
İnstalation Time: 1 Dakika
File Format: .txt
File Download: -----

Code: Select all

#--------------- [ OPEN ] --------------------

viewtopic_body.html

#--------------- [ FIND ] --------------------
/ bu değer iki defa geçiyor, ilk geçeni bulacaksınız...

<div class="buttons">
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}"><span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div>
<!-- ENDIF -->
</div>

#--------------- [ REPLACE ] --------------------

<div class="buttons">
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
<div class="post-icon"><a href="{U_POST_NEW_TOPIC}"><span>{L_POST_TOPIC}</span></a></div>
<!-- ENDIF -->
</div>

eom
#--------------- [ SAVE AND CLOSE ] --------------------
örnek görünüm:
Image
http://img218.imageshack.us/my.php?image=001no1.png

User avatar
ijhtio
Registered User
Posts: 150
Joined: Sat Feb 28, 2009 10:09 pm
Contact:

Re: [alfa] - new topic icon top the viewtopic page [0.0.1a]

Post by ijhtio » Tue Sep 01, 2009 4:59 pm

the above code does not help if someone wants both PostReply and NewTopic buttons...the correct code should be:

Code: Select all

<div class="buttons">
   <!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
       <!-- IF not S_IS_LOCKED -->
            <div class="post-icon" title="{L_POST_TOPIC}"><a href="{U_POST_NEW_TOPIC}"><span></span>{L_POST_TOPIC}</a></div>
        <!-- ENDIF -->
      <div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED_SHORT}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></a></div>
   <!-- ENDIF -->
   </div>
It is not mine, found on the net...

PS: You will find two instances of the "To Find" code...one for the header, another for footer of the thread...replace whichever you want to change....for me, I changed on both instances
regards,
ijhtio

Xplosive
I've Been Banned!
Posts: 114
Joined: Sun Aug 16, 2009 6:57 pm

Re: [alfa] - new topic icon top the viewtopic page [0.0.1a]

Post by Xplosive » Tue Sep 01, 2009 6:45 pm

You have released the code to this mod, so it should be in BETA stage, but I think this is already a validated mod ;)

Locked

Return to “[3.0.x] MODs in Development”