• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Change Title of Podcast

Admin

Well-Known Member
Staff member
Administrator
vBulletin has a great built-in podcast system, but it is unfortunately LACKING one very basic feature: You can't name your podcasts!

When vBulletin generates an RSS Feed for iTunes and other podcasting services, it automatically assigns a name to your podcast. That name is always a concatenation of the name of your forums and the individual forum name where they appear. For example, if your forums were called "Baseball Discussion Forums" and the podcast forum was called "Our Podcasts", all of your podcasts would be listed as "Baseball Discussion Forums - Our Podcasts" on iTunes, which is cumbersome-looking and unprofessional. If you wanted the Podcast to simply be called "The National League Report", you couldn't do it.

This modification allows you to name your podcasts whatever you want. It requires one simple database change and two small modifications to source code.

Database Change

1)Locate the podcast database entry.

2) Add a column to the end of the entry called "podcastname" (without the quotes). Make it identical to the "author" entry, in terms of format. This is, make it of type VARCHAR length 255, with latin1_swedish_ci collation.

This database change is mandatory! This modification will crash without it. However, it is backwards compatible with your other podcasts, so the database change itself will not harm anything, even if you back out this modification at some point.



Source Changes

You will be modifying two source files. One is external.php in your main forum directory. One is forum.php in the admincp subdirectory of your forum.

Changes for external.php are as follows:

Locate this block:
if (empty($title))
{ // just show board title
$rsstitle = $vbulletin->options['bbtitle'];
}
else
{ // show board title plus selection
$rsstitle = $vbulletin->options['bbtitle'] . " - $title";
}

Add the following code BEFORE the block:
if ($podcastinfo['podcastname'])
{
$rsstitle = $podcastinfo['podcastname'];
}
else
{

Add the following right AFTER the block:


Here are the changes to make for forum.php in the admincp directory:

Locate the following code:
print_podcast_chooser($vbphrase['category'], 'categoryid', $podcast['categoryid']);

Add the following code right AFTER:
print_input_row('Podcast Name' . '<dfn>' . construct_phrase($vbphrase['maximum_chars_x'], 255) . '</dfn>', 'podcastname', $podcast['podcastname']);


Next, locate the following code:
$vbulletin->input->clean_array_gpc('p', array(
'categoryid' => TYPE_UINT,
'explicit' => TYPE_BOOL,
'enabled' => TYPE_BOOL,

Add the following line right AFTER:
'podcastname' => TYPE_STR,


Next, locate the following code:
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "podcast (forumid, enabled, categoryid, category, author, image, explicit, keywords, owneremail, ownername, subtitle, summary)
VALUES (
$forum[forumid],
" . intval($vbulletin->GPC['enabled']) . ",
" . $vbulletin->GPC['categoryid'] . ",
'" . $db->escape_string(serialize($category)) . "',

REPLACE that code with:
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "podcast (forumid, enabled, categoryid, category, podcastname, author, image, explicit, keywords, owneremail, ownername, subtitle, summary)
VALUES (
$forum[forumid],
" . intval($vbulletin->GPC['enabled']) . ",
" . $vbulletin->GPC['categoryid'] . ",
'" . $db->escape_string(serialize($category)) . "',
'" . $db->escape_string($vbulletin->GPC['podcastname']) . "',

That's it!

Now you will have a new field to enter your podcast name in the Podcast Settings admin screen. The new field is circled in the attachment below:

tuoitrevnbiz29122012.png


Make sure you go to your existing podcasts and add a name to them!
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Admin [JoyFreak] Change forum_list title and H1 only Xenforo 0
Admin Hướng dẫn đổi màu thanh tiêu đề, thanh tác vụ, viền windows 10 - change color title bar, taskbar, border windo Sử dụng, chia sẻ, hỏi đáp 0
Admin Change Thread Title Color for Specific Forums on Homepage Add-ons 0
Admin Change the height of the cke text editor vBulletin Vbulletin 0
Admin [OzzModz]/[Kirby] Filtered User Change Log Xenforo 0
Admin [ITD] Change User Online Indicator Icon & Color Xenforo 0
Admin Hướng dẫn đổi tên ứng dụng android hiển thị trên màn hình xamarin forms - Change app name on main screen Android, iOS 0
N Auto Change IP Vip72 SQL injection 1
N Auto Change IP Vip72 SQL injection 0
T Git: Undo change in working directory and staging area Tin tức CNTT 0
Admin Hướng dẫn thay biểu tượng chuyên mục với ảnh xenforo 2.x - How to change Node Icons to Images xenforo 2.x Xenforo 0
rockymen9999 [vn5socks.com] change to [www.vn5socks.net] Good socks1h50 PM Tut, tool, mmo 1
rockymen9999 [vn5socks.com] change to [www.vn5socks.net] Good socks 4h50 PM Tut, tool, mmo 0
rockymen9999 Share [vn5socks.com] change to [www.vn5socks.net] Good socks 1h45 PM Tut, tool, mmo 1
rockymen9999 Share [vn5socks.com] change to [www.vn5socks.net] Good socks 10h30 AM Tut, tool, mmo 0
rockymen9999 Share Vn5socks.com change to www.vn5socks.net ! Thank you 12h10 AM Tut, tool, mmo 0
Admin Change threadrow color on mouseover Vbb tutorial 0
Admin Prevent Email Address Change For Vbb Add-ons 0
Admin Change Cursor for your forum 4.x Vbb tutorial 0
Admin Change username 1.2.0 Xenforo 1
Admin [DBTech] Username Change v1 (vB4) Add-ons 0
Admin TW7S - Change the look of the Login/Register in header Vbb tutorial 0
Admin TW7S - Change the look of "Last Post" by Vbb tutorial 0
Admin Change CODE and PHP tags design Add-ons 0
Admin Change quotation design Add-ons 0
Admin Hướng dẫn gửi mail change key domain tại melbourneit Hosting / Domain 4
Admin Forum Home Subscribe Image Change Add-ons 0
Admin Change Background Color for Specific Forums on Homepage Add-ons 0
Admin Brivium - Change Threads/Posts Owner 1.0.0 Xenforo 0
L Hướng dẫn Làm như thế nào change skin vbb? Vbulletin 1
M A Thang change dns giùm em Hosting & Domain Share 6
Admin Change Author And Creation Date Of Posts (Thay đổi tác giả và thời gian post bài) Add-ons 0
Admin How to change the (What's Going On?) box to100% in forumhome Add-ons 0
Admin Change link color only in post and/or cms articles Add-ons 0
Admin Change Threads/Posts Owner/Date for vB4 Add-ons 0
Admin Change Author And Creation Date Of Posts And Articles Add-ons 0
Admin Share video tut change pass 2 zing Hacking 0
A Code scam auto change pass Ý tưởng, góp ý, sáng kiến mới của thành viên 8
Admin [OzzModz] Remove Thread Prefix From Page Title Xenforo 0
Admin Remove the name and creation date under the thread title xenforo 2 Xenforo 0
Admin Hướng dẫn thay đổi tiêu đề hàng loạt cho xenforo - Replace title for xenforo with command line Xenforo 0
Admin XFMG Order By Title Xenforo 2 Xenforo 0
Admin Minimum thread title length xenforo 2.0 Xenforo 0
T Hỏi Cách get title cho từng page của Website? Mã nguồn web 10
Admin [AJAX] Search Forums by Title Add-ons 0
Admin Z - Title Prefix/Suffix Add-ons 1
Admin Automatical Merge Threads With The Same Title 1.0.2 Xenforo 0
Admin Facebook / Open Graph (og:description) / (og:title) tag fixes for VB 4.1.10+ by BOP5 Add-ons 1
Admin Share code fix title và text hàng loạt trong zip Mã nguồn wap 0
bunvocam9x Share Hướng dẩn add title vào tag Johncms 0

Similar threads

New posts New threads New resources

Back
Top