Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #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
  #22  
Old 09-04-2002, 07:10 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with 2.2.7.
Reply With Quote
  #23  
Old 04-08-2003, 08:53 AM
TMM TMM is offline
 
Join Date: Mar 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work with 2.2.9 & 2.3.0?

Can anyone point me to a working demo (or screenshots)?
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:32 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.04144 seconds
  • Memory Usage 2,296KB
  • Queries Executed 22 (?)
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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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