View Full Version : Search results papge
Spiffyman
Mar-15-2009, 04:23 AM
Site:
http://www.abouttowneimagery.com/
click the search button on top right (leave blank for search term)
- If one started off the home page, gallery, etc . . . works fine
- Click on link off the recently added page, get a smugmug default looking page that does not match my site customization
Any idea why?
Spiffyman
Mar-15-2009, 05:00 AM
Looking more in to this, actually an interesting little issue. Is seems that when you run a timeline query (say by a specific year), the resulting page is half back-end smug mug, have customized from the individual site.
So in this case, the search button on the top results in a default smugmug page, rather then the "default theme" I have set for the site.
Spiffyman
Mar-15-2009, 08:07 AM
Looking more in to this, actually an interesting little issue. Is seems that when you run a timeline query (say by a specific year), the resulting page is half back-end smug mug, have customized from the individual site.
So in this case, the search button on the top results in a default smugmug page, rather then the "default theme" I have set for the site.
Must be a bug in logic, same thing happens on one of the site's highlighted on the SmugMug homepage featured list.
http://ericandmelissa.smugmug.com/
jfriend
Mar-15-2009, 08:22 AM
Site:
http://www.abouttowneimagery.com/
click the search button on top right (leave blank for search term)
- If one started off the home page, gallery, etc . . . works fine
- Click on link off the recently added page, get a smugmug default looking page that does not match my site customization
Any idea why?
I can't say I understand why this is happening, but the HTML for the search box in your date page is different than the HTML for the search box on your home page. One is Smugmug's "short" version, the other is the "long" version and they do have different logic.
Is this HTML pasted into your custom header?
Spiffyman
Mar-15-2009, 08:53 AM
I can't say I understand why this is happening, but the HTML for the search box in your date page is different than the HTML for the search box on your home page. One is Smugmug's "short" version, the other is the "long" version and they do have different logic.
Is this HTML pasted into your custom header?
No, there is not HTML in the customer header that would make the difference. Customer header is just a DIV, SMUGSEARCH, END DIV.
It seems to happen on all timeline pages once you make a selection - throws off other customizations as well (example breadcrumb replacement for changing the nickname). Timeline just doesn't respect themes or customizations properly. Did some poking around others sites - theirs does the same things too, guess no one has noticed before?
jfriend
Mar-15-2009, 09:13 AM
No, there is not HTML in the customer header that would make the difference. Customer header is just a DIV, SMUGSEARCH, END DIV.
It seems to happen on all timeline pages once you make a selection - throws off other customizations as well (example breadcrumb replacement for changing the nickname). Timeline just doesn't respect themes or customizations properly. Did some poking around others sites - theirs does the same things too, guess no one has noticed before? As I mentioned in your other thread, the breadcrumb replacement issue has nothing to do with this. That's just a different looking breadcrumb that your breadcrumb replacement code doesn't know how to handle.
Can you post the exact HTML you have in your custom header? I want to see how Smugmug could be changing it for different pages.
Spiffyman
Mar-15-2009, 09:25 AM
As I mentioned in your other thread, the breadcrumb replacement issue has nothing to do with this. That's just a different looking breadcrumb that your breadcrumb replacement code doesn't know how to handle.
Can you post the exact HTML you have in your custom header? I want to see how Smugmug could be changing it for different pages.
Hi John,
I posted this before I read the other - I get that they are seperate :-)
Here is the code from the header:
<div id="my_banner"><div id="addButtons">
<!-- AddThis Button BEGIN -->
******** type="text/javascript">var addthis_pub="REMOVED";</********
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-plus.gif" width="16" height="16" alt="Bookmark and Share" style="border:0"/></a>******** type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></********
<!-- AddThis Button END -->
Bookmark & Share |
<a href="javascript:toggleHeight('allFeeds2');"><img src="http://cdn.smugmug.com/img/spacer.gif" alt="Show Feeds" title="Show Feeds" width="16" height="16" hspace="0" vspace="0" border="0" class="feedStandard" /></a> Feeds SMUGSEARCH </div>
</div>
jfriend
Mar-15-2009, 09:30 AM
Hi John,
I posted this before I read the other - I get that they are seperate :-)
Here is the code from the header:
So, apparently, Smugmug's web server is processing the "SMUGSEARCH" value you have in your custom header and giving you different search HTML depending upon the context. It's that different HTML that is causing the discrepancy you see. If you want it to go away, you could replace that value with the actual HTML you want from the page that works how you want. Go to view source, get the actual HTML you want and paste it in instead of this tag. Then, you should get consistent HTML and, hopefully consistent behavior) in different places.
Spiffyman
Mar-15-2009, 09:44 AM
So, apparently, Smugmug's web server is processing the "SMUGSEARCH" value you have in your custom header and giving you different search HTML depending upon the context. It's that different HTML that is causing the discrepancy you see. If you want it to go away, you could replace that value with the actual HTML you want from the page that works how you want. Go to view source, get the actual HTML you want and paste it in instead of this tag. Then, you should get consistent HTML and, hopefully consistent behavior) in different places.
I was thinking the same thing :-) Andy has advised against that in other sections of the forum though as you will get stuck if the code base changes :-(
Anyway, the support people are on it - Andy is checking on the matter. In good hands!
Thanks for taking a look at the issue. It is small, but an anomaly.
I don't have all those complicated codes, just
Can I add a custom search box to my site? (javascript:void(0);) Just put this code in your Custom Header box (not Head Tag):
<div id="mysearch">SMUGSEARCH</div>
I like what it does from the homepage but not from within galleries.
I am not sure I understand how to fix that.
enter pharo as a search word for instance
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.