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)

Boofo 08-02-2005 08:06 AM

Quote:

Originally Posted by nealparry
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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by nealparry
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

Quote:

Originally Posted by Boofo
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.

HTML Code:

<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

Quote:

Originally Posted by Boofo
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.

HTML Code:

<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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by acidburn0520
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

Quote:

Originally Posted by amykhar
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

Quote:

Originally Posted by womensden
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

Quote:

Originally Posted by Kusadasi-Guy
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:


Quote:

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

Quote:

Originally Posted by amykhar
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?


All times are GMT. The time now is 12:59 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.01278 seconds
  • Memory Usage 1,819KB
  • 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_html_printable
  • (13)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