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-12-2005 07:49 AM

Is there an option for subscriptions (Its in the same if-statement)

twincamfxd 12-12-2005 03:19 PM

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.

FROGGYJ 12-12-2005 11:47 PM

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

theArchitect 12-13-2005 04:09 AM

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.

Mephisteus 12-13-2005 02:01 PM

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

twincamfxd 12-14-2005 01:40 AM

Yep that was it lol. I missed one of the template edits. Works awesome now, Thanks!!

Smiry Kin's 12-17-2005 01:56 PM

Very cool hack

ronoxQ 12-18-2005 09:18 PM

Hmm... It works well, but the images aren't showing up? What can I do to fix this?

Mephisteus 12-18-2005 09:22 PM

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

And click install :)

biggazillakilla 12-19-2005 02:01 AM

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

john1744 12-19-2005 04:05 AM

Absolutely fantastic, my forum userbase is from a Lithium powered forum and this is a feature of Lithium and they greatly miss it. I thank you.

Mephisteus 12-19-2005 07:28 AM

Quote:

Originally Posted by biggazillakilla
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

Its not with this version and I have no plans to continue development at this time. Its pretty easy to do it yourself though :)

JohnBee 12-19-2005 07:40 AM

Beautiful! installed... - thanks

john1744 12-19-2005 10:12 AM

Hmm, I stickied a thread last night, and woke up this morning and the thread I had stickied wasn't showing up, but after I searched and found the thread it was saying it was still stuck.

Also I added a small seperator underneath the self-stickied threads and it was working fine last night but now when I woke up I have two seperators from the stickies and normal posts.

Mephisteus 12-19-2005 08:27 PM

Quote:

Originally Posted by john1744
Hmm, I stickied a thread last night, and woke up this morning and the thread I had stickied wasn't showing up, but after I searched and found the thread it was saying it was still stuck.

Also I added a small seperator underneath the self-stickied threads and it was working fine last night but now when I woke up I have two seperators from the stickies and normal posts.

Sounds like it collides with another hack. Thats about all I can say about it. Havent got a clue as to how to fix that.

biggazillakilla 12-19-2005 09:07 PM

Quote:

Originally Posted by Mephisteus
Its not with this version and I have no plans to continue development at this time. Its pretty easy to do it yourself though :)

Yeah, I know it should be easy for some, but for me, it's a challenge. I tried to do it a bit yesterday, but I messed up some stuff.

I'll give it another try, though.

Thanks again for this hack. It's just what I wanted ever since I read Wayne's post about it.

BrandiDup 12-19-2005 09:49 PM

this may be a totally idiotic question, but does this hack increase database queries?

If not, I'm installing immediately. Brilliant Idea!

ronoxQ 12-20-2005 01:08 AM

I can't find the images! Help me...

I uploaded them as-is to my directory, but they don't show up.

Besides that, it works. Thanks a lot.

biggazillakilla 12-20-2005 03:02 AM

Quote:

Originally Posted by ronoxQ
I can't find the images! Help me...

I uploaded them as-is to my directory, but they don't show up.

Besides that, it works. Thanks a lot.

Which directory did you upload them to?

biggazillakilla 12-20-2005 03:03 AM

Quote:

Originally Posted by BrandiDup
this may be a totally idiotic question, but does this hack increase database queries?

If not, I'm installing immediately. Brilliant Idea!

I couldn't say for sure, but since the stickies are different from each user, I would imagine that the only way to keep track of that would be to keep the information in the database. And the info page at the beginning indicates db changes, so I'd say it's a sure bet.

But I'm not a coder, so take it for what it's worth. :)

Mephisteus 12-20-2005 03:58 AM

It doesnt add or modify any queries, it makes use of existing ones.

Although (obviously) it does execute a query when sticking or unsticking :p

BrandiDup 12-20-2005 10:12 AM

Thank you!

Installed :D

biggazillakilla 12-20-2005 07:58 PM

Can anybody point me in the right direction for where to look to change the background color of personal stickies and to add a prefix (or perhaps even move the graphic to the front of the threadtitle)?

To change the background color, I've tried playing around with the threadbit by adding this conditional:

Code:

<if condition="$thread['selfsticky'] == 1">
or

Code:

<if condition="$thread['personalsticky'] == 1">
but nothing's working.

Should I try something like this?

Code:

<if condition="$personalsticky"> <td style="background: #FFE9B9;" class="alt2" id="td_title_$thread[realthreadid]" title="$thread[preview]"><img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[personal_sticky_thread]" /> </if>
Thanks again in advance for any assistance.

Mr.Design 12-23-2005 02:20 AM

Quote:

Originally Posted by Mephisteus
Sounds like it collides with another hack. Thats about all I can say about it. Havent got a clue as to how to fix that.

I've got NO other hacks installed and I got the same thing... :ermm:

foxconn 12-23-2005 02:47 AM

good work man

Mephisteus 12-23-2005 06:37 AM

Quote:

Originally Posted by Mr.Design
I've got NO other hacks installed and I got the same thing... :ermm:

Identified as a bug. I will look through the file and see where the problem is at tonight after school.

The thread will quite simply be stickied to the top of its own page, not the first page per see.

Mr.Design 12-23-2005 10:37 PM

Quote:

Originally Posted by Mephisteus
Identified as a bug. I will look through the file and see where the problem is at tonight after school.

The thread will quite simply be stickied to the top of its own page, not the first page per see.


Great :)

Thanks for the work on this! It's a great idea! :)

nirmah 12-24-2005 06:28 AM

My SHOWTHREAD has:

Code:

<if condition="$show['member']">
                        <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>
                </if>

This instead of the on on the readme:

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>

What should I add then?

Thank you

redspider 12-26-2005 07:24 AM

Quote:

Originally Posted by nirmah
My SHOWTHREAD has:

Code:

<if condition="$show['member']">
                        <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>
                </if>

This instead of the on on the readme:

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>

What should I add then?

Thank you

same problem here I reverse the template but still look diferent from the code post here .

armagan 12-26-2005 09:04 AM

Quote:

Originally Posted by nirmah
My SHOWTHREAD has:

Code:

<if condition="$show['member']">
                        <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>
                </if>

This instead of the on on the readme:

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>

What should I add then?

Thank you


!!!!!!

drumsy 12-26-2005 11:11 PM

A member is reporting that even though they have stickied a thread, once the most recent reply exceeds what is on page one, it then dissapears.

aranthorn 12-27-2005 01:32 PM

Quote:

Originally Posted by drumsy
A member is reporting that even though they have stickied a thread, once the most recent reply exceeds what is on page one, it then dissapears.

This and the other issues reported that are related should be able to be fixed by modifying this:
Code:

==== Find in FORUMDISPLAY:
        $threadbits       
==== Add above
        $threadbits_personalsticky

to this and it wiil list Forum Stickies then Personal Stickies then normal threads:
Code:

==== Find in FORUMDISPLAY:
        $threadbits_sticky
==== Add below
        $threadbits_personalsticky

or to this and it wiil list Personal Stickies then Forum Stickies then normal thread
Code:

==== Find in FORUMDISPLAY:
        $threadbits_sticky
==== Add above
        $threadbits_personalsticky

The attached image is of the first option. Oh, I also have a slight modification running that shows the old seperator bar, if you want it I found it on here somewhere ;)

aranthorn 12-27-2005 02:39 PM

Ah just for giggles, here's the part of my FORUMDISPLAY that is modified:
Code:

        <!-- show threads -->
        <if condition="$show['stickies']">
        $threadbits_sticky
        $threadbits_personalsticky
        <tr>
                <td class="thead" colspan="0">&nbsp;</td>
        </tr>
        </if>
        $threadbits       
        <!-- end show threads -->


JAYEMULE 12-27-2005 11:10 PM

Installed it with no troubles and members are enjoying it. Thanks for nifty little tool for the members.

diettalk 12-28-2005 10:38 PM

It's there.. do a search for subscribe_to_this_thread in the template.

Quote:

Originally Posted by redspider
same problem here I reverse the template but still look diferent from the code post here .


troux 12-29-2005 04:30 PM

Installed-- works great thx.

-tristan

john1744 12-30-2005 04:50 AM

Once you figure out how to get it stuck on all pages, consider in re-installed. :)

aranthorn 12-30-2005 11:18 PM

Quote:

Existing bugs
23/12/05
- The stickied thread will be stickied to the top of its own page, not the first page per see. I think I found a fix, but it requires a code edit. Looking for other options.
Really, 'cause mine didn't do it :p

DF-inside 01-01-2006 08:06 PM

Quote:

Originally Posted by aranthorn
This and the other issues reported that are related should be able to be fixed by modifying this:
Code:

==== Find in FORUMDISPLAY:
        $threadbits       
==== Add above
        $threadbits_personalsticky

to this and it wiil list Forum Stickies then Personal Stickies then normal threads:
Code:

==== Find in FORUMDISPLAY:
        $threadbits_sticky
==== Add below
        $threadbits_personalsticky

or to this and it wiil list Personal Stickies then Forum Stickies then normal thread
Code:

==== Find in FORUMDISPLAY:
        $threadbits_sticky
==== Add above
        $threadbits_personalsticky

The attached image is of the first option. Oh, I also have a slight modification running that shows the old seperator bar, if you want it I found it on here somewhere ;)

This solution you come with doesn't fix what drumsy said.
This will only change the order of appearance (forum-sticky / own-sticky / threads)

What Drumsy was telling:
Once I want to personal stick a thread located at page 2 it only will show up as a sticky at page 2, and not at page 1, which forum-sticky does.

Mr.Design 01-02-2006 02:28 AM

So what's the fix to the bug with it not staying stickied?


All times are GMT. The time now is 01:01 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.03453 seconds
  • Memory Usage 1,873KB
  • 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
  • (20)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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