vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   New Posting Features - Adding RSS and other options to Forum home page. (https://vborg.vbsupport.ru/showthread.php?t=226808)

KID_1194 10-25-2009 10:00 PM

Adding RSS and other options to Forum home page.
 
1 Attachment(s)
Dear everyone,

This modification adds an RSS + New post + Newthread next to each forum shown in the main page "Home".


Now lets see how we can do that ...!


First .. the only template that we are going to edit is "forumhome_forumbit_level2_post" ..

So we open the forumhome_forumbit_level2_post template of the style that we want to add these options to !

We search for this line code
PHP Code:

<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> 

And then we add this code directly under it
PHP Code:

<!--  Amin Mod -->
<
table align="right" border="0">
    <
tr>
        <
td width="15">
            <
a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
        </
td>
        <
td width="15">
            <
a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
        </
td>
        <
td width="15">
        <
a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
        <
img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
        </
td>
    </
tr>
</
table>
<!-- / 
Amin Mod --> 

If you want to exclude these options in some forums, you can add the code with a condition
PHP Code:

<!--  Amin Mod -->
<if 
condition="!in_array($forumid, array(x,x,x,x))">
<
table align="right" border="0">
    <
tr>
        <
td width="15">
            <
a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
        </
td>
        <
td width="15">
            <
a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
        </
td>
        <
td width="15">
        <
a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
        <
img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
        </
td>
    </
tr>
</
table>
</if>
<!-- / 
Amin Mod --> 

on the top of the code, instead of x put the number of the forum (forumid).

At the end upload the attached icons to the misc folder which is inside images folder

This is what its going to look like
https://vborg.vbsupport.ru/attachmen...1&d=1256565021

** To hide the Newthread and New post icons from visitors and leave the Rss feed icon only
check this post https://vborg.vbsupport.ru/showpost....0&postcount=16

** To show these options on the forumdisplay also ..
you have to edit forumhome_forumbit_level1_post tempalte

search for
PHP Code:

            <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
            </
td>
        </
tr>
        </
table

then put the code directly under it ..



Updated (27 OCT 2009): "W3" 0 errors


Adding RSS next to forum title

Best regards

----------------------------------------------------------------

السلام عليكم


RSS هذا التعديل هو لإضافة ايقونة الـ
+ آخر المشاركات + إنشاء موضوع لكل قسم والذي سوف تظهر بجانب القسم في الصفحة الرئيسية


الآن .. نبدأ التعديل

أولاً .. القالب الذي سوف نقوم بالتعديل عليه هو قالب
forumhome_forumbit_level2_post
الخاص بالستايل

نقوم بفتح هذا القالب .. ثم نقوم بالبحث عن هذا الكود
PHP Code:

<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> 

بعدها نقوم بإضافة هذا الكود أسفلة مباشرة ..
PHP Code:

<!--  Amin Mod -->
<
table align="left" border="0">
    <
tr>
        <
td width="15">
            <
a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="إضافة موضوع" align="left" /></a>
        </
td>
        <
td width="15">
            <
a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="آخر المشاركات" align="left" /></a>
        </
td>
        <
td width="15">
        <
a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
        <
img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="خدمة الـ Rss" align="left" /></a>
        </
td>
    </
tr>
</
table>
<!-- / 
Amin Mod --> 

واذا اردنا ان لا تظهر هذه الأيقونات بجانب بعض الأقسم مثل الأقسام الإدارية
فيمكننا استخدام هذا الكود
PHP Code:

<!--  Amin Mod -->
<if 
condition="!in_array($forumid, array(x,x,x,x))">
<
table align="left" border="0">
    <
tr>
        <
td width="15">
            <
a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="إضافة موضوع" align="left" /></a>
        </
td>
        <
td width="15">
            <
a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="آخر المشاركات" align="left" /></a>
        </
td>
        <
td width="15">
        <
a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
        <
img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="خدمة الـ Rss" align="left" /></a>
        </
td>
    </
tr>
</
table>
</if>
<!-- / 
Amin Mod --> 

x من أعلى الكود نقوم بإستبدال علامة الـ
(forumid) بأرفام الأقسام التي لا نريد ان تظهر الأيقونات بجانبها


misc وفي النهاية نقوم برفع الأيقونات الموجودة في الأسفل ووضعها في ملف
الموجود بداخل ملفات الستايل


وهذا هو ما سنحصل عليه في النهاية
This is what its going to look like
https://vborg.vbsupport.ru/attachmen...1&d=1256565021

** إذا اردت إخفاء ايقوة إنشاء موضوع و آخر المشاركات عن الزوار
يرجى مراجعة هذا الرد
https://vborg.vbsupport.ru/showpost....0&postcount=16

** Forumdisplay إذا اردت ان تظهر هذه الأيقونات أيضاً في
forumhome_forumbit_level1_post قم بفتح قالب
وابحث عن
PHP Code:

            <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
            </
td>
        </
tr>
        </
table

وقم بإضافة الكود أسفله مباشرة



Updated (27 OCT 2009): "W3" 0 errors

Adding RSS next to forum title

دمتم في حفظ الرحمن


KID_1194 10-26-2009 12:53 PM

Reserved

KID_1194 10-26-2009 03:15 PM

Updated: "W3" 0 errors

mbc100 10-26-2009 11:21 PM

i can`t find the code?

this is my forumhme

PHP Code:

$stylevar[htmldoctype]
<
html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    
$headinclude
    
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</
head>
<
body>
$header
$navbar

<if condition="$show['guest']">
<!-- &
#1576;دايةالاطار العلوي -->
<div class="tren">
</
div>
<!-- &
#1606;هايةالاطار العلوي -->
<!-- guest welcome message -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</
tr>
<
tr>
    <
td class="alt1">
        <
phrase 1="faq.php$session[sessionurl_q]2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
    </
td>
</
tr>
</
table>
<!-- / 
guest welcome message -->
<!-- &
#1576;دايةالاطار السفلي -->
<div class="duoi">
</
div>
<!-- &
#1606;هايةالاطار السفلي -->

<br />
</if>

<!-- 
main -->
<!-- &
#1576;دايةالاطار العلوي -->
<div class="tren">
</
div>
<!-- &
#1606;هايةالاطار العلوي -->
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[center]">$vbphrase[forum]</td>
      <
td class="thead" width="175">$vbphrase[last_post]</td>
      <
td class="thead">$vbphrase[threads]</td>
      <
td class="thead">$vbphrase[posts]</td>
      <if 
condition="$vboptions['showmoderatorcolumn']">
      <
td class="thead">$vbphrase[moderator]</td>
      </if>
    </
tr>
</
thead>
$forumbits
</table>
<!-- &
#1576;دايةالاطار السفلي -->
<div class="duoi">
</
div>
<!-- &
#1606;هايةالاطار السفلي -->
$forumhome_markread_script
<!-- /main -->  
<
br />

$ad_location[ad_forumhome_afterforums]
<
br />
<!-- &
#1576;دايةالاطار العلوي -->
<div class="tren">
</
div>
<!-- &
#1606;هايةالاطار العلوي -->

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    </tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['
loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['
activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
            $template_hook[forumhome_wgo_stats]
        </div>
        </td>
    </tr>
</tbody>
$template_hook[forumhome_wgo_pos3]
<if condition="$show['
birthdays']">
<!-- today'
s birthdays -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">

            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            
$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <
tr>
        <
td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
        <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </
tr>
</
tbody>
<!-- 
end today's birthdays -->
</if>
$template_hook[forumhome_wgo_pos4]
<if condition="$show['
upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
$template_hook[forumhome_wgo_pos5]
<tbody>
    <tr>
        <td class="tfoot" align="center" colspan="<if condition="$vboptions['
showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
            <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if condition="$vboptions['
forumleaders']">&nbsp; &nbsp;
            <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>&nbsp; &nbsp;
            <a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('
$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>
        </strong></div></td>
    </tr>
</tbody>
</table>  
</table>
<!-- بدايةالاطار السفلي -->
<div class="duoi">
</div>
<!-- نهايةالاطار السفلي -->
<br />
<!-- end what'
s going on box -->

<!-- 
icons and login code -->
<
table cellpadding="0" cellspacing="2" border="0" width="100%">
<
tr valign="bottom">
    <
td align="center">
        <
table cellpadding="2" cellspacing="0">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_new_posts]</td>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_no_new_posts]</td>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_is_closed_for_posting]</td>
        </
tr>
        </
table>
    </
td>
</
tr>
    <if 
condition="!$show['guest']">
<
tr>
        
</
tr>
    </if>
</
table>
<!-- 
ahmed alfaifi abueyad wa sosn -->


$footer
</body>
</
html


KID_1194 10-26-2009 11:51 PM

It's not the forumhome template ..

my bad ..

Quote:

First .. the only template that we are going to edit is "forumhome_forumbit_level2_post" ..
:)

إذا ما عرفت تسويها .. با اساعدك

قمت بإنزال نسخة للمنتديات العربية ..

Best regards

abdobasha2004 10-27-2009 10:03 AM

Quote:

Updated: "W3" 0 errors
thank bro
this is good mod
nominated + rated

saadessa 10-27-2009 10:27 AM

thank you

KID_1194 10-28-2009 05:38 AM

Quote:

Originally Posted by abdobasha2004 (Post 1906800)
thank bro
this is good mod
nominated + rated

Thanks for that

Quote:

Originally Posted by saadessa (Post 1906802)
thank you

Your are welcome ... anytime

Log on 10-28-2009 11:49 AM

thank u

KID_1194 10-28-2009 07:29 PM

Quote:

Originally Posted by Log on (Post 1907374)
thank u

You are welcome ..

Xceptional 10-30-2009 08:18 AM

Where is the attached image icons that I must upload?

KID_1194 10-30-2009 08:40 AM

you will find 3 icons attached on the top .. :)

or I will bring them down for you ..
https://vborg.vbsupport.ru/attachmen...1&d=1256564955https://vborg.vbsupport.ru/attachmen...1&d=1256564955https://vborg.vbsupport.ru/attachmen...1&d=1256564955

don't forget to click on install to receive any update

best regards

Xceptional 10-30-2009 08:43 AM

sweet thanks! missed them there :)

KID_1194 10-30-2009 08:44 AM

Quote:

Originally Posted by Xceptional (Post 1908235)
sweet thanks! missed them there :)

you are welcome .. anytime !!

best regards

Xceptional 10-30-2009 09:03 AM

Works like a charm :) only thing I added in before your code was <if condition="$show['member']"></if>, so that it shows only when a user is logged in. Otherwise when they click on the "New Posts" icon it always says there is none available (since there is no record of posts the person previously looked at while not signed in) :up:

KID_1194 10-30-2009 09:43 AM

Quote:

Originally Posted by Xceptional (Post 1908238)
Works like a charm :) only thing I added in before your code was <if condition="$show['member']"></if>, so that it shows only when a user is logged in. Otherwise when they click on the "New Posts" icon it always says there is none available (since there is no record of posts the person previously looked at while not signed in) :up:

thats a great add ... thaks a lot

you can also add it for the new thread .. so the code will be like this

PHP Code:

<!--  San3a.Com Mod -->
<if 
condition="!in_array($forumid, array(x,x,x,x))">
<
table align="right" border="0">
    <
tr>
        <if 
condition="$show['member']">
        <
td width="15">
            <
a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
        </
td>
        <
td width="15">
            <
a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
        </
td>
        </if>
        <
td width="15">
        <
a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
        <
img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
        </
td>
    </
tr>
</
table>
</if>
<!-- / 
San3a.Com Mod --> 

so you will leave the rss feed for the visitors .. :)

best regards

SEOvB 10-31-2009 01:01 AM

This is a great mod. I must say that many members and visitors are looking for an rss feature. Great work!

KID_1194 10-31-2009 05:31 AM

Quote:

Originally Posted by FRDS (Post 1908550)
This is a great mod. I must say that many members and visitors are looking for an rss feature. Great work!

Thanks a lot .. Its a pleasure for me to see a post from a great coder link you.


Best regards

CoronasRGood 10-31-2009 11:02 PM

Something I have been looking for. Great job, installed and nominated.

NNJJ 11-03-2009 05:11 PM

can i have the pictures as attachment please; its saved as .bmp

merkaz 11-09-2009 12:14 PM

This is really nice .

Thank you .

KID_1194 11-10-2009 02:20 AM

Quote:

Originally Posted by CoronasRGood (Post 1908834)
Something I have been looking for. Great job, installed and nominated.

Thanx a lot. Its a great honour for me .. :)

KID_1194 11-10-2009 02:44 AM

1 Attachment(s)
Quote:

Originally Posted by NNJJ (Post 1909873)
can i have the pictures as attachment please; its saved as .bmp

These are the icons in BMP format ... but you also have to change the format in the code.

Just search for the img src for each icon
eg:
PHP Code:

<img src="$stylevar[imgdir_misc]/newthread.png" 

and change the format like this
PHP Code:

<img src="$stylevar[imgdir_misc]/newthread.bmp" 

or to make it easy for you just search for
PHP Code:

png 

and replace it with
PHP Code:

bmp 

Best regards

KID_1194 11-10-2009 02:46 AM

Quote:

Originally Posted by merkaz (Post 1911955)
This is really nice .

Thank you .

You are welcome ... anytime !

Don't forget to click on installed ......

Ghostt 11-11-2009 12:54 PM

i have an upgrade idea for this mod. if every forum has an rss and so its too mutch!!

how to ad the rss only at the categories?

EXAMPLE:

--------CATEGORIE1--->RSS--
----forum1
----forum2
----forum3

--------CATEGORIE2--->RSS--
----forum1
----forum2
----forum3
----forum4

KID_1194 11-12-2009 05:29 AM

Quote:

Originally Posted by Ghostt (Post 1912703)
i have an upgrade idea for this mod. if every forum has an rss and so its too mutch!!

how to ad the rss only at the categories?


EXAMPLE:

--------CATEGORIE1--->RSS--
----forum1
----forum2
----forum3

--------CATEGORIE2--->RSS--
----forum1
----forum2
----forum3
----forum4


nice idea .. but do u mean creating a category for the rss feed only ..?

Best regards

Ghostt 11-12-2009 10:39 AM

another example:

--------SUPPORT (Category)-----https://vborg.vbsupport.ru/external/2009/11/21.png --
----forum1
----forum2
----forum3

--------TALK (Category)-----https://vborg.vbsupport.ru/external/2009/11/21.png--
----forum1
----forum2
----forum3
----forum4

the category rss https://vborg.vbsupport.ru/external/2009/11/21.png =so for the forum 1-4 is an link to the feed like:

HTML Code:

http://www.vbulletin-germany.com/forum/external.php?forumids=119,120,121,117
(you have to input your forum IDs in the link ,to get category rss link)

KID_1194 11-13-2009 09:51 AM

ok .. I got it ..

I will try to make it .. but I don't think its going to be a code modification ...

Its going to be an add-on ...

Best regards

Ghostt 11-13-2009 06:17 PM

wow i am realy curious to see it in action :D
This will be a memorable upgrade for this mod!

Quote:

Originally Posted by KID_1194 (Post 1913475)
ok .. I got it ..

I will try to make it .. but I don't think its going to be a code modification ...

Its going to be an add-on ...


Best regards


KID_1194 11-14-2009 04:35 AM

Yup .. and I'm so excited about it ..

but the problem is they way to do it .. I'm a bit lost ..

I have to write a plugin that will gather all the id's of the forums that has the same option number form the database .. and on the top of that .. there should be some manual editing !!

If any has some ideas .. please share it.

I think any of the coders can help .. or any of vBulletin team ..!

Best regards

Ghostt 11-14-2009 11:00 AM

if you have to ad the forum IDs one time manualy it is not that big problem.
so you can make a beta with manualy added Forum Ids

Quote:

Originally Posted by KID_1194 (Post 1913909)
Yup .. and I'm so excited about it ..

but the problem is they way to do it .. I'm a bit lost ..

I have to write a plugin that will gather all the id's of the forums that has the same option number form the database .. and on the top of that .. there should be some manual editing !!

If any has some ideas .. please share it.

I think any of the coders can help .. or any of vBulletin team ..!

Best regards


KID_1194 11-15-2009 04:02 AM

Quote:

Originally Posted by Ghostt (Post 1913999)
if you have to ad the forum IDs one time manualy it is not that big problem.
so you can make a beta with manualy added Forum Ids

Well .. u will see it soon :)

KID_1194 11-20-2009 06:40 AM

My friend Ghostt ...

check this out ... https://vborg.vbsupport.ru/showthread.php?t=228428

its what you are looking for !!


Best regards

Jaske 04-29-2010 01:31 AM

I installed as instructed and all icons are showing but when I click the rss icon I'm taken to a blank page....any idea why?

KID_1194 04-29-2010 05:43 AM

Yes .. I think you don't have the RSS feed provider ..!

So go to the Admin CP>External Data Provider and then select YES to Enable RSS Syndication

Best regards

Jaske 04-30-2010 02:43 PM

awesome, Thanks for your help! now it works fine.

KID_1194 04-30-2010 04:07 PM

Anytime bro ..!

Rideharder 05-05-2010 07:46 PM

This is very good thank you so much

KID_1194 05-21-2010 04:44 PM

You are most welcome (All) ..

Best regards :)

Sworm 04-16-2011 04:04 PM

1 Attachment(s)
Quote:

Originally Posted by KID_1194 (Post 1908250)
thats a great add ... thaks a lot

you can also add it for the new thread .. so the code will be like this

PHP Code:

<!--  San3a.Com Mod -->
<if 
condition="!in_array($forumid, array(x,x,x,x))">
<
table align="right" border="0">
    <
tr>
        <if 
condition="$show['member']">
        <
td width="15">
            <
a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
        </
td>
        <
td width="15">
            <
a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                <
img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
        </
td>
        </if>
        <
td width="15">
        <
a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
        <
img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
        </
td>
    </
tr>
</
table>
</if>
<!-- / 
San3a.Com Mod --> 

so you will leave the rss feed for the visitors .. :)

best regards

Not there's a way to add a condition for the group id?

PS
On the level1_post there's a mode to show the image in the same forum title line or over like in the leve2_post? and not under the title? under the title was created a not beautiful gap:


All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02025 seconds
  • Memory Usage 2,120KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (15)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete