New Topic Button on View Topic

Started by SMFHacks.com Team, July 25, 2006, 07:49:20 PM

Previous topic - Next topic

squad

Quote from: vbgamer45 on September 13, 2008, 11:32:52 PM
Updated for SMF 2.0beta4!

Top stuff, can't wait until we can install SMF 2.0 to my site, looking forward to all the new things it appears I can do :)

Sudhakar Arjunan

Hi Vbgamer45,

I got the mod installed in my smf 2.0.4.

It show new topic only to admin and global moderators and its does not shows to users and other membergroup.

I have checked both on my default theme and custom theme.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sudhakar Arjunan

Once installed, i thought it was working properly.

When members says , they could not see the new topic button. Then only i could realize it.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

Quote from: vbgamer45 on November 08, 2008, 12:32:01 AM
Hmm will need to check it out.

I found it, i have made moderations to all the post.

Once i change the permissions , all could post without moderation . And we have got new topic button to all users.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

tyhgdgh


vbgamer45

It installs to the default theme by default and when you view a topic there is now a new topic link on that page as well.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

baijianpeng

Is it possible to add this feature to a custom theme? 

Today I tested this Mod on my SMF 1.1.7, though I manually add those code to my custom theme, there is NO new topic button.

Hope this Mod can also work for custom theme.

Thanks.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

tyhgdgh

if you want it on a custom theme, edit the themes ".template.php" files

baijianpeng

I noticed that there is only one line of new code to be inserted in the XML file of this Mod:


<add><![CDATA[
'new_topic' => array((allowedTo('post_new')) ? 1 : 'test' => 'nothinglol', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),]]></add>


I manually edited the file Display.template.php of my custom theme and inserted this line of code after the code for Reply button, but this does not take effect at all.

Do you mean I must edit more?

Thanks.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

baijianpeng

I am using SMF 1.1.7. The custom theme named rt_smf_versatility.

I had edited the file Display.template.php of this custom theme, but the New Topic button did not show up.

Could you please help me to solve this problem?

Thanks.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

baijianpeng

Thank you vbgamer45.

see attached file.

The code I had manually inserted is at line 163.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

fext

Hi VBGamer,

I have a similar issue to baijianpeng but my theme is made up of divs rather than tables and i am guessing the code segment in my Display.template.php file is this (line 143 onward):

      // This is the button array for reply, send-topic, etc, here you can easily add and remove new buttons
      if ($context['can_reply'])
      $buttonArray[] = '<li class="reply"><a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . $txt[146] . '</a></li>';
      if ($context['can_mark_notify'])
      $buttonArray[] = '<li class="notify"><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']) . '\');">' . $txt[131] . '</a></li>';


I did have a go at trying to interpret your code into the way the code is written above but it did not work.

I am using SMF v1.1.7 and SmoothIt Theme.

My display template is also attached.

neteater

installed it on 2.0rc1-1 on default theme successfully but new stylebuttons are not visible yet

akbora

How can I add new topic button to the main menu? Thanks
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

the-punisher

one of the best mods ever thank u very much i  really needed this mod
i Just Love SMF!

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: