Customizing SMF > SMF Coding Discussion

Where to put persistent code?

<< < (2/2)

Labradoodle-360:
Yeah, I typically place my code right below $context['insert_after_template'] = ''; or detectBrowser(); in Load.php, depending on what I'm needing to add.

If you need to add something to <head> you can add your code right after $context['html_headers'] = ''; or detectBrowser();, if you need to add something to the bottom of the actual body tag, you can add your script to $context['insert_after_template'] .= ''; (after it's primary definition).

BinkyM:
Okay, thanks, Doodle! Then I'm gonna go start making some money! (grin) Especially since I can't seem to put Amazon's crappy-ass iframes anywhere else. I'm gonna miss those; they've been a fair source of of income for seven years, so it's gonna be painful putting in text links instead. But we'll see how this goes. I appreciate your help, men!

Binky

Labradoodle-360:
Not a problem, topic solved? Good luck :)

BinkyM:
Yes, topic solved! I'm a happy admin now!

Labradoodle-360:
Glad to hear it :) Good luck!

Navigation

[0] Message Index

[*] Previous page

Go to full version