Jump to content

Brenty

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Brenty's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [!--quoteo(post=354439:date=Mar 13 2006, 04:33 AM:name=txmedic03)--][div class=\'quotetop\']QUOTE(txmedic03 @ Mar 13 2006, 04:33 AM) [snapback]354439[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code]$result = "subdomain/admin/page.php"; $result = substr($result, strpos($result, '/', 1)+1); echo $result; [/code] You should be able to adjust this to fit your specific needs. I honestly didn't look to see what your variable names are or anything just at your question and wrote this basic solution. [/quote] Many many thanks for replying. I was starting to get worried about this. What you've given me has helped send me in the right direction. Although the URL changes (Due to currentPage), it's the folder at the beginning that I need to strip out, and I think your code may just manage it - With adaptions as you said of course. Greatly appreciated, and I'm just off to try it out. I'll post the results later.
  2. [!--quoteo(post=354233:date=Mar 12 2006, 12:40 PM:name=signature16)--][div class=\'quotetop\']QUOTE(signature16 @ Mar 12 2006, 12:40 PM) [snapback]354233[/snapback][/div][div class=\'quotemain\'][!--quotec--] How do I put a phpbb forum into a website? I want to make my phpbb forum look like the one on this site. I tried include() but that didnt work very nicely. How should I go about doing that? [/quote] To integrate your phpBB forum into a website, you can either open it within an inline frame, or modify the header with your site styling. The styles are easy to adapt and often come with the original photoshop artwork for creating buttons, style logos, etc. There are a number of different styles available for phpBB (Skins), which can be viewed before you download them. Applying them is fairly simple, mostly a question of uploading the files in place, and setting the style name in the Admin Control Panel. www.phpbb.com is the place to go for more answers.
  3. [!--quoteo(post=344452:date=Feb 10 2006, 08:13 AM:name=wolves)--][div class=\'quotetop\']QUOTE(wolves @ Feb 10 2006, 08:13 AM) [snapback]344452[/snapback][/div][div class=\'quotemain\'][!--quotec--] anyone knows a php forum with database abstraction? [/quote] Could you explain exactly what you think Abstraction means?
  4. I'm guessing that auto-cropping doesn't go far enough, and that you need to delete users as well? Perhaps another way to approach this would be to set auto-cropping, and have some auto-crop users MOD created as well.
  5. Thanks guys, that's a good start. Not knowing anything about it, and commonly using a WSYWYG editor (With a touch of dabbling in the code to tweak things), it's a relief to find somewhere that explains the unknown in better detail. Greatly appreciated and thanks.
  6. Well, if someone could take a look at this, it would really get me out of a hole: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=88051\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=88051[/a]
  7. YAHOOOO! It worked!!!!!!! You guys are life savers! And I've learned just that buit more! Sometimes you're just so near, but so far! Many many thanks!
  8. Hello & HELP!, I'm struggling with some code - I need to set a condition in php, and if this condition is true, then I need to run a java script, which is for a Java menu. This is the condition... [code]<?php if(permission("products","read")==TRUE)[/code] And this is the Java script as I would have called it through HTML... <script src="menu.js"></script><script menumaker src="menu_.js"></script> So how on earth do I combine the 2 together? Please someone help, I'm really trying hard to learn php, and every now and then I hit a wall, like now.
  9. [!--quoteo(post=353930:date=Mar 11 2006, 10:27 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Mar 11 2006, 10:27 AM) 353930[/snapback][/div][div class=\'quotemain\'][!--quotec--] I dont think phpfreaks uses any security certificates as I never get anything like that. Plus if phpfreaks was using sercurity certificates then firefox usually popups a message about the sercurity certificate. You sure its phpfreaks and not a SC from a website you may have left when you came here? Nope, typed it in the browser and that's what I got. It's stopped doing it now.
  10. Anyone? I'm sure this is easy for someone who knows. I'd consider using preg_replace, but don't know enough about php code yet.
  11. I just logged on and got a popup telling me that the secure certificate that phpfreaks uses has expired. So, what's going on eh????
  12. [b]Intro:[/b] I have a server configuration that assigns folders as subdomains through DNS. When you FTP the files, you use the folder, but when you view them, you use that folder name as a subdomain - Like this: [code]http://www.website.com/subdomain[/code] translates to: [code]http://subdomain.website.com/[/code] You can also access the subdomain folder through the browser like you do with the FTP. Because of this subdomain configuration, a package I'm using is getting a bit confused when reading out php server variables. I've changed the configuration in the software so that it mostly works, however, still have 1 problem, which I've identified to this: [code]if(!isset($_SESSION['ccAdmin'])){          header("Location: ".$GLOBALS['rootRel']."admin/login.php?goto=".currentPage());     exit; // check session path is correct } elseif(strpos(dirname($_SERVER['PHP_SELF']), $_SESSION['AdminPath']) !== 0){          header("Location: ".$GLOBALS['rootRel']."admin/login.php?goto=".currentPage());     exit;[/code] What I believe this code does is create a record of where the user was so that when re-authenticating themself, the software returns to that page. I could be wrong about this (Limited php knowledge), but that isn't the problem anyway. [b]Problem:[/b] From currentPage, I'm getting this result: [code]subdomain/admin/index.php[/code] when I should be getting just... [code]admin/index.php[/code] How can I strip out the subdomain folder from that currentPage result?
  13. I'm completely new to CSS, and have been designing web pages the old fashioned way. I need to start learning more about CSS, as much of the software I'm using features it, so where's the best place to start?
×
×
  • 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.