News:

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

Main Menu

Enchanced Post Template

Started by !Hachi!, January 10, 2006, 02:05:12 PM

Previous topic - Next topic

!Hachi!

yeah you can do this just edit post.template.php   
                              and have a lok at codes its too simple.hope you will able to do what you want.if you want in package  i will make one more with more colors/fonts etc and make new version :D
Happy Ramadan

Bigguy

Well thats why I couldnt find it, lol. man I got to slow down a bit and take my time, lol.

Quoteall that stuff is in the reply window one not the quick reply

Xarcell


LostProphecy

here's one i made if you wanted to take a look :)
Angelus Ex Quo Nox

damacguy

It installs fine for me on RC2, and it works great. But I just noticed the following errors in my log...

8: Undefined index: code
File: /Library/WebServer/Documents/smf/Themes/default/Post.template.php (eval?)
Line: 874


I know its specific to this mod 'cause they go away when I uninstall it. And I don't think any of the other mods I have touch the Post.template.php file.

Any ideas? :(

!Hachi!

Happy Ramadan

aufsaufbremse

#26
Hello,

Quote from: damacguy on January 17, 2006, 12:44:17 AM
It installs fine for me on RC2, and it works great. But I just noticed the following errors in my log...

8: Undefined index: code
File: /Library/WebServer/Documents/smf/Themes/default/Post.template.php (eval?)
Line: 874


I know its specific to this mod 'cause they go away when I uninstall it. And I don't think any of the other mods I have touch the Post.template.php file.


I got the same errors on my RC2.

Quotecan i know line 874 code?

I think it was the following code (line 2) in Post.template.php :
// only replace the URL tag! . . . . . . . . . . .
if ($tag['code'] == 'url')


I'm not sure, I removed this nice mod because of many errors in the log.

aufsaufbremse

!Hachi!

i will try my best to fix this error.
Happy Ramadan

LostProphecy

#28
i'm getting that same error myself just to let you know :)

oh and i did a bit of playing around... before your mod i used to use this code modification to add more colours to the drop down box... it does the same thing taht yours does, puts them in colour and stuff but with this one you get loads more colors

http://www.simplemachines.org/community/index.php?topic=23393.0

maybe you could intergrate this code into your mod? i've already modified mine to have these colours in :)

also with the size thing... i don't know about anyone else but i personally prefer to know the actual size of the text

so i got your code


<option value="" selected="selected">Font Size</option>
            <option value="10pt">Normal</option>
            <option value="14pt">Large</option>
            <option value="18pt">X-Large</option>


and replaced it with this... more options... better :)


<option value="" selected="selected">Font Size</option>
            <option value="8pt">8pt</option>
            <option value="10pt">10pt</option>
            <option value="12pt">12pt</option>
            <option value="14pt">14pt</option>
            <option value="16pt">16pt</option>
            <option value="18pt">18pt</option>
            <option value="20pt">20pt</option>


those are just my suggestions anyway :)

oh and one last question... with the fonts... well two actually
1. is it possible in the text box to do what the colours did, the colour names where is the colour they stated... is it possible to put the font styles actually in that font where it says "comic sans" it's actually in comic sans... i'm not sure if that's possible
2. is there a list somewhere that states what are standard fonts that are available for use... i want to add more in that box but i'm not sure which fonts on my computer are standard and which i've added myself

~Jessi
Angelus Ex Quo Nox

!Hachi!

thanks Jessi actually i already added this in next version and now i am working on some new features hope to come with some thing good in next version.thanks again for your suggestion.
Happy Ramadan

desistyle

wow bro thanks a lot for this mod this is a superb mod wow love this mod thanks a lot for this

damacguy

Any word on resolving the errors from line 874/875?

The users aren't seeing any issues, and I can simple filter the errors and remove them en masse.

Hassan, I know you're working on an update. Not nagging... just checking. :D

!Hachi!

yeah i will do it as soon as possible.but i don't get it as security issue.or any other problem but error is error and have to fix it.hope to do it asap.
Happy Ramadan

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

!Hachi!

Happy Ramadan

damacguy

Awesome! Works great (well, not a sign of an error anywhere).

THANKS!!!

8)

destalk

I've installed this mod - which is great.

However, it adds three extra icons/codes called
[stream=380,320][/stream]
[real=380,320][/real]
[quick=380,320][/quick]


Although these do not have any icons and do not appear to do anything.

What are these? And how can I get rid of them?

Thanks

CeZa

thanks. .
adding tag bold italic vs pls ;)

!Hachi!

is that with my mod?make it sure plz i think its coming with streaming mod not with my mod.
Happy Ramadan

Wittsend

#39
I like this mod, thanks Hassan.

Installed with no probs into SMF 1.1 RC2


I've got a couple of little tweaks....

With the new Font Size and Font Face boxes the "old"  buttons are redundant now...

You can edit them out....

Make a copy of the Post.template.php file in your Themes>default folder.

Search for 'size'


Quote'hr' => array('code' => 'hr', 'before' => '
', 'description' => $txt[531]),
         array(),
         'size' => array('code' => 'size', 'before' => '', 'after' => '', 'description' => $txt[532]),
         'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' => $txt[533]),
      );

Delete all of the " 'size' =>" line and all of the " 'face' =>"

leaving you with this:-


Quote'hr' => array('code' => 'hr', 'before' => '
', 'description' => $txt[531]),
         array(),
         
      );


The "Change Color" box now looks odd....
Why not change the text to "Font Colour" or "Font Colour" for English users
to match Hassan's Font Size & Font Face.....

Still editing Post.template.php

Search for "Change Color"

and simply replace with text of your choice....

Then save and upload the Post.template.php file to your SMF forum installation......
What we see depends mainly on what we look for.

Advertisement: