View Full Version : More Detail for Manage Banners View
tsgro
02-07-2007, 07:40 PM
Hi,
It is hard to actually manage my banners when they all look the same from the "Manage Banner" screen (see attached file). Is there a way to customize this page or can you add in an up coming release a way to add a picture to preview the banner so an admin can directly select the banner of interest?
Reagrads,
Tom
Dave Baker
02-07-2007, 08:55 PM
Hello tsgro,
Please try it:
***Open file admin/manage-banners.php and find the following code(around line 410)***
if(type=='html') {
$('#htmlsettings, #textcontainer').show();
}
else if(type=="text") {
$('#textcontainer, #bannerurl').show();
}
***Replace with the following code***
if(type=='html') {
$('#htmlsettings, #textcontainer, #imageTitle').show();
}
else if(type=="text") {
$('#textcontainer, #bannerurl, #imageTitle').show();
}
***Save file***
tsgro
02-07-2007, 11:43 PM
Thanks for you for your reply. Your suggestion appears to have added 2 fields to the banner detail page; ie, "Banner Title" and "Banner Alternative Text". This is an improvement; however, I was looking for something that would help with on the main manage banner page. Even after filling in the new fields the main banner page still looks the same.
Any other ideas?
Regards,
Tom
Dave Baker
02-08-2007, 12:33 AM
Yes, you are right Tom,
Plus to above code you need correcting one more condition:
***Open file admin/manage-banners.php and find the following code(around the line 723)***
if($value['type']=='text' || $value['type'] =='html') {
echo "<a href=\"{$url}\">".substr_replace(html(strip_tags($value['content'])),"...",20)."</a>";
}
else {
echo "<a href=\"{$url}\">{$value['title']}</a>";
}
***Replace with the following code***
if($value['type']=='text') {
echo "<a href=\"{$url}\">".substr_replace(html(strip_tags($value['content'])),"...",20)."</a>";
}
else {
echo "<a href=\"{$url}\">{$value['title']}</a>";
}
***Save file***
tsgro
02-08-2007, 12:43 AM
Thanks for your help the banner title now appears on the main page. :applause:
Dave Baker
02-09-2007, 04:44 PM
You're welcome Tom!
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.