vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Add rss random joke feed to forum home (https://vborg.vbsupport.ru/showthread.php?t=262704)

neckome 04-26-2011 10:00 PM

Add rss random joke feed to forum home
 
1 Attachment(s)
Just a little template mod i added to my site so i thought i would share.
Adds a rss feed block to forum home with random jokes.


Iam no coder but i like it and it seems to work.

In forum home template
Find
Code:

{vb:raw ad_location.board_after_forums}

add below
Code:

<!--start jokes rss feed-->
<div id="wgo" class="collapse wgo_block block">
<h2 class="blockhead">Random Jokes</h2>
<div class="blockbody formcontrols floatcontainer">
<script language="JavaScript" src="http://convert.rss-to-javascript.com/?src=http://jokes4all.net/rss/540010513/jokes.xml&desc=1&desc_max=0&chan=0&simple_chan=0&font=Arial&fgcolor=&bgcolor=&date=1&target=&num=2&target=&use_lists=0&font_size=" ></script><noscript>Your browser does not support JavaScript. <a title='RSS-to-JavaScript.com: Free RSS to JavaScript Converter' href=http://convert.rss-to-javascript.com/?src=http://jokes4all.net/rss/540010513/jokes.xml&desc=1&desc_max=0&chan=0&simple_chan=0&font=Arial&fgcolor=&bgcolor=&date=1&target=&num=2&target=&use_lists=0&font_size=&as_html=1 ></noscript></div></div>
<!--end jokes rss feed-->


Like i say iam no coder so any input/comments would be much appreciated.

Toxic2 04-27-2011 05:38 AM

Egads !!! I read the 1st Joke and about fell out of the chair Laughing LOL Nice one Tks

Toxic2 04-27-2011 07:04 AM

I do have a Suggestion though, Make a forum named Random Jokes or Comedy corner etc, allow html for that forum, but make it closed so no one can coment (due to html turned on) and it may serve 2 purposes, 1 save space and 2 for those who offend easily, they don't need to read the Jokes. I like it but, it takes a Lot of space, so I prefer to do this, if it will work that way. I will check after I stop Laughing.

0verl0rd 04-30-2011 05:13 AM

how can you make this as a post and how to remove powered by? :(

Toxic2 04-30-2011 06:01 AM

I just made a Child Forum Under Gereral Discussion and named it "Random Jokes", then allowed HTML , Pasted the Code and closed the forum so no one can add commets (due to HTML on.)

Surprizinly I get comments in chat about it and members laughing about it. :p

As far as the Script, to remove parts Like date etc, I'm still playing with it. I prefer the Powered By RRS feed so people know it is random. But I prefer not to have the dates. ( it Mess's with the reading of the Joke) when I get it figured out I will let you know what I did.

ProFifaLeagues 04-30-2011 07:29 PM

Nice idea this one thank you!

thecelticway 06-29-2011 02:17 PM

works great~~~~~Thanks

Krusty1231 06-30-2011 01:33 AM

Quote:

Originally Posted by Toxic2 (Post 2190227)
I just made a Child Forum Under Gereral Discussion and named it "Random Jokes", then allowed HTML , Pasted the Code and closed the forum so no one can add commets (due to HTML on.) .

Where do I paste the HTML to set it up this way?

oedipean 12-10-2011 02:52 AM

unfortunately, it dose not work .


All times are GMT. The time now is 06:51 AM.

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.02010 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete