Search the Community
Showing results for tags 'cms'.
-
Good day, I have a task at hand, I was given an project where I need to combine 3 blogs into on site. I understand the simplistic answer to this but the doing is a bit confusing at this point and would like to get some input from a community. Is there software I can use for this, except for wordpress? Or is it best to design and develop each cms for each blog into a main CMS page. MAIN CMS PAGE -> Blog 1, blog 2, blog 3 and then settings for each blogs and add/edit and delete pages etc. The second problem is that I have briefly dealt with themes before and have found them to be a pain when it comes to trying to select a theme from a list of 3. I got fairly tilted results as some elements confused each other.. Is this fairly normal? Does php have a weakness towards themes? Any software suggestions and guidance would be so appreciated. Thanks in advance
-
This is more of a database architect question. I am building a CMS for website development. I am ready to use it for the first time on one of my clients. Now, my issue is is how to set up some or one of my table(s) for some areas that my client wants to be able to change in the admin section. In their website on the front page, I put together this nice block slider. Its 6 blocks with text, a background image and nice effects. At first it was always going to be static, which was no issue at all, but later they came to me and asked if they could be able to change words in the boxes themselves in the admin section.. Of course this can be easily done by creating a table that is associated with this home page block thing and each row in the table will correspond to one of the blocks on the home page. But I believe there might be an easier way to store this type of data without having to create another table for every feature the client wants to edit, for example they also want to be able to edit a slider on another page. The WordPress database then came into my mind and how they store most of their data as JSON. So I was then thinking of creating a table named 'modules' for examples with three columns (id, title, data). Then inside the data column store the editable fields as a JSON string object. For example a row could like like : 1, "Front Page Box Slider", {"slider-home" : [ {"data" : "value", "img_1", "value1"}, {"data" : "value", "img_2", "value2"} ]} I've been doing a bit of research on this and people have just been saying, never do this if you do want your data to be searched through, which I don't. Can anyone tell me why or why not I should do this, or maybe a better solution to my problem? Thank you
-
Hi again PhpFreakz, yet again I have some issues with my PHP part of my website. A brief summary, I've created an simple CMS for my website so that I am able to add news and results faster and easier. The CMS works great I just have some issues with the finalizing part, so that it also works and looks good with my website. I have in total 3 issues, I will be stating the easiest first and follow up to the hardest. As I'm sure that many people can help me with some of them and might not be able to solve the difficult ones. If you head to this page, you can see my articles I've added to my website. I have an issue with the maximum allowed articles on this page. If I were to add several more articles it would just ignore my design and keep on going. I would like to set a maximum of 4 shown articles, how can i do that? Next up is another fairly easy one. I have - on same page as previous issue - an issue with the articles position. Currently the newest article created is on the bottom, I would like to diverse that so that the top has the newest news and it then goes down to the oldest. My third issue is a fairly complex one (At least for me) and is also an issue on several other pages. If you notice when you click on one of the news in the article page you get redirected to a new page where you can read the full article, problem is that I would like this "new page" to be opened in the same page as where the articles are. For example if you were to change on the navigation, then you get redirected on the same page but only on the "box" that appears. I would like the same effect from when my readers click on one of my articles, they just get a box with the full article and a "go back button". How could i possibly do this? Here are the codes I think are necessary to fix my issues. Let me know if you need anything else and I'll gladly add those. For 1st and 2nd issue: HTML + Some PHP part of index.php <?php foreach ($articles as $article) { ?> <h1 class="newsh1"><a href="article.php?id=<?php echo $article['Id'] ?>"><?php echo $article['title'] ?></a></h1> <p class="newstext"> <?php echo $article[ 'short'] ?> </p> <p class="newsby">Artikel skrevet af <a class="newsauthor" href="#!/page_More"> <?php echo $article[ 'author'] ?> </a>| <span class="newsdate"><?php echo date('j. F o', $article['date']); ?></span> </p> <div class="table"></div> <?php } ?> For 3rd issue: Full code of article.php <?php include_once( 'includes/connection.php'); include_once( 'includes/articles.php'); $article=new Article; if (isset($_GET['id'])) { $id = $_GET['id']; $data = $article->fetch_data($id); ?> <html> <head> <title>CMS System</title> <link rel="stylesheet" href="css/cms.css" /> </head> <body> <div class="container"> <h3><?php echo $data['title'] ?></h3> <small class="margin-left:20px;">Skrevet af <?php echo $data['author'] ?> den <?php echo date('j. F o', $data['date']); ?></small> <p> <?php echo $data[ 'body'] ?> </p> <a href="index.php">← Back</a> </div> </body> </html> <?php } else { header('Location: index.php'); exit(); } ?> HTML+PHP part on index.php <li id="Nyheder"> <div class="box1"> <div class="inner"> <a href="#" class="close" data-type="close"><span></span></a> <div class="news"> <h2>Senest nyt - Side 1</h2> <?php foreach ($articles as $article) { ?> <h1 class="newsh1"><a href="article.php?id=<?php echo $article['Id'] ?>"><?php echo $article['title'] ?></a></h1> <p class="newstext"> <?php echo $article[ 'short'] ?> </p> <p class="newsby">Artikel skrevet af <a class="newsauthor" href="#!/page_More"> <?php echo $article[ 'author'] ?> </a>| <span class="newsdate"><?php echo date('j. F o', $article['date']); ?></span> </p> <div class="table"></div> <?php } ?> </div> <div class="oldernews"><span class="newsold"><a href="#!/Nyheder_page2"><strong>Ældre artikler ></strong></a></span></span> </div> </div> </div> </li>
-
Hi everyone, I just need some help. I want the administrator to be able to select a specific date from a DB table, which will then display the results associated which that date selected. I have been able to do this with sessions, but of course only the administrator would be able to see this. How could this be done so the selection is permanent and the database results are displayed on the website? Regards, Veltu
-
I am hoping to find someone that can take a look at one of our sites that use Xinha CMS. We have 21 of them in use by our clients and all of a sudden none of them will save changes that have been made on a page. Clients sign in, edit their page, click save changes, and nothing happens. Our hosting service says nothing has changed. They tried a couple of things, but no luck. They have advised us to contact a Xinha developer, but not sure if it is even being developed any longer. ANY help would be appreciated. Thank you.
-
The first file adds images correctly but if you want to edit the product, this form ignores the new image. It's not sending it to the file even if there is no previous image, so it's not an overwrite issue (I have other files overwriting images in the same site). It shows the temp name of the image, echoes the success message & updates the db but simply will not move that image. <?php session_start(); include('functions.php'); if (verifySession(getSession(session_id())) != true) { // only returns true for role of Administrator header('Location: noaccess.php'); } dbConnect(); $success=""; $problem=""; $title=""; $author_name=""; $price=""; $pub_name=""; $description=""; $description_b=""; $fileField=""; $newname=""; $product_id=""; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['getListing'])) { $title= mysql_real_escape_string($_POST['title']); $sql=mysql_query("Select * FROM product WHERE title='$title' LIMIT 1"); while($row = mysql_fetch_array($sql)){ $product_id=$row["product_id"]; $title=$row["title"]; $author_name=$row["author_name"]; $price=$row["price"]; $pub_name=$row["pub_name"]; $description=$row["description"]; $description_b=$row["description_b"]; } } if (isset($_POST['title']) && ($_POST['author_name']) && ($_POST['price']) &&($_POST['pub_name']) && ($_POST['description'])&& ($_POST['description_b'])){ { if (isset($_POST['submit']) && (!$problem)) { $product_id= mysql_real_escape_string($_POST['product_id']); $title= mysql_real_escape_string($_POST['title']); $author_name = mysql_real_escape_string($_POST['author_name']); $price= mysql_real_escape_string($_POST['price']); $pub_name= mysql_real_escape_string($_POST['pub_name']); $description= mysql_real_escape_string($_POST['description']); $description_b= mysql_real_escape_string($_POST['description_b']); $fileField=$_FILES['fileField']; //$fileField=(isset($_FILES['fileField'])); mysql_query("UPDATE product SET title='$title', author_name='$author_name', price='$price',pub_name='$pub_name', description='$description',description_b='$description_b' WHERE product_id= '$product_id'") or die (mysql_error()); $success='Updated ' .$title. '.'; if ($_FILES[$fileField]['tmp_name'] != "") { //Place image in the folder $product_id=mysql_insert_id();//how it tags the image in addBook, makes no difference with or w/o it here $newname = 'product' . $product_id. '.jpg'; move_uploaded_file($_FILES[$fileField]['tmp_name'], "product_images/$newname"); } } } } } //} ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Edit a Listing</title> <link rel="stylesheet" type="text/css" href=".././project.css"> <link rel="icon" type="image/png" href="https://<snip>/iShop/project_images/icon.png" > <script type="text/javascript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body onload="MM_preloadImages('../project_images/inventory_down.png')"> <?php include('header.php');?> <?php include('.././footer.php');?> <div id="pageContent"> <p align = "center"><a href="index.php"><img src="../project_images/admin.png" width="609" height="71" alt="Admin Panel" /></a></p> <br /> <div id="addBook"> <form action="<?php htmlentities($_SERVER['PHP_SELF']) ?>" enctype="multipart/form-data" name="editBook" class="addBook_bg" method="post"> <a href="seeBooks.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Inventory','','../project_images/inventory_down.png',1)"><img src="../project_images/inventory.png" alt="Inventory" name="Inventory" width="336" height="86" border="0" id="Inventory" /></a> <h2> Edit a Listing</h2><br/><br/> <?php //echo $book; ?> <table width="90%" border="0" cellspacing="0" cellpadding="6"> <tr> <td width="20%" align="right">Title</td> <td width="80%"> <input name="title" type="text" id="title" size="30" maxlength="100" class="form_input" value="<?php echo $title; ?>" /><input type="submit" name="getListing" id="getListing" value="Get Listing" /><br/><?php if(isset($_POST['submit'])) { $title=preg_replace('#[^a-z0-9?!-: (),]#i','',$_POST['title']); if($title =="" ){ echo '<span class="warning"></span>Please enter a title.</span>'; $problem = TRUE;}} ?> </td> </tr> <tr> <td align="right">Author</td> <td> <input name="author_name" type="text" id="author_name" size="30" maxlength="80" class="form_input" value="<?php echo $author_name; ?>"/><?php if(isset($_POST['submit'])) { $author_name=preg_replace('#[^a-z ]#i','',$_POST['author_name']); if($author_name =="" ){ echo '<span class="warning"></span>Please enter the author.</span>'; $problem = TRUE;}} ?> </td> </tr> <tr> <td align="right">Price</td> <td><input type="text" name="price" id="price" size="30" maxlength="7" class="form_input" value="<?php echo $price; ?>" /><?php if(isset($_POST['submit'])) { $price=preg_replace('#[^0-9.]#i','',$_POST['price']); if($price =="" ){ echo '<span class="warning"></span>Please enter the price.</span>'; $problem = TRUE;}} ?> </td> </tr> <tr> <td align="right">Publisher</td> <td><input type="text" name="pub_name" id="pub_name" size="30" maxlength="80" class="form_input" value="<?php echo $pub_name; ?>" /><?php if(isset($_POST['submit'])) { $pub_name=preg_replace('#[^a-z0-9?!-: (),]#i','',$_POST['pub_name']); if($pub_name =="" ){ echo '<span class="warning"></span>Please enter the publisher.</span>'; $problem = TRUE;}} ?> </td> </tr> <tr> <td align="right">Description</td> <td> <textarea name="description" type="text" id="description" cols="40" rows="6" maxlength="250" class="text_box" /><?php echo $description; ?></textarea><br/><?php if(isset($_POST['submit'])) { $description=preg_replace('#[^a-z0-9?!-: (),]#i','',$_POST['description']); if($description =="" ){ echo '<span class="warning"></span>Please enter the description.</span>'; $problem = TRUE;}} ?> </td> </tr> <tr> <td align="right">Detail</td> <td> <textarea name="description_b" type="text" id="description_b" cols="40" rows="6" maxlength="250" class="text_box" /><?php echo $description_b; ?></textarea><br/><?php if(isset($_POST['submit'])) { $description_b=preg_replace('#[^a-z0-9?!-: (),]#i','',$_POST['description_b']); if($description_b =="" ){ echo '<span class="warning"></span>Please enter the detail.</span>'; $problem = TRUE;}} ?> </td> </tr> <tr> <td align="right">Picture</td> <td> <input type="file" name="fileField" id="fileField" /> </td> </tr> <tr> <td> </td> <td> <input name="product_id" type="hidden" value="<?php echo $product_id; ?>" /> <input type="submit" name="submit" id="submit" /> <input type="reset" onclick="location.reload('editBook.php');return false;"/> <?php echo $success ?> </td> </tr> </table> <br/><br/> </form> <br /><br /> </div> </div> </body> </html>
-
I currently am looking for a php programmer to either revamp a current freeware chat / CMS program I am presently using or for someone with the ability to write what we need. We are a fiction writing / roleplaying community and the current chat / CMS program we use (freeware) is out of date with php and javascript updates. Needlessly to say it is failing in various areas and things have begun to stop working. We have very specific needs and have a budget with which to work and would like to get this work done as soon as possible. Willing to pay a portion up front. You can contact meon AIM @ para.siempre or on gtalk okatykatbonita@gmail.com or at that same e-mail. SERIOUS INQUIRES ONLY PLZ! Thank you for your time!! Kate
-
Hello everybody, I've started using a new CMS called Expression Engine. I'm very new but I know my way around the CMS itself and I need some help implementing a feature for a blog page. Currently on the blog page I have: {embed="/embed/header"} {embed="/embed/footer"} ..to give me my blank template of the page. I'm also using an embed to bring in the articles and a load more button, currently loading a new page with 6 new articles. What I want to achieve is an ajax load which loads 6 more articles underneath the existing 6. If anyone could help me find a tutorial or give me some advice on how to amend the current code to not load but dynamically enter 6 articles underneath ? The code underneath is the code that enables a new load with the next 6 articles Any help would be much appreciated ? HELP! {exp:channel:entries channel="research-developments" limit="6" status="Featured|Open" entry_id="not {embed:exclude-entry}" paginate="bottom" disable="member_data|trackbacks"} {switch="<div class='row'>||"} <div class="span3"> {article-block} </div> {switch="||</div>"} {if {count}=={total_results}} {if {count}!='3' AND {count}!='6'} </div><!-- close row --> {/if} {/if} {paginate} <div class="row"> <div class="span9"> {if next_page} <a href="{auto_path}" class="btn btn-large btn-block next" data-loading-text="Loading...">More articles (Showing page {current_page} of {total_pages} pages )</a> {/if} </div> </div> {/paginate} {/exp:channel:entries}
-
Need help with a 3rd party , small CMS script.
cyber_alchemist posted a topic in Third Party Scripts
I found this small CMS script over the internet , all tough this script few errors, i managed to clear a few, but I still can't find the problem why it isn't posting any data into the database. here is the script related to this : <?php require_once 'db.inc.php'; require_once 'cms_http_functions.inc.php'; $db = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD) or die ('Unable to connect. Check your connection parameters.'); mysql_select_db(MYSQL_DB, $db) or die(mysql_error($db)); if (isset($_REQUEST['action'])) { switch ($_REQUEST['action']) { case 'Submit New Article': $title = (isset($_POST['title'])) ? $_POST['title'] : ''; $article_text = (isset($_POST['article_text'])) ? $_POST['article_text'] : ''; if (isset($_SESSION['user_id']) && !empty($title) && !empty($article_text)) { $sql = 'INSERT INTO cms_articles (user_id, submit_date, title, article_text) VALUES (' . $_SESSION['user_id'] . ', "' . date('Y-m-d H:i:s') . '", "' . mysql_real_escape_string($title, $db) . '", "' . mysql_real_escape_string($article_text, $db) . '")'; mysql_query($sql, $db) or die(mysql_error($db)); } redirect('cms_index.php'); break; case 'Edit': redirect('cms_compose.php?action=edit&article_id=' . $_POST['article_id']); break; case 'Save Changes': $article_id = (isset($_POST['article_id'])) ? $_POST['article_id'] : ''; $user_id = (isset($_POST['user_id'])) ? $_POST['user_id'] : ''; $title = (isset($_POST['title'])) ? $_POST['title'] : ''; $article_text = (isset($_POST['article_text'])) ? $_POST['article_text'] : ''; if (!empty($article_id) && !empty($title) && !empty($article_text)) { $sql = 'UPDATE cms_articles SET title = "' . mysql_real_escape_string($title, $db) . '", article_text = "' . mysql_real_escape_string($article_text, $db) . '", submit_date = "' . date('Y-m-d H:i:s') . '" WHERE article_id = ' . $article_id; if (!empty($user_id)) { $sql .= ' AND user_id = ' . $user_id; } mysql_query($sql, $db) or die(mysql_error($db)); } if (empty($user_id)) { redirect('cms_pending.php'); } else { redirect('cms_cpanel.php'); } break; case 'Publish': $article_id = (isset($_POST['article_id'])) ? $_POST['article_id'] : ''; if (!empty($article_id)) { $sql = 'UPDATE cms_articles SET is_published = TRUE, publish_date = "' . date('Y-m-d H:i:s') . '" WHERE article_id = ' . $article_id; mysql_query($sql, $db) or die(mysql_error($db)); } redirect('cms_pending.php'); break; case 'Retract': $article_id = (isset($_POST['article_id'])) ? $_POST['article_id'] : ''; if (!empty($article_id)) { $sql = 'UPDATE cms_articles SET is_published = FALSE, publish_date = "0000-00-00 00:00:00" WHERE article_id = ' . $article_id; mysql_query($sql, $db) or die(mysql_error($db)); } redirect('cms_pending.php'); break; case 'Delete': $article_id = (isset($_POST['article_id'])) ? $_POST['article_id'] : ''; if (!empty($article_id)) { $sql = 'DELETE a, c FROM cms_articles a LEFT JOIN cms_comments c ON a.article_id = c.article_id WHERE a.article_id = ' . $article_id . ' AND is_published = FALSE'; mysql_query($sql, $db) or die(mysql_error($db)); } redirect('cms_pending.php'); break; case 'Submit Comment': $article_id = (isset($_POST['article_id'])) ? $_POST['article_id'] : ''; $comment_text = (isset($_POST['comment_text'])) ? $_POST['comment_text'] : ''; if (isset($_SESSION['user_id']) && !empty($article_id) && !empty($comment_text)) { $sql = 'INSERT INTO cms_comments (article_id, user_id, comment_date, comment_text) VALUES (' . $article_id . ', ' . $_SESSION['user_id'] . ', "' . date('Y-m-d H:i:s') . '", "' . mysql_real_escape_string($comment_text, $db) . '")'; mysql_query($sql, $db) or die(mysql_error($db)); } redirect('cms_view_article.php?article_id=' . $article_id); break; default: redirect('cms_index.php'); } } else { redirect('cms_index.php'); } ?> It is the article transact file... and below is the composing script : <?php require 'db.inc.php'; include 'cms_header.inc.php'; $db = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD) or die ('Unable to connect. Check your connection parameters.'); mysql_select_db(MYSQL_DB, $db) or die(mysql_error($db)); $action = (isset($_GET['action'])) ? $_GET['action'] : ''; $article_id = (isset($_GET['article_id']) && ctype_digit($_GET['article_id'])) ? $_GET['article_id'] : '' ; $title = (isset($_POST['title'])) ? $_POST['title'] : '' ; $article_text = (isset($_POST['article_text'])) ? $_POST['article_text'] : '' ; $user_id = (isset($_POST['user_id'])) ? $_POST['user_id'] : '' ; if ($action == 'edit' && !empty($article_id)) { $sql = 'SELECT title, article_text, user_id FROM cms_articles WHERE article_id = ' . $article_id; $result = mysql_query($sql, $db) or die(mysql_error($db)); $row = mysql_fetch_array($result); extract($row); mysql_free_result($result); } ?> <h2>Compose Article</h2> <form method="post" action="cms_transact_article.php"> <table> <tr> <td><label for="title">Title:</label></td> <td><input type="text" name="title" id="title" maxlength="255" value="<?php echo htmlspecialchars($title); ?>"/></td> </tr><tr> <td><label for="article_text">Text:</label></td> <td><textarea name="article_text" name="article_text" rows="10" cols="60"><?php echo htmlspecialchars($article_text); ?></textarea></td> </tr><tr> <td> </td> <td> <?php if ($_SESSION['access_level'] < 2) { echo '<input type="hidden" name="user_id" value="' . $user_id . '"/>'; } if (empty($article_id)) { echo '<input type="submit" name="action" "value="Submit New Article"/>'; } else { echo '<input type="hidden" name="article_id" value="' . $article_id . '"/>'; echo '<input type="submit" name="action" "value="Save Changes"/>'; } ?> </td> </tr> </table> </form> <?php require_once 'cms_footer.inc.php'; ?> -
Hey guys! I'm new to the forum, but I'm making this post because of my sincere frustration with PHP right now. I love web development and I do have a passion for it. Right now I'm working on a personal portfolio, and I would like for it to be all created from scratch using HTML, CSS, Javascript, and PHP. I want to have a basic Home Page, About, Portfolio, and Contact page. I want to have an admin section to log in with. I want the public to not be able to do anything but view whats on the pages I want the admin to be able to edit whats on a page with some sort of WYSIWYG box The reason I want to take my own approach instead of using wordpress, or drupal; is because I'm really looking forward to furthering my education and feel it would be a good experience. I've made basic login systems, and CRUD systems in School. But never have I done one with my own project. I have all of the HTML done, and the layout of the site (design aspect) complete. But whats next?what should my database look like? My Question: Where do I start? If this were you, how would you do this? I'm really looking for someone to help draw this out for me and tell me how you'd approach this. Your help is sincerely appreciated.
-
Hi all. I'm building a site (which you will be able to find here: http://www.xclo.mobi/xclo2) and have a list of categories on this site. Each category on that page is linked to an item In my Database. Which then displays more content once clicked. I have a separate database form within the same database called apps (instead of mobi). Inside this I have a list of apps available but some apps are for selected devices. For example some apps link to google play and can only be displayed on an android device as displaying these on another device (ios for example) can be seen as pointless. The same goes for displaying iPad apps on an iPhone and also on an android as these can be seen as pointless. The device is saved in my apps database under the field "device" and have one of these categories iPhone iPad or android, What I would like is to display a category on my index page along side my other ones which say "APP DOWNLOADS". And once clicked it only displays the relevant apps available just like my current promotions on my site. But I only want the link to appear if they are on one of these devices: iPod touch, iPhone, iPad mini, iPad, android as these are the only devices that I have content for at the moment. For example. If you are viewing on a blackberry or a windows 8 or even a Firefox phone then this category will not show up. Please can someone tell me how to do this? Thank you. My code for my index page is: <?PHP include_once('include/connection.php'); include_once('include/article.php'); $category = new category; $articles = $category->fetch_all(); ?> <!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> <title>Xclo.mobi</title> <link type="text/css" rel="stylesheet" href="other.css" /> <link rel="apple-touch-icon" href="homescreen.png" /> <link href="startup.png" rel="apple-touch-startup-image" /> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-34172259-1']); _gaq.push(['_setDomainName', 'xclo.co.uk']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body> <?php include_once('header.php'); ?> <div id="content"> <?php foreach ($articles as $article) { ?> <ul class="pageitem"><li class="button"> <a href="list.php?id=<?php echo $article['promo_cat']; ?>"> <input type="submit" name="Submit" value="<?php echo $article['promo_cat']; ?>"/> </a></li></ul> <?php } ?> </div> <br><center> <SCRIPT charset="utf-8" type="text/javascript" src="http://ws-eu.amazon-adsystem.com/widgets/q?rt=tf_sw&ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fxclo-21%2F8002%2Fc2cd2f40-ca29-49bc-add9-6cf16307e855"> </SCRIPT> <NOSCRIPT><A HREF="http://ws-eu.amazon-adsystem.com/widgets/q?rt=tf_sw&ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fxclo-21%2F8002%2Fc2cd2f40-ca29-49bc-add9-6cf16307e855&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT></center> <?php include_once('footer.php'); ?> </body> </html> Please help. Thank you.
-
I was looking for a magento application for a ecommerce store and finally found a native application called Magento Android Application by Adodis at Android Market place. If you have any other application similar to this please let me know
-
We keep having random 500 Internal Server Errors on several of our PHP, MySQL, Magento based sites. I’ve spent hours trying to hunt down what’s happening. Where can I find a php, mysql, magento expert to help me resolve this for good? (Also, our host says our PHP-FPM process continues to segfault. If you know what that means.)
-
hi all. Creating a cms and am adding an add page. my code for add.php is: <?php session_start(); include_once('../include/connection.php'); if (isset($_SESSION['logged_in'])){ if (isset($_POST['title'], $_POST['content'])) { $title = $_POST['title']; $content = nl2br($_POST['content']); $image = $_POST['Image URL']; $link = $_POST['Link']; $price = $_POST['Price']; if (empty($title) or empty($content)) { $error = 'All Fields Are Required!'; }else{ $query = $pdo->prepare('INSERT INTO apps (app_title, app_content, app_img, app_link, app_price) VALUES(?, ?, ?, ?, ?)'); $query->bindValue(1, $title); $query->bindValue(2, $content); $query->bindValue(3, $image); $query->bindValue(4, $link); $query->bindValue(5, $price); $query->execute(); header('location: index.php'); } } ?> <html> <head> <title>testing</title> <link rel="stylesheet" href="../style.css" /> </head> <body> <div class="container"> <a href="index.php" id="logo">CMS</a> <br /> <h4>Add Article</h4> <?php if (isset($error)) { ?> <small style="color:#aa0000;"><?php echo $error; ?></small><br /><br /> <?php } ?> <form action="add.php" method="post" autocomplete="off"> <input type="text" value="" name="title" placeholder="Title" /><br /><br /> <textarea rows="15" cols="50" value="" placeholder="Content" name="content"></textarea><br /><br /> <input type="text" value="" name="Image URL" placeholder="Image URL" /><br /><br /> <input type="text" value="" name="Link" placeholder="Link" /><br /><br /> <input type="text" value="" name="Price" placeholder="Price" /><br /><br /> <input type="submit" value="Add Article" /> </form> </div> </body> </html> <?php }else{ header('location: index.php'); } ?> my trouble is. it does not add to the database and there for I am unable to add content. can anyone see why? (cpanel error log is turned on and not telling me there is an error)
-
Hi guys. I am creating a cms for my own and am rather new to php and databases. what i want is to simply display each item on my mysql database in a list and display each image with the title next to it. I currentiy have this code on my index page: <?php include_once('include/connection.php'); include_once('include/article.php'); $app = new article; $apps = $app->fetch_all(); ?> <html> <head> <title>App Donate</title> <link rel="stylesheet" href="style.css" /> </head> <body> <ol> <?php foreach ($apps as $app) { ?> <li><a href="article.php?id=<?php echo $apps['app_id']; ?>"> <img src="<?php echo $row_getdetails['app_img']; ?>" alt="Image from DB" /> <?php echo $apps['app_title']; ?> </a> <?php } ?> </li></ol> </div> </body> </html> include/article.php <?php class article { public function fetch_all(){ global $pdo; $query = $pdo->prepare("SELECT * FROM `apps`"); $query->execute(); return $query->fetchAll(); } public function fetch_data($app_id) { global $pdo; $query = $pdo->prepare("SELECT * FROM apps WHERE app_id = ?"); $query->bindValue(1, $app_id); $query->execute(); return $query->fetch(); } } ?> my index page can be found HERE as you can see it has seen that there is 2 posts in my databace but it just is not displaying the content. please can someone help? THANK YOU.
-
Hello Friends... I am in the search of perfect and complete LMS which will act as a school management system where students will be able to do online admissions and teachers will do the course management..!!! I want a complete system which will also have SMS gateways... Basically I am looking for the features like: student online admission, LMS, attendance, fees management, sms notification, etc... Please suggest me the suitable open-source system ASAP... this is very urgent... I am ready for core PHP as well as Joomla or any other CMS... Please suggest a system which can has maximum features as per my requirements..!! Waiting for the replies... Thanks in advance friends..!!
- 2 replies
-
- lms
- school management system
-
(and 1 more)
Tagged with:
-
Hello, Does anyone have the "cms storeadmin" by "Adam Khoury" from developphp? Is there any way that I can find a custom cms? Any ideas to build an online store with custom/ create my own cms? Please reply me as soon as possible! Thank you!
-
hi guys, I'm searching for a CMS that doesn't break his API too often and when it does it must be done without the need to restart from scratch(like Drupal ) I really like the stability of the wordpress API and I'm searching for a CMS that have some API stability too. It's not that wordpress is bad, it's just too popular and because of that it's a big target for hackers. Do you have some recommendations? Thank's for your time and have a good day
-
Hi , I try to develop a cms , i welcome any help or opinion , root file : index.php , .htaccess folders : ==>core --> includes { bootstrap.inc.php , dbconnect.inc.php , patch.inc.php , ...) --> modules {user , content , menu , sys , box } --> style {css , img , template } ==>server --> default {config.php} --> example.com {config.php , modules , style , files} ==>main --> files --> library --> modules --> style ---->default {template , css , img } The index file content : <?php define('ROOT', getcwd()); require_once ROOT . '/core/includes/bootstrap.inc.php'; ?> .htaccess file content : RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L]
-
Hello, I'm making my own CMS, not a simple one neither a very advanced one. I just finished my installation page, where users can input their database information, and can continue on to create their admin account. My question is, I'm having a bit of a struggle figuring out, how I should check if the CMS has already been installed, and redirect the users to the login screen. I sneak peaked at wordpresses code, and saw that they check their cache and some other advanced stuff, that I couldn't really understand 100%. So does anybody have a suggestion on how I should manage to do this, or could tell me how I can do it the same way wordpress does, or something close to that! Thank you !
-
Hello, Thank you for taking a look at my question. I have a question about managing database entries with respect to a content management system. I am currently using one solution that I believe is a terrible way to handle things and my hope here is to find a better, more professional way to do things. So far I have tried different ways of coding a solution, but every time I just get a bunch of gibberish that doesn't make any sense. I've also tried to look for answers on the web, but I've had no luck, I suspect I don't know how to word my question properly. Anyways, let me explain what it is I am trying to accomplish. I have a Staff Page on a website that displays information for each staff member. Each entry includes a photo, biography and work location for each member. This information is stored in a MySQL database and is displayed on the web page using php. I want to be able to list all of the entries from the database and then choose which ones to delete or update as well as have the option to add a new staff member. Currently this is what I'm doing: On the CMS side of things I have an html form that has one section for each staff member (8 employees = 8 sections) that is populated with the entries in the database. To update any information I just edit the page and when I click submit, it updates the database. Now you know why I called it a terrible solution. To date this method has "done the trick" because I am the one managing all of the entries. If there is a new employee I just add another section to the page, or if an employee leaves I just clear the entry and hit submit. The main problem is that none of my customers could ever manage this part of their website, which prevents me from giving them a proper content management system. Right now I feel like I have all the pieces to the puzzle, but I just don't know how to put them all together. I would really appreciate some help with two things: 1) Some direction to get me started on a solution, I like to work through things on my own as much as possible, I learn more that way. 2) Help with wording the title of this thread properly, I like to try and make it so it's not misleading and also if someone has the same problem later on, they can find a solution. Thank you for your time, ~FOX~