Jump to content

ScreenshotCenter 2.0


simpilot

Recommended Posts

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 .

Link to comment
Share on other sites

  • Administrators

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....

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • Moderators

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>

Link to comment
Share on other sites

  • Moderators

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...