Home » Support Forums for PMBT 2.X » PMBT 2.X Themes » acidtech (acidtech Tracker and Forum theme)
acidtech [message #2217] Fri, 31 October 2008 04:34 Go to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
acidtech(tracker and forum)

[Updated on: Sun, 07 June 2009 00:39]


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #2865 is a reply to message #2217] Fri, 07 August 2009 10:22 Go to previous messageGo to next message
eythigramisi  is currently offline eythigramisi  Greece
Messages: 23
Registered: July 2009
Leecher
Hi.
I am having some problems with the acidtech theme.
I have enabled it both for tracker and forum.
The problem is that the forum page does not expand properly, in terms of reserving the space that is used for the menu options when being on other pages.
I attach a picture to have a better knowledge on the situation.
Is anything that can be done?
Thanks in advance..

  • Attachment: pic.zip
    (Size: 117.71KB, Downloaded 71 times)
Re: acidtech [message #2866 is a reply to message #2865] Fri, 07 August 2009 12:46 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
open theme main.php
find
echo "<td width=\"75%\" valign=\"top\">\n";

and replace it with
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"]))echo "<td width=\"75%\" valign=\"top\">\n";
echo "<td width=\"100%\" valign=\"top\">\n";


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #2867 is a reply to message #2866] Fri, 07 August 2009 13:14 Go to previous messageGo to next message
eythigramisi  is currently offline eythigramisi  Greece
Messages: 23
Registered: July 2009
Leecher
Well,
It does the work for the forum but it shrinks the containers in other pages.
I attach the upload page for example so to understand.

  • Attachment: pic1.zip
    (Size: 73.58KB, Downloaded 47 times)
Re: acidtech [message #2868 is a reply to message #2866] Fri, 07 August 2009 13:39 Go to previous messageGo to next message
eythigramisi  is currently offline eythigramisi  Greece
Messages: 23
Registered: July 2009
Leecher
I found a fast solution.
Inside the main.php of the theme
is the specified code

if(!eregi("phpBB.php",$_SERVER["PHP_SELF"]))echo "<td width=\"20%\" valign=\"top\">\n";
else
echo "<td valign=\"top\">\n";

I replaced the last command with this.

echo "<td width=\"1%\" valign=\"top\">\n";

It does the work.. almost Razz
Re: acidtech [message #2869 is a reply to message #2868] Fri, 07 August 2009 13:43 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
what happens when you do what I said to do?
I added this to my site and it worked.
did you add it just as I showed the code
you should have replaced the one line with 2 new lines

EDIT
sorry gave you wrong code this is what you should have added
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"]))echo "<td width=\"75%\" valign=\"top\">\n";
else
echo "<td width=\"100%\" valign=\"top\">\n";

[Updated on: Fri, 07 August 2009 13:48]


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
icon14.gif  Re: acidtech [message #2870 is a reply to message #2869] Fri, 07 August 2009 14:08 Go to previous messageGo to next message
eythigramisi  is currently offline eythigramisi  Greece
Messages: 23
Registered: July 2009
Leecher
Just Perfect.
Thanks!
Re: acidtech [message #3174 is a reply to message #2217] Tue, 10 November 2009 16:36 Go to previous messageGo to next message
tymawr  is currently offline tymawr  United Kingdom
Messages: 11
Registered: November 2009
Leecher
Install this theme on a fresh install of pmbt gold,

when i use the invite system the link page points to the login page.

I revert back to "pmbt" without useing the invite and it shows the sign-up page, to test again i did not sign-up but changed the theme again to acidtech,

again the link in the invite sends me to the login page?


any help

tymawr


edit ... have found the problem ,,, seems to work ok if i un-chk

pivate_mode

thanks

[Updated on: Tue, 10 November 2009 18:25]

Re: acidtech [message #3176 is a reply to message #3174] Tue, 10 November 2009 18:32 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
easy fix find
if($pivate_mode AND !$user->user AND !eregi("user.php",$_SERVER["PHP_SELF"])) loginrequired("user", true);

in themes/acidtech/main.php and replace it with
function newuserpage($page)
{
if(eregi("faq.php",$page))return true;
if(eregi("rules.php",$page))return true;
if(eregi("user.php",$page))return true;
if(eregi("takeconfirminvite.php",$page))return true;
if(eregi("confirminvite.php",$page))return true;
return false;
}
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 loginrequired("user", false);
include'footer.php';
}


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3178 is a reply to message #3176] Tue, 10 November 2009 18:42 Go to previous messageGo to next message
tymawr  is currently offline tymawr  United Kingdom
Messages: 11
Registered: November 2009
Leecher
thaat did it ... thanks very much
Re: acidtech [message #3713 is a reply to message #2217] Tue, 09 March 2010 06:20 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

installed acidtech theme for phpbb3 and if i open the forum separately in browser is fine but if i open it in pmbt by clicking on forum button it shows like in attachement bellow ..
what might be the problem?


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3714 is a reply to message #3713] Tue, 09 March 2010 10:11 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
do all the links work propely?
show me your phpBB3/rewrite.php

[Updated on: Tue, 09 March 2010 10:21]


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3715 is a reply to message #3714] Tue, 09 March 2010 10:43 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}
$buffer = ob_get_clean();
global $siteurl,$forumbase;
$oldurl = str_replace('/phpBB.php','',$_SERVER["PHP_SELF"]);
$buffer = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&amp;", $buffer);
$buffer = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "·", " ;"), $buffer);
$buffer = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "·", " ;"), $buffer);
        $rewrite_search2[] = $_SERVER['DOCUMENT_ROOT'];
        $rewrite_replace2[] = "";
        $rewrite_search2[] = '.php?';
        $rewrite_replace2[] = ".php&amp;";
        $rewrite_search2[] = $forumbase."/";
        $rewrite_replace2[] = "phpBB.php?page=";
        $rewrite_search2[] = $oldurl.'/phpBB.php?page=styles/';
        $rewrite_replace2[] = $siteurl."/".$forumbase."/styles/";
        $rewrite_search2[] = $oldurl.'/phpBB.php?page=../phpBB.php&amp;';
        $rewrite_replace2[] = $oldurl."/phpBB.php?page=ucp.php&amp;";
        $rewrite_search2[] = 'page=ucp.php&amp;page=mcp.php&amp;=&amp;';
        $rewrite_replace2[] = "page=mcp.php&amp;";
        $rewrite_search2[] = 'ucp.php&amp;page=mcp.php&&';
        $rewrite_replace2[] = "mcp.php&amp;";
        $rewrite_search2[] = 'phpBB.php&page=';
        $rewrite_replace2[] = "phpBB.php?page=";
        $rewrite_search2[] = 'phpBB.php&amp;page=';
        $rewrite_replace2[] = "phpBB.php?page=";
        $rewrite_search2[] = $oldurl.'/phpBB.php?page=style.php&amp;sid=';
        $rewrite_replace2[] = $siteurl."/".$forumbase."/style.php?sid=";
        $rewrite_search2[] = $oldurl.'/phpBB.php?page=download/file.php&amp;';
        $rewrite_replace2[] = $siteurl."/".$forumbase."/download/file.php?";
        $rewrite_search2[] = $oldurl.'/phpBB.php?page=images/';
        $rewrite_replace2[] = $oldurl."/".$forumbase."/images/";
        $rewrite_search2[] = 'user.php&amp;';
        $rewrite_replace2[] = "user.php?";
        $rewrite_search2[] = "window.open(url.replace(/&amp;/g, '&amp;'),";
        $rewrite_replace2[] = "window.open(url.replace(/&amp;/g, '&'),";
		$buffer = str_replace($rewrite_search2,$rewrite_replace2,$buffer);
//Restart Output Buffering again
ob_start("ob_gzhandler");
ob_implicit_flush(0);
echo $buffer;
?>


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3716 is a reply to message #3715] Tue, 09 March 2010 10:48 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
add to that list

        $rewrite_search2[] = 'phpBB.php?page=styles/';
        $rewrite_replace2[] = "/".$forumbase."/styles/";


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3717 is a reply to message #3716] Tue, 09 March 2010 10:52 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

now it's working fine.
thanks a lot!


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3718 is a reply to message #3717] Tue, 09 March 2010 10:55 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
also
        $rewrite_search2[] = 'phpBB.php?page=images/';
        $rewrite_replace2[] = "/".$forumbase."/images/";

[Updated on: Tue, 09 March 2010 10:56]


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3719 is a reply to message #3718] Tue, 09 March 2010 12:28 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

added that too.

if i set an image for forum (icon), also it is not showing in integrated forum. should i use the examples above and write the path to phpBB3/images/icons/topic folder, where i put those icons?

i'll give it a try.


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3720 is a reply to message #3719] Tue, 09 March 2010 21:00 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

not working ...as expected ...

in the matter of cookie problem (?sid=....) ... in lack of other ideas, update phpBB from 3.0.5 to 3.0.7 ... and forum integration crashed ... so much trouble ... so little time to deal with it Very Happy

any help would be appreciated ...


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3722 is a reply to message #3720] Wed, 10 March 2010 04:13 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
reinstall included forum pack!!!


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3726 is a reply to message #2217] Wed, 10 March 2010 06:37 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

i know this is off topic, and i appologize for that.

when i updated phpBB from 3.0.5 to 3.0.7 update wrote some version stuff Very Happy in my db ... you said me to reistall the original forum, yes? the only way to reinstall is to drop phpbb_ db's and do a clean reinstall. i'll do that. i found here an moded update from 3.0.5 to 3.0.6, posted by you as i remember ... i'll do that update too and hope everything will work fine.

where to move this discussion to avoid being offtopic again?

PS: i'm sorry for my late offline messages on ym ... i didn't realise that you are on an other time zone ... Embarassed


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3727 is a reply to message #3726] Wed, 10 March 2010 11:53 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
2.0 general help is where you should have posted this.


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3734 is a reply to message #3726] Wed, 10 March 2010 22:15 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

For every one that wants a right hand colum ... we need a hack ..

what i've found searching the forum:

create a new usercp2.php:

<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*/

if (eregi("usercp2.php",$_SERVER["PHP_SELF"])) die("You cannot access this file directly.");



?>


upload it in blocks/

this code should be added somewhere Very Happy

</td>
<td width=25 valign=top ></td>
<td width=170 valign=top >
<table border=0 width=100% cellspacing=0 cellpadding=0 align=right>
	<tr>
		<div align=right>
		<table border=0 cellpadding=5">
			<tr><td>
				<p><b><? include("blocks/usercp2.php"); ?></b></td><td>
		</table>
		</td></form>
	</tr>
	<tr>
	</table>
</td></tr>
</table>
</td>
</tr>
<tr>


and finally, just add your new tables in the usercp2 ...


where should the code above be added?

because in the footer.php, originaly pointed in your message dtd Sat, 18 November 2006 ... it can't be done ... and even the code may be deprecated ...


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3737 is a reply to message #3734] Thu, 11 March 2010 02:55 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Laughing that well only work in 1.0 - 1.2
for 2.0+
find in theme main.php
function themefooter(){
global $startpagetime;
echo"</div></td></tr></table>";

and make it
function themefooter(){
global $startpagetime;
echo "</div></td>";
include("blocks/usercp2.php");
echo "</tr></table>";

dont forget you well also want to add any globals your going to need
like
$db $user $db_prefix


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3740 is a reply to message #3737] Thu, 11 March 2010 09:13 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

it works like a charm (see attachment)... only if you want a block added to your footer Very Happy

but if i want to add a block to the right side of the page, what should i do?


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3741 is a reply to message #3740] Thu, 11 March 2010 11:11 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
OpenTable("name");
your content
CloseTable();


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3742 is a reply to message #3741] Thu, 11 March 2010 12:07 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

yes, i have that ... my usercp2 has only guides in it (untill i'll make it right) ...

OpenTable(Upload_Guides);
		echo "<p align=\"center\"><a href=\"utorrent.php\">utorrent guide</a></p>\n";
		echo "<p align=\"center\"><a href=\"azureus.php\">azureus guide</a></p>\n";
CloseTable();


and it appears in page footer, centered (as in footer-block.zip attached in my last post), instead to appear on the right.

this is happening because the usercp2.php is included in the function themefooter():

function themefooter(){
global $startpagetime;
echo "</div></td>";
include("blocks/usercp2.php");
echo "</tr></table>";


help me Very Happy


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3743 is a reply to message #3742] Thu, 11 March 2010 12:12 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
function themefooter(){
global $startpagetime;
echo "</div></td><td>";
include("blocks/usercp2.php");
echo "</td></tr></table>";

[Updated on: Fri, 12 March 2010 01:20]


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3744 is a reply to message #3743] Thu, 11 March 2010 12:54 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

now it goes where it should go ... on the right side ... thanks a lot joe!!

gotta do something now with block width ... Very Happy


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3745 is a reply to message #2217] Thu, 11 March 2010 18:39 Go to previous messageGo to next message
zAzU  is currently offline zAzU  Romania
Messages: 14
Registered: March 2010
Location: Romania
Leecher

hi joe,

need to make the page full size, and to encrease columns width or do something with actual appearance...

other problem with utube block ... can't get any video in it ...



  • Attachment: header.zip
    (Size: 429.76KB, Downloaded 19 times)
  • Attachment: footer.zip
    (Size: 242.79KB, Downloaded 16 times)

[Updated on: Thu, 11 March 2010 19:07]


zAzU
http://www.danasoft.com/sig/zAzU94304.jpg
Re: acidtech [message #3748 is a reply to message #3745] Fri, 12 March 2010 00:43 Go to previous messageGo to next message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
No theme edits are done in header.php or footer.php this is all done in theme main.php and css file.


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Re: acidtech [message #3749 is a reply to message #3748] Fri, 12 March 2010 01:21 Go to previous message
joeroberts  is currently offline joeroberts  United States
Messages: 1581
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
use
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"])){
function themefooter(){
global $startpagetime;
echo "</div></td><td>";
include("blocks/usercp2.php");
echo "</td></tr></table>";
}

to hide it when in forum


http://p2p-evolution.com/torrentbar/torrentbar.php?id=1&style=default_cyan
Previous Topic:EI
Next Topic:hide/show
Goto Forum:
  


Current Time: Fri Jul 30 04:19:08 BST 2010

Total time taken to generate the page: 0.01277 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software