Results 1 to 12 of 12

Thread: CMS installation hack - wordpress

  1. #1
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts

    CMS installation hack - wordpress

    Hey guys, i've asked this before i think but i'm actually going to do it this time. I want to implement WordPress into my website, but the thing is, i want to only add one WP page to my whole website which is the news page. Now what i plan to do is just include() the WP main page into my switch statement which controls the navigation for my website.

    I've looked through the documentation and i'm not sure how to do it as it only talks about creating a template FOR wordpress as opposed to including wordpress in a current design. I think some members here have implemented it into their own design?

    Can anyone be of service?

  2. #2
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    I take it you are only using Wordpress for it's editing features? Could you not just create a standalone file for displaying the news, I think all tag replacing etc. is done during the database submission.

  3. #3
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    I'm just using it to display news, so i can easily edit the news on my site. I would write a script but there's no point in re-inventing the wheel when you can just hack it and use it

  4. #4
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    I too would be very interested in this.

    Wordpress is on my list, but don't want my whole site controlled with word press just certain pages such as news as kezzer uses for an example.

    I'll work on this on Sunday
    It is Inevitable.....


  5. #5
    Loves duck, Peking Duck! bsodmike's Avatar
    Join Date
    Jul 2003
    Location
    Colombo
    Posts
    2,909
    Thanks
    495
    Thanked
    92 times in 80 posts
    • bsodmike's system
      • Motherboard:
      • Misc.
      • CPU:
      • Mac Pro 2.8 GHz (8-cores) / iMac 2.8GHz C2D Extreme Edition / MacBook Pro 15" 2.33 & 13.3" 2.26 GHz
      • Memory:
      • 2GB DDR2 kits on all systems / FB ECC RAM in Mac Pro
      • Storage:
      • 320GB + 3x 1TB, Mac Pro / 500 GB, iMac / 2x 1TB & 2x 2TB WD My Book Studio II, via FW800 to Mac Pro
      • Graphics card(s):
      • ATI Radeon HD 2600 XT 256MB (two dual-link DVI ports / Mac Pro)
      • PSU:
      • Misc.
      • Case:
      • Misc.
      • Operating System:
      • Mac OS X 10.5 (Mac Pro) / Mac OS X 10.4.11 (others)
      • Monitor(s):
      • Apple 23" Cinema HD / Dell FPW2408 / iMac 24" display
      • Internet:
      • 2mbps ADSL (Mac Pro) / 512kbps WiMax (Wifi/MacBook Pro)
    My site (bsodmike.com) has WP as the back end. I initially had the index.php hacking into WP but now I have it as a theme...

    BUT! I have the floating menu as a 'hack' into the theme, so I can edit that to my hearts content. Now the new WP has a 'page' posting feature which is pretty cool

    It would be hard for me to give you 'code' as my template has been rebuilt from the ground up, as it has 2 containers, a header, content and footer container all for easy management...

    Best thing is for you to install wp and hack the default theme

  6. #6
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Dagnamit, isn't there a function which i can call into my switch statement to show one of the pages?

  7. #7
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    Simply trying to include the index.php page would cause all sorts of problems due to file structure.

    You could just create a blank template that contains solely the content then use socket stuff in php to grab the content.

  8. #8
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    I'm sure there's another way of doing it

  9. #9
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    ....working on it.

    I've also pulled in a friend who uses wordpress quite a lot. His initial thoughts are wordpress is a whole site solution, to have it as a section of a site is not really viable.
    he suggest a cheap hack of having www.yoursite.com and say news.yoursite.com and make news.yoursite.com the wp section, but I didn't like that idea too much.

    Back to playing with this.

    Kezzer, glad to see I'm not alone on this dream.
    It is Inevitable.....


  10. #10
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    /kez strokes home grown news posting implementation

    Given the effort you seem to need to go to, to hack WP to work, would you in fact be better off "reinventing the wheel" as you say?

    I've never used WP myself, so I can't shed any light on it.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  11. #11
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    I created a custom news script using the WP JS text editor. It doesn't have the same user and archiving features but it's just as easy to use as WP in a single user environment.

  12. #12
    Loves duck, Peking Duck! bsodmike's Avatar
    Join Date
    Jul 2003
    Location
    Colombo
    Posts
    2,909
    Thanks
    495
    Thanked
    92 times in 80 posts
    • bsodmike's system
      • Motherboard:
      • Misc.
      • CPU:
      • Mac Pro 2.8 GHz (8-cores) / iMac 2.8GHz C2D Extreme Edition / MacBook Pro 15" 2.33 & 13.3" 2.26 GHz
      • Memory:
      • 2GB DDR2 kits on all systems / FB ECC RAM in Mac Pro
      • Storage:
      • 320GB + 3x 1TB, Mac Pro / 500 GB, iMac / 2x 1TB & 2x 2TB WD My Book Studio II, via FW800 to Mac Pro
      • Graphics card(s):
      • ATI Radeon HD 2600 XT 256MB (two dual-link DVI ports / Mac Pro)
      • PSU:
      • Misc.
      • Case:
      • Misc.
      • Operating System:
      • Mac OS X 10.5 (Mac Pro) / Mac OS X 10.4.11 (others)
      • Monitor(s):
      • Apple 23" Cinema HD / Dell FPW2408 / iMac 24" display
      • Internet:
      • 2mbps ADSL (Mac Pro) / 512kbps WiMax (Wifi/MacBook Pro)
    Actually hacking WP it self is rather painless now, with the new 'theme' system. For me it was a little bit more work as I was moving from v1.2 to v1.5 which has two completely different ways of handling stuff (i.e. 1.2 had the hacks in index.php, 1.5 has themes)...

    All you need to do is duplicate the default theme and go to work on it and you are sorted

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •