PDA

View Full Version : Top 5 "Hot" Topics on Forum Home Page


amykhar
07-27-2005, 10:00 PM
This little one puts a list of the five threads with the most replies that have been active in the past 7 days on your forum home page.

You can change the query to make it 10 topics with most views or whatever suits your needs.

Things you may want to change:

To get the top 10, 20 or whatever topics instead of 5, change LIMIT 5 to the number of your choice.

To get the top topics based on views instead of replies, change
ORDER BY replycount
to ORDER BY views

To keep track of the top threads that are currently active, no matter when they were started, change WHERE dateline > $datecut to WHERE lastpost > $datecut

Darth Gill
07-28-2005, 11:14 PM
I installed it and modified the template a little bit to my liking. But you have a HUGE BUG!

Take this out of $topicstring in the plugin! "http://www.eaforums.com/forums/"

amykhar
07-28-2005, 11:33 PM
I installed it and modified the template a little bit to my liking. But you have a HUGE BUG!

Take this out of $topicstring in the plugin! "http://www.eaforums.com/forums/"

Oops. I never really intended to share this one. I'll fix that now.

amykhar
07-28-2005, 11:42 PM
The problem is fixed in the zip.

Neal-UK
07-29-2005, 12:56 AM
The problem is fixed in the zip.

still doing it on my forum

Neal-UK
07-29-2005, 01:03 AM
...but sorted it 'mesell'

kall
07-29-2005, 07:11 AM
Hahahahah! Love the 5th Topic's title amy!!

Boofo
07-29-2005, 08:08 AM
That's our Amy! ;)

If anyone is interested, I edited a few things to make this look more in line with the rest of the What's Going On box. See the attached pic. ;)

It is also collaspable. ;)

Darth Gill
07-29-2005, 11:03 AM
I did the same thing... I made it collapseable as well as moved the number of replies to the title attribute so that it shows only on mouseovers. I also replaced the breaklines with spaces.... One more change is since my board likes to have long lengthy discussions over months at a time, I made it the 5 hottest topics for the month. :)

Here's a screenshot.

http://forums.5solas.org/

amykhar
07-29-2005, 01:26 PM
Yeah, my what's going on box is very different than most people's. That's why I put in there that the html was only a suggestion ;)

Amy

amykhar
07-29-2005, 01:27 PM
Cripes! I just looked at the screenshot. Off to repair it :blush:

Amy

Boofo
07-29-2005, 07:28 PM
I did the same thing... I made it collapseable as well as moved the number of replies to the title attribute so that it shows only on mouseovers. I also replaced the breaklines with spaces.... One more change is since my board likes to have long lengthy discussions over months at a time, I made it the 5 hottest topics for the month. :)

Here's a screenshot.

http://forums.5solas.org/

Looks good and I really like the wood looking thead and tcat. ;)

GrendelKhan{TSU
07-30-2005, 03:10 AM
cool thx amy!

<<< installs

That's our Amy! ;)

If anyone is interested, I edited a few things to make this look more in line with the rest of the What's Going On box. See the attached pic. ;)

It is also collaspable. ;)

im interested. :) can I get get this somehow? :D

Neal-UK
07-30-2005, 03:43 AM
That's our Amy! ;)

If anyone is interested, I edited a few things to make this look more in line with the rest of the What's Going On box. See the attached pic. ;)

It is also collaspable. ;)

I overwrote the hack with the new version but the list is exactly the same.

I unistalled the hack and reinstalled it but the list still looks the same.

amykhar
07-30-2005, 03:46 AM
I overwrote the hack with the new version but the list is exactly the same.

I unistalled the hack and reinstalled it but the list still looks the same.

I'm not sure what you are saying to me? What did you expect to change?

Amy

Neal-UK
07-30-2005, 03:46 AM
I'm not sure what you are saying to me? What did you expect to change?

Amy

you said you had made some changes so it fits in with the rest of 'what's going on'

amykhar
07-30-2005, 03:48 AM
No. I never said that :) Somebody else said they made changes on their board. In the install instructions, I specifically noted that the template html was just a suggestion and you may want to tweak it.

I fixed the url problem that the first user has.

Amy

Neal-UK
07-30-2005, 03:50 AM
No. I never said that :) Somebody else said they made changes on their board. In the install instructions, I specifically noted that the template html was just a suggestion and you may want to tweak it.

I fixed the url problem that the first user has.

Amy

sorry your right, it's that time again!

Boofo
07-30-2005, 04:58 AM
cool thx amy!

<<< installs



im interested. :) can I get get this somehow? :D

If amy ok's it, I will post the changes here. A very small part of the xml had to be changed, too. ;)

Neal-UK
07-30-2005, 09:55 AM
If amy ok's it, I will post the changes here. A very small part of the xml had to be changed, too. ;)

yes please good bud!

Neal-UK
07-30-2005, 05:52 PM
yes please good bud!

go on, you know you want too

GrendelKhan{TSU
08-01-2005, 08:39 AM
im interested. :) can I get get this somehow? :D

bump


or can someone direct me to the location of the instructions to do this. (change design to match forums)

<< hopeless n00b :(

amykhar
08-01-2005, 01:57 PM
Bob, have mercy on em already :D If they wait for me to make a template edit, they'll have grandchildren. :D

Boofo
08-01-2005, 02:06 PM
All I was waiting for was your ok. I'll post it shortly. ;)

Boofo
08-01-2005, 02:09 PM
In your FORUMHOME template

Find:

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

ABOVE it add:

<!-- 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:

Phrase Type: GLOBAL
Product: Hot Topics on Forum Home
Varname: hottopics
Text: This Week's Hot Topics

Done!
Enjoy!

BS5
08-01-2005, 05:33 PM
Hello,

I have upload this plugin but I have this erorr (see it in attach). It upload with out any title.

BS5

amykhar
08-01-2005, 05:38 PM
I don't know what could be going wrong. I have not changed the plugin and nobody else seems to have that problem.

Rich
08-01-2005, 05:49 PM
Hello,

Exactly how do I install this? lol I downloaded the package, and took a look at the install directions. Then I went in to the ACP to see where I Import Products, but I have no idea where that is to be done. lol
This is my first modification to a 3.5 RC1. Sorry for my ignorance.

Neal-UK
08-01-2005, 06:14 PM
In your FORUMHOME template

I've done all that but mine still looks exactly the same...weird

womensden
08-01-2005, 08:33 PM
Worked perfect. Another job well done Amy!

*Clicks install*

Kusadasi-Guy
08-01-2005, 11:32 PM
Amycar, this is a great plugin!
is there a chance to put this on a vb-powered custom page?

amykhar
08-01-2005, 11:34 PM
Kusadasi-Guy, you could lift the code out of the plugin and use it anywhere that global.php is included. It's a straightforward query. You will need to restructure your template though.

Amy

Kusadasi-Guy
08-01-2005, 11:45 PM
i am really sorry to being noob, but i couldnt. Can you create a small example? This is really too important for me becuase i want to create my VB-powered custom page.

i tried this, and of course it doesnt work;

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'bugs');
define('NO_REGISTER_GLOBALS', 1);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array(
);

// pre-cache templates used by all actions
$globaltemplates = array(
'shell_blank'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');


$html = <<< HTML
<!-- html starts here -->
require_once('./global.php');
$forumchoice = array();

foreach (array_keys($vbulletin->forumcache) AS $forumid)
{
$forumid = intval($forumid);
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];

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))
{
$forumchoice[] = $forumid;
}
}
$datecut = TIMENOW - (7*24*60*60);
$hottopics = $db->query_read("SELECT * FROM ".TABLE_PREFIX."thread WHERE dateline > $datecut AND forumid IN (". implode(',', $forumchoice) . ") AND open=1 ORDER BY replycount DESC LIMIT 10");
$topicstring = "";
while($hottopic = $db->fetch_array($hottopics))
{
$topicstring.="<b>&raquo;</b> <a href='showthread.php?t=".$hottopic[threadid]."'>".$hottopic[title]."</a> - $hottopic[replycount] replies<br />";
}
eval('$hottopics = "' . fetch_template('hottopics') . '";');
<!-- html ends here -->
HTML;

$navbits["mycookies2.php"] = 'Photo Gallery';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');

$pagetitle = "Photo Gallery";
eval('print_output("' . fetch_template('shell_blank') . '");');

?>

Boofo
08-02-2005, 12:31 AM
For anyone that is intested, I made a slight change to the xml file. It will now say:

No replies for 0 replies
1 reply (for 1 reply)
12 replies (for multiple replies)

If anyone is interested. let me know, and if Amy oks it, I will post the change here.

amykhar
08-02-2005, 01:08 AM
Go for it. I'll even add you as co-author and put it in the original post with your template mod.

Boofo
08-02-2005, 01:19 AM
In the xml file for this mod

Find:

while($hottopic = $db->fetch_array($hottopics))
{
$topicstring.="<a href='showthread.php?t=".$hottopic[threadid]."'>".$hottopic[title]."</a> - ($hottopic[replycount] replies)<br />";
}

REPLACE it with:

while($hottopic = $db->fetch_array($hottopics))
{
if ($hottopic[replycount] == 1)
{
$topicstring.="<a href='showthread.php?t=".$hottopic[threadid]."'>".$hottopic[title]."</a> - ($hottopic[replycount] reply)<br />";
}
else if ($hottopic[replycount] == 0)
{
$topicstring.="<a href='showthread.php?t=".$hottopic[threadid]."'>".$hottopic[title]."</a> - (No replies)<br />";
}
else
{
$topicstring.="<a href='showthread.php?t=".$hottopic[threadid]."'>".$hottopic[title]."</a> - ($hottopic[replycount] replies)<br />";
}
}
I know it's crude, but it works. ;)

amykhar
08-02-2005, 01:27 AM
I updated the zip and added your name Bob. I am forced to use wordpad cause I'm here at work without my editor of choice. Somebody please make sure the zip file imports ok.

Boofo
08-02-2005, 01:30 AM
Thanks, Amy. ;)

You want an updated pic for it?

amykhar
08-02-2005, 01:33 AM
Sure. Why not. :D I'm no longer using this plugin on my site cause I moved the content to my side-bar.

Neal-UK
08-02-2005, 07:52 AM
I've done the re-install of the updated version but you will need to add the phrases manually again (See start of this thread).

I still can't get it to look like the rest of the 'What's going on' though.......

Boofo
08-02-2005, 08:06 AM
I've done the re-install of the updated version but you will need to add the phrases manually again (See start of this thread).

I still can't get it to look like the rest of the 'What's going on' though.......

Then you did something wrong somewhere. The code I posted is standard vb type code. ;)

Boofo
08-02-2005, 08:09 AM
Here's the updated pic, Amy. ;)

Neal-UK
08-02-2005, 08:32 AM
I've included my FORUMHOME template, hope i'm okay doing this:

EDIT: Removed code as it was massive and no need for it now man! :devious:

Boofo
08-02-2005, 09:17 AM
That isn't where I put mine so I can't help you with that, sorry. ;)

If you put it where I put in the instructions, it works fine.

Neal-UK
08-02-2005, 09:26 AM
That isn't where I put mine so I can't help you with that, sorry. ;)

If you put it where I put in the instructions, it works fine.

I have, that's why it's so weird. Maybe another mod is conflicting perhaps...

Boofo
08-02-2005, 09:31 AM
I guess you do have it where it is supposed to be. Sorry about that. ;)

Make sure you have it that way in the skin you are viewing it in. If you have more than one skin, you might want to check that.

Neal-UK
08-02-2005, 09:46 AM
I guess you do have it where it is supposed to be. Sorry about that. ;)

Make sure you have it that way in the skin you are viewing it in. If you have more than one skin, you might want to check that.

Hang on a minute, this is the 'edited mod' by you isn't it, where the list looks more like the rest of the who's online bit?

Not just the basic one first release by amykhar?

Boofo
08-02-2005, 10:48 AM
Hang on a minute, this is the 'edited mod' by you isn't it, where the list looks more like the rest of the who's online bit?

Not just the basic one first release by amykhar?

That's correct. Isn't that the one you asked for in the thread here?

Neal-UK
08-02-2005, 10:54 AM
That's correct. Isn't that the one you asked for in the thread here?

yeah, but I can't seem to find anything in the code that represents the icon image for that group, eg. Calendar icon for upcoming events, birthday icon for birthdays, etc. I just can't work out why it wont show the section image for them.

I wanted it to look like this:

Boofo
08-02-2005, 11:06 AM
I forgot to post my version of the hottopics template. Sorry about that. Here it is and the icon you need to change is in there.

<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/calendar.gif" border="0" /></td>
<td class="alt1" width="100%"><div class="smallfont">$topicstring</div></td>
</td>
</tr>

Amy, you might want to add this, too. ;)

Neal-UK
08-02-2005, 11:17 AM
I forgot to post my version of the hottopics template. Sorry about that. Here it is and the icon you need to change is in there.

<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/calendar.gif" border="0" /></td>
<td class="alt1" width="100%"><div class="smallfont">$topicstring</div></td>
</td>
</tr>

Amy, you might want to add this, too. ;)

cheers boofo, thought i was going mad!

Boofo
08-02-2005, 11:22 AM
Sometimes, I forget the little things. It must be old age. ;)

The reason I used the calender icon is because it is supposed to be the Week's Hot Topics and a calendar has some weeks in it (I think). ;)

Kusadasi-Guy
08-02-2005, 11:24 AM
I have a question, how can i call the hottopics?
i can call usernames ...etc ( $vbphrase[logged_in_user]: $bbuserinfo[username] -> Logged in user: User Name). But i cant call this...

Boofo
08-02-2005, 11:28 AM
$hottopics

;)

Kusadasi-Guy
08-02-2005, 11:31 AM
no, it doesnt work :(

Boofo
08-02-2005, 11:38 AM
Where are you trying to call it from and do you have the plug-in installed?

Kusadasi-Guy
08-02-2005, 11:44 AM
Where are you trying to call it from and do you have the plug-in installed?

Yes, the plugin is installed.
and i am tryin this on a custom VB page, like this;
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'bugs');
define('NO_REGISTER_GLOBALS', 0);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array(
);

// pre-cache templates used by all actions
$globaltemplates = array(
'shell_blank'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

echo $hottopics ;
$html = <<< HTML
<!-- html starts here -->
$hottopics
<!-- html ends here -->
HTML;

$navbits["mycookies2.php"] = 'Photo Gallery';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('$hottopics = "' . fetch_template('hottopics') . '";');

$pagetitle = "Photo Gallery";
eval('print_output("' . fetch_template('shell_blank') . '");');

?>

Boofo
08-02-2005, 11:48 AM
Since they are on the forumhome, I'm not sure how you would call them from another page.

Rich
08-03-2005, 07:35 PM
Hello,

Hi Amy, me again! lol How could I modify this to only call from certain forums? I have a few private forums for my staff, and I would like to keep them private and not on that list if possible.

Not sure if it does or not, but even with userpermissions set so that only staff can see the forum,. I would just like to remove those forums entirely from this.

amykhar
08-03-2005, 07:39 PM
The easiest way would be to remove the ones you don't want in the $forumchoice array.

Kirk Y
08-03-2005, 08:08 PM
Sweet hack, installed! Boofo, care to share? :)

Boofo
08-03-2005, 08:44 PM
Sweet hack, installed! Boofo, care to share? :)

The ZIP file has been updated with some of the code and check post 50 in this thread for the other part of it. ;)

Kusadasi-Guy
08-04-2005, 10:35 PM
The easiest way would be to remove the ones you don't want in the $forumchoice array.

how can we do that? :o

Boofo
08-04-2005, 10:37 PM
Amy, will this list private threads then?

No way to get it to follow permissions?

amykhar
08-05-2005, 01:42 AM
Bob, it follows permissions. He doesn't want it to follow permissions. He wants some allowed forums excluded.

Boofo
08-05-2005, 02:29 AM
Ahhhh, ok. I thought that was something you wouldn't leave out. I misunderstood. Thanks for explaining it, Amy. ;)

sandrose
08-05-2005, 10:12 PM
Worked perfect. Another job well done Amy!

*Clicks install*

I tried to install it but it appear to be empty. What is the reason.

amykhar
08-05-2005, 10:15 PM
I don't know why it is empty for you. The files are in the zip and they work on 3.1

Amy

sandrose
08-05-2005, 10:25 PM
Hi Amy,
I found two files, one of them is xml file, I tried to upload the XML file to my forum Plugins system and after I click import I got empty plugins (everything is empty)

amykhar
08-05-2005, 11:45 PM
It's not a plugin, it's a product. You can't use the plugin manager, you have to use the product manager now.

Kusadasi-Guy
08-06-2005, 12:33 AM
an XML output would be great! we can use it any page we want.
Amy? :ermm:

sandrose
08-06-2005, 01:42 AM
Thanks Amy it is working now and it is very nice.

Regards

amykhar
08-06-2005, 02:12 AM
an XML output would be great! we can use it any page we want.
Amy? :ermm:

XML later :D

GrendelKhan{TSU
08-09-2005, 05:11 AM
installed RC1. :D


In the ZIP install instructions...you forgot to add:


Make a new phrase:

Phrase Type: GLOBAL
Product: Hot Topics on Forum Home
Varname: hottopics
Text: This Week's Hot Topics

amykhar
08-09-2005, 11:25 AM
Ah. I forgot Bob slipped that phrase in there. I should create it and add it to the product. Sorry about that.

Boofo
08-09-2005, 11:27 AM
Ah. I forgot Bob slipped that phrase in there. I should create it and add it to the product. Sorry about that.

hehe And getting one by you is not an easy task. ;)

plateau
08-10-2005, 10:11 PM
how to combine it with the Top 'X' Stats

https://vborg.vbsupport.ru/showthread.php?t=93065

cheers.

mooj
08-11-2005, 09:15 PM
Hii amykhar , Boofo

realy sweet hack .. :) .. n glad 2 see it ..

but ..

how can i call the var $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>
------------------------

i tried to call the var from it but its not working ..
how shuld i do ??

thank you in advance

Vierie
08-13-2005, 10:21 AM
Is there some way to combine that with your left column plugin, so I can have the latest threads in that column on all pages instead of forumhome?

yoyoyoyo
08-25-2005, 10:38 PM
I made the template edit, and imported the product, and it is listed in the product manager, but there is nothing on the forumhome where that box should be. Any ideas?

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
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:</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
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
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:

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:

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
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
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 **
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

** Add this lines below the ' /if ' tag **
<!-- 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
In your FORUMHOME template

Find:

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

ABOVE it add:

<!-- 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
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
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
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

amykhar
06-29-2006, 05:48 PM
I'm not sure Michael. I haven't used the mod in some time.

futuredood
06-30-2006, 06:39 AM
hey michael did you get this to work on 3.5.4? i'd like to use it if it works..

Aislinn
07-05-2006, 05:06 PM
It does work on 3.5.4 I have it installed on mine.

It worked perfectly until I changed this as you said we could above.:

To keep track of the top threads that are currently active, no matter when they were started, change
Code:

WHERE dateline > $datecut

to
Code:

WHERE lastpost > $datecut

Now that Ive changed it it works and looks fine except for one thing. In the table border on top of it, it used to say Hot Topics, now its just a blank strip of color. Any idea on what might have done it?

That was the only thing I changed and then I reimported teh file and overwrite the old one.

Edit//

Ok now this is really weird. I changed the file back the way it way, reimported. Still not showing the title. So I redownloaded the zip file, imported the new never edited file from the zip and still no title.

So now Ive changed it back to the lastpost instead of dateline and have no idea how to get the title up. I can see the <title></title> in the file but I dont know why its not reading it.

I have boofo's changes in place as well.

karlm
07-27-2006, 01:17 AM
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')
Hi Jnifoo, the help you supplied in post 108 is great and i now have it showing just underneath the forum statistics.
However, I'm stuck on the above quotes. could someone guide me in creating a $vbphrase/translation ?

Jnifoo
01-11-2007, 12:07 PM
Hello Karlm, sorry didn't notice your question till I search for plugin update :(
Use the admin pannel dedicated for language & expressions:
YOURURI/YOURADMINPANEL/phrase.php?do=modify&fieldname=global
See the exemples provided for the syntax, then clic on "add new expression"

Hope this help for you or someone else

Al-Fateh
01-19-2007, 07:34 PM
hmmmm

not working

can this work for 3.6.x?

macgyvers
05-08-2007, 09:34 PM
Hi all,
Can this work on 3.6.5 ?

thanks

smapdi
09-07-2007, 07:33 PM
Thanks - I was really looking for this something like this. Just got done installing & tweaking. I've seen it asked a few times so FYI I was able to get this to work globally and in a left column ... things I changed were hookname to global_start - also I prefaced most of the variables with "ht_" e.g. $forumchoice became $ht_forumchoice ... when I went global there must have been some variable crashes as my forum navigation got all wacky ... oh - also I changed the table to a <ul> and hot threads to <li>s. So far seems to work nice in 3.6.4. Thanks again.

pelican
05-08-2008, 07:50 PM
is there a 3.7.0 version?

caliman
06-24-2008, 04:06 AM
is there a 3.7.0 version?

I haven't been able to get it to work since I upgraded to 3.7.1 from 3.6.8.

SoulSuite
12-11-2008, 01:08 PM
Great mod!! Thanks, This is working for me on vb 3.7.4 but how do I set that this is only counting from a forumID? Like only from category

Music
(Albums-Mixtape)
(Tracks-Remixes)
(Vinyls)
(Music-Clips)

itsupport
02-09-2011, 07:38 AM
Im not sure if I have just missed it but does anybody know if there is a version of this plugin that would work with vb4? or something that will do the same job, it fits very nicely into our site

Or what I would need to do to fix it to work with our vb4 installation

Thanks!!