News:

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

Main Menu

Adding a form

Started by yoap, September 27, 2006, 10:04:33 AM

Previous topic - Next topic

yoap

I'd like to insert a form beetwenn clicking on the buttons : "new topic or "reply"
How should I do?
I didn't found where the code matches.
If I could have a fast answer it would be great ;)

thanks

vbgamer45

Which SMF version are you using? And what theme?

And do you mean the buttons at the top or below? It mostly like will be in Display.template.php
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

yoap

I'm using smf 1.08 and 1.07 with the default theme and I'm likely to upgrade to the last version, but how does the theme matters?
I'd like to work with both the buttons at the top and below.
thanks a lot.

vbgamer45

The code for other themes might be different.
You would need edit Display.template.php

Find $buttonArray = array(); in that file and you would need to add the html code before that.
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

yoap

I have a display.php file in the source folder but no display.template.php.
And I can't find $buttonArray = array();
???

vbgamer45

its not in the sources folder it would be themes folder/ themes/yourtheme/
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

yoap

Thanks for the hint I'll take a look :)

yoap

I've search a little and didn't found "$buttonArray = array();"
>:(
but where is the solution :'(

yoap

Is anybody having a clue please ??

codenaught

$buttonArray = array(); is in the default install located in Themes/default/Display.template.php. Are you using a custom theme?
Dev Consultant
Former SMF Doc Coordinator

yoap

No I don't use any theme.
What are the changes when one is used ???

codenaught

Dev Consultant
Former SMF Doc Coordinator

yoap

I mean I use the default theme

Advertisement: