vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Top 5 "Hot" Topics on Forum Home Page (https://vborg.vbsupport.ru/showthread.php?t=93094)

amykhar 08-25-2005 11:56 PM

Can't think of anything off the top of my head unless maybe you edited the forumhome in the wrong style and not the one you are checking?

yoyoyoyo 08-26-2005 02:25 AM

Quote:

Originally Posted by amykhar
Can't think of anything off the top of my head unless maybe you edited the forumhome in the wrong style and not the one you are checking?

no- just using the forum default, and it is on a somewhat virgin install. I checked the edits and they are there. Here they are, and also the few lines before and after:
Code:

</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>
<!-- This Week's Hot Topics -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_hottopics')"><img id="collapseimg_forumhome_hottopics" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_hottopics].gif" alt="" border="0" /></a><span class="smallfont"><strong>$vbphrase[hottopics]</strong><span>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_hottopics" style="$vbcollapse[collapseobj_forumhome_hottopics]">
$hottopics
</tbody>
<!-- end This Week's Hot Topics --> 
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
        <td>
                <table cellpadding="2" cellspacing="0" border="0">

see screenshots, also.

amykhar 08-26-2005 02:38 AM

I'm assuming that the box the hottopics are supposed to be in is showing, just not the list itself?

yoyoyoyo 08-26-2005 11:51 AM

Quote:

Originally Posted by amykhar
I'm assuming that the box the hottopics are supposed to be in is showing, just not the list itself?

nope - the box is not showing either- do you want me to PM you admin login info so you can check it out?

Granted tehre are only 2 threads and 5 posts, since it is a somewhat virgin install, as I said, but that should pull up SOMETHING for a "HOT TOPIC," right?

amykhar 08-26-2005 12:04 PM

See, this is the reason for my confusion. The template mods you made to forumhome should show whether you have the plugin installed or not. Sure, go ahead and PM me the info.

Amy

yoyoyoyo 08-26-2005 01:03 PM

just so everyone knows- I had some weird buggy install of RC2... amy could not log in, and when I tried logging in as her I got the same error - then when I tired logging in as myself I got the same error- and it thought I was still trying to log in as amy! I don't even know what to report as a bug to vbulletin... I am going to try to reinstall since the hack was obviously not causing the error I was experiencing, but rather a bad install of vbulletin... or gremlins.

ohgenki 08-26-2005 01:11 PM

erm, is there anyway to show the latest threads on the right panel ? together with this ? for a start, i can't even show the latest threads on the panel, it just doesn't display, any idea what's wrong ?

amykhar 08-26-2005 01:18 PM

Ohgenki, to display data on a template, you have to get it in scope for the template. There are too many possibilities of dynamic data in the sidebars for me to support them all. Sorry.

Amy

ohgenki 08-26-2005 01:27 PM

erm, actually the problem, i beleive is this, check this out, whenever there's an attachment, the table will stretch the whole page, which is what makes the scroll bar at the bottom appear, any idea how to solve that ?

and regarding the latest threads, say i just want to display your 5 hot topics on the right panel, how do i do that ? i can't seem to get it to work just by simply putting the code in.

IFor[You] 08-26-2005 04:47 PM

ok i tink i'm getting the gist of it,
can i change the hook location so i can call it from anywhere besides forumhome?

amykhar 08-26-2005 05:01 PM

Yes, you can.

IFor[You] 08-27-2005 04:49 AM

hmm i changed the location to glodal_start and it messed up my forums -_-"

Brinnie 08-27-2005 07:59 AM

Here's a stupid idea... what about the idea of making the reverse? You know, like, display some threads that don't have many replies or something, idunno, im drunk. friday. im goin to bed. :-\

Disamy 10-24-2005 03:47 PM

Great stuff guys ! but 2 questions
I have 2 languages installed in forum so i would like to have "replies" translated, does it have varname ?
also BOFO posted HTML to add icon next to it, where do i put this HTML ?
Thanks in advance

alzibub 10-30-2005 05:36 PM

Quote:

Originally Posted by Disamy
Great stuff guys ! but 2 questions
I have 2 languages installed in forum so i would like to have "replies" translated, does it have varname ?
also BOFO posted HTML to add icon next to it, where do i put this HTML ?
Thanks in advance

Hey

I installed the hack - thanks very much
Just wanted to add that I was missing the Phrase listed in an earlier post and wasnt sure if you intended to or actually did add it to the product - if so it didnt work.
I just added it as per post in here and all is good - thanks for the work!

optrex 11-07-2005 11:06 AM

Thanks for this, I'm really impressed.

I have a question: I have a "most views" section which currently shows the most views (as long as a post has been made in the last 7 days).

How do I

a) Extend the date to say 30 days or 90 days?
b) Clear the date so I get the most views since the forum was created?

Thanks

thediablo 11-07-2005 02:11 PM

im trying to add this to my header template but is not displaying... any suggestions?

thanks

thediablo 11-07-2005 03:15 PM

ok i managed to make it show on the header by changing the hook to global_start, but now it seems im having some forum permissions problems... i click on the main forum and it says i can't view it, not enough perms... ok.. so i click on the direct link to the thread and i get in lol

Any suggestions?

thanks :D

thediablo 11-07-2005 03:26 PM

so im guessing the problem is here:

PHP Code:

if (isset($vbulletin->forumcache["$forumid"]) AND 
(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND
 (
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND
 
verify_forum_password($forumid$vbulletin->forumcache["$forumid"]['password'], false)) 

but i dont know what do the vbulletin functions do, so im a lil blind here.

so heres the prob again...

MAIN FORUM > SUBFORUM > POST
-------------- '-Can't View - '- Can View

-------------------------------------------------------
UPDATE:

ok i updated the code and removed all the permission stuff...
which leave me with this line of codes:
PHP Code:

foreach (array_keys($vbulletin->forumcache) AS $forumid)
{
        
$forumid intval($forumid);

            
$forumchoice[] = $forumid;



And guees what... Still no luck!

:(

Chadi 11-19-2005 04:41 AM

Where is this? I installed the product and refreshed, do not see anything

mooj 11-20-2005 01:00 PM

Quote:

Originally Posted by mooj

how can i display the var output $hottopics from ( forumhome_forumbit_level2_post ) ??

i want to add an IF condition .. to get the out put form only one forum ..
like this :
------------------------
forum bit content .. bla bla bla ............
then ..
<if condition="$forumid = 11">
$hottopics
</if>
------------------------


PLEASE HELP :cry:
I'm not getting the output of $hottopics in (forumhome_forumbit_level2_post) template .. ?

...
Is there any other (hook location) which can solve this problem ..

........
mooj

Mastar 11-21-2005 03:00 PM

Mine doesn't Look like Ya'lls!

Stelios 11-23-2005 06:58 AM

installed and it almost works..... :rolleyes:

Problem 1. No tile
Problem 2 see the attached file

Any ideas?

optrex 11-23-2005 07:04 AM

Quote:

Originally Posted by optrex
Thanks for this, I'm really impressed.

I have a question: I have a "most views" section which currently shows the most views (as long as a post has been made in the last 7 days).

How do I

a) Extend the date to say 30 days or 90 days?
b) Clear the date so I get the most views since the forum was created?

Thanks

Anyone got any ideas?

Mastar 12-06-2005 01:39 AM

I didn't get 'This Week's Hot Topic' title in the window but everything else works fine.

How do I correct?

Mastar 12-06-2005 01:40 AM

I guess there is no support here!

fabianv 12-06-2005 11:37 AM

How does one give this cool function a heading

''Hottest Threads''

Jnifoo 01-09-2006 06:36 PM

Have install this plugin, but found it not enough finished, so here is an updated install text.
- this will add a icon like the other mods in the 'what's going on box' (wgob)
- this will add a title for this section like the other mods in the wgob
- this will allow to have a smaller size of text, like the other mods in the wgob
- this will assure you to have the term 'reply' respect your own language
---------
//## Jnifoo's adapted Instructions ##


1. Import the product
*Nota: attention if you're not an english based, you'll need to change the word 'reply' into your own language and be carefull with special characters)


2. Find in your FORUMHOME template
** Careful if you use vBulletin v3.5.3 - This is updated **
Code:

</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

** Add this lines below the ' /if ' tag **
Code:

<!-- This Week's Hot Topics -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_hottopics')"><img id="collapseimg_forumhome_hottopics" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_hottopics].gif" alt="" border="0" /></a><span class="smallfont"><strong>$vbphrase[hottopics]</strong><span>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_hottopics" style="$vbcollapse[collapseobj_forumhome_hottopics]">
<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">$hottopics</div></td>
</tr>
</tbody>
<!-- /This Week's Hot Topics -->

3. create a $vbphrase[hottopics] translation to the system language system (english & your own language if required)
(-> let's translate it into, for example, 'This Week's Hot Topics')

4. modify the 'hottopics' entry in the style manager
(Nota: don't use any html table tag to be sure it is displayed on the good row)


--- Your done - hope this help ---

bloodwrath 01-26-2006 12:04 AM

mine is messed its showing the new items, not the most replied to
any ideas
http://help.supportcave.com/index.php

uninstalled and reinstalled..
maybe some other plugin is messing with it..

caliman 01-26-2006 04:04 AM

Not sure. That's weird.

*Clicked install*

Works for me out of the box.

bloodwrath 01-26-2006 02:39 PM

Quote:

Originally Posted by Boofo
In your FORUMHOME template

Find:

HTML Code:

</table>
<br />
<!-- end what's going on box -->

ABOVE it add:

HTML Code:

<!-- This Week's Hot Topics -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_hottopics')"><img id="collapseimg_forumhome_hottopics" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_hottopics].gif" alt="" border="0" /></a><span class="smallfont"><strong>$vbphrase[hottopics]</strong><span>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_hottopics" style="$vbcollapse[collapseobj_forumhome_hottopics]">
$hottopics
</tbody>
<!-- end This Week's Hot Topics -->

Make a new phrase:



Done!
Enjoy!

AWESOME your Make a new phrase:
got my title working...
still need to fix the plugin showing new threads....
http://www.help.supportcave.com/index.php
love this plugin.. dont want to remove it.

caliman 01-30-2006 04:42 PM

Quote:

Originally Posted by amykhar
The easiest way would be to remove the ones you don't want in the $forumchoice array.

How exactly do I do this Amy? I'd like to exclude a private forum. Thanks!

Bikestylesinc 02-11-2006 07:24 PM

Quote:

Originally Posted by Mastar
Mine doesn't Look like Ya'lls!


i got the same thing ????

can i get a box around it like everybody elses ???

dazzlin 03-24-2006 02:20 AM

Just wanted to thank Jnifoo. Your instructions above (post 108) made this hack show up on my forum home page. It was invisible before, but now it's there and working great.

Jnifoo 03-24-2006 06:11 AM

Quote:

Originally Posted by dazzlin
Just wanted to thank Jnifoo.

You welcome :bunny:

Blackhat 03-25-2006 11:27 PM

Why wont it work when I place the code in another template area than "forumhome" ?

Thanks

amykhar 03-27-2006 12:03 PM

Because the plugin is active only in forumhome, Blackhat.

Blackhat 03-27-2006 12:08 PM

yeah, I noticed the hook location, but what hook should I use if I want it to appear on my sidebar ?

amykhar 03-27-2006 12:13 PM

I would try it here: ($hook = vBulletinHook::fetch_hook('parse_templates')) ? eval($hook) : false;

BUT - make sure you don't have any conflicting variables in the plugin.

WoodiE 06-29-2006 04:50 PM

Does this work on vB 3.5.4? I've followed the text file install directions and nothing happens on my forum home.

-Michael


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