PhotoPlog

Go Back   PhotoPlog > PhotoPlog.com > Miscellaneous Foobar
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 10 Years ago
 
Thread Tools
  #1  
Old 06-11-2007, 04:40 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
Orange Plog
 
Join Date: Jun 2006
Posts: 104
Gallery: 2
Comments: 1
Default BASE HREF

This one has nothing to do with PhotoPlog, except that 'plog uses BASE HREF, so I was wondering if anyone had ever come across this issue.

I'm developing a mod which resides 'out of forums', so I use BASE HREF to handle relative links to other parts of vB. Most of the time this works fine.

But ... I have an issue with IE7. When using a vbEditor object, the "More" smilies link does not get BASE-ified. So it tries to call misc.php from my mod dir, instead of the forum root. I'm following the IE7 rules for BASE HREF, so I just have the one, and it's the first thing in headinclude, before any external references.

Googling around, I thought I had the answer. Quite a few people have reported that IE7 doesn't insert the BASE HREF when a link is opened using a JS window.open() call. Which is how the More smilies link gets opened, via an onclick() in the link (although there is an event handler defined for the more_smilies link, it doesn't seem to use it, as there is an embedded onclick() in the 'a href' tag). Oh well, I thought, just chalk another irritation up to IE7.

But then I noticed that in PhotoPlog (for instance when uploading an image), the More link works just fine. And I don't see any 'clever stuff' going on to make it work, it just seems to work. I see how 'plog handles the nasty issue with smilies when switching editor modes, but that's a different issue.

I've banged my head on this one till it hurts, but I just can't see why it works in 'plog, but not in my mod, LOL! We both seem to simply set BASE HREF and hope for the best.

TIA for any ideas or suggestions.

-- hugh

Last edited by cheesegrits; 06-11-2007 at 04:43 PM..
Reply With Quote
  #2  
Old 06-11-2007, 06:01 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

You can either edit the JavaScript file or create a misc.php file in your mod's directory.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 06-11-2007, 07:12 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
Orange Plog
 
Join Date: Jun 2006
Posts: 104
Gallery: 2
Comments: 1
Default

Doh!!! Now I see how it works in 'plog!

Thanks.

-- hugh
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools

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 03:23 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.