vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Personal Favorites (https://vborg.vbsupport.ru/showthread.php?t=37775)

myluntan 04-22-2002 09:00 PM

Personal Favorites
 
this is my fist hack
I cant find it anywhere,so I made it
I read some good post but next time I visit the forum ,I cant find it ,only i can do is seach ,it is terrible.
Use this hack ,users in your forum can add threads into their own Favorite folder ,they aslo can creat folders,move the threads from each other.
I enjoy you like it,install it is very simple ,i write a script ,the only thing is running it,then add 2 links in your template.it works great
on vb 22X.if you use vb 201 ,tell me ,I will write for you.version update to 2.5
all bug fixed ,add a new option:users can share their .
users can select if they share their Favoritein usercp
if they select yes ,other users can view their Favorite.
so good article can be gathered and shared. enjoy it

myluntan 04-23-2002 05:50 AM

screenshot

SyS-Is-DowN 04-23-2002 05:58 AM

niceeeee i will use it, keep up the good work ! :)

BigJohnson 04-23-2002 08:25 AM

nice hack

Entourage 04-23-2002 09:09 AM

Very nice hack easy to install!!! tnx. I made a NL install doc.

I also saw a little "bug" in your install doc if you wanne install it on vb2.2.5

You said to find code:
Code:

<smallfont><img src="images/printer.gif" border="0"> <a href="member2.php?s=&action=addsubscription&threadid=$threadid">Receive updates to this thread</a></smallfont>
But it has to be:
Code:

<a href="member2.php?s=$session[sessionhash]&action=addsubscription&threadid=$threadid">Subscribe to this Thread</a>
        </smallfont>

Greets Entourage

myluntan 04-23-2002 09:32 AM

sorry,make a mistake,thanx fix it

Neo 04-23-2002 04:49 PM

Looks interesting.

Chris M 04-23-2002 06:36 PM

Sounds good...

I shall take a look...

Satan

Chris M 04-23-2002 06:37 PM

I like :tup:

Nice first hack...

Satan

GOD-Dblade 04-23-2002 07:18 PM

well i have everyting exactly how it says and it just shows a blank page...it can be found here. http://www.gods-network.com/forums/

GOD-Dblade 04-23-2002 07:29 PM

hm....maybe its jsut the script....cause i unistall it then install it again and it goes threw.... Table success....Templates Success all of them are success then after the templates it just goes to a blank screen. This is on a vb2.2.5 board also

cditty 04-23-2002 08:21 PM

Is this kinda like the "Install" feature used here? But only for threads?

Chris

Mutt 04-23-2002 08:37 PM

I like this, but isn't it just like subscribing to a thread? I mean whats the difference? I'm not trying to be a [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth]. I mean it, what is the difference? when you subscribe to a thread, aren't your subscribed threads listed in the usercp?

rawnet 04-24-2002 09:03 AM

This is excellent!! How strange - was walking to work this morning and thinking how useful it would be to be able to "bookmark" favourite threads.

In ways it's like subscribing, but without the email notification. It's also more intuitive for users who are used to the semantics of "bookmarking".

Brilliant.

snyx 04-24-2002 01:23 PM

I changed EVERY subscribe word to favorite on my forums, cuz nobody knows wants to "subscrible" to a thread! hahaha, but my users love adding threads to their favorites. I will HAVE to try this hack out a little later on today. Its 8:20am, SUCH a nice day, nobody home... time to skipp skool ;D

Lesane 04-24-2002 02:26 PM

Quote:

Originally posted by neo
Looks interesting.
There is already a hack like this, i thought by freddie. Neo, remember that thread where you asked me for that converted version? I lost the thread, but it's somewhere. :)

Anyway, great hack. Well done.

Freddie Bingham 04-24-2002 02:58 PM

I wrote a favorites hack for vB v1.1.x but it never was updated for v2.x

v3.0 already has favorites in place. Favorites can be placed in folders and don't generate emails when new replies are made.

snyx 04-25-2002 04:07 AM

that is... when v3.0 is released. ;)
untill then, lets not dangle the cheese infront of the mouse, eh?

psico 04-25-2002 08:50 AM

Not working for me...no matter what thread I add to favorites, It shows me ALWAYS the same thread... I added to favorites 5 diffrent threads and shows me 5 times a thread that I did not added...so strange...

WallStreat 04-25-2002 10:33 AM

well done, i've installed at http://www.ezyinvest.com

bug found: favourites.php does not checked if user is logged in i.e. even guests can add to favourites, here's a quick fix:


In favourites.php, find the line at the top:

require("global.php");

and add after the line:


if (!$bbuserinfo[userid] or $bbuserinfo[userid] < 1 or $bbuserinfo[userid] =="") {
show_nopermission();
}

Entourage 04-25-2002 10:34 AM

WallStreet tnx for the bug fix!! Gonna try that here also

WallStreat 04-25-2002 10:45 AM

i replaced "new thread" button with "add to favourites" button in shwothread.php, hence "add to favourites" will be more prominent. here's my codew in showthread template



PHP Code:

        <td><a href="favorites.php?action=add&threadid=$threadid"><img src="images/add-to-fav.gif" border="0" alt="Add to Favourites"></a><!--<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a>--></td>
        <
td><normalfont>&nbsp;&nbsp;</normalfont></td>
        <
td><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replycloseborder="0" alt="Post A Reply"></a></td

attached is the psd file for "add to favourites"

Lesane 04-25-2002 05:47 PM

Quote:

Originally posted by freddie
I wrote a favorites hack for vB v1.1.x but it never was updated for v2.x

v3.0 already has favorites in place. Favorites can be placed in folders and don't generate emails when new replies are made.

I've converted it. The hack is working great on my forum.

Psychdrone 04-25-2002 05:57 PM

Quote:

Originally posted by WallStreat
i replaced "new thread" button with "add to favourites" button in shwothread.php, hence "add to favourites" will be more prominent. here's my codew in showthread template



PHP Code:

        <td><a href="favorites.php?action=add&threadid=$threadid"><img src="images/add-to-fav.gif" border="0" alt="Add to Favourites"></a><!--<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/newthread.gif" border="0" alt="Post New Thread"></a>--></td>
        <
td><normalfont>&nbsp;&nbsp;</normalfont></td>
        <
td><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replycloseborder="0" alt="Post A Reply"></a></td

attached is the psd file for "add to favourites"

Nice...... can you give ezact instructions on how to do this?

THanks!

Erwin 04-26-2002 12:52 AM

Nice one. Had to tidy up the templates quite a bit, and correct spelling errors, but the outcome looks great.

myluntan 04-26-2002 06:36 AM

hack version update you can find the attchement in the firts post

Erwin 04-26-2002 02:21 PM

The update seems to work okay, although sometimes for some reason the screen appears as a blank page. Shall let my members "beta" test it for me. :) Thanks.

Psychdrone 04-26-2002 07:01 PM

can somone one release the code for what the guy said above

mADmAX` 04-27-2002 03:39 PM

How would you go about adding a custom error message if you try to view someones favorites but they chose not to share them? Currently, you get the default no permission msg...

Okiewan 04-29-2002 12:06 AM

Are the templates available? The installer won't create them :(

myluntan 04-29-2002 10:52 AM

Quote:

Originally posted by Okiewan
Are the templates available? The installer won't create them :(
yes ,but it only in the default templates.? The installer works great

Freddie Bingham 04-29-2002 07:15 PM

Quote:

Originally posted by Lesane


I've converted it. The hack is working great on my forum.

Then you should release it, I wouldn't care at all.

Psychdrone 04-30-2002 12:45 AM

hey where ezactly would I put the code to change the New post thing>>????

Birdie501 05-01-2002 02:11 PM

hi,

i like this hack! Maybe you could add an improvement! Is it possible that if the user has not allowed to show his favorites to public, that the link in postbit to his favorites is not shown?

Because i think it is bad that if a user clicks on it, it only say some standard error that he has no rights to do that!

Then if i add a thread to my favorites, it only shows an empty redirection page??? Wonder why?

myluntan 05-01-2002 02:27 PM

make sure the redirect_favaddthanks template is not empty ,the improvement i will write later.i am very glad to konw you like this hack.

myluntan 05-02-2002 01:46 AM

The improvement:
open admin/functions.php
find
PHP Code:

if ($post['receivepm'] and $enablepms==1) {eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
        } else {
            
$post[pmlink] = "";
        } 

under it add
PHP Code:

if($post[canviewfavdef]){
            
$fav_postbit="<a href ='favorites.php?action=view&userid=$post[userid]'>view fav </a>";
        }else{
$fav_postbit="";
        } 

modify template
postbit
replace the code
Code:

<BR><A HREF="favorites.php?action=view&userid=$post[userid]">view favorite</A>
with
PHP Code:

$fav_postbit 

thats all
enjoy it.^^

Lesane 05-02-2002 06:15 PM

Quote:

Originally posted by freddie
Then you should release it, I wouldn't care at all.
I will not release it as a new hack, i will post it in the appropriate thread. But can you remember that old thread of yours because i couldn't find it.

NTLDR 05-02-2002 06:26 PM

Quote:

Originally posted by Lesane
But can you remember that old thread of yours because i couldn't find it.
That thread is likly to be in the Old Hacks forum which is locked.

I would love to see a working version of this hack, this thread should be in the beta forum really.

Lesane 05-02-2002 06:39 PM

Quote:

Originally posted by NTLDR


That thread is likly to be in the Old Hacks forum which is locked.

I would love to see a working version of this hack, this thread should be in the beta forum really.

Found it :)

I will post a working version in the old thread soon. The version is compatible with Vb 2.2.*

https://vborg.vbsupport.ru/showthrea...&threadid=4135

NTLDR 05-02-2002 06:46 PM

Thanks Lesane, I look forward to installing it ;)


All times are GMT. The time now is 09:48 AM.

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.02646 seconds
  • Memory Usage 1,834KB
  • 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
  • (5)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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