Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Q & A
 
<< Previous thread | Next thread >>  
new php page          
Author Post
w2zzaaa
Tue Jun 21 2011, 01:50PM
Registered Member #112778
Joined: Sat May 07 2011, 03:06PM
Location:
Posts: 12
i have new page:

<?php
require_once("class2.php");
require_once(
HEADERF);

$caption "Kontakt";
if (!
ADMIN) {
$text "<div style='text-align:center'>Valmib!</div>";
   
$ns->tablerender('Kontakt'$text);
   require_once(
FOOTERF);
   exit;
}

$string=<<<HTML
</html> 

<head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="steam/steamprofile.min.js"></script>
</head>



<p class="pealkiri">Steam:</p>
<body>
    <div class="steamprofile" title="STEAM_0:1:31"></div>
    <div class="steamprofile" title="STEAM_0:0:248"></div>
</body>
<BR>
<p class="pealkiri">Steam krupp:</p>

<a href="http://steamcommunity.com/groups/xxxxxx" target="_blank"> 
<img src="e107_images/liitu.png" border="0"> </a>


<p class="pealkiri">IRC:</p>

<p class="irc">
<a href="http://webchat.quakenet.org" target="_blank"><font color="#000000">#/font></a> 
</p>


HTML;


$caption $tp->toHtml($caption);
$text $tp->toHtml($text);

$ns -> tablerender($caption$string);
require_once(
FOOTERF);
?>


and now i need add this code:

$group = xxxxxxx; 
    $url = file_get_contents('http://steamcommunity.com/groups/'.$group);  
    ini_set('default_socket_timeout', 0);  
    preg_match('#<h1>(.+)</h1>#sU', $url, $aMatches);  
    echo "<div class=blockrow>"; 
    echo "<table>"; 


like this:

<?php
require_once("class2.php");
require_once(
HEADERF);

$caption "Kontakt";
if (!
ADMIN) {
$text "<div style='text-align:center'>Valmib!</div>";
   
$ns->tablerender('Kontakt'$text);
   require_once(
FOOTERF);
   exit;
}

$string=<<<HTML
</html> 

<head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="steam/steamprofile.min.js"></script>
</head>



<p class="pealkiri">Steam:</p>
<body>
    <div class="steamprofile" title="STEAM_0:1:31"></div>
    <div class="steamprofile" title="STEAM_0:0:248"></div>
</body>
<BR>
<p class="pealkiri">Steam krupp:</p>


$group = xxxxxxx; 
    
$url = file_get_contents('http://steamcommunity.com/groups/'.$group);  
    ini_set('default_socket_timeout', 0);  
    preg_match('#<h1>(.+)</h1>#sU', 
$url$aMatches);  
    echo "<div class=blockrow>"; 
    echo "<table>"; 


<a href="http://steamcommunity.com/groups/xxxxxx" target="_blank"> 
<img src="e107_images/liitu.png" border="0"> </a>


<p class="pealkiri">IRC:</p>

<p class="irc">
<a href="http://webchat.quakenet.org" target="_blank"><font color="#000000">#/font></a> 
</p>


HTML;


$caption $tp->toHtml($caption);
$text $tp->toHtml($text);

$ns -> tablerender($caption$string);
require_once(
FOOTERF);
?>


[ Edited Wed Jun 22 2011, 11:30PM ]
gregtampa55
Tue Jun 28 2011, 02:56PM
Registered Member #72207
Joined: Wed Jan 24 2007, 07:44PM
Location:
Posts: 7
line 13 is wrong
Back to top
w2zzaaa
Sat Jul 02 2011, 11:25AM
Registered Member #112778
Joined: Sat May 07 2011, 03:06PM
Location:
Posts: 12
hmm?

what is wrong? how fix it?

[ Edited Sat Jul 02 2011, 11:25AM ]
Back to top
DelTree
Wed Jul 06 2011, 10:11PM

Registered Member #64822
Joined: Tue Oct 17 2006, 02:33AM
Location:
Posts: 7
Try it...


<?php
require_once("class2.php");
require_once(
HEADERF);

$caption "Kontakt";
if (!
ADMIN) {
  
$text "<div style='text-align:center'>Valmib!</div>";
  
$ns->tablerender('Kontakt'$text);
  require_once(
FOOTERF);
  exit;
}

$string='
</html> 
<head>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <script type="text/javascript" src="steam/steamprofile.min.js"></script>
</head>
<p class="pealkiri">Steam:</p>
<body>
    <div class="steamprofile" title="STEAM_0:1:31"></div>
    <div class="steamprofile" title="STEAM_0:0:248"></div>
</body>
<BR>
<p class="pealkiri">Steam krupp:</p>'
;

$group "xxxxxxx"
$url file_get_contents('http://steamcommunity.com/groups/'.$group);  
ini_set('default_socket_timeout'0);  
preg_match('#<h1>(.+)</h1>#sU'$url$aMatches);  

$string .= print_r($aMatches,true);

$text.= '
<div class=blockrow> 
<table>
 <tr>
   <td>
    <a href="http://steamcommunity.com/groups/xxxxxx" target="_blank"><img src="e107_images/liitu.png" border="0"> </a>
    <p class="pealkiri">IRC:</p>
    <p class="irc"><a href="http://webchat.quakenet.org" target="_blank"><font color="#000000">#/font></a></p>
   </td>
 </tr>
</table>
</div>'
;

$ns -> tablerender($caption$string.$text);
require_once(
FOOTERF);
?>


-------------------------------------------------------


By the way... I don't see many cense on your code above, so... I can't understand very well what you wish to do!

Anyway... If you wish work with the Steam stuff's I can suggest to you take a look at this link first: http://forums.alliedmods.net/showpost.php?p=876749&postcount=187

Good Luck!!!

Regards,
DelTree

[ Edited Wed Jul 06 2011, 11:15PM ]
Back to top
Website
w2zzaaa
Sat Jul 23 2011, 02:18AM
Registered Member #112778
Joined: Sat May 07 2011, 03:06PM
Location:
Posts: 12
oh, yeah, thanks :D
Back to top
AndreSelton
Sat Jul 23 2011, 10:28PM
Registered Member #113289
Joined: Sat Jul 23 2011, 12:28AM
Location:
Posts: 1
get free twitter followers, facebook fans & likes and youtube views & subscribers
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.0773 sec, 0.0218 of that for queries. DB queries: 39.