Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 20th January 2009, 11:55
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Smile How to add ads
which file i have to edit if i want to view ads on login page above this message

The area you are trying to Access is Restricted to Registered Users.
Please provide your Access Credentials and try again. If you're not Signed Up yet, you can DO SO for FREE.

Bump:
Quote:
Originally Posted by Azurious View Post
which file i have to edit if i want to view ads on login page above this message

The area you are trying to Access is Restricted to Registered Users.
Please provide your Access Credentials and try again. If you're not Signed Up yet, you can DO SO for FREE.
&

if ($user->user) to view profiles above register

wat if only guest can view? :unknown:
Reply With Quote
  #2  
Old 20th January 2009, 14:29
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
hmm login.php im guessing
Reply With Quote
  #3  
Old 20th January 2009, 15:00
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Default
Quote:
Originally Posted by clocktower View Post
hmm login.php im guessing
there is no login.php wrong guessing
Reply With Quote
  #4  
Old 20th January 2009, 15:46
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
great a page add.php
PHP Code:
<?php
OpenTable
("Sponcers");
CloceTable();
?>
save it to blocks folder
now open include/functions
find
PHP Code:
function loginrequired($level$guickclose false) { 
and add
PHP Code:
include("blocks/add.php"); 
just after
now put all your adds in add.php just after the opentable()
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 20th January 2009, 16:13
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Red face
m getting this was trying to add google adsence

Parse error: syntax error, unexpected T_STRING in /home/AAA/public_html/blocks/add.php on line 2
Reply With Quote
  #6  
Old 20th January 2009, 16:20
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
you are trying to use html code in php mode
close php mode with
?>
then reopen it after the add with
<?php

sample
PHP Code:
<?php
OpenTable
("Sponcers");
?>
your html code for add
<?php
CloceTable
();
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #7  
Old 20th January 2009, 16:25
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Default
Fatal error: Call to undefined function clocetable() in /home/AAA/public_html/blocks/add.php on line 16

I'm soo dumb
Reply With Quote
  #8  
Old 20th January 2009, 22:10
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
Change it to CloseTable();
Reply With Quote
Reply

Tags
add , ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 13:57. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.