vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

arracing 03-11-2003 01:24 AM

hey tigga, i have decided i dont want the random pulling polls from all over my board after testing this out for a month now. Instead i want it to pull polls randomly from my specicif polls forum which is id number 71. Can you help me with that code?

Tigga 03-11-2003 01:56 AM

refertech - Do you mean something like a strip across the top of the news that states which forum the news is coming from?

Lacrosse Boy - As refertech said, all you need to do is edit the index template. It was designed to be very customizable and moving the "boxes" is as easy as moving a small variable for most of them. It doesn't really require any knowledge of PHP, just HTML. ;)

Yuber - About the best thing I can tell you is to find a tutorial on HTML that could explain it. There are several different ways it could be done with background images, regular images, and tables. Other than that I can tell you it just mostly requires using tables to get different images lined up together to appear as one... Hopefully that will at least help a little. :)

arracing - You would just need to change your poll query to something like this:
PHP Code:

$pollinfo=$DB_site->query_first("SELECT thread.pollid, thread.open, thread.threadid, thread.replycount, poll.pollid,
poll.question, poll.dateline, poll.options, poll.votes, poll.active, poll.numberoptions, poll.timeout, poll.multiple, poll.voters 
FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid=
$pollsforum AND thread.pollid!='0' AND thread.open='1' 
AND thread.open<>10 AND poll.active='1' ORDER BY RAND()"
); 

Then just enter the id number of your polls forum in the mYvBindex options.

refertech 03-11-2003 01:59 AM

yea man. :) Sort of stupid i guess just thought I would play with it and see what it looks like.

Tigga after saying that much to that many people your suppose to say. SHEWWWWWW. :)

Mark

Tigga 03-11-2003 02:03 AM

LOL... Well the best way I would suggest for you to do that would be to just edit the index template and add some HTML in there to link to the forum. There are other ways to do that which would pull all the info from the database, but personally I don't see the point in doing it that way and adding an extra query when it could be done the easier way. ;)

refertech 03-11-2003 02:09 AM

[high]* refertech shakes Tigga's hand and says thank you. :)
[/high]

I'm off to Philadelphia till Thursday. See ya then. :)

Mark

arracing 03-11-2003 02:43 AM

thanks tigga, thats much better and less problems.

Tigga 03-11-2003 02:50 AM

refertech - Have fun in Philly. :)

arracing - No problem. Sorry it wasn't working right from all forums, but as far as I know the code I gave you should have worked. Oh well, glad it's working better now. :)

Kernel 03-11-2003 10:52 PM

Hey I have a problem. I was having problems with the weather and I found a "weathertemplate.php" on this post that the author posted. I installed it, and now I have 2 weather options and the weather table on my index is really...fat O.O

http://kernel.verbicide.net/php-bin/vbb

Can you please tell me how to uninstall just 1 of them? Preferably the template one I downloaded off of this thread. Thanks.

350Chevy 03-12-2003 02:03 AM

Hey Plurplanet er Tigga.. :D,

I just upgraded to 2.3.0 and noticed I needed to upgrade your MyvBindex as well. In doing so I replaced the templates that needed to be replaced and the index.php. Everything seems back in order but now the HTML in the news posts doesn't show?? I have HTML turned on still in the news forum. Does your latest version not support HTML in news posts anymore? TIA.. :D

It's also turned on in the CP under the MyvB options.. ;)

FleaBag 03-12-2003 11:18 AM

Tigga, I managed to integrate with "Who was online today" hack, as well as my own hack for hiding admins very easily... Thanks for a great script!


All times are GMT. The time now is 04:19 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.02726 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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