vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Sig Of The Week 1.3 (https://vborg.vbsupport.ru/showthread.php?t=153588)

dxlwebs 09-19-2008 08:29 AM

Quote:

Originally Posted by Bio-Con (Post 1625476)
ok have been using this mod for almost a year now...it works great on my 3.7.2 board...was wondering how would you make it show up in certain forums...saw this on the other sotw mod and trying to configure it with yours...if it can't or won't be able to be done then im sorry but i will have to uninstall after a year of using it and install the other one...this is the script edit for the other one..



i tried changing the $hs_sotw to $sotw...doesn't work...any ideas

hey yeah its possible and pretty easy to do to get it to display in forum display and after that your if code should work

step one in your admincp go to add new plugin,
product = vb area - SOTW Hack
Hook Location = forumdisplay - complete
Title = i called it SOTWinfodis but its upto you
Execution Order = 5
Plugin PHP Code =
Code:

//Pull info from the database

$query = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "sotw ORDER BY dateline DESC Limit 1");

while($sig = $vbulletin->db->fetch_array($query))
{
$snumber = $sig['id'];
$stitle = $sig['title'];
$threadurl = $sig['thread'];
$votes = $sig['votes'];
$susername = $sig['username'];
$suserid = $sig['userid'];
$imageurl = $sig['image'];
$date = vbdate($vbulletin->options['dateformat'], $sig['dateline']);
$next = $sig['next'];
$prize = $sig['prize'];
$adminrating = $sig['adminrating'];
}
eval('$sotw .= "' . fetch_template('enig_sotw') . '";');

Plugin is Active = yes
and save now you can do what you want with the SOTW in your forumdisplay.php file

hope this helps

if code
Code:

<if condition="in_array($forumid, array(88))">$sotw</if>

Zapper1 09-21-2008 03:36 PM

for some reason this will not work on my board. I had it installed and was able to display first first SOTW winner. Thenn after I tried to add the next winner I would get a blank image removed box.

Any ideas on why this would happen?

I am using Vb 3.7.2 with a custom skin from extreme pixels.

EnIgMa1234 09-22-2008 02:50 PM

sorry I have been away everyone. I guess I lost interest in coding for a while. Although this works for 3.7.x I am going to rewrite the mod. Now is the time to request features.

Zapper1 09-24-2008 02:33 PM

I have been trying to get this work but have had no luck at all. Want it need it but need help in the worst way..

EnIgMa1234 09-24-2008 06:46 PM

Quote:

Originally Posted by Zapper1 (Post 1629280)
I have been trying to get this work but have had no luck at all. Want it need it but need help in the worst way..

PM me. I'll see if I can get it installed for you ;)

Zapper1 10-01-2008 03:12 PM

that would be great Enigma1234.

lnxtr 12-11-2008 07:30 PM

thanks
it is run 3.7.4 version?

fattony69 12-21-2008 08:48 PM

Any updates?

Gamelobby 02-01-2009 01:37 AM

3.8 ??

EnIgMa1234 02-03-2009 05:17 PM

I don't have a vBulletin licence anymore so I won't be able to continue developing this mod.


All times are GMT. The time now is 01:29 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.01265 seconds
  • Memory Usage 1,735KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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