View Full Version : How to show on This Script Albumid = XX only
Scalemotorcars
05-01-2014, 03:14 PM
How can I show on a specific album id. The below script displays fine on album.php but I don't want it there, rather on the exact album id number.
Thanks...:up:
if(THIS_SCRIPT != 'album'){
ob_start();
MY CODE
ob_end_clean();
}
return $my_output;
Lynne
05-01-2014, 04:42 PM
So you want a condition like.... if albumid = xx ? We need to know where this code is going first, like are you adding it to a file or as a plugin (what hook)?
Scalemotorcars
05-01-2014, 10:25 PM
Im using forum blocks and the Sidebar Anywhere from Pops hack. Im trying to display the sidebar on just the album with number 24. And to all usergroups except 17.
VBninja has been helping out but its still not showing. I checked permissions and cant find the reason.
Here's the code so far. I know the output works and if I change the IF to This Script (albums) but then it shows everywhere in the albums.
$subscriber_usergroupids = array(17);
if(vB::$vbulletin->GPC['albumid'] == 24 AND !is_member_of(vB::$vbulletin->userinfo, $subscriber_usergroupids)){
ob_start();
require_once($_SERVER['DOCUMENT_ROOT'] . "/phpbay/ebay.php");
phpBayAPI("(vallejo,paint)", "18", "2594", "stand,powder", "", true);
$my_output = ob_get_contents();
ob_end_clean();
}
return $my_output;
Lynne
05-02-2014, 02:22 AM
You should ask in the mod thread if anyone there knows the right condition. I don't since I don't use the mod.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.