I've asked so many people on IPS but they wont reply to my emails. I've seen how helpful this site was and I hope to have better luck here.
Putting a php script in IPB 3
Started by
Shawnrl
, Feb 11 2010 06:44 PM
#1
Posted 11 February 2010 - 06:44 PM
I've asked so many people on IPS but they wont reply to my emails. I've seen how helpful this site was and I hope to have better luck here.
#2
Posted 11 February 2010 - 08:36 PM
Usually those scripts are inserted into the global HTML templates in the ACP. Where did you get your advertising banner from? Perhaps they can send you the script?
Johanna
Johanna
#3
Posted 11 February 2010 - 10:30 PM
There is a 10 bucks hook for IPB 3 here: http://community.inv...p;showfile=2805
#4
Posted 15 February 2010 - 09:35 PM
I didn't buy a mod or anything.
I know it needs to be inserted into the global template but I don't know how to get it to work. I'll pay someone to help me. I just need to be shown how to get it to work. It was a custom thing the old owner found and it's the only one that works for what I need. None of the other mods work like the way I need it to.
******************************
*********************
This email was sent to me regarding adding php to IPB 3:
To use php code in the skin templates (include a file and then run it) you need to use this syntax:
<php>
//Your PHP include and everything else here
include(path_to_file);
$mc = new myClass();
$myData = $mc->returnData();
</php>
This is just a simple code example, but you need to return the code to display and save it in a variable then use the code {$myData} in the place of the template where you want to display it.
***************************************************
I didn't back up the skin but I looked through the backup of the mysql to find this in the skin_global:
{$IPBHTML = "";//--starthtml--//include("/home/american/public_html/ads/ipb.ads.php");$_GET[\'ads\'] = displayIpbAds();$IPBHTML .= "" .
<br/><php>include("/home/american/public_html/ads/ipb.ads.php");$_GET[\'ads\'] = displayIpbAds();</php>{$_GET[\'ads\']}<br />
***************************************************
Thats the code that was in the old skin.
I'll pay someone like 10 bucks if they can help me. I can provide images and files if needed.
I know it needs to be inserted into the global template but I don't know how to get it to work. I'll pay someone to help me. I just need to be shown how to get it to work. It was a custom thing the old owner found and it's the only one that works for what I need. None of the other mods work like the way I need it to.
******************************
*********************
This email was sent to me regarding adding php to IPB 3:
To use php code in the skin templates (include a file and then run it) you need to use this syntax:
<php>
//Your PHP include and everything else here
include(path_to_file);
$mc = new myClass();
$myData = $mc->returnData();
</php>
This is just a simple code example, but you need to return the code to display and save it in a variable then use the code {$myData} in the place of the template where you want to display it.
***************************************************
I didn't back up the skin but I looked through the backup of the mysql to find this in the skin_global:
{$IPBHTML = "";//--starthtml--//include("/home/american/public_html/ads/ipb.ads.php");$_GET[\'ads\'] = displayIpbAds();$IPBHTML .= "" .
<br/><php>include("/home/american/public_html/ads/ipb.ads.php");$_GET[\'ads\'] = displayIpbAds();</php>{$_GET[\'ads\']}<br />
***************************************************
Thats the code that was in the old skin.
I'll pay someone like 10 bucks if they can help me. I can provide images and files if needed.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users