Dynamicly insert carousel - $5

Discussion in 'PHP' started by dennisbrittv, Jan 10, 2011.

  1. #1
    I use a carousel on most pages of my site. What i want to do is this;

    on every page i want <get carousel url=bla/bla/bla>

    then , be able to alter the carousel once at its location to save me having to change every bloody page!

    i dont see the need to provide the code but if you think you need it, let me know. Its near 15.00hrs here in the uk, i have to go out but i will be back at 18.00hrs

    $5 in paypal for working solution

    Any help?
     
    dennisbrittv, Jan 10, 2011 IP
  2. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Rudolf Bodocsi, Jan 10, 2011 IP
  3. dennisbrittv

    dennisbrittv Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you Rudolf but i dont have the patience for that, can you spell it out for me please
     
    dennisbrittv, Jan 10, 2011 IP
  4. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    You need to create carousel.php file and insert <get carousel url=bla/bla/bla> line.
    And after that at every file you need to change you <get carousel url=bla/bla/bla> line to <?php include ("carousel.php"); ?>.

    Rudolf
     
    Rudolf Bodocsi, Jan 10, 2011 IP
  5. dennisbrittv

    dennisbrittv Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi mate, i thought i had made it clear. eg i currently have a carousel on all pages of my site. Right now, if i want to change any aspect of that, i need to change it on all pages that contains the html,.......... now..... if i can add (instead of the carousel) a <get carousel> script of some sort and have one singular carousel that when i change it once, it effects ALL PAGES.

    In idiots terms

    if i write HELLO WORLD in one place

    Make it display in as many places as i like

    If i change it to SCREW WORLD, make it change in all places at once
     
    dennisbrittv, Jan 10, 2011 IP
  6. dennisbrittv

    dennisbrittv Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Cheers rudolf, just saw your post
     
    dennisbrittv, Jan 10, 2011 IP
  7. Raymond_M

    Raymond_M Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can also use the require function instead of include to stop your pages from running if the carousel doesn't work for any reason.

    I suggest using the include/require functions for all of the repeating sections of your site, such as the header & footer if they are the same on every page, and the navigation menus.
     
    Raymond_M, Jan 10, 2011 IP