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)
-   -   Forum Home Enhancements - Extra forumbit controls (https://vborg.vbsupport.ru/showthread.php?t=204168)

veenuisthebest 02-03-2009 10:00 PM

Extra forumbit controls
 
1 Attachment(s)
This adds 4 mini icons (famfam) corresponding to each forum on forumhome and forumdisplay (subforums)

DEMO1
DEMO2

The 4 controls added are:-

Read new Posts
Create a new thread
Subscribe to Forum
RSS Feed


1. First upload the 4 attached icons in images/misc/ folder.

2. Then in Forum Home Templates/forumhome_forumbit_level2_post

Find this:

Code:

<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" >

Add below:-

Code:

<div style="float:right">
<a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a>

<a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a>

<a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a>

<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</div>


3. Then in Forum Home Templates/forumhome_forumbit_level1_post

Find this:

Code:

<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td width="100%">


Make the change in the above code (in red) and add below:-

Code:

<div style="float:right">
<a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a>

<a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a>

<a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a>

<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</div>


Thats it!

a) Obviously, works in all vb versions!
b) Yes, it is XHTML valid.
c) If this has been released before, then sorry.

If you like it, please click Install and join my site too ;)

Thanks

Source: http://tech6.com/f51/extra-forumbit-controls-t549/

eTiKeT? 02-04-2009 02:09 PM

Thank you İnstalled...

soqzippo 02-04-2009 10:49 PM

very cool

puertoblack2003 02-04-2009 11:02 PM

this is cool for the image directory i changed the path to vb default setup
Quote:

$stylevar[imgdir_misc]
thanks :up:

davew 02-05-2009 07:58 AM

Great mod!

Installed, Thank you...

glennybee 02-06-2009 06:27 PM

I'm using a similar template edit.

http://www.digital-kaos.co.uk/forums/

abo naif 02-07-2009 06:50 AM

Great work!

Installed, Thank you...

veenuisthebest 02-07-2009 09:03 AM

Quote:

Originally Posted by abo naif (Post 1736815)
Great work!

Installed, Thank you...

Then you should click Install please.

guvner 02-07-2009 07:26 PM

Nice mod! Installed on 3.7.3

Thank you!

Mike :)

Medina 02-08-2009 11:46 AM

Thank you very much!!

* Installed *

Theater 02-08-2009 05:45 PM

Flawless.

-Regards

Haltech 02-10-2009 12:37 AM

i have a custom skin and could not get this to work correctly with the width.. i tried everything from 1% to 100%. It kept throwing the forum description off.:mad:

Medina 02-10-2009 03:14 PM

You should remove the;
Code:

<td width="100%">

ged 02-14-2009 01:45 PM

Tiny but neat and useful, thank you very much. :)

davew 02-15-2009 09:19 AM

Thank you, very neat - installed.

Is there anything else required to make the RSS work though?

I just get a blank screen when I click on any RSS icon.

Regards,
Dave

Theater 02-15-2009 11:23 PM

Quote:

Originally Posted by davew (Post 1744668)
Thank you, very neat - installed.

Is there anything else required to make the RSS work though?

I just get a blank screen when I click on any RSS icon.

Regards,
Dave

vBulletin Options > External Data Provider > Set "Yes" to Enable RSS Syndication

//edit - looks like you got it figured out from visiting your site.

davew 02-16-2009 04:10 AM

Quote:

Originally Posted by Theater (Post 1745407)
vBulletin Options > External Data Provider > Set "Yes" to Enable RSS Syndication

//edit - looks like you got it figured out from visiting your site.

Well, I found a reference somewhere on how to turn it on, but hadn't thought it worked.

In fact, in Firefox, it doesn't, but in IE it is fine (I hadn't tried IE)..

I'll investigate further, and thanks for the prompt response, much appreciated!

Cheers,
Dave

EDIT : It is working on both now, must have been caching or something.. Sorry to have bothered you all :)

dvbusuario 02-16-2009 06:09 AM

1 Attachment(s)
Quote:

Originally Posted by glennybee (Post 1736368)
I'm using a similar template edit.

http://www.digital-kaos.co.uk/forums/

How can I do this? make vertical

Thank you!

davew 02-16-2009 06:21 AM

Quote:

Originally Posted by dvbusuario (Post 1745643)
How can I do this? make vertical

Thank you!

add a <BR> after each of the first three entries
PHP Code:

<div style="float:right">
<
a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a><br>

<
a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a><br>

<
a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a><br>

<
a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</
div


dvbusuario 02-17-2009 03:05 AM

Quote:

Originally Posted by davew (Post 1745653)
PHP Code:

add a <BRafter each of the first three entries
<div style="float:right">
<
a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a><br>

<
a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a><br>

<
a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a><br>

<
a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</
div


lol that was simple, thank you very much.

davew 02-17-2009 06:29 AM

Quote:

Originally Posted by dvbusuario (Post 1746491)
lol that was simple, thank you very much.

You're welcome - great to be able help someone else for a change :)

veenuisthebest 02-17-2009 11:27 AM

Inserting <br> will throw xhtml validation errors, use <br /> instead.

macc 02-17-2009 01:43 PM

Nice - on forum works fine but how get to works on CMPS - recent threads?

thanks for nice mod!

regards

macc

TimberFloorAu 02-17-2009 09:17 PM

Error in first edit found.
Code:

<div style="float:right">
<a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a>

<a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a>

<a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a>

<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</div>

Last line should read
<a href="external.php?type=rss2&forumid=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>

Also in edit 2

Code:

<div style="float:right">
<a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a>

<a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a>

<a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a>

<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</div>

change last line to:
<a href="external.php?type=rss2&forumid=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>

The4um 02-17-2009 10:36 PM

so cool

Gamelobby 02-17-2009 11:23 PM

Im lost on step one.. lol
Quote:

1. First upload the 4 attached icons in images/misc/ folder.
Where are the attached icons.?

Chadi 02-17-2009 11:24 PM

Cool mod. I'm no coder, but should these 4 icons have an <if> rule so that it shows only for members logged in?

Chadi 02-17-2009 11:26 PM

Quote:

Originally Posted by Gamelobby (Post 1747382)
Im lost on step one.. lol


Where are the attached icons.?

Look carefully in the description, at the bottom an inch below where it says "
Download Now" you'll see 4 tiny icons. Right click to save them.

veenuisthebest 02-18-2009 01:08 AM

Quote:

Originally Posted by TimberFloorAu (Post 1747277)
Error in first edit found.
Code:

<div style="float:right">
<a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a>

<a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a>

<a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a>

<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</div>

Last line should read
<a href="external.php?type=rss2&forumid=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>

Also in edit 2

Code:

<div style="float:right">
<a href="search.php?do=getnew&f=$forum[forumid]"><img src="images/misc/newposts.png" border="0" width="11" height="11" hspace="2" alt="Read New Posts" /></a>

<a href="newthread.php?do=newthread&f=$forum[forumid]"><img src="images/misc/newthread.png" border="0" width="11" height="11" hspace="2" alt="Create a New Thread" /></a>

<a href="subscription.php?do=addsubscription&f=$forum[forumid]"><img src="images/misc/subscribe.png" border="0" width="11" height="11" hspace="2" alt="Subscribe" /></a>

<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>
</div>

change last line to:
<a href="external.php?type=rss2&forumid=$forum[forumid]"><img src="images/misc/rss.png" border="0" width="11" height="11" hspace="2" alt="RSS feed" /></a>

So whats the error? Are you talking about forumids, if yes, the forumid and forumids both work fine.

veenuisthebest 02-18-2009 01:11 AM

Quote:

Originally Posted by chadi (Post 1747384)
Cool mod. I'm no coder, but should these 4 icons have an <if> rule so that it shows only for members logged in?

If you want to hide it from guests, just wrap the code within:

HTML Code:

<if condition="$show['member']">

<!-- Code here -->

</if>


TimberFloorAu 02-18-2009 06:29 AM

in 3.8.0 forumids does not work, it has to be replaced with forumid on mine.

In fact take no notise of me, just checked again.. and bugger me wasnt working.

Please accept my apologies.

it is indeed as you initially stated.

nrms? 02-18-2009 02:24 PM

At first impression(15min working)... very very nice mod.

Other great improvement for this is adding the four vb phrases to translate the mod on forum. ;)

veenuisthebest 02-18-2009 03:53 PM

Quote:

Originally Posted by nrms? (Post 1748009)
At first impression(15min working)... very very nice mod.

Other great improvement for this is adding the four vb phrases to translate the mod on forum. ;)

would be great if you click install ;)

macc 02-18-2009 04:18 PM

hello!

will ask again..is it possibly to get this on cmps -portal page or only on forumhome?


regards
macc

veenuisthebest 02-18-2009 05:39 PM

Quote:

Originally Posted by macc
is it possibly to get this on cmps -portal page or only on forumhome?

everything is possible!

I don't use the recent threads cmps module, so you'll have to figure it out.

The code remains the same, you'll probably need to add it in adv_portal_recthreads_exp_head OR adv_portal_recthreads_exp template. It would be easy, try it out.

DobieGillis? 02-18-2009 06:11 PM

Quote:

Originally Posted by Theater (Post 1745407)
vBulletin Options > External Data Provider > Set "Yes" to Enable RSS Syndication

//edit - looks like you got it figured out from visiting your site.

did the same things but still not working

veenuisthebest 02-18-2009 06:22 PM

Quote:

Originally Posted by DobieGillis? (Post 1748262)
did the same things but still not working

Enable all the options in External data provider. If it still doesn't work, try it in the fresh default style.

DobieGillis? 02-18-2009 06:44 PM

Quote:

Originally Posted by veenuisthebest (Post 1748273)
Enable all the options in External data provider. If it still doesn't work, try it in the fresh default style.

no go. Do I have to have a specific RS feed defined first?

Gamelobby 02-18-2009 09:41 PM

Quote:

Originally Posted by chadi (Post 1747385)
Look carefully in the description, at the bottom an inch below where it says "
Download Now" you'll see 4 tiny icons. Right click to save them.

Oh you mean where it say "Screen shots"..?
I am used to downloading a zip file. :)

nrms? 02-18-2009 10:01 PM

Opsssss... I have found some errors validation with Internet Explorer in level1_post.

For level2_post no problem, and with mozilla firefox works all 100%...

Look above print screen...


[Show Image]


All times are GMT. The time now is 05:57 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.02388 seconds
  • Memory Usage 1,873KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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