This forum is for assistance with theme development.

Drupal themes on a non-drupal page

Hello,

I recently developed a gallery which a client wants to integrate with his drupal install. My question is if it's possible to pull the drupal header and footer to a page outside of drupal.

My gallery uses smarty, which means I can run php code inside the templates. I've reviewed the writing a module tutorial and various handbook pages about templating/theming drupal.

Adding a new theme

I copied the folder of one of the themes onto my desktop (windows). I replaced the logo image with a different logo image & the link images with different link images.. I didn't go any coding to change the theme, just used the primary link box & added more then 1 imaged link inside it (works like a charm)..

however I have NO idea how to add my new themes (I want members to be able to pick whichever theme they like & use it).. I copied the folder (with new name) into the themes folder & was hoping it would just show up.. HA, saddly it seems harder then that lol

Using args(1) to display node information - problem with using it when displaying multiple nodesea

Hi all,

I've just jumped into patching together code for Drupal and finally figured out how to get the current node id - it's arg(1). It took me ages to figure that out (I searched high and low for it but finally found it). So this allowed me to grab some voting information that I want to display about a node.

I placed the following code in my node.tpl.php file and it works when I am in a node (/node/24 for example) but when I am on the main page (/node) it just outputs zero for each node.

Separate Comment link from Read More link

Is it possible to separate the Comment link from Read More link in a Node?
Actually i want to move the Comment link at the top beside of "Submit by" info and keeping the Read More link at the bottom...
any ideas how to modify the node.tpl.php file?

thank you very much

B7 theme .... banner in (or above) the header

Banners show up nicely in the sidebars for me, but they disappear the moment I try to place them in the header. Has anyone here successfully overcome this problem?

Thanks,

Dyrinda

The #comment anchor when user clicks on "create new comment"

I have a Drupal 4.6 site at http://surfcore.co.uk

When a user clicks to create a new comment, they goto a URL like this:

http://surfcore.co.uk/comment/reply/627#comment

but the page they goto (with our theme at least) doesn't have an anchor with id="comment", so the browser starts scrolled to the top and the user can't immediately see the add comment form

Pages

Subscribe with RSS Subscribe to RSS - Theme development