Jump to content

Boxerman

Members
  • Posts

    275
  • Joined

  • Last visited

Everything posted by Boxerman

  1. I'm looking for more of a copy and paste jobby? if thats possible?
  2. Post both HTML and php so we can see.
  3. Hi guys, Could someone point me towards the most simple CMS open source script that i can add to my current design? www.truvibefm.com I've looked on google and they all come with there own design and no instrutions. Thanks
  4. <?php if ($user->hasAccessLevel(9)){ ?> Divert to admin panel <?php }else{ ?> Redirect home <?php } ?> Is that something along the lines?
  5. This is why im asking, im not sure how to start coding or how to attempt it.. Would it be something like... Check database for users details then check the access_level field for value and if it matches 9 then do this else redirect?
  6. Hi thanks for the quick reply, at the moment i havnt coded it.. But the database is set up and users are in there, i've manually set the user access levels for them..
  7. Hi guys, I am trying to get a admin panel, which when the user is logged in, it will check if there user access is(say for this post) 9... If there access is 9 in the database then direct to admin panel if not return them home. Thanks guys
  8. I would like to make the site look more packed if you get me... more stuff.. How would you advise i do this with the display and css?
  9. Hi Drongo! Thanks for your reply, I wish to leave the menu on the left and add the one on the right for centent etc... If you need anything else please just let me know! Thank you!
  10. What i'm tyring to ask is, when i click submit it needs to rule the INSERT job... how do i do it?
  11. So in a nut shell i need to add the fields to database and the forms to the news page... how do i add it to database in the same page and get it to refresh?
  12. Ok i'm starting to understand, but is there no way i can add the comments bit onto the news page itself? I.e News display here: Title: Story: Leave a comment: Name: textfield Comment: textfield Submit | Reset Then post it to the database? and it automatically refreshes the page and displays comment? If so, how on gods earth would i attempt this? Cheers pal!
  13. I see so would i set up an inbound or outbound rule?
  14. Hi, at the moment im using this: /* create query */ $query = "SELECT * FROM news ORDER BY id DESC"; /* execute the query */ $result = mysql_query($query); while($row=mysql_fetch_array($result)) { $image = $row['image']; $title = $row['title']; $posted_by = $row['postedby']; $brief = shorten_string($row['text'], $N); ?><p> <table width="461" height="113" border=0"> <tr> <th width="123" scope="col"><a href="news.php?id=<?PHP echo $row['id']; ?>"><img src="<?PHP echo $image; ?>" width="111" height="103" /></a></th> <th width="322" scope="col"><b><font size="5"><?PHP echo $title; ?></font></b> <br> <font size="2">Posted By: <?PHP echo $posted_by; ?></font> <br><br> </p><p><?PHP echo $brief; ?></p><p><b> <a href="news.php?id=<?PHP echo $row['id']; ?>">Read More</a></b></p><br></th> </tr> </table> <?PHP } ?> how would i add ontop that?
  15. Hi all, I've got a news table as such; `id` int(255) NOT NULL auto_increment, `title` mediumtext NOT NULL, `postedby` mediumtext NOT NULL, `text` mediumtext NOT NULL, `brief` mediumtext NOT NULL, `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, `image` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) I was wondering in PHP how would i be able to add comments to the news? i.e Form: Name, IP (hidden), comments I'll add the name, ip and comments to the database But how do i go around adding that into php?
  16. Thanks buddy! learnt that now!
  17. Hi guys, I'm trying to get a IF put into place, where it checks a database entry for the Username and if its there echo the ID of it... i.e If Boxerman has entered a news story in ID 4 echo 4 onto the page... Database is news, so it has title, text, postedby, timestamp etc.. I want it to check the postedby field for the username.. Can this be done? if so how?
  18. Hi guys, Firstly take a look at this once seen you can understand the following: http://www.truvibefm.com Notice the menu bars on the left hand side... How do i go about getting them to fit in on thr right hand side aswell? CSS code: * { padding:0; margin:0; text-decoration:none; list-style:none; font-family:Tahoma; font-size:11px; outline:none; } body { background: #FFFFFF; } #container { margin:0px auto; width:822px; } h1 { width:321px; height:34px; background:url(images/logo.jpg) no-repeat; text-indent:-999999px; } #header { margin:0px auto; width:840px; height:140px; background:url(images/header.jpg) no-repeat; } #topmenu { margin:0 0 0 12px; width:812px; height:34px; } #topmenu li { margin:0 5px 0 5px; display:inline; line-height:32px; color:#000000; } #topmenu a { color:#000000; font-weight:bold; } #topmenu a:hover { color:#CCCCCC } #menucontent { width:832px; margin:0px auto; background:#FFFFFF; } #links { float:left; width:205px; margin:5px 0px 0px 5px; } #menu { margin:0 0 5px 0; width:205px; } #menu h3 { background:url(images/menukopje.jpg); width:190px; height:28px; padding:0 0 0 15px; line-height:28px; color:#FFFFFF; font-weight:bold; } #linksmenu { width:205px; } #linksmenu li { width:205px; height:21px; line-height:21px; padding-bottom: 2px; padding-top: 0px; } #linksmenu li a { height:21px; width:190px; padding:0 0 0 15px; display:block; background-color: #d1eaf8; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #9DCFFF; color:#326DA6; } #linksmenu li a:hover { height:21px; width:190px; background-color: #d1eaf8; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #9DCFFF; } #linksmenucontent { width:205px; margin:0px 0px 0px 0px; background:#FFFFFF; color:#326DA6; } #linksmenucontent p { width:190px; margin:3px 0px 3px 5px; color:#326DA6; } #menulast { background:url(images/menuvoet.jpg); font-size:0px; height:3px; } #rechts { float:right; width:598px; margin:5px 5px 0px 0px; } #rechtscontent { margin:0px 0px 5px 0px; width:598px; } #rechtscontent h2 { background:url(images/contentkopje.jpg); width:583px; height:28px; padding:0 0 0 15px; line-height:28px; color:#FFFFFF; font-weight:bold; } #rechtscontent ul { padding:3px 3px 3px 0px; background:#FFFFFF; color:#243c00; } #rechtscontentlast { background:url(images/contentvoet.jpg); font-size:0px; height:3px; } #rij { width : 592px; height : 100px; padding-left : 5px; background-image : url(images/rij.gif); background-repeat : no-repeat; } #rijad { width : 592px; height : 100px; margin-left : 0px; background-image : url(images/rijad.gif); background-repeat : no-repeat; } #ad { width : 468px; height : 60px; float : left; margin-top : 17px; margin-left : 62px; } #rz { width : 110px; height : 80px; float : left; margin-top : 5px; padding-left : 5px; background-image : url(images/imgb.gif); background-repeat : no-repeat; } #imgrz { width : 96px; height : 66px; margin-top : 7px; padding-left : 2px; } #footer { width:822px; height:41px; } #footer p { margin:0px 10px 0px 10px; line-height:50px; color:#000000; font-weight:bold; text-align:left; } #footer p a ( line-height:50px; color:#000000; font-weight:bold; text-align:left; } #footer p a:hover ( line-height:50px; color:#CCCCCC; font-weight:bold; text-align:left; } Without messing the middle up and widing the page a bit how do i go about getting a menu bar type on the right? Advise is always welcome.. if i need to post my index contents please advise!
  19. Hi all, Currently using IIS7 and im trying to rewrite my script but im confused. i want news.php?id=* turned into /news/title-stored-in-database/ but i have no idea about rewriting and on the IIS website its all a little too confusing. Can someone point me the right way please
  20. Hi, Sorry to hijack this thread but as I found it I might aswell keep this alive rather than make a new thread. My question is like the above. I'm current using news.php?id=1 How do I get it to display: News/titlehere My php grabs the I'd and displays it for that, what do I enter in .htaccess to get what I desire?
  21. Hi all, Im sorry if this is in the wrong section. But nonetheless, I use php to display my news: I.e - news.php?id=1 that displays all the news on that id. What I want to know is using php how can I get the URL from news.php?id=1 too something like /news/titleofthestory ? Hope I've given enough detail. Thanks!!
  22. File upload working but the adding to database is not, could someone please help?
  23. Yes, as there is no logging in and editing in this script, this just 'selects the data and displays it' Thanks
×
×
  • 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.