News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

php BBC Button now for SMF 2.0 RC3

Started by SMFHacks.com Team, May 18, 2006, 07:15:05 PM

Previous topic - Next topic

SMFHacks.com Team

Link to Mod

Inserts a php BBC Button into Post.template.php
Now you just click the php button and you can then insert your php code.

Uses the built in php bbcode from SMF
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

janditoOo

i install manually this mod to RC3 and its works ;D if u dont know how to install it manually just send me a private message and i will help u =) its very easy!...

just i have a problem... i want to see the php code in a box.... like
Quoteor how can i do it?

winrules

Quote from: janditoOo on August 23, 2006, 05:58:14 PM
i install manually this mod to RC3 and its works ;D if u dont know how to install it manually just send me a private message and i will help u =) its very easy!...

just i have a problem... i want to see the php code in a box.... like
Quoteor how can i do it?
It will highlight php code within <?php and ?>.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


falguni1

I didnot understand wot this mod does

kamili34

You put in php BBC php script.  :P

falguni1

I think I cant understand what this mod does

you mean to say that it is like the code button where we use it to show code

we can use it to show php code in php discussion forums.

karlbenson

Basically all this mod does is add a button for [php] bbcode which is ALREADY in smf, just without a button.

As for [php] bbcode you put php between [php] bbcode tags and you get colourized code.
eg

function sample($param1, $param2, $param3)
{
globals $txt, $str, $num, $bool, $int;

echo
"this is a sample str";
print_r($array);
}

falguni1

It says
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

but what is the motive of the mod to do wot like we have arcade to play games
why to use this mod wot we get by putting phpbbc tags.

vbgamer45

The mod has not yet been update to the latest release. It isn't that great and was I think the first mod I made.
Community Suite for SMF - Grow your forum with 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

falguni1

can you update it I want to use it.

karlbenson

It will probably install fine on 1.1.x if you use version_emulate.

I had a quick look at the code.

If your using on themes other than smf default core theme then you will naturally need to manually do the edit to add the bbcode button to your post.template.php (if your custom theme has one)

AND also drop the php.gif into the images/bbc/ folder of EACH theme

falguni1


falguni1

in a button I want to name it as blah

and inside the button I want to put blab blah
blab blah

how to do that
is it possible.

b33z

#13
simple manual install for 1.1.5 .. worked great for me..

here is what i did..

1. download package

2. edit package-info.xml
     
Code (find) Select
<install for="1.1 RC2">

Code (replace with) Select
<install for="1.1.5">


Code (find) Select
<uninstall for="1.1 RC2">

Code (replace with) Select
<uninstall for="1.1.5">

3.  install via SMF package installer

i really dont know if this will work for anyone else, but it worked for me! in fact, i use this method quite a bit when i am trying/testing a mod that wasnt "designed for 1.1.5" .... let me know if im right/wrong! Not sure if this would work on other versions, but I imagine it would for the 1.1.xx series, but nothing earlier I wouldn't think. happy modding!

-b33z


vbgamer45

Updated for RC2.  After four years heh. Decided it might be useful for some. So people don't have to memorize the php tag like the code tag so adds a button to the editor in SMF 2.0 RC2
Community Suite for SMF - Grow your forum with 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

mikungfu

While uninstalling this mod I got an error message: "An Error Has Occured: Hacker?"

This was the error message I got! >:(

This happened after I replied the ANNOYING intrusive feedback Pop Up window that pops after the uninstall process. I filled in the form saying I didn't want because I expected it to allow real rendering of php code in a post (like for HTML), and not just coloring the code. I submited the feedback and the feedback pop up didn't even close itself!! >:(

After I refreshed the page, the pop up was gone and this message showed up at my forum!!

What does this mean? :o

vbgamer45

Safe to ignore the mod is now uninstalled and try to refresh to uninstall again and there was nothing for it to do.
Community Suite for SMF - Grow your forum with 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

mikungfu

Quote from: vbgamer45 on January 12, 2010, 07:59:45 PM
Safe to ignore the mod is now uninstalled and try to refresh to uninstall again and there was nothing for it to do.

But did you know about this error message? Are you sure this has caused no errors at the Forum installation. Well... I did backup but, it's alway important for me to make sure. ???

vbgamer45

Yeah its fine it's SMF's default message when you try to access a source file directly.
Community Suite for SMF - Grow your forum with 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

mikungfu

Quote from: vbgamer45 on January 12, 2010, 08:07:20 PM
Yeah its fine it's SMF's default message when you try to access a source file directly.

Ok, if you say so... That's fine. It's just that I had never had that message in any previous package/mod uninstallation.

Thanks for the real time quick reply! :)

Advertisement: