Jump to content
TNG Community
pelar

Can't get the random photo to work outside TNG (Wordpress)

Recommended Posts

pelar

I'm trying to get the randomphoto.php to work on my Wordpress integrated website. For that I'm using a php-widget function and the following code:

Quote

<!-- RANDOM PHOTO CODE STARTS HERE -->
<!-- If you don't want to have a random photo displayed, just remove this section down to 'RANDOM PHOTO CODE ENDS HERE' -->
                    <div class="tsidesection">
                        <h3><?php echo $text['featphoto']; ?></h3>
    <?php
        $rp_maxwidth = "100%";
        include("randomphoto.php");
    ?>
                    </div>
<!-- RANDOM PHOTO CODE ENDS HERE -->

I allready tried to add the TNG folder in front of 'randomphoto.php' but that doesn't do the trick as well. I've installed the Random Photo MOD but that doesn't seem to do anything. The Random Photo function DOES work on a TNG-template (16 for instance). 

Any help?

Share this post


Link to post
Share on other sites
pelar

Hi Mahesh, that's correct, I'm trying to use it outside the TNG domain. Couple of years ago I managed to get it to work, but I guess I have to try somehing else.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×