Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
editing $dosmilies in functions.php Details »»
editing $dosmilies in functions.php
Version: , by AmericanWoman AmericanWoman is offline
Developer Last Online: Mar 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-11-2003 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-14-2003, 06:21 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-14-2003, 06:33 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 (vB-germany users click here) 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

Thank you.
Reply With Quote
  #4  
Old 07-23-2003, 10:32 PM
AmericanWoman AmericanWoman is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-23-2003, 11:45 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"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?
Reply With Quote
  #6  
Old 07-24-2003, 12:31 AM
AmericanWoman AmericanWoman is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-24-2003, 01:19 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You were getting parse errors after what? Installing mYvBIndex hacks?
Reply With Quote
  #8  
Old 07-24-2003, 07:41 PM
AmericanWoman AmericanWoman is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. No. No. Initial post says:

Quote:
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.
Reply With Quote
  #9  
Old 07-24-2003, 07:52 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then why don't you just revert what you did to break the site?
Reply With Quote
  #10  
Old 07-26-2003, 03:41 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why not just add http://www.yoursite.com in your smilies area ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05138 seconds
  • Memory Usage 2,282KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete