Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Sig Of The Week 1.3 Details »»
Sig Of The Week 1.3
Version: 1.3.1, by EnIgMa1234 EnIgMa1234 is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 07-26-2007 Last Update: 11-06-2007 Installs: 102
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

/*============================================*\
|| Sig Of The Week 1.3
||
||
|| Author : EnIgMa1234
|| Version : 1.3
||
|| Time required to install: 2 min
|| Difficulty: easy
\*============================================*/

Description: Add a signature of the week page to your forumhome page

Install:
1) Upload files
2) Add Products
3) Add into forumhome template:
Code:
$sotw

Features:
See screenshots


Change Log:
1.0 -> Initial Release
1.0 -> 1.1 - Added History page
1.1 -> 1.2 - Added Adminrating and Prize Field
Admin now able to input full urls.
New Design
1.2 -> 1.3 - Fixed template issue
Added Edit ability
Only 1 Admincp File
Fixed Admincp File Issue
1.3 -> 1.3.1 - Fixed Sig History Error

Demo: Coming Soon


This hack is (c) 2007 TheVBCoders.com

Do Not Reproduce Without My Permission Or Post Elsewhere
Do not copy a large proportion of this code.


Priority Support Will Be Given To Those Who Click Install!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 02-21-2008, 01:39 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

An admin selects it via admnicp.

And I'll have the new version out as soon as I finish up on other projects
Reply With Quote
  #123  
Old 02-22-2008, 02:50 AM
neonneon neonneon is offline
 
Join Date: Nov 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like HS's
Reply With Quote
  #124  
Old 03-01-2008, 08:48 PM
bainsey bainsey is offline
 
Join Date: Oct 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #125  
Old 03-11-2008, 08:05 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #126  
Old 03-12-2008, 03:39 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #127  
Old 03-13-2008, 02:50 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes good suggestions. I will include them in the new version
Reply With Quote
  #128  
Old 03-15-2008, 02:33 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EnIgMa1234 View Post
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?
Reply With Quote
  #129  
Old 03-15-2008, 03:09 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #130  
Old 03-15-2008, 08:11 PM
bainsey bainsey is offline
 
Join Date: Oct 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dancue, thats amazing, works now
Reply With Quote
  #131  
Old 03-16-2008, 03:03 AM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05387 seconds
  • Memory Usage 2,316KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete