PDA

View Full Version : editing $dosmilies in functions.php


AmericanWoman
07-11-2003, 11:22 PM
Ok, I'm just trying to avoid having to edit every single smiliepath in order to make smilies work with both the forums directory as well as the site root directory (thanks to various installations of myvBindex and custom hacks).

First, I edited the $dosmilies function by adding $bburl/ to the image src= call, and that broke smilies for the entire site. OK. I also tried manually inserting the text /forums/ (such a simple thing, here - really!), and broke not just smilies but the entire site with a parse error.

Help? I'm rusty. I'm sure the solution is obvious. :(

Gary King
07-14-2003, 06:21 PM
What exactly are you trying to do? Have smilies get pulled from two directories?

And why not just try reverting your functions.php back to the original? Or just check what the default values were in that part of the file.

filburt1
07-14-2003, 06:33 PM
AmericanWoman,

You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (http://www.vbulletin.com/members/forums.php) (vB-germany users click here (http://www.vbulletin-germany.com/members/forums.php)) and enter your email address, to show us that you are licensed.

You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

Also, Lenny Kravitz's song about you is really good :D

Thank you.

AmericanWoman
07-23-2003, 10:32 PM
They had my old email address - funny. Fixed now. Anyhow, back to this question.

Some portal hacks (among others) require that smilies have a relative link to the site home page instead of the forums home. I tried editing the $dosmilies function (really just the img src output line) with both a hardcoded link and a variable link ($bburl, although if there's something else I should have tried, I'm not surprised) - both broke the site.

Gary King
07-23-2003, 11:45 PM
"Broke the site"? I'm assuming this just means that the images don't show? What are the paths for the <img> tag in the output then?

AmericanWoman
07-24-2003, 12:31 AM
Nope - by "broke" I mean "broke". The two different edits produced different errors, both resulting in the entire forum not functioning (PHP parse errors, but since I'm not going to repeat it on a live site and our dev site is temporarily down, I can't remember exactly what they were).

Surely someone else has had this problem. I was thinking of writing a script that updated all the image paths in the database to include the needed info, but that's ridicuolous - I should just be able to edit this one line.

Gary King
07-24-2003, 01:19 AM
You were getting parse errors after what? Installing mYvBIndex hacks?

AmericanWoman
07-24-2003, 07:41 PM
No. No. No. Initial post says:

First, I edited the $dosmilies function by adding $bburl/ to the image src= call, and that broke smilies for the entire site. OK. I also tried manually inserting the text /forums/ (such a simple thing, here - really!), and broke not just smilies but the entire site with a parse error.

Help? I'm rusty. I'm sure the solution is obvious.

Gary King
07-24-2003, 07:52 PM
Then why don't you just revert what you did to break the site?

Zachery
07-26-2003, 03:41 AM
why not just add http://www.yoursite.com in your smilies area ?