Author |
Message |
ryan333
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 26, 2014
Posts: 17
|
Posted:
Wed Mar 26, 2014 1:57 am |
|
My site is pureevilclan.com
We are a gaming clan (bf4) if anyone is interested check us out!
I have the latest version of php nuke
Anyways If you view my site the teamspeak 3 viewer is out side of the block.
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
also my banner needs to be in the block but is out of it or i need to find out how to just use the img code in the home page news section which i rather do
code below is for ts3 viewer
<?php
echo "<div id=\"ts3viewer_1039734\" style=\"width:; background-color:;\"> </div>\n";
echo "\n";
echo "<script type=\"text/javascript\" src=\"http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js\"></script>\n";
echo "\n";
echo "<script type=\"text/javascript\">\n";
echo "<!--\n";
echo "var ts3v_url_1 = \"http://www.tsviewer.com/ts3viewer.php?ID=1039734&text=fa0202&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none\";\n";
echo "ts3v_display.init(ts3v_url_1, 1039734, 100);\n";
echo "-->\n";
echo "</script>\n";
?>
code below is for the banner
<?php
echo "<a target=\"_blank\" href=\"https://imageshack.com/i/0rdapzxj\"><img src=\"http://imagizer.imageshack.us/v2/xq90/27/dapzx.jpg\" border=\"0\"></a>\n";
?> |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Wed Mar 26, 2014 7:19 am |
|
Apart from the fact you should not be using php-nuke (it's not safe and you are putting your website and possibly everyone elses on the server at risk), there is something wrong with the actual theme itself.
Although there are some fundamental errors with some of the inline styling elements (e.g. marginheight, marginwidth etc are not valid) I think the root of the problem is you have some table cells (TD) that are not wrapped in a row (TR) and I think this is what is causing the layout to go awry.
I have no idea where the code is in your theme, so you'll just have to use the W3C markup validator to help you
http://validator.w3.org/
If you type in your web address and check the "show source" option, it will show you where the error is in the code. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 26, 2014 10:45 am |
|
What Should I wuse instead of nuke? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 26, 2014 11:24 am |
|
Also could you elaborate a little more on why its not safe? please and thank you! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
Site Admin
![](modules/Forums/images/avatars/201442295664a46e4575d46.jpg)
Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Wed Mar 26, 2014 11:57 am |
|
ryan333 wrote: | What Should I wuse instead of nuke? |
There exist a CMS with the name RavenNuke. Its save, fast, modular, looks like Nuke but with many security fixes, a lot of new features without to loose the real Nuke flavor. As luck would have it, you're very close to this CMS.
http://www.ravenphpscripts.com/downloads-cat27.html
But back to topic...
You can create a file with the name: block-teampspeak.php in your /blocks/ folder and add this code inside:
php Code:<?php
if ( !defined('BLOCK_FILE') ) {
Header('Location: ../index.php');
die();
}
$content = '';
$content .= '<div id="ts3viewer_1039734"> </div>' . PHP_EOL;
$content .= '<script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>' . PHP_EOL;
$content .= '<script type="text/javascript">' . PHP_EOL;
$content .= 'var ts3v_url_1 = \'http://www.tsviewer.com/ts3viewer.php?ID=1039734&text=fa0202&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none\';' . PHP_EOL;
$content .= 'ts3v_display.init(ts3v_url_1, 1039734, 100);' . PHP_EOL;
$content .= '</script>' . PHP_EOL;
?>
|
After that you can try to activate the block in the block-administration. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 26, 2014 1:44 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 27, 2014 12:07 am |
|
Thanks for the help i will try raven nuke! any cool clan gaming themes for it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 27, 2014 12:17 am |
|
Oh chan i use phpnuke themes on raven nuke? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 27, 2014 6:30 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 31, 2014 5:11 am |
|
The code provided by neralex works fine on my development server but you may need to use it as a center box due to the width of the teamspeak server data.
The code uses javascript to fetch the remote data and displays it inside this DIV code
Code:
$content .= '<div id="ts3viewer_1039734"> </div>' . PHP_EOL;
|
The problem you might be having is that the width of that DIV is bigger than the width of the block (left and right) colums, so it pushes the data outside of the theme layout. Used as a center block, there is much more room.
There are some options you can try though;
You could add s style to your themes style sheet for the id ts3viewer_1039734, which would allow you to control the width with CSS
Code:
div.ts3viewer_1039734{
width150px;
}
|
Or you can change the code inside the block file to 'float' your image to the left and float your data to the right inside a wrapping DIV to keep it on the same row, something like;
Code:
$content = '';
$content .='<div style="width:100%;">';
$content .= '<div style="width:50%; float:left;">';
$content .= '<a target="_blank" href="https://imageshack.com/i/0rdapzxj"><img src="http://imagizer.imageshack.us/v2/xq90/27/dapzx.jpg" border="0"></a>';
$content .= '</div>';
$content .= '<div style="width:50%; float:right;" id="ts3viewer_1039734"> </div>' . PHP_EOL;
$content .= '<script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>' . PHP_EOL;
$content .= '<script type="text/javascript">' . PHP_EOL;
$content .= 'var ts3v_url_1 = \'http://www.tsviewer.com/ts3viewer.php?ID=1039734&text=fa0202&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none\';' . PHP_EOL;
$content .= 'ts3v_display.init(ts3v_url_1, 1039734, 100);' . PHP_EOL;
$content .= '</script>' . PHP_EOL;
$content .='</div>';
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 31, 2014 5:56 am |
|
Guardian2003 wrote: | The code provided by neralex works fine on my development server but you may need to use it as a center box due to the width of the teamspeak server data.
The code uses javascript to fetch the remote data and displays it inside this DIV code
Code:
$content .= '<div id="ts3viewer_1039734"> </div>' . PHP_EOL;
|
The problem you might be having is that the width of that DIV is bigger than the width of the block (left and right) colums, so it pushes the data outside of the theme layout. Used as a center block, there is much more room.
There are some options you can try though;
You could add s style to your themes style sheet for the id ts3viewer_1039734, which would allow you to control the width with CSS
Code:
div.ts3viewer_1039734{
width150px;
}
| |
So how is that done? I rather control the pixels. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 31, 2014 6:05 am |
|
Btw It is inside the block now just need to make the background transparent some how. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 31, 2014 6:18 am |
|
The background of what transparent?
The teamspeak server data doesn't appear to have any background, it just overlays the text into the block the same as it would if you were using plain text.
If you wanted to put the teamspeak data on top of your image, there is a way to do that but I think you may need to alter the transparency of the image itself using an image editor like Photoshop or Gimp. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 3:33 pm |
|
So just replace Code:'<div id="ts3viewer_1039734"> </div>'
|
This with
Code:div.ts3viewer_1039734{
width150px;
}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Apr 01, 2014 4:10 pm |
|
The
css Code:div.ts3viewer_1039734{
width150px;
}
|
would be added to your themes stylesheet as it is css, but you would need to use
css Code:div#ts3viewer_1039734{
width150px;
}
|
since it is an id and not class. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 4:19 pm |
|
So just replace Code:'<div id="ts3viewer_1039734"> </div>'
|
This with
Code:div.ts3viewer_1039734{
width150px;
}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 4:23 pm |
|
No.
Code:'<div id="ts3viewer_1039734"> </div>'
|
is the code to display the div.
Code:div#ts3viewer_1039734{
width150px;
}
|
Is css for styling the div and it needs to be put in your css. If you are using ravennuke, you could put it in the ravennuke.css file and it will be used on all themes, or you could put it in your themes style.css file if you need to change it for each theme. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 4:29 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 5:09 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 5:13 pm |
|
I added it to the raven nuke.css and it didnt change anything.
Sorry for all the stupid questions. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 5:58 pm |
|
refresh your site a few time to clear the browser cache. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
rave199
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 22, 2014
Posts: 30
|
Posted:
Tue Apr 01, 2014 6:22 pm |
|
omg neralax you shouldn't have advised him to go to clan themes that site has tons of virii on their themes. i picked up two themes from those crooked jerks and got several virii on the mystery inc site. luckily my hosting provider told me about the virii i caught but was KIND enough to offer to get it off for only $199 dollars lol. To be honest i'm still looking for a clean site for myself to put a theme on the mystery inc site. i'm hoping to someday build my own themes preferably for ravennuke. First one i tried is a scoobydoo theme. unfortunately it did not look so good. The pictures were just overpowering the writing text and links inside the blocks which i know now why they only use color background instead of picture background. oh well i'll give it another shot again and see what happens.
But anyways php-nuke is full of security holes especially the 8.3.2 i ran some qualys security scans on it and forget it had over 216 vulnerabilities compared to ravennukes 43 which is a huge difference. But that was only from my personal site. i have no idea how many real vulnerabilities come with ravennuke. (not many though from what i gathered) and their security is really really good. trust me i know first hand after blocking my own ip address this morning running a vulnerability scanner test on my own site. i should of used a proxy or an online scanner instead oh well the point is ravennuke is by far one of the best cms you can use. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 01, 2014 9:10 pm |
|
I can't follow you, rave199!
What do you mean with Virii? Viruses? I don't believe that clanthemes provides viruses with their files. PHP, HTML and CSS files are text files and not exutable applications. Maybe your Hosting company is kidding you. In most cases where files are infected, it happens on your local system after the download before you upload it to your server. Every good virus scanner on your local system would cry loudly if you are unpacking a ZIP/RAR with infected files.
Whether one likes or not a theme is always subjective. I like the work of clanthemes, pretty cool themes. Maybe a theme what do you like an another user would dislike it totally. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ryan333
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Apr 02, 2014 12:02 am |
|
Thanks everyone!
Now I have a problem trying to put a donate button in a block zzzzzzzzzzzzzz.
Also How come I can't just use img code on the home page for a clan server viewer? Does that code have to be used in a block? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Apr 02, 2014 2:39 am |
|
BBCODES will work only in the forums, you can't use it page-wide.
Create a HTML block, click on the source button of the editor and use HTML tags like this:
html Code:<div class="text-center">
<a href="http://yourpaypalurl.tld/whatever" target="_blank"><img src="path/to/yourimagefile.jpg" style="border:0 none" alt="donate" /></a>
</div>
|
BTW: Its really better for all others to follow a thread, if you would create a new thread for different questions and do not type different issues in the same one. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|