Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Personal Stickys Details »»
Personal Stickys
Version: 1.0.3b, by Mephisteus Mephisteus is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-07-2005 Last Update: 01-02-2006 Installs: 113
DB Changes Uses Plugins Template Edits
Re-useable Code Code Changes Additional Files  
No support by the author.

Hack name: Personal Stickys
Version: 1.0.3b
Author: Mephisteus (DarkSSJ3)
Special Thanks To: Floris (The images and being a guinea pig)!

Steps:
1 product import
1 file to edit - forumdisplay.php (2 edits)
3 template edits
2 image uploads

Info:
Let members on your forums have their own 'personal' sticky thread. People sticking a thread using this function will have the thread only appear 'stuck' to them (and if its a 'real' sticky thread). See screenshots for the obvious

Tested on:
3.5.0 - OK
3.5.1 - OK
3.5.2 - OK
3.5.3 - OK
3.5.4 - OK

Features
- Neat icons!

MAKE A BACKUP
I will not be held responsible for any damage this hack causes to your forum.
This hack is NOT supported. If you get support, consider yourself lucky.
I reserve the right to REMOVE the hack at any time without prior notice.

Please keep any bug reports in this thread.

History
1.0.3b (to upgrade reimport product xml IMPORTANT)
Bugfix
- Fixed a bug that would give SQL errors if someone didnt have personal stickys.
1.0.3 (to upgrade reimport product xml and apply file edits)
Bugfix
- Fixed "The stickied thread will be stickied to the top of its own page, not the first page per see.". It will now be stickied to the first page (I have NOT tested this on different settings due to lack of time).
1.0.2 (to upgrade reimport product xml)
Feature
- Redirect on stick/unstick selection
1.0.1 (to upgrade reimport product xml)
Bugfix
- Fixed an error that would appear in UserCP and in the subscriptions area if you had subscribed threads.
1.0.0
Initial release

Take me to the 3.7.x version

Show Your Support

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

Comments
  #42  
Old 12-12-2005, 07:49 AM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there an option for subscriptions (Its in the same if-statement)
Reply With Quote
  #43  
Old 12-12-2005, 03:19 PM
twincamfxd twincamfxd is offline
 
Join Date: Nov 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it and everything looks OK, but when I try to stick a thread it dissapears lol. Any idea what I did wrong? I am not sure where the threads are going, but they just vanish. Everything else looks awesome though.
Reply With Quote
  #44  
Old 12-12-2005, 11:47 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this mod cause these problems for me.

1. If you tried to access your usercp you get the following error

"Warning: in_array(): Wrong datatype for second argument in /usercp.php(439) : eval()'d code on line 32"

2. if you hit menu > subscribed threads you get the following erro

Warning: in_array(): Wrong datatype for second argument in /subscription.php(583) : eval()'d code on line 32
Reply With Quote
  #45  
Old 12-13-2005, 04:09 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mephisteus
Is there an option for subscriptions (Its in the same if-statement)
Yep.

But the interesting thing is that in my SHOWTHREAD template div is used instead of tr.

So you code to find is

Code:
<if condition="$show['member']">
	<tr>
		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
		<if condition="$show['subscribed']">
			<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
		<else />
			<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
		</if>
		</td>
	</tr>
while mine is:

Code:
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
				<if condition="$show['subscribed']">
					<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
				<else />
					<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
I amended your code to work with div instead, but it should still show.
Reply With Quote
  #46  
Old 12-13-2005, 02:01 PM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by twincamfxd
I installed it and everything looks OK, but when I try to stick a thread it dissapears lol. Any idea what I did wrong? I am not sure where the threads are going, but they just vanish. Everything else looks awesome though.
Did you do the first template edit (its the only reason I can think of why it would cause threads to disappear)

Quote:
Originally Posted by FROGGYJ
this mod cause these problems for me.

1. If you tried to access your usercp you get the following error

"Warning: in_array(): Wrong datatype for second argument in /usercp.php(439) : eval()'d code on line 32"

2. if you hit menu > subscribed threads you get the following erro

Warning: in_array(): Wrong datatype for second argument in /subscription.php(583) : eval()'d code on line 32
Are you using 1.0.2, this issue was adressed in 1.0.1

Quote:
Originally Posted by theArchitect
Yep.

But the interesting thing is that in my SHOWTHREAD template div is used instead of tr.

So you code to find is

Code:
<if condition="$show['member']">
	<tr>
		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
		<if condition="$show['subscribed']">
			<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
		<else />
			<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
		</if>
		</td>
	</tr>
while mine is:

Code:
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
				<if condition="$show['subscribed']">
					<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
				<else />
					<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
I amended your code to work with div instead, but it should still show.
Is that a costumized template? And what exactly do you mean with the last bit. If there isnt a <table> <tr><td> wont do much :P
Reply With Quote
  #47  
Old 12-14-2005, 01:40 AM
twincamfxd twincamfxd is offline
 
Join Date: Nov 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep that was it lol. I missed one of the template edits. Works awesome now, Thanks!!
Reply With Quote
  #48  
Old 12-17-2005, 01:56 PM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool hack
Reply With Quote
  #49  
Old 12-18-2005, 09:18 PM
ronoxQ's Avatar
ronoxQ ronoxQ is offline
 
Join Date: Aug 2005
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... It works well, but the images aren't showing up? What can I do to fix this?
Reply With Quote
  #50  
Old 12-18-2005, 09:22 PM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upload the images to the proper image folder for the style you are using.

And click install
Reply With Quote
  #51  
Old 12-19-2005, 02:01 AM
biggazillakilla biggazillakilla is offline
 
Join Date: Mar 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, just installed. That was pretty quick and easy. Great work!

Any way to add something to set it apart from the other threads (other than the stickypin)? For example, with a different background color or a prefix such as:

MySticky: Personal Stickys

(Like the default stickies do.)

Edit: I'm going to call this "starring" in my forum to see how that works.

So, something like this:

Starred: Personal Stickys
Reply With Quote
Reply


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 12:02 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.04608 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
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
  • (4)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
  • (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_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