News:

Wondering if this will always be free?  See why free is better.

Main Menu

Auto BBC

Started by JayBachatero, August 02, 2006, 12:10:49 AM

Previous topic - Next topic

JayBachatero

I need to look into it to see how it can be done.
Follow me on Twitter

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

janditoOo

im waiting for the version for RC3 =)  this mod apply to RC3?  :'(

JayBachatero

It should work on RC3 w/o a problem.
Follow me on Twitter

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

littleone

Fix for this?

8: Undefined index: bbc_before
File: /home/xxxxxx/public_html/forum/Themes/default/languages/Post.english.php (eval?)
Line: 1024

JayBachatero

Follow me on Twitter

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

littleone

oops im so sorry, lol.  I reinstalled it today and didnt remember having asked this before.  Appreciate it!

OmegaSupreme

When I try to install this in RC3 I get:

Type Action Description
1. Execute Modification       ./Themes/default/Profile.template.php                      Test failed
2. Execute Modification       ./Themes/default/Settings.template.php                   Test successful
3. Execute Modification       ./Themes/default/Post.template.php                        Test successful
4. Execute Modification       ./Themes/default/languages/Modifications.english.php Test successful

JayBachatero

What other mods do you have installed?
Follow me on Twitter

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

OmegaSupreme

#28
1. Users Online Today Mod 1.3.1 [ Uninstall ]
2. Gmail Field 1.1 [ Uninstall ]
3. SMF Arcade 1.2.4b [ Uninstall ]
4. Karma On Memberlist 1.0 [ Uninstall ]
5. Automatic BBC 1.0 [ Uninstall ]
6. YouTube BBCode by Yakuza / RC3 Revision By Alan S 0.2 [ Uninstall ]
7. Streaming 3 4.2.2 [ Uninstall ]
8. Googlebot & Spiders Mod 2.0.2



I had this installed before RC3 and it worked fine, and it is still auto placing my BBC, along with all the other members, in my posts but the option to edit it in the profile does not show up

JayBachatero

make sure that the mod installed correctly on Profile.template.php.
Follow me on Twitter

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

OmegaSupreme

Quote from: OmegaSupreme on September 23, 2006, 04:52:39 PM

Type Action Description
1. Execute Modification       ./Themes/default/Profile.template.php                      Test failed
2. Execute Modification       ./Themes/default/Settings.template.php                   Test successful
3. Execute Modification       ./Themes/default/Post.template.php                        Test successful
4. Execute Modification       ./Themes/default/languages/Modifications.english.php Test successful


I deleted the mod and tried to reinstall it a couple of times but I am still getting the  Profile.template.php  "Test failed" warning. What am I looking for in the Profile template, to make sure it installed correctly.  Sorry if I'm not clear, sorta a noob as far as the code modding goes

JayBachatero

What you can do is install it and manually make the change on Profile.template.php.
Follow me on Twitter

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

Vinspire

#32
Jay, I've just upgraded my board to SMF 1.1 RC 3 and i've gotten this error too.

Type Action Description
[color=red]1. Execute Modification       ./Themes/default/Profile.template.php                      Test failed[/color]
2. Execute Modification       ./Themes/default/Settings.template.php                   Test successful
3. Execute Modification       ./Themes/default/Post.template.php                        Test successful
4. Execute Modification       ./Themes/default/languages/Modifications.english.php Test successful


Maybe its not working on RC 3 Profile.template.php ?  ;D

JayBachatero

Ok I'll look into fixing this tomorrow or over the weekend.  On the mean time you can install manually.
Follow me on Twitter

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

Vinspire

Quote from: Juan Hernandez on September 30, 2006, 12:00:47 AM
Ok I'll look into fixing this tomorrow or over the weekend.  On the mean time you can install manually.

Nvm. I will just wait for the fix ... It isn't something urgent  ;D

Thanks Jay ... You are one of the best person in SMF Community  ;D

OmegaSupreme

yep, I'll probably just wait too as I don't want to screw anything up

Vinspire

Quote from: OmegaSupreme on October 07, 2006, 12:58:20 PM
yep, I'll probably just wait too as I don't want to screw anything up

You only need to edit one file by adding a few codes provided in the .xml file

I will provide the code later ... and before you edit it. Remember to make a backup for the original file that haven't been edited  :D

Vinspire

Quote from: OmegaSupreme on September 23, 2006, 04:52:39 PM
When I try to install this in RC3 I get:

Type Action Description
1. Execute Modification       ./Themes/default/Profile.template.php                      Test failed
2. Execute Modification       ./Themes/default/Settings.template.php                   Test successful
3. Execute Modification       ./Themes/default/Post.template.php                        Test successful
4. Execute Modification       ./Themes/default/languages/Modifications.english.php Test successful

For those who have this problem.

Open your profile.template.php

search for

<input type="text" name="timeFormat" value="', $context['member']['time_format'], '" size="30" />
</td>
</tr><tr>
<td width="40%"><b', (isset($context['modify_error']['bad_offset']) ? ' style="color: red;"' : ''), '>', $txt[371], ':</b><div class="smalltext">', $txt[519], '</div></td>
<td class="smalltext"><input type="text" name="timeOffset" size="5" maxlength="5" value="', $context['member']['time_offset'], '" /> <a href="javascript:void(0);" onclick="var diff = new Date().getHours() - ', $context['current_forum_time_hour'], '; if (diff &lt; -11) diff += 12; document.forms.creator.timeOffset.value = diff; return false;">', $txt['timeoffset_autodetect'], '</a><br />', $txt[741], ': <i>', $context['current_forum_time'], '</i></td>
</tr><tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>';


Add the below code after it :)

if (empty($settings['disallow_auto_bbc']))
echo '
</tr><tr>
<td valign="top"><b>', $txt['bbc_before'], ':</b></td>
<td><textarea name="default_options[bbc_before]" rows="2" cols="40" class="editor">', @$context['member']['options']['bbc_before'], '</textarea></td>
</tr><tr>
<td valign="top"><b>', $txt['bbc_after'], ':</b></td>
<td><textarea name="default_options[bbc_after]" rows="2" cols="40" class="editor">', @$context['member']['options']['bbc_after'], '</textarea></td>
</tr><tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>';


OmegaSupreme


JayBachatero

Ok sorry for the delay.  I updated the mod.
Follow me on Twitter

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

Advertisement: