Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Custom HTML Message in Panel

2»

Comments

  • Options
    Hi all. I would love a little help with a specific instance of this issue of customizing the side panel.

    In the side panel of all my Vanilla 1.1.8 forum's pages, just above the section about Vanilla ("Vanilla 1.1.8 is a product of Lussumo..."), I'd like to add (1) an image and (2) a separate hyperlink that says "return to main page" and links to an external url—the aforementioned main page.

    I see nifkin's post above, about adding an extension, and Mark's simpler suggestion about adding "$Panel->AddString("Weee!!!");". I tried Mark's code and it works, in that it adds that "Weee!!!" marquee right where I want to be adding the link and image I have planned. But I haven't been able to teach myself how to adapt Mark's piece of code for my purposes. I know how to write the html code for an image and a hyperlink, but I gather that's not what's called for here. That's where I got stuck.

    I see trabus' suggestion above, about adding a stylesheet, and I suspect that this is the general strategy I need to follow. I gather that I would paste that snippet of code he offers ("$Head->AddStyleSheet($StyleSheetLocation);") at the top of the php file I'm working on (index.php), and eventually the site's other relevant php files. I see that he says, "$StyleSheetLocation is obviously the location of the stylesheet to add," but here I need a little handholding. I understand that I will need to save this new stylesheet to the same folder where the other existing stylesheets (e.g., vanilla.css) are stored in my theme's folder on the server, but I don't know this obvious way of representing that location in code. I also don't know how to write a brief stylesheet that will display the image I want and style the string I added to the panel such that it becomes a hyperlink.

    I would be grateful to, not insulted by, any responses that err on the side of overexplanation. As you can see, I'm new to php, and kind of feeling my way around in the dark.

Sign In or Register to comment.