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)

EnIgMa1234 02-21-2008 01:39 PM

An admin selects it via admnicp.

And I'll have the new version out as soon as I finish up on other projects

neonneon 02-22-2008 02:50 AM

Looks like HS's

bainsey 03-01-2008 08:48 PM

sorry if its already been posted but is there anyway i can get this to show in one single board, instead of on the forum home page?! many thanks.

edit - seen your reply, cant wait for new version!! :)

dancue 03-11-2008 08:05 PM

Here are some suggestions:

1) I like the idea of automatically choosing the winner based on votes. The thread ID should be inputed through AdminCP for the thread who's poll votes will determine the winner.

2) I'd also like to see the person's avatar to the left of the sig. Clicking on it would allow you to view their profile.

3) I'd like the ability to place it above a forum of my choosing. Controlled through AdminCP.

4) It would be nice to expand this hack to include Avatar, wallpaper...or any other category selected by us. Each Category could have an option to place a unique box in a different forum.

5) It would be nice to not have to do ANY template edits.

What do you think Enigma? Possible?
If this means it goes pro, I'll pay for a mod like that.

dancue 03-12-2008 03:39 AM

I figured out how to do #2. For those of you interested do the following:

Open enig_sotw template and replace all of its contents with the below:

Code:

<if condition="$vboptions[sotw_enable] ==1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" colspan="2">
<tr>
<td class="tcat" colspan="3">
<center><a href="$threadurl">$vbphrase[sotw]</a></center>
</td>
</tr>
<tr>
<td class="thead" colspan="1" width="20%">
<center>Winner</center>
</td>
<td class="thead" colspan="1" width="60%">
<center>Signature</center>
</td>
<td class="thead" colspan="1" width="20%">
<center>Info</center>
</td>
</tr>
<tr>
<td class="alt1" width="20%">
<center><a href="member.php?u=$suserid"><img src="image.php?$session[sessionurl]u=$suserid" alt="$susername's Avatar: Click to view Profile" border="0" /></a>
</center>
</td>
<td class="alt1" width="60%">
<center><a href="$threadurl"><img src="$imageurl" alt="Sig Of The Week: Click to view Thread" border="0" /></a>
</center>
</td>
<td class="alt2" width="20%" align="center">
<fieldset colspan="2">
<legend>Details</legend>
<strong>Winner: </strong><br /> <a href="member.php?u=$suserid">$susername</a><br />
<strong>Total Votes:</strong> <br />$votes<br />
<strong>Award $vbphrase[sotw_date]</strong><br /> $date<br />
<strong>Admin Rating:</strong><br /><img src="images/rating/rating_$adminrating.gif" alt="<if condition="$adminrating == 1">Bad</if><if condition="$adminrating == 2">Ok</if><if condition="$adminrating == 3">Good</if><if condition="$adminrating == 4">Great</if><if condition="$adminrating == 5">Excellent</if>" /><br />
<strong>Prize:</strong> <br />$prize<br />
</fieldset></td></tr><tbody>
        <tr>
                <td class="thead" align="center" colspan="3"><div class="smallfont"><strong>

                        <a href="sighistory.php$session[sessionurl_q]" rel="nofollow">$vbphrase[sotw_history]</a>&nbsp; &nbsp; <a href="$next">Next Weeks Voting</a>
                </strong></div></td>
        </tr>
</tbody>
</table>
<br />
</if>

This includes the following features:
  • Avatar now added to the left. Clickable and will direct you to the winner's profile.
  • Sig Pic is now clickable and will direct you to the thread.
  • Centered the details to look a bit better.
  • Provided a width percentage for the avatar, sig pic and details fields, making it centered.

It will not display an image if the winner does not have an avatar.

EnIgMa1234 03-13-2008 02:50 PM

Yes good suggestions. I will include them in the new version

dancue 03-15-2008 02:33 PM

Quote:

Originally Posted by EnIgMa1234 (Post 1394288)
Open the following plugins:
SOTW - Cache Templates forumhome_complete
SOTW - Get Info

Change the hook location of both to global_complete
Then do the template edits on whatever template you want it to show on.

Not tested^^

I'm trying to get this to work.

This is what I have in the forumdisplay template:
Code:

<if condition="$forumid == 7">$sotw</if>
which I added above:
Code:

<if condition="$show['threadslist']">
I changed the plugin's hook locations to global_complete, but that did not work. In fact, the sotw I had in the forumhome template is now gone. Unfortunately, I did not keep note of what the hook location was before I changed it.

Could you please tell me what they were? Or, could you please help me to place it in a certain forum?

dancue 03-15-2008 03:09 PM

Never mind. I figured it out. The hook location should be set to forumdisplay_complete.

Enigma, hope you don't mind me attaching a revised text document with instructions on how to put it in certain forums.

Let me know otherwise and I will edit my post.

Still wish I could control which forum id's they are placed in via the admincp...

Also, I've edited my post above concerning the enig_sotw template. Made some minor changes I thought others might want.

bainsey 03-15-2008 08:11 PM

dancue, thats amazing, works now :)

EnIgMa1234 03-16-2008 03:03 AM

To control the forumid add this conditional to your template

<if condition="in_array($forum[forumid], array(x,y))">
or for 1 id
<if condition="$forum[forumid] == x">


All times are GMT. The time now is 11:32 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.01331 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)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