News:

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

Main Menu

Button Url BBC [s]in menu[/s] not displayed properly

Started by a2h_, September 24, 2006, 05:12:08 AM

Previous topic - Next topic

a2h_

I've made my own mod, but the menu looks like this after the upgrade:


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
With an underscore. Because the one without an underscore's taken.

codenaught

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
Dev Consultant
Former SMF Doc Coordinator

a2h_

<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>
With an underscore. Because the one without an underscore's taken.

a2h_

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]
With an underscore. Because the one without an underscore's taken.

a2h_

With an underscore. Because the one without an underscore's taken.

a2h_

*bump*

Does anyone want the package to inspect?
With an underscore. Because the one without an underscore's taken.

Dannii

Can you provide a link to a forum where it's installed.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

a2h_

#7
I removed the mod to stop users from seeing it

Anyway... would you like the package?
With an underscore. Because the one without an underscore's taken.

Dannii

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.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

a2h_

With an underscore. Because the one without an underscore's taken.

Dannii

Well change it to $themedir/images/bbc probably. I'm not sure if that's exactly it.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

a2h_

#11
The mod was based off youtube bbc so I think it should work...

(well it as in what i currently use)
With an underscore. Because the one without an underscore's taken.

a2h_

#12
OK I got it to work ($themedir/images/bbc/burl.gif) but it still is stuffed... have a look here

*THIS MOD WILL NOT BE PUBLICLY DISTRIBUTED, UNLESS YAKUZA'S PERMISSION IS GRANTED*
With an underscore. Because the one without an underscore's taken.

a2h_

*bumpedy bump*

No news? I am now willing to send a copy of the package to someone trustworthy
With an underscore. Because the one without an underscore's taken.

a2h_

With an underscore. Because the one without an underscore's taken.

Dannii

The link you gave looks fine to me. What's wrong with it?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

a2h_

With an underscore. Because the one without an underscore's taken.

a2h_

With an underscore. Because the one without an underscore's taken.

a2h_

buuuuuuuuuuuuuuuuuuumppppppppp. help, anyone? please!
With an underscore. Because the one without an underscore's taken.

a2h_

With an underscore. Because the one without an underscore's taken.

a2h_

With an underscore. Because the one without an underscore's taken.

a2h_

With an underscore. Because the one without an underscore's taken.

Dannii

Stop bumping this.

You didn't explain what was wrong, and please put the link back up again.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

a2h_

Fixed, and the problem is the freaking button just won't go to the link
With an underscore. Because the one without an underscore's taken.

Advertisement: