Jump to content

Search the Community

Showing results for tags 'template'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 9 results

  1. Good morning I'm trying to add a widget to a WordPress template using PHP. It works, but the problem is that the widget ends up on a new line in the header instead of next to the logo as I want it. The code looks like this: <div class="branding_wrap"> <?php pagelines_main_logo(); ?> <?php pagelines_register_hook( 'pagelines_before_branding_icons', 'branding' ); // Hook ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('header-1') ) : ?> <?php endif; ?> I've attached a screenshot of the current header to this post. Can anyone tell me what I'm doing wrong? I'm pretty new at PHP. Thank you!
  2. So why would one use a php template engine like smarty, other than to seperate the code from html? Is this method preffered for creating larger web applications with php?
  3. I am a WP and PHP novice still flailing in the deep end of the pool. I am trying to add some logic to display content on certain pages (via WP templates), not on others. I've made some progress but having issues. Here is the plan: On certain pages with an post type of "EVENT" I want content to appear, but not on OTHER pages with an post type of "EVENT". The problem I am running into is that part of the content is appearing on ALL event pages even if they don't meet the criteria. The logic is intended to be this: If the page is post_type "EVENT", AND if the indicated table contains a field with a record CAT which matches the current "POST ID", AND contains a record TYPE which matches value "1", display table cells which contain text "Presented by: ", an href and an image, else display table cells which contain a nonbreaking space. The problem is that the text "Presented by: " is appearing on ALL the even pages, regardless of whether they meet the criteria or not -- which would tend to indicate a problem with the logic code -- but by the same token the href and image are correctly appearing ONLY on the pages that meet the criteria and are NOT appearing on along with the rogue text on pages which do not meet the criteria. I am sure it is a coding error on my part but I am not sure what. ANY help anyone could give would be GREATLY appreciated. The code involved is below (oh, and I should mention that the code in question is in the HEADER.PHP file): <?php if($post->post_type=='event') { $q1=mysql_query("SELECT * FROM table_name WHERE type = 1 AND cat = $post->ID "); $row_diamond=mysql_fetch_object($q1); if ($q1){ ?> <td width="115" align="right" valign="middle" id="diamond1"><strong style="position:relative;bottom:-25px;">Presented by: </strong></td> <td id="diamond2" width="190"> <a href="<?=$row_diamond->website?>" title="<?=$row_diamond->website_title?>" target="_blank" style="cursor:pointer;"><img style="position:relative;bottom:5px;" src="<?php bloginfo('siteurl'); ?>/wp-content/plugins/sean_event/files/<?=$row_diamond->image?>" alt="<?=$row_diamond->alt_text?>"border="0"></a> <br /> </td> <?php } else{ ?> <td width="115" align="right" valign="middle" id="diamond1"> </td> <td id="diamond2" width="190"> </td> <?php } } ?>
  4. Hello, I am using this theme on a site build. I would like to replace the static header image with the Slidedeck 2 Pro, image slider. Their code provided for placing into the header is below. <?php echo do_shortcode( '[SlideDeck2 id=XXXX iframe=1]' ); ?> The pertinent part of my theme's header code is as follows: <div id="header-wrapper"> <div id="header"> <div class="container"> <a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('myproduct_logo') <> '') ? get_option('myproduct_logo') : get_bloginfo('template_directory').'/images/top-bg.jpg'; ?> <img src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="logo"/></a> I have also attached the complete header file. header.php Any help on this would be greatly appreciated, as I am a noob, and do not have the knowledge to perform this task. Thank You, Paul
  5. Hello all! I have a website with around 250 pages. in every pages(login,index,search,contact....... and all others..) all are in this structure: example: index.php <html> <head><title></title>all others thing that goes here</head> <body> <div><?php include 'topmenu.php'; ?> </div> <div><?php include 'leftmenu.php'; ?> </div> <div>//content of active page</div> <div><?php include 'footer.php'; ?> </div> </body> </html> So here are only a short display but the important fact is.. on all main pages as:home,contact,member contact, members profile,... and such a lot more all have there own tags (html,head,body......) So whe n i change my design or other.. i have to pass all pages!!!!! And i suppose isn't the best way. What do you suggest to me! thanks!
  6. How to make effective and professional templates in HTML and CSS ? I do it manually and by writing scripts and codes, is there any other way out without using and designing tools ? If one can design effectively with tool, please tell the tool name here ...........
  7. I'm trying to figure out how to make a template objects (like you would in HTML3) where you can set up readable regions. Reason for this is I have a 12 page website it that shows my work, ie my reel, graphic.... You would have your 1. header wrapper section ( ie log and menu area) 2. this is where I would want a readable regions 3. have another readable region 4 then have your footer wrapper section Here is my html 5 <body> <!-- header-wrap --> <div id="header-wrap"> <header> <!-- <hgroup> <h1><a href="index.html"></a></h1> </hgroup> --> <nav> <ul> <li><a href="#main">Home</a></li> <li><a href="#services">Graphics</a></li> <li><a href="#portfolio">Web</a></li> <li><a href="#about-us">My Reel</a></li> <li><a href="#styles">Media</a></li> <li><a href="#styles">Bio</a></li> <li><a href="#contact">Contact Info</a></li> <li><a href="#styles">Links</a></li> </ul> </nav> </header></div> <!--logo and information --> <!-- header-wrap --> <div id="logo-wrap"> <logo> <lgroup> <h1><a href="index.html"> </a></h1> <h3>Welcome to my website</h3> </lgroup> <nav> <ul> <li>Phone: 714-504-8895 • </li> <li>e-mail: <a href="#mailto:www.damonwongdesign@yahoo.com">damonwongdesign</a></li></ul> </nav> </logo></div> ///---this is where i want to place the readable regions--// ///--this is where I would like to have the footer wrapper---/// </body> </html> This is part of the ccs3 code /* ------------------------------------------------------ STRUCTURE --------------------------------------------------------- */ #header-wrap { width: 100%; height: 45px; z-index: 99999; position: fixed; top: 0; left: 0; } header { position: relative; width: 940px; height: 45px; margin: 0 auto; } /*new information*/ logo-wrap { width: 100%; height: 65px; /* z-index: 99999; */ position: fixed; top: 65px; left: 0; } logo { position: relative; width: 940px; height: 65px; margin: 0 auto; } /*end of new information*/ /* ------------------------------------------- Header -------------------------------------------- */ /*header hgroup { position: absolute; background: url(../images/xxxxdesign.gif) no-repeat; height: 61px; width: 340px; display: block; top: 10px; left: 0; */ } header hgroup h1 a { text-indent: -9999em; display: block; height: 31px; width: 130px; } header hgroup h3 { text-indent: -9999em; height: 0; } /* Main Navigation */ header nav { float: right; margin-top: 25px; } header nav ul { font: bold 12px/25px Helvetica, Arial, Sans-serif; margin-right: -5px; padding: 0; list-style: none; } header nav ul li { float: left; } header nav ul a:link, header nav ul a:visited { color: #c5c4c4; margin-right: 20px; text-shadow: 0 -1px 0 rgba(10, 10, 10, 1); } header nav ul a:hover, header nav ul a:active { color: #17a231 } /*new information ie logo and contact info*/ /* Logo */ logo lgroup { position: absolute; background: url(../images/xxxx.gif) no-repeat; height: 61px; width: 340px; display: block; top: 45px; /*controls height*/ left: 0; } logo lgroup h1 a { text-indent: -9999em; display: block; height: 65px; width: 340px; } logo lgroup h3 { text-indent: -9999em; height: 0; } /* Main Navigation */ logo nav { float: right; margin-top: 60px; /*controls height*/ } logo nav ul { font: bold 12px/25px Helvetica, Arial, Sans-serif; margin-right: -5px; padding: 0; list-style: none; } logo nav ul li { float: left; } logo nav ul a:link, header nav ul a:visited { color: #000000; margin-right: 20px; text-shadow: 0 -1px 0 rgba(10, 10, 10, 1); } logo nav ul a:hover, logo nav ul a:active { color: #17a231 } /*end of new information*/ Any help would be great. Thanks Damon
  8. Dear Gentlemen, hope you are all right. Merry Christmas!! currently workin on a calendar for the new year - a dayly planner - diary! a GTD (Get things done thing) based on a diary with planner-options it is created in open office or /libre office see a overwiew of what is aimed: the question is: how do i get the months that are shown in the bottom - in the footer of the layout. How can i manage to get the months for the whole year. note: the months are shown below - for each week in each month we have some little overviews that show a. the current month b. the previous month c. the month that comes later see the document as it is: http://www.schulcent...ds/Buchkalender 02.odt see the examples for for more infos; note: that is an example for the month of march. Well - how can i do this for the whole year. It is pretty difficult to create the calendar in the bottom. Can you help me here..!? plz ask if i have to explain more deeply greetings see more infos here: btw: there are more infos that go into the calendar. i do a import of the data i import 365 texts called losungen that are biblical notes and verbs. see. note: no problem with the import of all those data: all that goes well and is no problem at all. see an example http://www.schulcent...kalender_02.odt http://www.schulcent...kalender_01.odt http://www.schulcent...th_calendar.jpg http://www.schulcent...alendar_one.jpg
  9. This website that has been running for a few years now. I needed to add two menu items to the dwt template and ever since I made the changes the site loads up to the <head> tag. Here is the dwt,php file <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php require('..Connections/qmbl.php'); $sqlstr = "select i_html from SiteInfo where i_type = 'NEWS_SCROLL'"; $rs_scroll = mysq1_query($sqlstr, $cid); $scroll = mysql_result($rs_scroll,0,0); $sqlstr = "select team_id, t_name from Team t, Settings s where t.t_season = s.cur_season order by t_name"; $rs_teams = mysql_query($sqlstr, $cid); $count=0; $templateTeams=""; while($row = mysql_fetch_assoc($rs_teams)){$templateTeams .= '<a href="team.php?t='.$row['team_id'].'">'.$row['t_name'].'</a><br />'; } //end while ?> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- TemplateBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- TemplateEndEditable --> <link href="../qmbl2010.css" rel="stylesheet" type="text/css" /> </head> <body> <table id="page" width="960" border="0" align="center" > <tr> <td><img src="../images/1ptTrans.gif" width="1" height="200" alt="image"/></td> <td> <div id="header"> <div id="topMenu"> <table width="100%" border="0"> <tr> <td align="center" valign="middle"><img src="../images/1ptTrans.gif" width="1" height="24" alt="image"/></td> <td align="center" valign="middle"><a href="../field.php">Weather</a></td> <td align="center" valign="middle"><a href="../sponsors.php">Sponsors</a></td> <td align="center" valign="middle"><a href="../advertising.php">Advertising</a></td> <td align="center" valign="middle"><a href="../contact.php">Contact</a></td> <td width="25" align="center" valign="middle"> </td> <td width="65" align="right" valign="middle"><a href="../register.php">Register</a> </td> <td align="center" valign="middle">|</td> <td width="45" align="left" valign="middle"><a href="../login.php"> Login</a> </td> </tr> </table> </div> <div id="mainMenu"> <table width="100%" border="0"> <tr> <td height="100%" align="center" valign="middle"><img src="../images/1ptTrans.gif" width="1" height="30" alt="image"/></td> <td height="100%" align="center" valign="middle"><a href="../about.php">league</a></td> <td height="100%" align="center" valign="middle"><a href="../standings.php">standings</a></td> <td height="100%" align="center" valign="middle"><a href="../schedule.php">schedules</a></td> <td height="100%" align="center" valign="middle"><a href="../scorecard.php">scorecard</a></td> <td height="100%" align="center" valign="middle"><a href="../thedugout.php">the dugout</a></td> <td height="100%" align="center" valign="middle"><a href="../news.php">news</a></td> <td height="100%" align="center" valign="middle"><a href="../products.php">products</a></td> <td height="100%" align="center" valign="middle"><a href="../rules.php">rules</a></td> <td height="100%" align="center" valign="middle"><a href="../wavier.php">wavier</a></td> <td height="100%" align="center" valign="middle"><a href="../events.php">events</a></td> </tr> </table> </div> <div id="homelink"><a href="../index.php"><img src="../images/1ptTrans.gif" width="184" height="177" border="0" alt="image" /></a></div> </div></td> </tr> <tr> <td colspan="2"><div id="scroll"><?php echo $scroll; ?></div> </td> </tr> <tr> <td><img src="../images/1ptTrans.gif" width="1" height="250" alt="image"/></td> <td class="body"><!-- TemplateBeginEditable name="body" --><!-- TemplateEndEditable --></td> </tr> <tr> <td><img src="../images/1ptTrans.gif" width="1" height="150" alt="image"/></td> <td valign="top" class="bottomMenu"><table width="100%" border="0"> <tr> <th scope="col"><a href="../index.php">QMBL</a></th> <th scope="col"><a href="../thedugout.php">The Dugout</a></th> <th scope="col">QMBL League</th> <th scope="col">QMBL Links</th> <th scope="col">QMBL Office</th> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><a href="../about.php">About</a><br /> <a href="../awards.php">Awareds</a><br /> <a href="../news.php">News</a><br /> <a href="../events.php">Special Events</a><br /> <a href="../products.php">Products</a><br /> <a href="../field.php">Weather</a></td> <td><?php echo $templateTeams; ?></td> <td><a href="../scorecard.php">Scorecard</a><br /> <a href="../standings.php">Standings</a><br /> <a href="../schedule.php">Schedules</a></td> <td><a href="http://www.mlb.com">MLB</a><br /> <a href="http://www.nfl.com">NFL</a><br /> <a href="http://www.nba.com">NBA</a><br /> <a href="http://www.nhl.com">NHL</a><br /> <a href="http://www.espn.com">ESPN</a><br /> <a href="../games.php">Fun</a></td> <td><a href="../contact.php">Contact</a><br /> <a href="../advertising.php">Advertise with us</a><br /> <a href="../sponsors.php">Sponsors</a><br /> <a href="../poll.php">Poll</a></td> </tr> </table></td> </tr> </table> </body> </html> It error checks but it wont load. Thanks in advance for you help. Kohron J Burton Kohron J Burton LLC
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.