This forum is for assistance with theme development.

can't see output of php-functions in iframe

I'm novice in drupal and php at all. So my question may seem stupid, but I even have no experience to understand related answers in this brunch on forum.
I'm trying to put all content of the main part of my site, based on phptemplate in iframe. So my page.tpl.php looks like this:

.....
<iframe width="100%" src="tmp.php"></iframe>
.....

and tmp.php, lying in the same directory where index.php contains following:

news bloc

Hi hi everyone,

I hope I post in the right section. If not please can someone redirect me in the good one ?

I am new to drupal and I am trying to figure out every thing I need for my site to grow up good.

I installed Node Teaser (http://drupal.org/project/nodeteaser) to get a separate field on some of my nodes (the one that I store under "the news").

Overriding blog_page_user

Hey!

I'm looking for a way to override blog_page_user.

If i use the function blog_page_user in my template.php file i get the folowing error message:

Fatal error: Cannot redeclare blog_page_user() (previously declared in ....

I just would like to add a div to the link which posts a new blog for the current user.

Is there a way to solve this problem?

Breadcrumbs unchanged

hi all,

i have a problem related to the breadcrumbs, it is always the same. I'm using multi template in the theme and I'm using the taxonomy module also.

Else statement not processed in template file

I want to modify page content on the add form for a CCK content type called buy_magic_mail. So, based on this post, I added this code to template.php:

if ((arg(0) == 'node') && (arg(1) == 'add') && (arg(2) == 'buy-magic-mail')){
  function phptemplate_node_form($user, $form = array()) {
  return _phptemplate_callback('buy_magic_mail', array('user' => $user, 'form' => $form));
  }
}

and made a copy of node.tpl.php renamed as buy_magic_mail.tpl.php. I want to show a message if a certain conditon is true, and the regular form data if it isn't, something like this:

global $user;
$sql = "SELECT COUNT(*) FROM {node} where uid = $user->uid AND type = 'buy_magic_mail' AND status = %d AND sticky = %d";
$count = db_result(db_query($sql,1,1));
if($count > 0) {
  

Text goes here

<?
}

else {
?>

print $node_classes " id="node- print $node->nid; ">
if ($page == 0):

print $node_url "> print $title;

endif;

if ($picture) print $picture;

if ($submitted):

Trouble with manually uploaded files

I'm developing a website and customizing the Zen theme with my own CSS. I'm trying to add custom logos, backgrounds and banners to the different elements but I'm stuck.

When I upload a file manually (i.e just putting it into the /files folder or the theme's /images folder), and edit the css to display the image it doesn't find it. However, another image I've uploaded manually, and used html in a custom page to point to the img src, showed up.

Pages

Subscribe with RSS Subscribe to RSS - Theme development