vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Personal Stickys (https://vborg.vbsupport.ru/showthread.php?t=102535)

Mephisteus 12-07-2005 10:00 PM

Personal Stickys
 
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

Floris 12-08-2005 09:01 PM

Yay great stuff, installed on www.vBulletin-Fans.com :)

theArchitect 12-08-2005 09:10 PM

Quote:

Originally Posted by Floris
Yay great stuff, installed on www.vBulletin-Fans.com :)

Many thanks. A brilliant idea.

rb290 12-08-2005 10:40 PM

can you choose which usergroups can sticky ?

michaelbenson 12-09-2005 06:18 AM

Thanks for this, looks really great!
/me installs.

Developer 12-09-2005 06:52 AM

wow great hack i liked it installed

Chris M 12-09-2005 07:58 AM

Heh you got there first, sorta - Similar to my "Tagged Threads" but not :)

More similar to Tagged Threads v2 :p

Anywho, looks nice :)

Chris

Snake 12-09-2005 08:06 AM

Interesting!

Elmer 12-09-2005 09:07 AM

awesome! just what I was lookin :)

FleaBag 12-09-2005 12:38 PM

Yeah nice little addition. Will install when I get home for upload access. :)

Oblivion Knight 12-09-2005 04:33 PM

Consider this installed, fantastic idea.. :classic:

icemann 12-09-2005 05:01 PM

I like it as well, thank you. :)

*clicks install*

Floris 12-09-2005 05:40 PM

Quote:

Originally Posted by Chris M
Heh you got there first, sorta - Similar to my "Tagged Threads" but not :)

More similar to Tagged Threads v2 :p

Anywho, looks nice :)

Chris

I was connected to VNC helping Meph, watching how he wrote it. Neither he or I even knew you had a similar resource already posted somewhere.

croportal 12-09-2005 06:02 PM

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

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

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

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

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

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

Mephisteus 12-09-2005 06:06 PM

UserCP? Thats odd, my product doesnt do anything related to usercp.php. Does the error disappear if you uninstall it my hack?

croportal 12-09-2005 06:07 PM

i will now go to uninstal your product and tell you

croportal 12-09-2005 06:08 PM

i have disable your product and now its okay, when i go disable again i have warning in usercp

croportal 12-09-2005 06:09 PM

but now i have warning in showthread Warning: in_array(): Wrong datatype for second argument in /showthread.php(1907) : eval()'d code on line 357

croportal 12-09-2005 06:14 PM

i have edit all templates in first condition and now works all okay, i have 3.5 version. i dont know whats wrong

croportal 12-09-2005 06:16 PM

when i go to edit last template i have delete that in threadbit <if condition="$personalsticky"> <img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[sticky_thread]" /> </if>

and error appear The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_STRING in /home/hrportal/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 80

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Mephisteus 12-09-2005 06:30 PM

I honestly dont understand what you are saying. However, it has been tested on other boards and it worked with success. My gues is its conflicting with another hack. On the info I have I cannot even begin figuring out any problems.

croportal 12-09-2005 06:41 PM

Quote:

Originally Posted by Mephisteus
I honestly dont understand what you are saying. However, it has been tested on other boards and it worked with success. My gues is its conflicting with another hack. On the info I have I cannot even begin figuring out any problems.

i have install your products and edit the templates, and in usercp i have erros.

when i go to uninstall your product i get error in showthread page.

and when i edit all templates how it been before all is okay. i think that is conflicting with print pdf version hack

Mephisteus 12-09-2005 06:44 PM

The showthread error would have been caused by not removing a template edit. On the conflict Ill have to take a look at the print thread as pdf hack when I got the time. A conflict with that would be rather odd...

eNforce 12-09-2005 07:33 PM

Tested and working fine on 3.5.2 :)


I think a good addition would be to have permissions for this, to make it an option for specific usergroups.

Mephisteus 12-09-2005 07:36 PM

I considered that but tossed out the idea. Why restrict something like that to usergroups? The only point in it might be for paid subscriptions. Its a relativly easy addon to make since its only a single option for a single usergroup. Simply use an if condition"is_member_of and you'll be good :)

I dont see a reason to limit it in any way since it doesnt really give any control of the forum. Its like making subscriptions usergroup restricted.

Mephisteus 12-09-2005 10:41 PM

croportal the usercp bug you were having is fixed in 1.0.1

croportal 12-09-2005 10:47 PM

i have download which version. in my xml file says : "<?xml version="1.0" encoding="ISO-8859-1"?>"

when you have release 1.0.1

i have today download this https://vborg.vbsupport.ru/attachmen...chmentid=39110

Mephisteus 12-09-2005 10:57 PM

thats the xml version, not the product version

Quote:

<version>1.0.2</version>
Is the product version

Oblivion Knight 12-09-2005 11:04 PM

Does this use AJAX to reload the page or something?

The "Personal Stick" and "Personal Unstick" phrase doesn't change until the page is manually refreshed after clicking the link.. Could be a browser bug, but I thought I'd mention it.

[EDIT]
Perhaps 1.0.2 fixes this.. Checking.

Mephisteus 12-09-2005 11:09 PM

Yea, I noticed that aswell. Added the redirect (1.0.2) to fix that.

Mastar 12-10-2005 12:02 AM

Quote:

Originally Posted by croportal
when i go to edit last template i have delete that in threadbit <if condition="$personalsticky"> <img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[sticky_thread]" /> </if>


and error appear The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_STRING in /home/hrportal/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 80

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


I also made a mistake where I place step #2
There was another instance of
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
without the </tr> I didn't get any errors but it didn't work at first because I overlooked the instructions.



Code:

Upload the product first.

Code:

#1. Find in
FORUMDISPLAY:

  $threadbits


Add above
<!--  Personal Stickys -->
  $threadbits_personalsticky
  <!--  Personal Stickys -->

************************************************** *****
Code:

#2. Find in SHOWTHREAD:
  <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>



Add below
<!--  Personal Stickys -->
  <tr>
    <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mysticky.gif" />
    <if condition="in_array($thread['threadid'], $personalstickys)">
      <a href="showthread.php?$session[sessionurl]do=unpersonalsticky&amp;t=$threadid">$vbphrase[personal_unsticky]</a>
    <else />
      <a href="showthread.php?$session[sessionurl]do=personalsticky&amp;t=$threadid">$vbphrase[personal_sticky]</a>
    </if>
    </td>
  </tr>
<!--  Personal Stickys -->

************************************************** *****
Code:

#3. Then:

Find in threadbit:
        <if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>

Add above
  <!--  Personal Stickys -->
        <if condition="$personalsticky"> <img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[sticky_thread]" /> </if>
  <!--  Personal Stickys -->

************************************************** *****

Instruction given were great and Installed and working.

Great work Mephisteus!

utw-Mephisto 12-10-2005 01:57 AM

Works nice on ut2007world.com (3.5.2)

Floris 12-10-2005 08:11 AM

* Waits for 1.0.3 before upgrading

Oblivion Knight 12-10-2005 09:00 AM

Quote:

Originally Posted by Floris
* Waits for 1.0.3 before upgrading

I doubt there'll be a 1.0.3 any time soon, both reported issues have now been fixed with 1.0.1 and 1.0.2 respectively, and there isn't much room for expanding this one.. :)

Unless he gets really bored and adds a usergroup permission.. ;)

Floris 12-10-2005 09:50 AM

I know, but I really hope some day it will include a 'list my personal sticky threads' link in the usercp :)

Justdave 12-10-2005 10:48 AM

Dave Clicks *Install*

Thanks Master.

Floris 12-10-2005 08:07 PM

I could not wait ..upgraded to 1.0.2 :D

Code Monkey 12-11-2005 03:02 AM

*clicks install*

Most excellent. It would be nice if it taged the thread like stickies do. Maybe instead of Sticky:, it could say MySticky:

icemann 12-11-2005 04:06 AM

Just make your own buttons, here's what mine look like. :)

theArchitect 12-12-2005 05:13 AM

I am having a bit of trouble.

I have made all of the template changes. Imported the product and uploaded the images, but if I log-in as a regular user and click on thread tools there is no option for personal stickies. :(


All times are GMT. The time now is 06:06 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.03508 seconds
  • Memory Usage 1,820KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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