PDA

View Full Version : RSS Threads, not showing them as new posts.


CFN-1
01-10-2009, 11:35 PM
I have some RSS feeds that are posted as threads. I would like to set them so that they don't show in the "New Posts" list. Is this possible?

Lynne
01-10-2009, 11:44 PM
Do you have them going to their own forum? If so, then to exclude forums in the New Posts button, you may add "&exclude=xx" or "&exclude=xx,yy,zz" (separate the forumids by commas) to the end of the New Posts url... ie. "/forums/search.php?do=getnew&exclude=xx" in your navbar template (or wherever you have your navbar links).

CFN-1
01-10-2009, 11:52 PM
Do you have them going to their own forum? If so, then to exclude forums in the New Posts button, you may add "&exclude=xx" or "&exclude=xx,yy,zz" (separate the forumids by commas) to the end of the New Posts url... ie. "/forums/search.php?do=getnew&exclude=xx" in your navbar template (or wherever you have your navbar links).Wow Lynne, that was a quick answer! Thank you!

I'm pretty new at vB. I do have them going to their own forums.

Where do I find the location of where to exclude them? I'm not far enough along to understand where the New Posts button is or the New Posts URL.

Is there a procedure explained in the manual?

Thanks for your help!

EDIT: I think I can find the nav bar template. I'll see if I can find the string you've mentioned. I'll edit again with my results. ;)

No, I couldn't find the navbar template. I haven't modified it, so it should be wherever it is in the stock 3.7.4 version.

Can you give me some directions? I'm such a newbie....

--------------- Added 1231641974 at 1231641974 ---------------

I did find what I think is the correct template. In the navbar template, I found two strings that were similar to what you mentioned. Am I in the correct place?

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>

Lynne
01-11-2009, 01:03 AM
You want to change both of those instances of the search to:

search.php?$session[sessionurl]do=getnew&exclude=xx

where x is the forumid of the forum the rss feed threads are located. Get the forumid in Forums & Mods > Forum Manager > find the forum > hover over it and see f=x or click to edit and find the id at the top of the page.

CFN-1
01-11-2009, 01:12 AM
You want to change both of those instances of the search to:

"search.php?$session[sessionurl]do=getnew&exclude=xx,xx,xx,xx,xx"

The quotes would go where I've put them?

Thanks! I can't believe I found the correct strings! Lucky :)

Lynne
01-11-2009, 03:59 AM
Yes, the quotes would go around that whole link as you've shown above.

And, actually, even though what I wrote will work, it is probably better to replace the & with &amp; so....

"search.php?$session[sessionurl]do=getnew&amp;exclude=xx,xx,xx,xx,xx"

(I need to get myself into the habit of doing that!)

CFN-1
01-11-2009, 12:03 PM
Yes, the quotes would go around that whole link as you've shown above.

And, actually, even though what I wrote will work, it is probably better to replace the & with &amp; so....

"search.php?$session[sessionurl]do=getnew&amp;exclude=xx,xx,xx,xx,xx"

(I need to get myself into the habit of doing that!)****EDIT:I also found two *do=getdailey* instances within the navbar code that I added the same alterations to. That kept the *Quick Links* "Today's Posts" from showing the same forums. It worked, however, when there are no no posts, a message box appears with the text "You may search for threads updated during the previous 24 hours, here." and the "here" link shows the same "do=getnew" code. I couldn't find where to change it.

Can you tell me where the "do=getnew" code is for that instance?

*****

Thank you again Lynne. You've been a great help to me. I'm sorry I didn't answer last night. I'm an old guy and it was way past my bedtime :) . I'm going to go in and try that right this moment.

In case anyone wishes to know why I would want to do this, it's because I have a group that is primarily forums for member posts. I have 300 posting forums so far, for that. The newspaper RSS feeds are for two reasons; first, to expand my SEO presence. Secondly, to give the members something to do until there is enough postings to interest them. None of the news feed forums allow posting. They are read only. That's why I don't want to show them in the "New Posts" results. It's obvious where they are, and seeing several hundred new RSS posts every day would make seeing the human posts more difficult.

The group is brand new and as a result, quite empty. If you'd like to look over what I've done, check out www.cityfactnow.com and you'll see how I've arranged the format. Join if you don't mind the echos.... ;)

A million thanks, Lynne!

Lynne
01-11-2009, 04:09 PM
To find the "You may search for threads..." phrase, do a Search in Phrases and put in "You may search for threads" and the phrase will come up and you may edit it.

Your link to your forum isn't working right now. :(

CFN-1
01-11-2009, 05:03 PM
To find the "You may search for threads..." phrase, do a Search in Phrases and put in "You may search for threads" and the phrase will come up and you may edit it.

Your link to your forum isn't working right now. :(If I understand, in the phrases, it'll give me a way to exclude the forums I wish to as the templates did? Yikes, that's the first time I'll be in there...

(I misspelled my own site name....what a shame! I fixed it! The link will work now. :) )

Lynne
01-11-2009, 05:05 PM
Yes, try the same edit to the link in the phrases that you did for the template. I think it will work, but I guess you can test it and see.

edit: Nice forum. When you get more comfortable with vbulletin, it might be fun to change the banner based on what 'city' you are in. Find an image of the skyline for each city and incorporate that. Just a thought.

CFN-1
01-11-2009, 05:19 PM
Yes, try the same edit to the link in the phrases that you did for the template. I think it will work, but I guess you can test it and see.

edit: Nice forum. When you get more comfortable with vbulletin, it might be fun to change the banner based on what 'city' you are in. Find an image of the skyline for each city and incorporate that. Just a thought.

I found:

Varname $vbphrase[searchnoresults_getnew]
Text Sorry, there are no new threads to view.<br /><br /> You may search for threads updated during the previous 24 hours, <a href="search.php?{1}do=getdaily">here</a>.


So, if I change it to:

Sorry, there are no new threads to view.<br /><br /> You may search for threads updated during the previous 24 hours, <a href="search.php?{1}do=getdaily&amp;exclude=xx,xx,xx,xx,xx">here</a>.


That should work? I'll give it a go!

Yeah, I've thought about embedding a graphic that changes by city, in the top right area of the Header, but I don't have a clue as to how to even start on that...

I imagine a directory of cities containing the images. Then code it to alter the image according to the city chosen. The coding is where I'm lost...as you know!

I'll keep leaning. Once again, thanks!


EDIT: I just tried it and it worked perfectly! You've done it again! (Now tell me how to do those graphics....hehe)

Lynne
01-11-2009, 05:58 PM
If you had a directory, say /images/banners and in it you had things like banner1.png and banner2.png for forumid 1 and forumid2, you could do something like:


<if condition="$foruminfo[forumid] == 1">
<img src="/images/banners/forum1.png" alt="$foruminfo[title_clean]" width="x" height="y">
</if>
<if condition="$foruminfo[forumid] == 2">
<img src="/images/banners/forum2.png" alt="$foruminfo[title_clean]" width="x" height="y">
</if>Something like that in the template for the banner. You can play with that by making a new style that is not pickable by users. You as an admin can see the new style by clicking on the style name in the Style Manager. It's just something to play with when you feel like it. (You could also do it as a plugin, but the template edit is the easiest.)

CFN-1
01-11-2009, 07:11 PM
If you had a directory, say /images/banners and in it you had things like banner1.png and banner2.png for forumid 1 and forumid2, you could do something like:

-Awesome Code-

Something like that in the template for the banner. You can play with that by making a new style that is not pickable by users. You as an admin can see the new style by clicking on the style name in the Style Manager. It's just something to play with when you feel like it. (You could also do it as a plugin, but the template edit is the easiest.)That is so cool! Thanks, I look forward to messing around with that! How did you learn all of that? I feel like such a rookie again...