ezPortal

Started by SMFHacks.com Team, November 02, 2008, 10:10:03 AM

Previous topic - Next topic

vbgamer45

Yeah don't have multiple language support for those options yet not sure how I am going to do that.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

FireDitto

I have the Recent Posts block active, however, because I have the MultiForum Mod installed, my Forums URL varies; eg:

www.mydomain.com/a
www.mydomain.com/b

etc.

So, when I click on a recent post link, I get told this:

QuoteAn Error Has Occurred!
The board you specified is located on a different forum

What I would like to know is this; is it possible to edit the code below, so as that it takes into account the forum URL, instead of just the action:


'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '">' . $row['subject'] . '</a>',

URL A:
MYDOMAIN.com/ooc/index.php?topic=24.msg86;topicseen#new {This brings up the error, as the thread is located at the next URL}
MYDOMAIN.com/admin/index.php?topic=24.msg86;topicseen#new {This is where the thread is ACTUALLY located}


Thank you.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

samjay

 :Dthanksvbgamer45 for the updates . i alredy got the Version: 0.4.0 was fantastic . how can i upgrade it to Version 0.4.1 ?  ::)

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rhack382

I have a little with php syntax... My question is this...

I have a PHP script the references a css, php, js, and images all uploaded to a directory "/X" and it works fine for me if I upload to a page outside of the ezblock but once I paste into a php ezblock I am getting syntax errors...

Do I need to add the files referenced to the ezportal/blocks directory for everything to work correctly?

Here is the working example:

http://crossfireinternational.com/example.php

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rhack382

hmmm did not work... 

what about using php tags within an html block?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rhack382

It is "weather hero"... Here is the code that I have been trying to use...  Works fine outside of ezportal as a PHP file...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="wh/css/style.css" type="text/css">

<script type="text/javascript" src="wh/js/jquery.min.js"></script>
<script type="text/javascript" src="wh/js/slider.js"></script>

<title>Weather Hero - Example</title>
<style>
   
</style>
</head>

<body>
<?php 
    
//We need the class
    
require_once 'wh/php/wh.class.php';
    
    
//Class calling
    
$wh = new WeatherHero('','debug');//You can call the class with the debug option, this will print debug info only for that call
    //This method gets the info about the current location (needed since the google API splits these info)
    
$informations $wh->getInformations();
    
//This method get the forecast for the next 4 days. It comes back inside an array. If you want to see what kind of information comes back please activate the debug mode.
    
$forecast $wh->getForecast();

?>

<div id="container">
   
    <h3> Weather Forecast (geoip)</h3>
   
    <div id="wh_wrapper">
        <div id="slider">   
            <img class="scrollButtons left" src="wh/imgs/resultset_previous.png">
                <div class="scroll">
                    <div class="scrollContainer">
                        <!-- We check if the array is empty (a location as not been found) if this is the case we show an error message.-->
                       <?php if(is_array($forecast)&&!empty($forecast)) { ?>
                               <!-- Move inside the array.-->
                                 <?php foreach ($forecast as $k => $v) {?>
                                <!-- This line is needed for the java, it creates panels numbered differently.-->
                                <div class='panel' id="panel_<?php echo $k+1;?>">
                                    <div class="inside">
                                        <!-- The image. Please note that the url inside the options is appended to the actual image-->
                                        <img src="<?php echo $wh->g_url.$v['icon'];?>" alt="picture" />
                                        <!-- City -->
                                        <h2><?php echo $informations['city'];?></h2>
                                        <!-- Day -->
                                        <p>Day: <?php echo $v['day_of_week'];?></p>
                                        <!-- Temperature. Please note that here I decided to make an average between the high and low, you may display each separately. -->
                                        <!-- Also the unit of measure comes from the options inside the class (uppercased). -->
                                        <p>Temp: <?php echo ($v['high']+$v['low'])/2;?>&deg; <?php echo strtoupper($wh->unitofmeasure);?></p>
                                        <p><?php echo $v['condition'];?></p>
                                    </div>     
                                </div>
                             <?php ?>
                      <?php } else { ?>
                              <div class='panel' id="panel_<?php echo $k+1;?>">
                                <div class="inside">
                                    <h2>Sorry, we don't have weather data for your location</h2>
                                </div>
                            </div>
                      <?php ?>
               
                    </div>
                </div>
            <img class="scrollButtons right" src="wh/imgs/resultset_next.png">
         </div>
    </div>
<?php 
    
require_once 'wh/php/wh.class.php';
    
   
    
</
div>
</
body>
</
html>

vbgamer45

I would try something like this code


echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd [nofollow]">
<html xmlns="http://www.w3.org/1999/xhtml [nofollow]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="wh/css/style.css" type="text/css">

<script type="text/javascript" src="wh/js/jquery.min.js"></script>
<script type="text/javascript" src="wh/js/slider.js"></script>

<title>Weather Hero - Example</title>
<style>
   
</style>
</head>

<body>';

    //We need the class
    require_once 'wh/php/wh.class.php';
   
    //Class calling
    $wh = new WeatherHero('','debug');//You can call the class with the debug option, this will print debug info only for that call
    //This method gets the info about the current location (needed since the google API splits these info)
    $informations = $wh->getInformations();
    //This method get the forecast for the next 4 days. It comes back inside an array. If you want to see what kind of information comes back please activate the debug mode.
    $forecast = $wh->getForecast();

?>
<div id="container">
   
    <h3> Weather Forecast (geoip)</h3>
   
    <div id="wh_wrapper">
        <div id="slider">   
            <img class="scrollButtons left" src="wh/imgs/resultset_previous.png">
                <div class="scroll">
                    <div class="scrollContainer">
                        <!-- We check if the array is empty (a location as not been found) if this is the case we show an error message.-->
                       <?php if(is_array($forecast)&&!empty($forecast)) { ?>
                               <!-- Move inside the array.-->
                                 <?php foreach ($forecast as $k => $v) {?>
                                <!-- This line is needed for the java, it creates panels numbered differently.-->
                                <div class='panel' id="panel_<?php echo $k+1;?>">
                                    <div class="inside">
                                        <!-- The image. Please note that the url inside the options is appended to the actual image-->
                                        <img src="<?php echo $wh->g_url.$v['icon'];?>" alt="picture" />
                                        <!-- City -->
                                        <h2><?php echo $informations['city'];?></h2>
                                        <!-- Day -->
                                        <p>Day: <?php echo $v['day_of_week'];?></p>
                                        <!-- Temperature. Please note that here I decided to make an average between the high and low, you may display each separately. -->
                                        <!-- Also the unit of measure comes from the options inside the class (uppercased). -->
                                        <p>Temp: <?php echo ($v['high']+$v['low'])/2;?>&deg; <?php echo strtoupper($wh->unitofmeasure);?></p>
                                        <p><?php echo $v['condition'];?></p>
                                    </div>     
                                </div>
                             <?php ?>
                      <?php } else { ?>
                              <div class='panel' id="panel_<?php echo $k+1;?>">
                                <div class="inside">
                                    <h2>Sorry, we don't have weather data for your location</h2>
                                </div>
                            </div>
                      <?php ?>
               
                    </div>
                </div>
            <img class="scrollButtons right" src="wh/imgs/resultset_next.png">
         </div>
    </div>
<?php
    
require_once 'wh/php/wh.class.php';
   
   
echo 
'
   
</div>
</body>
</html>'
;
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rhack382


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

wait wait wait.....   THAT is WRONG! There is no way, no how, that you should have all that header code in a block and certainly not the doctype and html tags...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

vbgamer45

yeah you would be surprised how many large sites do that mistake though....I have seen many global ecommerce sites having multiple body tags header tags and those are huge corporations with millions.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Kindred

Quote from: Kindred on September 20, 2010, 04:00:12 PM
wait wait wait.....   THAT is WRONG! There is no way, no how, that you should have all that header code in a block and certainly not the doctype and html tags...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Bonesz28

I'm having problems with the ezportal ezblocks. I originally created links of supporting car sites for my site on the right side and used the shoutbox and other functions on the left side. Everything was fine and lined up until I started creating a center block just for the "ezportal home page" not the forum. All of a sudden the blocks became HUGE and now the left block is above the forum and the right block is below it. I went in disabled everything, tried refreshing it, even messed with the size of the blocks width and percentage, making them only 100 width and 10 percent to see if that would shrink them. Before this bug/problem I even remember the blocks sticking nicely in the admin panels even. Now they are above and below it. They are stuck at an enormous size for some reason and won't go back to the left and right sides. Can anyone help me here? Has anyone had this problem before?

here's the forum... OH YEAH and I wanted to add that on my ezportal homepage (index) they are a correct size yet when I access my admin panel or just go on the forum that's when they are huge and above and below on the page.

vbgamer45

Link to a page where this occurs? I would check to make sure your content inside a block if you are using html/php block is not causing to get large.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: