Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: a2h_ on September 24, 2006, 05:12:08 AM

Title: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on September 24, 2006, 05:12:08 AM
I've made my own mod, but the menu looks like this after the upgrade:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frctxtremegamez.8m6.net%2Fimages%2Fomg.png&hash=c62e05fd9ddb95de2ba08e36c6cf80aab478fdc1)

But the thing is, I included the "include"thing and the image!


Above thing solved, but the thing that it makes does not work, see reply 12 for more
Title: Re: Button Url BBC in menu not displayed properly
Post by: codenaught on September 24, 2006, 10:51:38 AM
Can you provide some code that you used for those buttons to show so we can take a look at what might be wrong? Is the image you have for the button uploaded in the proper place? Themes/theme_name/images/bbc
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on September 24, 2006, 04:50:16 PM
<install for="1.1 RC3">
<readme type="inline">This mod adds bbcode for a button link. Based of Yakuzas YouTube BB Code</readme>
<modification>burl_0.1.xml</modification>
<require-file name="burl.gif" destination="Themes/default/images/bbc" />
</install>

This is the part of the package info that requires the gif, and it installs too!

And here's the button.
<file name="$themedir/Post.template.php">
        <operation>
                <search position="before"><![CDATA[
'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
]]></search>
                        <add><![CDATA[
'burl' => array('code' => 'burl', 'before' => '[burl=LINKHERE]', 'after' => '[/burl]', 'description' => $txt[burl]),
]]></add>
                </operation>
        </file>
        <file name="$themedir/languages/Modifications.english.php">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['burl'] = 'Button Link';
]]></add>
                </operation>
        </file>
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on September 26, 2006, 01:47:29 AM
It still is stuffed. And now, it suddenly fails to work anymore, showing a "Are you sure you want to do this?" window with just an OK button, and clicking OK will lead to session verification fail. I swear, this opened Google before:
[burl=http://www.google.com]Google[/burl]
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on October 03, 2006, 09:18:55 PM
No news?
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on October 05, 2006, 03:16:19 AM
*bump*

Does anyone want the package to inspect?
Title: Re: Button Url BBC in menu not displayed properly
Post by: Dannii on October 05, 2006, 03:17:43 AM
Can you provide a link to a forum where it's installed.
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on October 05, 2006, 03:19:47 AM
I removed the mod to stop users from seeing it

Anyway... would you like the package?
Title: Re: Button Url BBC in menu not displayed properly
Post by: Dannii on October 05, 2006, 03:52:46 AM
No, I'd like to see it in action.
destination="Themes/default/images/bbc" won't work, fix it and see if you get the same problem.
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on October 05, 2006, 04:38:32 AM
What do you mean by "fix it"?
Title: Re: Button Url BBC in menu not displayed properly
Post by: Dannii on October 05, 2006, 06:13:00 AM
Well change it to $themedir/images/bbc probably. I'm not sure if that's exactly it.
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on October 05, 2006, 06:19:06 AM
The mod was based off youtube bbc so I think it should work...

(well it as in what i currently use)
Title: Re: Button Url BBC in menu not displayed properly
Post by: a2h_ on October 06, 2006, 12:06:29 AM
OK I got it to work ($themedir/images/bbc/burl.gif) but it still is stuffed... have a look here (http://www.gameon.8m6.net/forum/index.php?topic=8.0)

*THIS MOD WILL NOT BE PUBLICLY DISTRIBUTED, UNLESS YAKUZA'S PERMISSION IS GRANTED*
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 07, 2006, 12:27:48 AM
*bumpedy bump*

No news? I am now willing to send a copy of the package to someone trustworthy
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 10, 2006, 02:56:51 AM
bump bump bump bump bump bump bump bump
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: Dannii on October 10, 2006, 04:13:03 AM
The link you gave looks fine to me. What's wrong with it?
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 10, 2006, 06:08:17 PM
Click "Google" to see what I mean...
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 11, 2006, 07:43:13 PM
the bump strikes again!!!
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 17, 2006, 03:01:07 AM
buuuuuuuuuuuuuuuuuuumppppppppp. help, anyone? please!
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 19, 2006, 04:12:35 AM
bump
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 21, 2006, 04:17:03 AM
Please help, I badly want to finish this mod
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 29, 2006, 01:21:04 AM
 >:( Please please please give support!!!
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: Dannii on October 29, 2006, 07:22:41 PM
Stop bumping this.

You didn't explain what was wrong, and please put the link back up again.
Title: Re: Button Url BBC [s]in menu[/s] not displayed properly
Post by: a2h_ on October 30, 2006, 12:56:30 AM
Fixed, and the problem is the freaking button just won't go to the link