Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.0.x Rating:
Released: 08-06-2001 Last Update: Never Installs: 1
 
No support by the author.

Hey, this is my first hack, so if I'm doing anything wrong, please let me know.

This hack was requested by theflow.

Instructions:


A demo can be found on our forums:
http://forum.t-cove.com/
Just goto a forum.

Please feedback!!!

Show Your Support

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

Comments
  #12  
Old 08-24-2001, 06:26 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly, I have not yet upgraded from 2.01 to 2.03. But will be doing so shortly. Nevertheless, when I asked a friend to implement your great hack for me, she said:

he references changing a file called online.php which is nowhere to be found on theflow website - could this be a file that was created in a newer release of vbulletin? I can't find that snippet of code in any files that we have.

Can you supply a tweek to your code based on the 2.01 release, or is that too difficult since you are not running it anymore?
Reply With Quote
  #13  
Old 08-24-2001, 06:30 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you do not use v2.0.2 or higher, you will not have online.php.
But the changes done to online.php are very very minor, and have absolutely no influence on the sent-to-friend functionality. You can safely install this hack, and skip step 2.

EDIT:
Just so you understand. The changes in online.php are done to make it so that when a user is on the new page, it won't show a "Unknown location" message, but a "Sending a page to friend" message. Since you don't use online.php, there's no need in this.
Reply With Quote
  #14  
Old 09-04-2001, 07:13 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does this hack do?
Reply With Quote
  #15  
Old 09-04-2001, 10:49 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LuBi:
Know that link, "Email This Page to Someone!" at the bottom of every thread?
Well this hack lets you also add this link to the bottom of every forum, to send the forum page to someone else.
Reply With Quote
  #16  
Old 09-04-2001, 10:51 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, great hack.
Reply With Quote
  #17  
Old 09-04-2001, 11:11 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.
Reply With Quote
  #18  
Old 02-27-2002, 02:08 AM
Saiyan XL Saiyan XL is offline
 
Join Date: Dec 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that god damn demo thing didn't work for me..
Reply With Quote
  #19  
Old 05-21-2002, 05:08 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack FireFly, very useful - though it needed a little editing for version 2.2.5 [I'll post the fixes in my next post]. Saiyan XL is right too, the demo doesn't work anymore.
Reply With Quote
  #20  
Old 05-21-2002, 05:15 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, here's a little update for people using later versions of vBulletin such as myself [I'm using 2.2.5].

Firstly the following code found in step one [as shown below]...

PHP Code:
if ($wordwrap!=0) [b]{[/b]
    
$threadinfo[title]=dowordwrap($threadinfo[title]);
  [
b]}[/b]

  eval(
"dooutput(\"".gettemplate("sendtofriend")."\");"); 
...is different, and actually looks like this...

PHP Code:
  if ($wordwrap!=0) {
    
$threadinfo[title]=dowordwrap($threadinfo[title]);
  }

  eval(
"dooutput(\"".gettemplate("sendtofriend")."\");"); 
...and you need to replace it with this...

PHP Code:
if ($wordwrap!=0) {
    
$foruminfo[title]=dowordwrap($foruminfo[title]);
  }

  eval(
"dooutput(\"".gettemplate("sendtofriendforum")."\");"); 
You'll also have to use this template rather than the one FireFly posted or you'll have extra HTML showing at the top of the page. So insert this into a new template called sendtofriendforum...

PHP Code:
{htmldoctype}
<
html>
<
head><title>$bbtitle :: Send Page to a Friend</title>
$headinclude
</head>
<
body>
$header

<form action="sendtofriendforum.php" method="post">
<
input type="hidden" name="s" value="$session[sessionhash]"><input type="hidden" name="forumid" value="$forumid">

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" [b]{[/b]tableouterextra[b]}[/bwidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" [b]{[/b]tableinnerextra[b]}[/bwidth="100%">
<
tr>
    <
td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Send This Page To A Friend</b></normalfont></td>
</
tr>
$logincode
<tr>
    <
td bgcolor="{secondaltcolor}"><normalfont><b>Send To (Person's Name):</b></normalfont></td>
    <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="sendtoname" size="25" maxlength="75"></normalfont></td>
</tr>
<tr>
    <td bgcolor="{firstaltcolor}"><normalfont><b>Send To (Email Address):</b></normalfont></td>
    <td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="sendtoemail" size="25" maxlength="100"></normalfont></td>
</tr>
<tr>
    <td bgcolor="{secondaltcolor}"><normalfont><b>Subject:</b></normalfont></td>
    <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="emailsubject" value="$threadinfo[title]" size="25" maxlength="100"></normalfont></td>
</tr>
<tr>
    <td bgcolor="{firstaltcolor}" valign="top"><normalfont><b>Message:</b></normalfont></td>
    <td bgcolor="{firstaltcolor}"><textarea name="emailmessage" rows="10" cols="50">I thought you might be interested in reading this web page:
$bburl/forumdisplay.php?forumid=$forumid&referrerid=$bbuserinfo[userid]

From,
$bbuserinfo[username]
</textarea></td>
</tr>
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
    <td align="center"><normalfont>
    <input type="submit" class="bginput" name="submit" value="Send Email Now!" accesskey="s">
    <input type="hidden" name="threadid" value="$threadid">
    <input type="hidden" name="action" value="sendfriend">
    </normalfont></td>
</tr>
</table>

</form>

$footer

</body>
</html> 
...and finally, an extra step; edit your existing template called redirect_sentemail and replace it with the following - this changes the word Thread to Page, so it applies to threads and forums, and is also slightly more explanatory.

PHP Code:
We have sent your email to $sendtonameYou will now be returned to the page that you sent to your friend
Hope this might have helped some of you, and thanks again to FireFly for the hack!
Reply With Quote
  #21  
Old 06-20-2002, 09:46 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on 2.2.6, doesn't need any changes between upgrade if you use FireFly's Add Who's Online Locations from Admin CP - otherwise just re-apply the changes to online.php!
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 03:49 PM.


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.04654 seconds
  • Memory Usage 2,326KB
  • 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
  • (5)bbcode_php
  • (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
  • (2)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