Jump to content

Recommended Posts

  • Moderators
Posted

You know, all the add on templates should really go in to your active skin folder and not the core templates, that way you know everything that is being served up is in the same place, and its less confusing.

  • Like 1
Posted

You know, all the add on templates should really go in to your active skin folder and not the core templates, that way you know everything that is being served up is in the same place, and its less confusing.

Thanks For the Advice Mark! I just am new to PHP and PHPVMS and i don't no all the small tricks and things that i guess come with time and experience .

  • Administrators
Posted

Ray +1 Thanks! THANK YOU SO MUCH!

I made that mistake because in the .zip file the screenshots folder is in the core/templates directory.

Maybe Dave can change that in his next release or update this one?

The core/templates folder is the default location for skin templates in phpVMS. I have no way of knowing what everyone is naming their custom skin folder....

Posted

Another advantage of them actually going in to the core folder as Simpilot has pointed out is, when airlines switch Templates from time to time to change the look for a bit, there only has to be one screenshots folder. If you have limited disc space on your hosting package it might kind of suck to have 3 or 4 or 5 template folders with the same exact screenshots folder in each one.

BUT the way I said to do it is the only way to make it not error. I can see how that would be confusing a bit to a new user, but none the less, it is an easy fix. ;)

  • Moderators
Posted

The line you want is about 43 in the core>modules>screenshots>screenshots.php

       if ((($_FILES["uploadedfile"]["type"] == "image/x-png")

Change to,

       if ((($_FILES["uploadedfile"]["type"] == "image/png")

  • Like 2
  • 1 month later...
Posted

Hello folks

I have installed this Addon. All working fine but i have a Problem with the Random Pics on my Mainsite

I have added in the frontpagemain.tpl my code to show a randompic

Template::Show('screenshots_random.tpl');

This doesnt work.

When i using the php codes in the first post. I become a failuremessage from my server.

Any idea?

You can look here the Problem on the Ground of the Website

Click me to see the Failure

  • Administrators
Posted

That is not the code from the original post, not sure where you got it from but it should be;

<?php Screenshots::show_random_screenshot(); ?>

Posted

Hi

I have made this so. When i will use your code

<?php Screenshots::show_random_screenshot(); ?>

i become a failure whos called

Parse error: syntax error, unexpected '<' in /www/htdocs/w00dac26/SF/lib/skins/ObsessBlue/frontpage_main.tpl on line 15

and here is my frontpage_main.tpl

<div class="mc0201">
     Welcome to SF Logistik 
        </div>
	 <br />
	  <br />
	 <div class="mc020303">
<?php

// Show the News module, call the function ShowNewsFront
//	This is in the modules/Frontpage folder

MainController::Run('FrontBids', 'RecentFrontPage', 15);
Template::Show('acarsmap.tpl');
<?php Screenshots::show_random_screenshot(); ?>]<----i will use this and then come the error

?>
</div>
<div class="mc020303">

</div>

  • Moderators
Posted

You don't make sense,

All you need to do move that code out of the php tags,

I dont know if this will work,within the existing tags,

Screenshots::show_random_screenshot();

Or just move that code like this,

<div class="mc0201">
     Welcome to SF Logistik 
        </div>
                <br />
                 <br />
                <div class="mc020303">
<?php

       // Show the News module, call the function ShowNewsFront
       //      This is in the modules/Frontpage folder

       MainController::Run('FrontBids', 'RecentFrontPage', 15);
       Template::Show('acarsmap.tpl');
?>
       <?php Screenshots::show_random_screenshot(); ?>

</div>
<div class="mc020303">

</div>

  • Moderators
Posted

What skin are yo using, you will need to add it to the menu divs, remove it from frontpage_main.tpl

Ok i see, To get another menu box displayed have a look in your header.tpl you will see the divs for the menu and box content, you can add it in there or create another for it

Posted

Ok i have putted the screenshot_random.tpl in my skinfolder. Now working. But the Pic is on the right site. I need this in the middle of the Box

thats i have made and its working.

<div class="mcbox01">
                       <div class="mc01t2">
                           Pics
                       </div>
                       <div class="mc01cc">
                           <ul>
                               <?php Screenshots::show_random_screenshot(); ?>
                           </ul>
                       </div>
                       <div class="mc01b">
                           <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_272.jpg" alt="" />
                       </div>
                   </div>

where must set it to see the shot in the middle?

  • Administrators
Posted

Ok i have putted the screenshot_random.tpl in my skinfolder. Now working. But the Pic is on the right site. I need this in the middle of the Box

thats i have made and its working.

<div class="mcbox01">
                       <div class="mc01t2">
                           Pics
                       </div>
                       <div class="mc01cc">
                           <ul>
                               <?php Screenshots::show_random_screenshot(); ?>
                           </ul>
                       </div>
                       <div class="mc01b">
                           <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_272.jpg" alt="" />
                       </div>
                   </div>

where must set it to see the shot in the middle?

This needs to be asked in the skinning forum, it is not a coding issue with the module.

Posted

doesnt work for me.

<div class="mcbox01">
                       <div class="mc01t2">
                           Pics
                       </div>
                       <div class="mc01cc">
                           <ul>
                               <div align="center"><?php Screenshots::show_random_screenshot(); ?></div>
                           </ul>
                       </div>
                       <div class="mc01b">
                           <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_272.jpg" alt="" />
                       </div>
                   </div>

Posted

yeah I originally tried that too and it did not work. I actually used the plain center tags and it worked. I hated to do it since the center tag is deprecated now days, but it worked.

  • 1 month later...
Posted

I tried to upload it and get this

error Notice: The template file "/home/dutchess/public_html//lib/skins/brilliancev1/Screenshots/screenshots_random.tpl" doesn't exist in /home/dutchess/public_html/core/classes/TemplateSet.class.php on line 248

http://www.dutchessairva.org/index.php/

any help would be great

**also when I upload a screenshot it won't display the pic in the gallery, but it says I uploaded one.

Posted

That error is exactly what it says. The file does not exist. Even though you uploaded it, I am willing to bet it is not where it is looking. If you go and look at the file structure that Simplot has created in the download, you will notice the Screenshots templates in the Core/Templates/Screenshots folder. Notice the difference between that path I just gave and the path from the error?

The reason Simpilot put that folder there was because he has no idea what templates everyone is using. So he packs all his great releases in a generic form. So all you need to do in this case is get in to your core/templates folder on your server and move that screenshots folder of tpl files over to your current templates directory and that should fix it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...