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!

bi11i 09-11-2005 05:06 PM

Quote:

Originally Posted by Brinnie
Which is better?

I think they're both identical...?

adamgessel 09-12-2005 02:03 AM

That other one is for 3.0.7, isn't it? This one is for RC2 & RC3...

adamgessel 09-12-2005 02:05 AM

Yeah... if you're referring to the one at https://vborg.vbsupport.ru/showthread.php?t=90849, this is for a different version of vbulletin. This hack I made completely by myself, I didn't use anybody else's code, and as far as I know, nothing has been made like this for vbulletin 3.5. Correct me if I'm wrong...

bi11i 09-12-2005 02:59 AM

Quote:

Originally Posted by adamgessel
That other one is for 3.0.7, isn't it? This one is for RC2 & RC3...

They both accomplish the same thing and I'm 99% that they'll both work in either version. This one involves less work, as there are no phrase additions, only a template edit.

Neutral Singh 09-12-2005 04:40 AM

In the hack information, please uncheck the Code Changes checkbox, as that would discourage many people from installing this mod. ;) Thanks

Brinnie 09-13-2005 07:52 AM

Quote:

Originally Posted by adamgessel
Yeah... if you're referring to the one at https://vborg.vbsupport.ru/showthread.php?t=90849, this is for a different version of vbulletin. This hack I made completely by myself, I didn't use anybody else's code, and as far as I know, nothing has been made like this for vbulletin 3.5. Correct me if I'm wrong...

Oh cool. :)
Hey, I'm not sure if this would would be just a template modification or take a new plugin, but it's just one of those ideas that pops into my head. Would it be easy to have group promotions based on referrals?

That way, you could give entice users to referr people to get custom titles or something. :)

Boofo 09-13-2005 08:18 AM

Quote:

Originally Posted by Brinnie
Oh cool. :)
Hey, I'm not sure if this would would be just a template modification or take a new plugin, but it's just one of those ideas that pops into my head. Would it be easy to have group promotions based on referrals?

That way, you could give entice users to referr people to get custom titles or something. :)

Sure. You could just do some conditionals in the template and have it call phrases you set up for each usergroup. Is that what you meant? ;)

KuRi 09-13-2005 09:33 PM

there was a bit of a conflict in this template mod whereby the collapse button was conflicting with the collapse button for subscribed threads preventing that one from working...(both buttuns would collapse the referrals bit)

allso where the link is and you have www.yourforum.com/forum this could be reaplaced with $vboptions[bburl]

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_reflink')"><img id="collapseimg_usercp_reflink" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reflink].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_reflink" style="$vbcollapse[collapseobj_usercp_reflink]">
<tr>
<td class="alt1" align="center" colspan="7"><b>Invite your friends to join our forum by linking them here via the following link:</b> <br /><a href="register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a></td>
</tr>
</tbody>
</table>
<br />
<!-- ############## END REFERRER BY ADAM GESSEL ####################  -->


adamgessel 09-14-2005 12:55 AM

Thanks, KuRi, I thought I sorted that out but I guess not... I'll update it now.

KuRi 09-14-2005 01:07 AM

no problem at all!! :):)

o0Hubba0o 09-30-2005 12:42 AM

Quote:

Originally Posted by adamgessel
Thanks, KuRi, I thought I sorted that out but I guess not... I'll update it now.

The text file still has this in it:
Quote:

ADD BELOW (MAKE SURE YOU EDIT http://www.yourforum.com/forum to your URL where the forum is located!!!):
It might confuse some newer users since you changed it to the vboptions.

ukbill69 10-03-2005 06:55 PM

Ive updated your code so it includes html code, so people can add to there sites and also updated code so $vboptions[bburl] is in there insted of manual edit of the domain name. Added send to a friend, add a new thread to your forums like a welcome thread to sign up and features of the forums etc and then replace t=2844 to what the thread ID is.

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_reflink')"><img id="collapseimg_usercp_reflink" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reflink].gif" alt="" border="0" /></a>
<a href="$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]">Refer Friends URL</a><span class="normal"></span>
</td>
</tr>
</thead>
<tbody id="collapseobj_usercp_reflink" style="$vbcollapse[collapseobj_usercp_reflink]">
<tr>
<td class="alt1" align="center" colspan="7">
<b>Invite your friends to join our forum by linking them here via the following link:</b> <br /><a href="register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a></p>
<p><b><a href="/sendmessage.php?do=sendtofriend&t=2844">Send To A Frend</a></b></p>
<b>Our add this HTML code to your
site</b></p>
<textarea rows="3" cols="58"><a href="$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]">Ive Joined The Forums, Why Don't You?</a></textarea></td>
</tr>
</tbody>
</table>
<br />
<!-- ############## END REFERRER BY ADAM GESSEL ####################  -->


Brandon Sheley 10-12-2005 03:49 AM

[high]* Brandon Sheley installed
[/high]

very nice,
will hope for some email options in the newer version :)

DrHUS 10-27-2005 05:19 AM

email options is a good idea :)

gldtn 10-27-2005 06:02 AM

[high]* gldtn clicks install
[/high]

Any ideas of when new versions will be coming out? Also if it's not too much to ask I would like to post a suggestion.. To allow people to register on forum only if they are reffered by a user with this hack.

Thanks ;)

pspcrazy 11-05-2005 01:13 AM

This is the code if you have a thread that has introductions instead of a post, used ukbills post,

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_reflink')"><img id="collapseimg_usercp_reflink" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reflink].gif" alt="" border="0" /></a>
<a href="$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]">Refer Friends URL</a><span class="normal"></span>
</td>
</tr>
</thead>
<tbody id="collapseobj_usercp_reflink" style="$vbcollapse[collapseobj_usercp_reflink]">
<tr>
<td class="alt1" align="center" colspan="7">
<b>Invite your friends to join our forum by linking them here via the following link:</b> <br /><a href="register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a></p><br>
<BR><BR><b>Our add this HTML code to your
site</b></p>
<BR><textarea rows="3" cols="58"><a href="$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]">Ive Joined The Forums, Why Don't You?</a></textarea></td>
</tr>
</tbody>
</table>
<br />

<!-- ############## END REFERRER BY ADAM GESSEL ####################  -->

Send to a freind didnt work so i remvoed it fromt his.

Also i went ahead and put these under the subscribedthreads list, i dont want people to see this first , as soon as they enter the forums id rather them see the subscribed stuff.

o1dirtydog 11-05-2005 01:15 PM

works like a charm... installed.

NxTek 11-05-2005 06:17 PM

Quote:

Later version will include ability to send the e-mail from the forum itself.
This is supported now?

trackpads 11-16-2005 10:59 PM

Works great! thanks!!!

KBowers 11-18-2005 03:23 PM

Just wondering if this would work in version 3.5.1?

Thanks!

Kathy

KBowers 11-22-2005 11:26 AM

Quote:

Originally Posted by KBowers
Just wondering if this would work in version 3.5.1?

Thanks!

Kathy

Anybody know? I really want to try it but don't want to screw up my newly installed board by installing something I shouldn't... :nervous:

Kathy

Detomah 11-22-2005 12:40 PM

Quote:

Originally Posted by KBowers
Anybody know? I really want to try it but don't want to screw up my newly installed board by installing something I shouldn't... :nervous:

Kathy

I have this installed on my board and that is 3.5.1 so I wouldn't have thought you would have any problems.

There isn't a great lot that can go wrong in it to be honest.

Vizionz 11-22-2005 01:06 PM

this works fine and in the instructions it says edit your forum url but theres no need that i saw ?

Tradjick 12-01-2005 07:35 PM

I get a permission error, also when i´m logged in as an admin.

lazyseller 12-04-2005 05:49 PM

All it really does it modify the templates... i would double check your templates

ReZ 12-27-2005 08:46 PM

Nice hack, thanks!

Danny Diamond 12-29-2005 02:24 AM

Installed on 3.5.1 and works fine. thank you very much.

incurable 03-05-2006 01:10 AM

thank you this is neat !!

Ohiosweetheart 05-02-2006 12:59 AM

will this work on 3.5.4 ?

Hell? 05-04-2006 11:10 PM

It's a simple template edit, so, yes, it works on all 3.5.x versions.


All times are GMT. The time now is 04:44 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.01459 seconds
  • Memory Usage 1,829KB
  • 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
  • (4)bbcode_code_printable
  • (10)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