Support Forums

Tip button in template

This is a discussion on Tip button in template within the Customizations forums, part of the Developer Forums category; I don't know for sure if this is causing any issues or not, but generally speaking I wouldn't include this ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 12-06-2010, 02:24 PM   #11
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,310
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I don't know for sure if this is causing any issues or not, but generally speaking I wouldn't include this code above the doctype declaration of the page. Since you are using the smarty php identifier, why don't you put it either in the <head> section or in the actual <body>.

As you already stated that this php file is calling a stylesheet (and we don't know what else), calling a stylesheet before you even declare a doctype, in my opinion, is not going to work, as stylesheets are called and loaded in the <head> section of an XHTML document. How would the browser rendering engine even know what to do with a stylesheet if it doesn't even know what kind of a document it is???

In addition, you are using relative addressing when you haven't even established a base href (the base href is in the head section), so how would it know where to go? In relation to what??? If you put a link in the head section above the base href declaration using relative addressing, it will not load.

I believe this will work using the relative address that Blair provided, as long as you put your code anywhere after both the doctype declaration and the base href declaration.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 12-06-2010, 02:45 PM   #12
Staff
 
Join Date: Mar 2006
Posts: 587
Rep Power: 34
Blair will become famous soon enough
Default

Sorry it doesn't work. Instead of using my former post as a literal solution, use it as an example of different paths to try.

Mike's gotta good point as well.

Something else - if it's just styles that you're trying to include, you could copy and paste the style definitions to the stylesheet of the template you're using now.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 12-06-2010, 02:49 PM   #13
Customer
 
Join Date: Oct 2010
Posts: 53
Rep Power: 5
zooi is on a distinguished road
Default

Dear Mike,

I had just followed the instructions in the user guide of this SmarTip, see enclosed zip file

However I followed your instructions but unfortunately a blank page appeared.
Attached Files
File Type: zip SmarTip - English.zip (458.7 KB, 2 views)
zooi is offline   Reply With Quote
Old 12-06-2010, 04:55 PM   #14
curmudgeon
 
Join Date: Mar 2006
Posts: 5,411
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I wouldnt put anything in the .modules folder but a module designed to be installed via the 68C module system.

I would put the smartip folder inside your template folder.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 12-06-2010, 05:24 PM   #15
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,310
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I agree with Larry and was also going to suggest that as well in my last post.

Although you are following the instructions provided by the developers of your script that you are using, obviously that isn't going to work that way with the 68C script. As with many technological things, there are several factors. I'm sure that the developers of the smart tip script aren't aware of how the 68C script works, or with the use of smarty and the configuration of smarty to boot.

There are several things that could be going on including the fact that we don't know what the php script is trying to echo out, or what else it may be calling. If it's echoing out javascript, then the javascript in a smarty template has to have a {literal} {/literal} around the code. There could be conflicting variable names in the php and/or in the CSS elements as well.

Unfortunately, you're going to need to go through their code to see what it's doing and probably make modifications. If you don't have the knowledge to that, then you might want to consider hiring someone who does. Classifiedmods.com
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 12-07-2010, 02:42 PM   #16
Customer
 
Join Date: Oct 2010
Posts: 53
Rep Power: 5
zooi is on a distinguished road
Default

Ok. I will go through the code and let you know if it works.

Thanks for all the help so far.
zooi is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
On/off button damiun Customizations 0 11-26-2009 08:13 AM
css - button formatting adexinc Templates, HTML, CSS, and Design Help 3 10-13-2009 09:45 AM
<button> as Submit button bowers01 Templates, HTML, CSS, and Design Help 1 09-27-2008 05:21 AM
Logout Button goin4savvy Technical Support 2 05-20-2008 11:54 AM
Modify Button ? VikingBEAR Technical Support 1 05-10-2008 11:57 PM


All times are GMT -4. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0