vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   vB REFERRER 1.0 (https://vborg.vbsupport.ru/showthread.php?t=95950)

adamgessel 09-08-2005 10:00 PM

vB REFERRER 1.0
 
This modification is made for vBulletin 3.5 RC2, but probably also works for RC3.

Very simple to install.

===========================
DEMO BOARD
===========================

You can see a demo at:
http://www.forumfreedom.net/forum


===========================
DESCRIPTION
===========================

This will add a link to the UserCP that tells every user what his/her reffering link is so that they can invite friends. Later version will include ability to send the e-mail from the forum itself. This hack is very simple.


===========================
INSTALL
===========================

Time: Less than a minute
Difficulty: Easy

===========================

Let me know what you think. It's nothing advanced, just thought it could come in handy for some people.

PLEASE CLICK INSTALL!

UPDATE: NO LONGER TAKES ANY FILE EDITS!

bi11i 09-10-2005 03:51 AM

I'd love to use this hack, but is there any way to do it without editing the php files directly? How about just a template edit? Is it possible?

Andreas 09-10-2005 04:32 AM

Yeah, a Template Edit would do as well:

Code:

<!-- ############## START REFERRER BY ADAM GESSEL ####################  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="7">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_subthreads')"><img id="collapseimg_usercp_subthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_subthreads].gif" alt="" border="0" /></a>
                        <a href="register.php?referrerid=$bbuserinfo[userid]">Refer Friends URL</a><span class="normal"></span>
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
        <tr>
                        <td class="alt1" align="center" colspan="7">Invite your friends to our forum by sending them to: <a href="register.php?referrerid=$bbuserinfo[userid]">http://www.yourforum.com/forum/register.php?referrerid=$bbuserinfo[userid]</a></td>
                </tr>
</tbody>
</table>
<br />
<!-- ############## END REFERRER BY ADAM GESSEL ####################  -->

Would be nice if this could be updated :)

bi11i 09-10-2005 01:28 PM

I've been using this one on v3.5 and it seems to work pretty well: https://vborg.vbsupport.ru/showthread.php?t=90849 (sorry, not to take away from this modification, I'm willing to bet they could be combined for an update.)

007 09-10-2005 04:57 PM

There is no reason for a code edit at all on this one.. Good idea though.

ReadOrDie 09-10-2005 05:42 PM

Was this that hack I requested in the other thread?

adamgessel 09-10-2005 08:03 PM

Yeah, I could've done it without any file edits. I'll update it and make it so that there aren't any.

adamgessel 09-10-2005 08:06 PM

Alright... hack was updated. Now there aren't any file modifications.

Brinnie 09-11-2005 10:54 AM

Quote:

Originally Posted by bi11i
I've been using this one on v3.5 and it seems to work pretty well: https://vborg.vbsupport.ru/showthread.php?t=90849 (sorry, not to take away from this modification, I'm willing to bet they could be combined for an update.)

Which is better?

hotrod1 09-11-2005 03:31 PM

I could use a hack like this, thanks!


All times are GMT. The time now is 01:46 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.01090 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (1)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
  • (10)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