"New Topic/Poll" buttons in Display.template.php

Started by Cccddd, March 09, 2004, 01:22:41 PM

Previous topic - Next topic

Cccddd

Link to Mod

This mod adds a new topic and new poll button to the topic (thread) display page.

Now in package format!

Kirby

You can add the
$context['can_post_new'] = allowedTo('post_new');
$context['can_post_poll'] = $modSettings['pollMode'] == '1' && allowedTo('poll_post');

lines in the template file itself, which IMO is better than modding it :P

Nice job though.

[Unknown]

Quote from: Kirby on September 26, 2004, 01:35:50 AM
You can add the
$context['can_post_new'] = allowedTo('post_new');
$context['can_post_poll'] = $modSettings['pollMode'] == '1' && allowedTo('poll_post');

lines in the template file itself, which IMO is better than modding it :P

Nice job though.

Have to use $GLOBALS['modSettings'] then.

-[Unknown]

Cccddd

this also isnt the "proper" way to utilize the theme system. [Unknown] understands what I mean :)

Cccddd

updated to package format! it's available on both my package server (http://nrrds.com/packages) and the SMF Mod Site package server.

!Hachi!

i installed it but can`t see it.is there need to do something else also?
Happy Ramadan

Cccddd

it only applies it to the default theme. you need to copy the Display.template.php file to your new theme folder to see it there too. if you already have a Display.template.php file in your theme directory, then you need to copy the changes from the default to your other themes.

!Hachi!

Happy Ramadan


Cccddd

Look in Themes/default/Display.template.php and do a search for can_post_new and can_post_poll

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Xarcell


SoftDux

Does anyone know when this mod will be fixed up to work with SMF 1.1.1?
  • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
  • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
  • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
SoftDux- The Leaders in Software
Use the coupon: smf-06 to get 20% off our packages

Advertisement: